
/* 1. Teateriba ise (Kõige ülal) */
.woocommerce-store-notice, 
.demo_store {
    background-color: #df0e17 !important; /* Halika punane */
    color: #fff !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
    padding: 14px 20px !important;         /* Riba kõrgus u 54px-56px */
    text-align: center !important;
    margin: 0 !important;
    
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 999999 !important;           /* Kõige kõrgem kiht */
    box-shadow: 0 3px 10px rgba(53, 49, 49, 0.2) !important;
}

/* Sulgemisnupu stiilid */
.woocommerce-store-notice .woocommerce-store-notice__dismiss-link,
.demo_store .woocommerce-store-notice__dismiss-link {
    color: #fff !important;
    text-decoration: underline !important;
    margin-left: 16px !important;
    font-weight: 700 !important;
}
.woocommerce-store-notice .woocommerce-store-notice__dismiss-link:hover,
.demo_store .woocommerce-store-notice__dismiss-link:hover {
    color: #fee54a !important;            /* Halika kollane */
    text-decoration: none !important;
}

/* 2. NIHUTAMINE: Ainult siis, kui tekstis EI OLE sõna "none" (ehk teade pole saanud käsku display:none) */
body:has(.woocommerce-store-notice:not([style*="none"])),
body:has(.demo_store:not([style*="none"])) {
    margin-top: 56px !important;          /* Lükkab lehe üldise sisu alla */
}

/* Nihutame päise klasse (.main-header ja dropdown menüü) */
body:has(.woocommerce-store-notice:not([style*="none"])) .main-header,
body:has(.demo_store:not([style*="none"])) .main-header,
body:has(.woocommerce-store-notice:not([style*="none"])) .mobile-menu-dropdown,
body:has(.demo_store:not([style*="none"])) .mobile-menu-dropdown {
    top: 50px !important;                 /* Sunnib menüü algama täpselt teate alt */
}

/* 3. Mobiilivaade */
@media (max-width: 576px) {
    .woocommerce-store-notice, 
    .demo_store {
        font-size: 1rem !important;
        padding: 10px 16px !important;    
    }
    
    body:has(.woocommerce-store-notice:not([style*="none"])),
    body:has(.demo_store:not([style*="none"])) {
        margin-top: 44px !important;
    }
    
    body:has(.woocommerce-store-notice:not([style*="none"])) .main-header,
    body:has(.demo_store:not([style*="none"])) .main-header,
    body:has(.woocommerce-store-notice:not([style*="none"])) .mobile-menu-dropdown,
    body:has(.demo_store:not([style*="none"])) .mobile-menu-dropdown {
        top: 40px !important;
    }
}

/* ==========================================
   1. PLUGINA JOONDAMINE PÄISE LAIUSEGA LEHE KESKELE
   ========================================== */
#cff {
  /* MÄRKUS: Kui plugina laius erineb veidi päisest, 
     muuda siin 1200px numbrit oma lehe päise täpse laiuse vastu (nt 1140px, 1280px vms) */
  max-width: 1200px !important; 
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
	align-self: center !important;
  float: none !important;
}

/* ==========================================
   2. NUPU ÜMBRISE JOONDUS KESKELE
   ========================================== */
#cff .cff-load-more-wrap,
#cff .cff-wrapper {
  text-align: center !important;
  display: ˇblock !important;
  justify-content: center !important;
  width: 100% !important;
}

/* ==========================================
   3. "LAE ROHKEM" NUPU DISAIN JA JOONDUS
   ========================================== */
#cff-load-more.cff-load-more {
  /* Joondus kindlalt keskele (ka Flexboxi või float joonduste puhul) */
  display: block !important;
  width: 70% !important;
  margin: 30px auto !important;
  align-self: center !important;
  float: none !important;
  
  /* Brändi värvid ja kuju (Halika stiilijuhend) */
  background-color: #df0e17 !important;
  color: #ffffff !important;
  border: 2px solid #df0e17 !important;
  border-radius: 50px !important;
  
  /* Tüpograafia (paks tekst, suurtähed eemaldatud, keskel) */
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 20px !important;
  font-weight: bold !important;
  text-transform: none !important;
  text-align: center !important;
  letter-spacing: 0.5px !important;
  
  /* Suurus, vahed ja varjud (normaalne kitsas laius) */
  padding: 0 auto !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  text-decoration: none !important;
}

/* ==========================================
   4. NUPU HOVER- JA FOOKUSEFEKT (ainult värvimuutus)
   ========================================== */
#cff-load-more.cff-load-more:hover,
#cff-load-more.cff-load-more:focus {
  background-color: #b30b12 !important; /* 10% tumedam punane */
  border-color: #b30b12 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15) !important;
}

.woocommerce div.product div.images .flex-control-thumbs li .vwg-video-wrapper img,
.woocommerce div.product div.images .flex-control-thumbs li:hover .vwg-video-wrapper img,
.woocommerce div.product div.images .flex-control-thumbs li .vwg-video-wrapper:hover img {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Checkout coupon */

.woocommerce-checkout
.woocommerce-form-coupon-toggle
.woocommerce-info {
    background-color: #ffffff;
    color: #353131;
    box-shadow: 0 2px 4px rgba(53, 49, 49, 0.15);
}

.woocommerce-checkout
.woocommerce-form-coupon-toggle
.woocommerce-info a {
    color: #df0e17;
    text-decoration: underline;
}

.woocommerce-checkout
.woocommerce-form-coupon-toggle
.woocommerce-info a:hover,
.woocommerce-checkout
.woocommerce-form-coupon-toggle
.woocommerce-info a:focus {
    color: #353131;
}
/* Checkout success notices */

.woocommerce-checkout .woocommerce-message {
    background-color: #fee54a;
    color: #353131;
    box-shadow: 0 2px 4px rgba(53, 49, 49, 0.15);
}

.woocommerce-checkout .woocommerce-message a {
    color: #df0e17;
    text-decoration: underline;
}

.woocommerce-checkout .woocommerce-message a:hover,
.woocommerce-checkout .woocommerce-message a:focus {
    color: #353131;
}
/* Applied coupon in checkout summary */

.woocommerce-checkout
.woocommerce-checkout-review-order
.cart-discount th,
.woocommerce-checkout
.woocommerce-checkout-review-order
.cart-discount td {
    background-color: #fff9cf;
    padding: 12px;
}

.woocommerce-checkout
.woocommerce-checkout-review-order
.cart-discount th {
    border-radius: 8px 0 0 8px;
}

.woocommerce-checkout
.woocommerce-checkout-review-order
.cart-discount td {
    color: #df0e17;
    text-align: right;
    white-space: nowrap;
    border-radius: 0 8px 8px 0;
}

.woocommerce-checkout
.woocommerce-checkout-review-order
.cart-discount .amount {
    font-weight: 700;
}

.woocommerce-checkout
.woocommerce-checkout-review-order
.woocommerce-remove-coupon {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid #df0e17;
    border-radius: 20px;
    color: #df0e17;
    font-size: 0.8rem;
    line-height: 1.4;
    text-decoration: none;
}

.woocommerce-checkout
.woocommerce-checkout-review-order
.woocommerce-remove-coupon:hover,
.woocommerce-checkout
.woocommerce-checkout-review-order
.woocommerce-remove-coupon:focus {
    background-color: #df0e17;
    color: #fff;
}