/* Alam Wellness Bali: cookie consent banner v3.2 (approved by Julian, Nov 24 2026).
   Rules below are copied verbatim from /workspace/alam-brand/cookie-banner/banner-v3-2.css (Fif).
   Fonts: Glacial Indifference 400 and Cormorant Garamond 400 (normal) are already declared in site.css (/assets/fonts),
   so the spec's relative @font-face is omitted here. Breakpoint 900px, z-index 90. */
.cc-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:90;
  background:#F8F5F0;
  border-top:1px solid #4A3C2E29;
  box-shadow:#4A3C2E0F 0 -1px 2px, #4A3C2E14 0 -12px 32px;
  /* No scrim — the page stays visible and usable. */
}

.cc-banner[hidden]{display:none}

.cc-inner{
  position:relative;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  padding:16px max(40px, calc(50% - 560px));
  width:100%;
  box-sizing:border-box;
}

.cc-copy{
  margin:0;
  flex:1 1 auto;
  min-width:0;
  max-width:780px;
  font-family:'Glacial Indifference',Futura,'Century Gothic',sans-serif;
  font-style:normal;
  font-weight:400;
  font-size:13px;
  line-height:20px;
  color:#4A3C2E;
  text-align:left;
  -webkit-font-smoothing:antialiased;
}

.cc-copy a{
  color:#4A3C2E;
  text-decoration:underline;
  text-underline-offset:2px;
  white-space:nowrap;
}

.cc-copy a:hover,
.cc-copy a:focus-visible{
  color:#79452E;
}

.cc-actions{
  display:flex;
  align-items:center;
  flex-shrink:0;
  gap:16px;
}

.cc-btns{
  display:flex;
  align-items:center;
  flex-shrink:0;
  gap:8px;
}

/* ACCEPT ALL and MANAGE COOKIES (banner), and SAVE (panel),
   share this exact rule. No primary / secondary split. Both buttons in a
   pair are the same size; min-width is set for the longer label. */
.cc-btn{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  min-width:176px;
  padding:0 16px;
  margin:0;
  background:transparent;
  color:#4A3C2E;
  border:1px solid #4A3C2E;
  border-radius:0;
  font-family:'Glacial Indifference',Futura,'Century Gothic',sans-serif;
  font-weight:400;
  font-size:11px;
  line-height:14px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  text-align:center;
  cursor:pointer;
  -webkit-font-smoothing:antialiased;
}

.cc-btn:hover,
.cc-btn:focus-visible{
  background:#4A3C2E;
  color:#EDE7E2;
}

.cc-btn:focus-visible{
  outline:1px solid #4A3C2E;
  outline-offset:3px;
}

/* Reject all — copied from the newsletter .nl-no ("No, thank you"):
   font:400 14px/18px 'Cormorant Garamond',serif;
   color:#7A6A5A; text-decoration:underline; text-underline-offset:4px.
   #7A6A5A on #F8F5F0 is 4.78:1, which meets WCAG AA for this size. */
.cc-reject{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0;
  border:0;
  background:none;
  font:400 14px/18px 'Cormorant Garamond',serif;
  color:#7A6A5A;
  text-decoration:underline;
  text-underline-offset:4px;
  text-align:center;
  white-space:nowrap;
  cursor:pointer;
  -webkit-font-smoothing:antialiased;
}

.cc-reject:hover,
.cc-reject:focus-visible{
  color:#4A3C2E;
}

.cc-reject:focus-visible{
  outline:1px solid #4A3C2E;
  outline-offset:3px;
}

/* Footer reopen link — inherit the existing legal-row style (.c132). Unchanged from v1. */
.cc-reopen{
  font:inherit;
  color:inherit;
  background:none;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  letter-spacing:inherit;
  text-decoration:inherit;
}

/* Close — same geometry as the newsletter .nl-x, scaled to the tighter panel. */
.cc-x{
  position:absolute;
  top:12px;
  right:12px;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  color:#4A3C2E;
  cursor:pointer;
}

.cc-x:focus-visible{
  outline:1px solid #4A3C2E;
  outline-offset:3px;
}

.cc-kicker{
  margin:0 28px 0 0;
  font-family:'Glacial Indifference',Futura,'Century Gothic',sans-serif;
  font-weight:400;
  font-size:11px;
  line-height:14px;
  letter-spacing:0.28em;
  text-transform:uppercase;
  color:#7A6A5A;
}

/* Preferences panel — compact card at the same type scale, both breakpoints.
   Desktop sits as a 448px card; mobile becomes a bottom sheet.
   SAVE is the outline button; Reject all is the quiet text link beside it. */
.cc-panel{
  left:max(40px, calc(50% - 560px));
  right:auto;
  bottom:32px;
  width:448px;
  border:1px solid #4A3C2E29;
  box-shadow:#4A3C2E0F 0 1px 2px, #4A3C2E14 0 12px 32px;
}

.cc-panel .cc-inner{
  flex-direction:column;
  align-items:stretch;
  gap:16px;
  padding:20px;
}

.cc-panel .cc-actions{
  width:100%;
  justify-content:space-between;
  gap:16px;
  /* 16px panel-inner gap + 20px = 36px from the last description to the SAVE row. */
  margin-top:20px;
}

.cc-panel .cc-btn{
  flex:0 0 auto;
  width:auto;
  min-width:176px;
}

.cc-pref{
  display:flex;
  flex-direction:column;
  width:100%;
  gap:0;
}

.cc-pref-row{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px 0;
  border-top:1px solid #4A3C2E29;
}

.cc-pref-row:last-of-type{
  border-bottom:1px solid #4A3C2E29;
}

.cc-pref-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:24px;
}

.cc-pref-label{
  margin:0;
  font-family:'Glacial Indifference',Futura,'Century Gothic',sans-serif;
  font-weight:400;
  font-size:11px;
  line-height:14px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:#4A3C2E;
}

.cc-pref-state{
  margin:0;
  font-family:'Glacial Indifference',Futura,'Century Gothic',sans-serif;
  font-weight:400;
  font-size:11px;
  line-height:14px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:#7A6A5A;
}

/* Proposed category descriptions — same small sans as the banner body. */
.cc-pref-desc{
  margin:0;
  font-family:'Glacial Indifference',Futura,'Century Gothic',sans-serif;
  font-style:normal;
  font-weight:400;
  font-size:12px;
  line-height:18px;
  color:#7A6A5A;
  text-align:left;
}

/* Switch — 44×24, brand colours only. Off by default. Unchanged from v2. */
.cc-switch{
  box-sizing:border-box;
  position:relative;
  flex-shrink:0;
  width:44px;
  height:24px;
  padding:0;
  margin:0;
  border:0;
  border-radius:12px;
  background:#4A3C2E29;
  cursor:pointer;
}

.cc-switch[aria-checked="true"]{
  background:#4A3C2E;
}

.cc-switch-knob{
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#4A3C2E;
  display:block;
  pointer-events:none;
}

.cc-switch[aria-checked="true"] .cc-switch-knob{
  left:23px;
  background:#EDE7E2;
}

.cc-switch:focus-visible{
  outline:1px solid #4A3C2E;
  outline-offset:3px;
}

@media (max-width:899px){
  .cc-banner,
  .cc-panel{
    left:0;
    right:0;
    bottom:0;
    width:100%;
    border:0;
    border-top:1px solid #4A3C2E29;
    box-shadow:#4A3C2E0F 0 -1px 2px, #4A3C2E14 0 -12px 32px;
  }
  .cc-inner{
    flex-direction:column;
    align-items:stretch;
    gap:36px;
    padding:20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .cc-panel .cc-inner{
    flex-direction:column;
    align-items:stretch;
    gap:16px;
    padding:20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .cc-copy{
    max-width:none;
    width:100%;
    font-size:13px;
    line-height:20px;
  }
  .cc-actions{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  .cc-btns{
    width:100%;
  }
  .cc-btn{
    flex:1 1 0;
    width:auto;
    min-width:0;
    height:40px;
    padding:0 12px;
    font-size:11px;
    line-height:14px;
    letter-spacing:0.16em;
  }
  /* 44px tap target, centred under the two buttons. Visual type stays 14/18. */
  .cc-reject{
    align-self:center;
    min-height:44px;
    min-width:44px;
    padding:13px 16px;
  }
  .cc-panel .cc-actions{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:16px;
  }
  .cc-panel .cc-btn{
    flex:0 0 auto;
    width:auto;
    min-width:176px;
    height:40px;
    padding:0 16px;
  }
  .cc-panel .cc-reject{
    align-self:center;
  }
  .cc-x{
    top:12px;
    right:12px;
  }
}

@media (prefers-reduced-motion:reduce){
  .cc-btn,
  .cc-switch-knob{transition:none}
}

/* Build additions (not visual): keep page content (footer) clear of the open banner, and make sure no
   Wix-rendered consent banner can ever stack on top of ours (the live Wix consent client has no UI today). */
html.cc-pad body{padding-bottom:var(--cc-h,0px)}
[data-hook="consent-banner-root"],[data-hook="consent-banner"],[data-hook^="consent-banner-"],#consent-banner-root{display:none!important}
