/* Fibre Lab and Co. — cookie consent panel (Lily-style) */
.fl-cookies[hidden] { display: none !important; }
.fl-cookies__dim {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.28);
  z-index: 10040;
}
.fl-cookies__dim[hidden] { display: none !important; }
.fl-cookies__card {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 10050;
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  max-height: 100dvh;
  overflow: auto;
  background: #fff;
  color: #1a1a1a;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid #e6e1d6;
  padding: 18px 20px 16px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
.fl-cookies__card:focus { outline: none; }
.fl-cookies__skip {
  display: inline-block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #1a1a1a;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  line-height: 1.3;
}
.fl-cookies__skip:hover,
.fl-cookies__skip:focus-visible {
  color: #5a7a10;
  outline: 2px solid #98C018;
  outline-offset: 3px;
}
.fl-cookies__hero {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px 10px;
  align-items: start;
}
.fl-cookies__copy { min-width: 0; }
.fl-cookies__title {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  color: #141414;
}
.fl-cookies__lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  color: #2a2a2a;
}
.fl-cookies__mascot {
  grid-row: 1 / span 4;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
}
.fl-cookies__mascot img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  background: #faf8f3;
  pointer-events: none;
}
.fl-cookies__body {
  margin: 12px 0 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #2c2c2c;
  grid-column: 1 / -1;
}
.fl-cookies__links {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  grid-column: 1 / -1;
}
.fl-cookies__links a {
  color: #1a1a1a;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fl-cookies__links a:hover { color: #5a7a10; }
.fl-cookies__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: stretch;
}
.fl-cookies__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.fl-cookies__btn svg { flex: 0 0 auto; }
.fl-cookies__btn--ghost {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
}
.fl-cookies__btn--ghost:hover { background: #f7f5f0; }
.fl-cookies__btn--primary {
  background: #98C018;
  color: #1a1a1a;
  border: 1.5px solid #98C018;
}
.fl-cookies__btn--primary:hover { background: #a8d42a; }
.fl-cookies__btn:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}
.fl-cookies__step[hidden] { display: none !important; }
.fl-cookies__prefs-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
}
.fl-cookies__prefs-intro {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.4;
  color: #2c2c2c;
}
.fl-cookies__rgpd {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #4a4a4a;
}
.fl-cookies__toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 12px 0;
  border-top: 1px solid #e6e1d6;
}
.fl-cookies__toggle:last-of-type { border-bottom: 1px solid #e6e1d6; }
.fl-cookies__toggle strong {
  font-size: 1.05rem;
  font-weight: 700;
}
.fl-cookies__toggle > span:not(.fl-cookies__switch) {
  grid-column: 1;
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.35;
}
.fl-cookies__switch {
  position: relative;
  width: 46px;
  height: 26px;
  grid-row: 1 / span 2;
  align-self: center;
}
.fl-cookies__switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.fl-cookies__switch input:disabled { cursor: not-allowed; }
.fl-cookies__switch i {
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d8d4cc;
  position: relative;
  pointer-events: none;
  transition: background 0.15s ease;
}
.fl-cookies__switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform 0.15s ease;
}
.fl-cookies__switch input:checked + i { background: #98C018; }
.fl-cookies__switch input:checked + i::after { transform: translateX(20px); }
.fl-cookies__switch input:disabled + i { background: #98C018; opacity: 0.85; }
.fl-cookies__switch input:focus-visible + i {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}
.fl-cookies__prefs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.fl-cookies__prefs-actions .fl-cookies__btn { flex: 1 1 30%; min-width: 110px; }
.fl-cookies__btn--text {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
}
.fl-cookies__btn--text:hover { background: #f7f5f0; }

/* Footer legal strip — text-link style (no browser button chrome) */
.ln-legal,
.ln-footer__legal-list.ln-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 16px 0 28px;
  margin: 12px 0 0;
  list-style: none;
  text-align: center;
  border-top: 1px solid #e6e1d6;
}
.ln-legal a,
.ln-legal button,
.ln-legal button.fl-open-cookies,
.ln-footer .fl-open-cookies,
#fl-open-cookies {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline-offset: 2px;
  padding: 0 !important;
  margin: 0;
  font: inherit;
  font-size: 0.98rem;
  color: #3a3a3a;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0 !important;
  min-height: 0 !important;
  line-height: inherit;
}
.ln-legal a:hover,
.ln-legal button:hover,
.ln-legal button.fl-open-cookies:hover,
#fl-open-cookies:hover {
  color: #98C018;
}

@media (max-width: 767px) {
  .fl-cookies:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
  }
  .fl-cookies__dim {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .fl-cookies__card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(440px, calc(100vw - 32px));
    max-width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 14px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    z-index: 1;
  }
  .fl-cookies__hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
  .fl-cookies__copy { text-align: center; width: 100%; }
  .fl-cookies__mascot {
    grid-row: auto;
    grid-column: auto;
    order: -1;
    width: 64px;
    margin: 0 auto;
  }
  .fl-cookies__mascot img { width: 64px; height: 64px; }
  .fl-cookies__title { font-size: 1.28rem; text-align: center; }
  .fl-cookies__lead { font-size: 1rem; text-align: center; }
  .fl-cookies__body { font-size: 0.95rem; margin-top: 8px; }
  .fl-cookies__links { align-items: center; text-align: center; }
  .fl-cookies__actions {
    flex-direction: column;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 8px;
    padding-bottom: 4px;
    z-index: 2;
    gap: 8px;
  }
  .fl-cookies__btn { min-height: 44px; }
  .fl-cookies__skip {
    min-height: 44px;
    padding: 8px 0;
    display: block;
    width: 100%;
    text-align: center;
  }
  /* Keep touch target without looking like a bordered box */
  .ln-legal a,
  .ln-legal button,
  #fl-open-cookies {
    min-height: 44px !important;
    padding: 10px 4px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl-cookies__switch i,
  .fl-cookies__switch i::after { transition: none; }
}
