#sylk-consent {
  --sc-green: #232b28;
  --sc-cream: #f2efe7;
  --sc-border: #b1b5a8;
  --sc-accent: #ded0ac;
  font: 400 15px/1.5 system-ui, sans-serif;
  color: var(--sc-green);
}
#sylk-consent *, #sylk-consent *::before, #sylk-consent *::after { box-sizing: border-box; }
#sylk-consent [hidden] { display: none !important; }
#sylk-consent h2 {
  margin: 0;
  font: 500 25px/1.15 Georgia, serif;
  letter-spacing: -.025em;
  color: inherit;
}
#sylk-consent p { margin: 0; font: inherit; color: inherit; }
#sylk-consent button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 650 14px/1.2 system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
}
#sylk-consent button:hover { box-shadow: inset 0 0 0 1px currentColor; }
#sylk-consent :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#sylk-consent .sc-banner {
  position: fixed;
  z-index: 10000;
  inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  width: auto;
  max-width: 1140px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 15px 20px;
  border: 1px solid #525e52;
  border-radius: 14px;
  background: var(--sc-green);
  color: var(--sc-cream);
  box-shadow: 0 8px 30px #18211d40;
}
#sylk-consent .sc-copy p { margin-top: 4px; }
#sylk-consent .sc-actions, #sylk-consent .sc-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#sylk-consent .sc-banner .sc-primary {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
  color: var(--sc-green);
}
#sylk-consent .sc-banner .sc-primary:focus-visible { outline-color: var(--sc-cream); }
#sylk-consent .sc-launch {
  position: fixed;
  z-index: 10000;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--sc-accent);
  border-radius: 50%;
  background: var(--sc-green);
  color: var(--sc-cream);
  box-shadow: 0 4px 16px #18211d35;
}
#sylk-consent .sc-launch:focus-visible { outline-color: var(--sc-green); }
#sylk-consent dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--sc-cream);
  color: var(--sc-green);
  box-shadow: -10px 0 40px #15201c30;
}
#sylk-consent dialog[open] { display: flex; flex-direction: column; }
#sylk-consent dialog::backdrop { background: #141c18a0; }
#sylk-consent .sc-header, #sylk-consent .sc-body, #sylk-consent .sc-panel-actions {
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}
#sylk-consent .sc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sc-border);
}
#sylk-consent .sc-close { width: 44px; padding: 0; font-size: 25px; }
#sylk-consent .sc-body { flex: 1; overflow: auto; padding-block: 18px; }
#sylk-consent a { display: inline-block; margin-top: 10px; color: inherit; text-decoration: underline; }
#sylk-consent .sc-categories { margin-top: 22px; border-top: 1px solid var(--sc-border); }
#sylk-consent .sc-category { border-bottom: 1px solid var(--sc-border); }
#sylk-consent .sc-category-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 4px; }
#sylk-consent .sc-expand { justify-content: flex-start; gap: 8px; text-align: left; padding-inline: 3px; border: 0; }
#sylk-consent .sc-sign { width: 18px; font-size: 18px; text-align: center; }
#sylk-consent .sc-always { font-size: 13px; }
#sylk-consent .sc-description { padding: 2px 0 14px 29px; }
#sylk-consent [role="switch"] {
  appearance: none;
  flex: 0 0 46px;
  width: 46px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  color: var(--sc-green);
}
#sylk-consent [role="switch"]::before {
  content: '';
  position: absolute;
  inset: 10px 0;
  border: 1px solid var(--sc-green);
  border-radius: 20px;
  background: #d7dacf;
}
#sylk-consent [role="switch"]::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 14px;
  left: 4px;
  border-radius: 50%;
  background: var(--sc-green);
}
#sylk-consent [role="switch"]:checked::before { background: var(--sc-green); }
#sylk-consent [role="switch"]:checked::after { left: 26px; background: var(--sc-cream); }
#sylk-consent .sc-panel-actions {
  padding-top: 12px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--sc-border);
}
#sylk-consent .sc-panel-actions button { flex: 1; }
#sylk-consent .sc-panel-actions .sc-primary {
  flex: 1 0 100%;
  background: var(--sc-green);
  border-color: var(--sc-green);
  color: var(--sc-cream);
}
#sylk-consent .sc-panel-actions .sc-primary:focus-visible { outline-color: var(--sc-green); }
@media (max-width: 600px) {
  #sylk-consent .sc-banner { padding: 12px; }
  #sylk-consent .sc-actions { width: 100%; }
  #sylk-consent .sc-actions button { flex: 1 1 auto; padding-inline: 6px; }
  #sylk-consent dialog { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  #sylk-consent .sc-banner { animation: sylk-consent-enter 240ms ease-out; }
  @keyframes sylk-consent-enter {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}
@media (forced-colors: active) {
  #sylk-consent [role="switch"]::before { border-color: ButtonText; }
  #sylk-consent [role="switch"]::after { background: ButtonText; forced-color-adjust: none; }
  #sylk-consent [role="switch"]:checked::after { background: Highlight; }
}

/* Keep the homepage pricing dock clear of the consent controls. */
body:has(#sylk-consent .sc-banner:not([hidden])) .sylk-cost-dock { visibility: hidden; }
body:has(#sylk-consent .sc-launch:not([hidden])) .sylk-cost-dock {
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px);
}
