#sig-consent-root,
#sig-consent-root * { box-sizing: border-box; }

#sig-consent-root {
  --sig-accent: #111111;
  --sig-bg: #ffffff;
  --sig-text: #151515;
  --sig-muted: #686868;
  --sig-border: #dddddd;
  --sig-soft: #f6f6f4;
  position: relative;
  z-index: 2147483000;
  font-family: inherit;
  color: var(--sig-text);
}

#sig-consent-root[hidden],
#sig-consent-root [hidden] { display: none !important; }

.sig-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 24px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.13);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  backdrop-filter: blur(12px);
}

.sig-banner h2,
.sig-panel h2,
.sig-panel h3 { margin: 0; color: var(--sig-text); line-height: 1.15; }
.sig-banner h2 { font-size: clamp(22px, 2vw, 30px); margin-bottom: 8px; }
.sig-banner p { margin: 0; line-height: 1.55; font-size: 15px; }
.sig-banner p + p { margin-top: 7px; }
.sig-small { color: var(--sig-muted); font-size: 13px !important; }
.sig-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 7px; color: var(--sig-muted); }

.sig-banner__actions { min-width: 210px; display: grid; gap: 8px; }
.sig-btn {
  appearance: none;
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 17px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.sig-btn:hover { transform: translateY(-1px); }
.sig-btn:focus-visible, .sig-icon-btn:focus-visible, .sig-manage:focus-visible, .sig-switch input:focus-visible + span { outline: 3px solid rgba(20,20,20,.22); outline-offset: 2px; }
.sig-btn--primary { border: 1px solid var(--sig-accent); background: var(--sig-accent); color: #fff; }
.sig-btn--outline { border: 1px solid #bdbdbd; background: #fff; color: #111; }

/* Protect consent controls from aggressive theme-wide button styles. */
#sig-consent-root .sig-btn--outline,
#sig-consent-root .sig-btn--outline:hover,
#sig-consent-root .sig-btn--outline:focus,
#sig-consent-root .sig-icon-btn,
#sig-consent-root .sig-icon-btn:hover,
#sig-consent-root .sig-icon-btn:focus,
#sig-consent-root .sig-manage,
#sig-consent-root .sig-manage:hover,
#sig-consent-root .sig-manage:focus {
  background: #fff !important;
  color: #111 !important;
}

#sig-consent-root .sig-btn--text,
#sig-consent-root .sig-btn--text:hover,
#sig-consent-root .sig-btn--text:focus,
#sig-consent-root .sig-btn--text:focus-visible,
#sig-consent-root .sig-btn--text:active {
  border: 0 !important;
  background: transparent !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  min-height: 34px;
  padding: 6px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sig-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.48); backdrop-filter: blur(3px); }
.sig-consent-open #sig-consent-root .sig-backdrop { display: block; }
.sig-consent-open { overflow: hidden; }

.sig-panel {
  position: fixed;
  inset: 5vh auto auto 50%;
  transform: translateX(-50%);
  width: min(780px, calc(100vw - 30px));
  max-height: 90vh;
  background: var(--sig-bg);
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 20px;
  box-shadow: 0 28px 100px rgba(0,0,0,.35);
  overflow: hidden;
}

.sig-panel__header, .sig-panel__footer { padding: 20px 22px; display: flex; align-items: center; gap: 12px; }
.sig-panel__header { justify-content: space-between; border-bottom: 1px solid var(--sig-border); }
.sig-panel__footer { justify-content: flex-end; border-top: 1px solid var(--sig-border); background: #fff; }
.sig-panel__footer .sig-btn { min-width: 150px; }
.sig-panel__body { padding: 20px 22px; overflow-y: auto; max-height: calc(90vh - 148px); }
.sig-panel__body > p { margin: 0 0 18px; color: #444; line-height: 1.55; }
.sig-panel h2 { font-size: 26px; }
.sig-panel h3 { font-size: 16px; }
.sig-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sig-border); background: #fff; color: #111; font-size: 25px; line-height: 1; cursor: pointer; }

.sig-category { border: 1px solid var(--sig-border); border-radius: 14px; margin: 0 0 10px; background: #fff; overflow: hidden; }
.sig-category__top { padding: 16px; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.sig-category__top p { margin: 5px 0 0; color: var(--sig-muted); font-size: 13px; line-height: 1.45; }
.sig-always { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: #3b6a43; background: #edf7ef; border: 1px solid #cce5d0; padding: 7px 10px; border-radius: 999px; }

.sig-category details { border-top: 1px solid var(--sig-border); background: var(--sig-soft); }
.sig-category summary { padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: 13px; }
.sig-cookie-row { display: grid; grid-template-columns: 1fr 1fr 2fr 1fr; gap: 10px; padding: 12px 16px; border-top: 1px solid #e4e4e4; font-size: 12px; line-height: 1.4; }
.sig-note { margin: 0; padding: 10px 16px 14px; font-size: 12px; line-height: 1.5; color: #555; }
.sig-note a, .sig-info-box a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.sig-switch { position: relative; width: 48px; height: 28px; flex: 0 0 auto; }
.sig-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sig-switch span { position: absolute; inset: 0; border-radius: 999px; background: #c8c8c8; cursor: pointer; transition: .18s ease; }
.sig-switch span:after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: .18s ease; }
.sig-switch input:checked + span { background: var(--sig-accent); }
.sig-switch input:checked + span:after { transform: translateX(20px); }

.sig-info-box { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--sig-soft); border: 1px solid var(--sig-border); }
.sig-info-box p { margin: 7px 0 0; color: #555; font-size: 13px; line-height: 1.5; }

.sig-manage {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2147483001;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  color: #222;
  border-radius: 999px;
  padding: 9px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 5px 20px rgba(0,0,0,.12);
  cursor: pointer;
}

.sig-banner:not([hidden]) ~ .sig-manage { display: none; }
.screen-reader-text { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

@media (max-width: 760px) {
  .sig-banner { left: 12px; right: 12px; bottom: 12px; grid-template-columns: 1fr; gap: 16px; padding: 18px; border-radius: 16px; }
  .sig-banner__actions { min-width: 0; grid-template-columns: 1fr 1fr; }
  .sig-banner__actions .sig-btn--text { grid-column: 1 / -1; }
  .sig-panel { width: calc(100vw - 16px); top: 8px; max-height: calc(100vh - 16px); border-radius: 16px; }
  .sig-panel__body { max-height: calc(100vh - 156px); padding: 16px; }
  .sig-panel__header, .sig-panel__footer { padding: 15px 16px; }
  .sig-panel__footer { display: grid; grid-template-columns: 1fr 1fr; }
  .sig-panel__footer .sig-btn { min-width: 0; }
  .sig-cookie-row { grid-template-columns: 1fr; gap: 4px; }
  .sig-category__top { align-items: flex-start; }
  .sig-manage { left: 10px; bottom: 10px; }
}

@media (max-width: 430px) {
  .sig-banner__actions { grid-template-columns: 1fr; }
  .sig-banner__actions .sig-btn--text { grid-column: auto; }
  .sig-panel__footer { grid-template-columns: 1fr; }
}
