/* ==========================================================================
   ILEE – CookieYes (cookie-law-info) banner skin
   --------------------------------------------------------------------------
   Matches the site: cream card (#F7EDE2), The-Seasons headings, Flama text,
   orange pill buttons like "Get an offer" / "Download Catalog".

   Why `body` prefixes and !important:
   - CookieYes injects <style id="cky-style"> at the END of <head>, after the
     theme CSS, so equal-specificity rules would lose -> every selector here
     starts with `body` to win on specificity.
   - Colours set in the CookieYes admin are written as inline style=""
     attributes on each element -> colour/background/border need !important.
   - Hello Elementor's reset gives every <button> a pink (#c36) hover/focus
     background -> icon buttons are forced back to transparent.
   ========================================================================== */

body .cky-consent-container,
body .cky-modal,
body .cky-btn-revisit-wrapper {
  --ilee-cky-orange: #F99758;                               /* = Elementor buttons */
  --ilee-cky-orange-hover: var(--brand-hover-accent, #D85C13);
  --ilee-cky-cream: var(--brand-background, #F7EDE2);
  --ilee-cky-paper: var(--page-background, #fbf7f4);
  --ilee-cky-brown: var(--brand-dark-brown, #503629);
  --ilee-cky-brown-soft: var(--brand-middle-brown, #896e61);
  --ilee-cky-line: rgba(80, 54, 41, 0.14);
  --ilee-cky-shadow: 0 18px 50px rgba(80, 54, 41, 0.18), 0 2px 8px rgba(80, 54, 41, 0.08);
}

/* --------------------------------------------------------------------------
   1. Banner -> floating card, bottom-left
   -------------------------------------------------------------------------- */
body .cky-consent-container.cky-banner-bottom,
body .cky-consent-container.cky-box-bottom-left,
body .cky-consent-container.cky-box-bottom-right {
  left: 24px;
  right: auto;
  bottom: 24px;
  width: min(420px, calc(100% - 48px));
}

body .cky-consent-container .cky-consent-bar {
  position: relative;
  background: var(--ilee-cky-cream) !important;
  border: 0 !important;
  border-radius: 15px;
  padding: 28px 28px 24px;
  box-shadow: var(--ilee-cky-shadow);
  font-family: 'Flama', sans-serif;
  animation: ilee-cky-in 0.45s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes ilee-cky-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body .cky-consent-container .cky-consent-bar { animation: none; }
}

/* Title + text */
body .cky-consent-container .cky-notice .cky-title {
  font-family: 'The-Seasons', serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  color: var(--ilee-cky-brown) !important;
  margin: 0 28px 10px 0;
  padding: 0;
}

body .cky-consent-container .cky-notice-group {
  display: block;
}

body .cky-consent-container .cky-notice-des,
body .cky-consent-container .cky-notice-des * {
  font-family: 'Flama', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ilee-cky-brown) !important;
}
body .cky-consent-container .cky-notice-des {
  padding: 0;
  max-height: none;
  overflow: visible;
}

body .cky-consent-container .cky-notice-des a.cky-policy,
body .cky-consent-container .cky-notice-des button.cky-policy {
  color: var(--ilee-cky-orange-hover) !important;
  border: 0 !important;
  background: transparent !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Close (x) — CookieYes treats this as "Reject" */
body .cky-consent-container .cky-consent-bar .cky-banner-btn-close {
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0 !important;
  background: transparent !important;
  opacity: 0.55;
  transition: opacity .2s ease, background-color .2s ease;
}
body .cky-consent-container .cky-consent-bar .cky-banner-btn-close:hover,
body .cky-consent-container .cky-consent-bar .cky-banner-btn-close:focus {
  opacity: 1;
  background: rgba(80, 54, 41, 0.08) !important;
}
body .cky-consent-container .cky-consent-bar .cky-banner-btn-close img {
  width: 10px;
  height: 10px;
}

/* Buttons layout: [Accept] [Reject]  /  Customize as a quiet link */
body .cky-consent-container .cky-notice-btn-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
}
body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept { order: 1; }
body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject { order: 2; }
body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize { order: 3; }

body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept,
body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject {
  flex: 1 1 0;
  width: auto;
  max-width: none;
}

body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize {
  flex: 0 0 100%;
  width: auto;
  padding: 2px 0 !important;
  margin: 2px 0 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--ilee-cky-brown-soft) !important;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
  border-radius: 0;
}
body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize:hover,
body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize:focus {
  color: var(--ilee-cky-orange-hover) !important;
  background: transparent !important;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   2. Shared pill buttons (banner + preference centre)
   -------------------------------------------------------------------------- */
body .cky-consent-container .cky-btn,
body .cky-modal .cky-btn {
  font-family: 'Flama', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  padding: 11px 20px;
  margin: 0;
  border-radius: 25px;
  border: 2px solid var(--ilee-cky-orange) !important;
  opacity: 1;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
body .cky-consent-container .cky-btn:hover,
body .cky-modal .cky-btn:hover {
  opacity: 1;
}

/* Accept = filled */
body .cky-consent-container .cky-btn-accept,
body .cky-modal .cky-btn-accept {
  background: var(--ilee-cky-orange) !important;
  color: #fff !important;
}
body .cky-consent-container .cky-btn-accept:hover,
body .cky-consent-container .cky-btn-accept:focus,
body .cky-modal .cky-btn-accept:hover,
body .cky-modal .cky-btn-accept:focus {
  background: var(--ilee-cky-orange-hover) !important;
  border-color: var(--ilee-cky-orange-hover) !important;
  color: #fff !important;
}

/* Reject / Save preferences = outline, same size (equal prominence, GDPR/CNIL) */
body .cky-consent-container .cky-btn-reject,
body .cky-modal .cky-btn-reject,
body .cky-modal .cky-btn-preferences {
  background: transparent !important;
  color: var(--ilee-cky-brown) !important;
}
body .cky-consent-container .cky-btn-reject:hover,
body .cky-consent-container .cky-btn-reject:focus,
body .cky-modal .cky-btn-reject:hover,
body .cky-modal .cky-btn-reject:focus,
body .cky-modal .cky-btn-preferences:hover,
body .cky-modal .cky-btn-preferences:focus {
  background: var(--ilee-cky-orange) !important;
  color: #fff !important;
}

/* Keyboard focus ring in brand colour */
body .cky-consent-container .cky-btn:focus-visible,
body .cky-modal .cky-btn:focus-visible,
body .cky-modal button:focus-visible,
body .cky-modal .cky-switch input[type="checkbox"]:focus-visible,
body .cky-consent-container .cky-banner-btn-close:focus-visible {
  outline: 2px solid var(--ilee-cky-orange-hover);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Preference centre (Customize modal)
   -------------------------------------------------------------------------- */
body .cky-overlay {
  background: var(--brand-dark-brown, #503629);
  opacity: 0.35;
}

body .cky-modal {
  border-radius: 15px;
  background: var(--ilee-cky-paper);
  box-shadow: 0 30px 80px rgba(80, 54, 41, 0.28);
}

body .cky-modal .cky-preference-center {
  background: var(--ilee-cky-paper) !important;
  color: var(--ilee-cky-brown) !important;
  border-color: var(--ilee-cky-line) !important;
  border-radius: 15px;
  font-family: 'Flama', sans-serif;
  max-width: 720px;
}

body .cky-modal .cky-preference-header {
  padding: 24px 28px 18px;
}
body .cky-modal .cky-preference-header .cky-preference-title {
  font-family: 'The-Seasons', serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  color: var(--ilee-cky-brown) !important;
}

body .cky-modal .cky-preference-header .cky-btn-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0 !important;
  background: transparent !important;
  opacity: 0.6;
}
body .cky-modal .cky-preference-header .cky-btn-close:hover,
body .cky-modal .cky-preference-header .cky-btn-close:focus {
  opacity: 1;
  background: rgba(80, 54, 41, 0.08) !important;
}

body .cky-modal .cky-preference-body-wrapper {
  padding: 0 28px;
}

body .cky-modal .cky-preference-content-wrapper,
body .cky-modal .cky-preference-content-wrapper *,
body .cky-modal .cky-accordion-header-des,
body .cky-modal .cky-accordion-header-des * {
  font-family: 'Flama', sans-serif;
  color: var(--ilee-cky-brown) !important;
  line-height: 1.6;
}

body .cky-modal .cky-preference-content-wrapper .cky-show-desc-btn {
  color: var(--ilee-cky-orange-hover) !important;
  background: transparent !important;
  border: 0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .cky-modal .cky-accordion {
  border-color: var(--ilee-cky-line) !important;
}
body .cky-modal .cky-accordion-header .cky-accordion-btn {
  font-family: 'Flama', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ilee-cky-brown) !important;
  background: transparent !important;
  border: 0 !important;
}
body .cky-modal .cky-accordion-chevron {
  color: var(--ilee-cky-brown-soft);
  border-color: var(--ilee-cky-brown-soft);
}
body .cky-modal .cky-accordion-header .cky-always-active {
  color: #6B8E4E;                     /* soft eco green */
  font-weight: 400;
}

body .cky-modal .cky-audit-table {
  background: var(--ilee-cky-cream) !important;
  border-color: var(--ilee-cky-line) !important;
  color: var(--ilee-cky-brown) !important;
  border-radius: 10px;
}

/* Toggles */
body .cky-modal .cky-switch input[type="checkbox"] {
  background: #E3D5C8;
}
body .cky-modal .cky-switch input[type="checkbox"]:checked {
  background: var(--ilee-cky-orange);
}

/* Footer buttons */
body .cky-modal .cky-footer-shadow {
  background: linear-gradient(180deg, rgba(251, 247, 244, 0) 0%, var(--ilee-cky-paper) 100%) !important;
}
body .cky-modal .cky-prefrence-btn-wrapper {
  gap: 10px;
  padding: 20px 28px 24px;
  border-color: var(--ilee-cky-line) !important;
}
body .cky-modal .cky-prefrence-btn-wrapper .cky-btn {
  flex: 1 1 0;
  margin: 0;
}
body .cky-modal .cky-footer-wrapper a {
  color: var(--ilee-cky-brown-soft) !important;
}

/* --------------------------------------------------------------------------
   4. "Cookie settings" floating button after consent
   -------------------------------------------------------------------------- */
body .cky-btn-revisit-wrapper {
  background: var(--ilee-cky-orange) !important;
  box-shadow: 0 8px 20px rgba(80, 54, 41, 0.2);
  transition: background-color .2s ease, transform .2s ease;
}
body .cky-btn-revisit-wrapper:hover {
  background: var(--ilee-cky-orange-hover) !important;
  transform: translateY(-2px);
}
body .cky-btn-revisit-wrapper .cky-btn-revisit,
body .cky-btn-revisit-wrapper .cky-btn-revisit:hover,
body .cky-btn-revisit-wrapper .cky-btn-revisit:focus {
  background: transparent !important;
  border: 0 !important;
}
body .cky-btn-revisit-wrapper.cky-revisit-bottom-left:hover::before,
body .cky-btn-revisit-wrapper.cky-revisit-bottom-right:hover::before {
  background: var(--ilee-cky-brown);
  font-family: 'Flama', sans-serif;
  border-radius: 6px;
}
body .cky-btn-revisit-wrapper.cky-revisit-bottom-left:hover::after {
  border-right-color: var(--ilee-cky-brown);
}
body .cky-btn-revisit-wrapper.cky-revisit-bottom-right:hover::after {
  border-left-color: var(--ilee-cky-brown);
}

/* --------------------------------------------------------------------------
   5. Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  body .cky-consent-container.cky-banner-bottom,
  body .cky-consent-container.cky-box-bottom-left,
  body .cky-consent-container.cky-box-bottom-right {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
  body .cky-consent-container .cky-consent-bar {
    padding: 22px 20px 18px;
  }
  body .cky-consent-container .cky-notice .cky-title {
    font-size: 22px;
    padding: 0;
  }
  body .cky-consent-container .cky-notice-des {
    max-height: 32vh;
    overflow-y: auto;
  }
  body .cky-consent-container .cky-notice-btn-wrapper {
    flex-direction: row;
    margin-top: 16px;
  }
  body .cky-consent-container .cky-notice-btn-wrapper .cky-btn {
    margin: 0;
  }
  body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept,
  body .cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject {
    padding: 11px 12px;
  }

  body .cky-modal .cky-preference-center { border-radius: 0; }
  body .cky-modal { border-radius: 0; }
  body .cky-modal .cky-preference-header { padding: 20px 20px 14px; }
  body .cky-modal .cky-preference-header .cky-preference-title { font-size: 22px; }
  body .cky-modal .cky-preference-body-wrapper { padding: 0 20px; }
  body .cky-modal .cky-prefrence-btn-wrapper { padding: 16px 20px 20px; }
  body .cky-modal .cky-prefrence-btn-wrapper .cky-btn { flex: 1 1 100%; width: 100%; }
}
