 :root {
   --shq-navy: #09123D;
   --shq-navy-deep: #050A24;
   --shq-teal: #59C0AB;
   --shq-teal-deep: #3FA08C;
   --shq-gold: #D4A845;
   --shq-paper: #FBFAF7;
   --shq-grey-rule: #D9DCE3;
   --shq-grey-body: #2B2F3A;
   --shq-grey-subtle: #6B7280;
 }
 /* Banner — fixed bottom-left card on desktop, full-width on mobile */
 .shq-cookie-banner {
   position: fixed;
   bottom: 24px;
   left: 24px;
   width: 420px;
   max-width: calc(100vw - 48px);
   background: var(--shq-navy);
   color: white;
   border-radius: 12px;
   box-shadow: 0 12px 40px rgba(5, 10, 36, 0.32), 0 2px 8px rgba(5, 10, 36, 0.18);
   border-left: 3px solid var(--shq-teal);
   padding: 22px 24px;
   z-index: 9999;
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
   font-size: 14px;
   line-height: 1.55;
   transform: translateY(120%);
   opacity: 0;
   transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease-out;
 }
 .shq-cookie-banner.is-visible {
   transform: translateY(0);
   opacity: 1;
 }
 .shq-cookie-banner__kicker {
   color: #59c0ab;
   font-size: 12px;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   margin: 0 0 6px;
 }
.shq-cookie-banner__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: white;
    letter-spacing: -0.01em;
    line-height: 26px;
}
 .shq-cookie-banner__body {
   color: #C8CCDA;
   margin: 0 0 16px;
   font-size: 13.5px;
 }
 .shq-cookie-banner__body a {
   color: var(--shq-teal);
   text-decoration: underline;
   text-underline-offset: 2px;
 }
 .shq-cookie-banner__body a:hover {
   color: white;
 }
 .shq-cookie-banner__actions {
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
 }
 .shq-cookie-btn {
   appearance: none;
   border: none;
   border-radius: 50px;
   padding: 10px 16px;
   font-family: inherit;
   font-size: 13px;
   font-weight: 500;
   cursor: pointer;
   transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
   line-height: 1.2;
 }
 .shq-cookie-btn--primary {
   background: var(--shq-teal);
   color: var(--shq-navy);
   flex: 1 1 auto;
   min-width: 130px;
 }
 .shq-cookie-btn--primary:hover {
   background: #6FCEB9;
 }
 .shq-cookie-btn--secondary {
   background: transparent;
   color: white;
   border: 1px solid rgba(255, 255, 255, 0.28);
 }
 .shq-cookie-btn--secondary:hover {
   background: rgba(255, 255, 255, 0.08);
   border-color: rgba(255, 255, 255, 0.5);
 }
 .shq-cookie-btn--text {
   background: transparent;
   color: #9AA3C2;
   text-decoration: underline;
   text-underline-offset: 2px;
   padding: 10px 4px;
 }
 .shq-cookie-btn--text:hover {
   color: white;
 }
 /* Close (×) button on the banner */
 .shq-cookie-banner__close {
   position: absolute;
   top: 12px;
   right: 12px;
   background: transparent;
   border: none;
   color: rgba(255, 255, 255, 0.55);
   cursor: pointer;
   padding: 4px;
   border-radius: 4px;
   line-height: 1;
   font-size: 18px;
 }
 .shq-cookie-banner__close:hover {
   color: white;
   background: rgba(255, 255, 255, 0.08);
 }
 .shq-cookie-banner__close:focus-visible, .shq-cookie-btn:focus-visible {
   outline: 2px solid var(--shq-teal);
   outline-offset: 2px;
 }
 /* ============================================================ */
 /* Preferences modal — opens when user clicks "Manage preferences" */
 .shq-cookie-modal__overlay {
   position: fixed;
   inset: 0;
   background: rgba(5, 10, 36, 0.62);
   backdrop-filter: blur(2px);
   -webkit-backdrop-filter: blur(2px);
   z-index: 10000;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.24s ease;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
 }
 .shq-cookie-modal__overlay.is-visible {
   opacity: 1;
   pointer-events: auto;
 }
 .shq-cookie-modal {
   background: white;
   color: var(--shq-grey-body);
   width: 100%;
   max-width: 560px;
   max-height: 86vh;
   border-radius: 14px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   box-shadow: 0 20px 60px rgba(5, 10, 36, 0.4);
   transform: translateY(16px) scale(0.98);
   transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
 }
 .shq-cookie-modal__overlay.is-visible .shq-cookie-modal {
   transform: translateY(0) scale(1);
 }
 .shq-cookie-modal__header {
   background: var(--shq-navy);
   color: white;
   padding: 22px 28px 20px;
   border-bottom: 3px solid var(--shq-teal);
   position: relative;
 }
 .shq-cookie-modal__kicker {
   color: var(--shq-gold);
   font-size: 10px;
   font-weight: 700;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   margin: 0 0 4px;
 }
 .shq-cookie-modal__title {
   font-size: 22px;
   font-weight: 700;
   margin: 0;
   letter-spacing: -0.01em;
 }
 .shq-cookie-modal__close {
   position: absolute;
   top: 16px;
   right: 16px;
   background: transparent;
   border: none;
   color: rgba(255, 255, 255, 0.65);
   cursor: pointer;
   padding: 6px;
   border-radius: 4px;
   line-height: 1;
   font-size: 22px;
 }
 .shq-cookie-modal__close:hover {
   color: white;
   background: rgba(255, 255, 255, 0.1);
 }
 .shq-cookie-modal__body {
   padding: 22px 28px;
   overflow-y: auto;
   flex: 1 1 auto;
 }
 .shq-cookie-modal__intro {
   font-size: 14px;
   line-height: 1.6;
   color: var(--shq-grey-body);
   margin: 0 0 18px;
 }
 .shq-cookie-category {
   border: 1px solid var(--shq-grey-rule);
   border-radius: 10px;
   padding: 16px 18px;
   margin-bottom: 12px;
   transition: border-color 0.18s ease;
 }
 .shq-cookie-category:has(input:checked) {
   border-color: var(--shq-teal);
 }
 .shq-cookie-category__head {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 16px;
 }
 .shq-cookie-category__title {
   font-size: 14px;
   font-weight: 700;
   color: var(--shq-navy);
   margin: 0 0 2px;
 }
 .shq-cookie-category__required {
   display: inline-block;
   font-size: 10px;
   font-weight: 700;
   color: var(--shq-teal-deep);
   letter-spacing: 0.06em;
   text-transform: uppercase;
   margin-left: 6px;
   vertical-align: middle;
 }
 .shq-cookie-category__desc {
   font-size: 13px;
   line-height: 1.55;
   color: var(--shq-grey-body);
   margin: 6px 0 0;
 }
 /* Custom toggle switch */
 .shq-toggle {
   position: relative;
   display: inline-block;
   width: 40px;
   height: 22px;
   flex-shrink: 0;
 }
 .shq-toggle input {
   position: absolute;
   width: 100%;
   height: 100%;
   opacity: 0;
   cursor: pointer;
   margin: 0;
 }
 .shq-toggle__slider {
   position: absolute;
   inset: 0;
   background: #B8BFCD;
   border-radius: 999px;
   transition: background 0.22s ease;
 }
 .shq-toggle__slider::before {
   content: "";
   position: absolute;
   top: 3px;
   left: 3px;
   width: 16px;
   height: 16px;
   background: white;
   border-radius: 50%;
   transition: transform 0.22s ease;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
 }
 .shq-toggle input:checked + .shq-toggle__slider {
   background: var(--shq-teal);
 }
 .shq-toggle input:checked + .shq-toggle__slider::before {
   transform: translateX(18px);
 }
 .shq-toggle input:disabled + .shq-toggle__slider {
   background: var(--shq-teal);
   opacity: 0.55;
   cursor: not-allowed;
 }
 .shq-toggle input:focus-visible + .shq-toggle__slider {
   box-shadow: 0 0 0 3px rgba(89, 192, 171, 0.4);
 }
 .shq-cookie-modal__footer {
   padding: 16px 28px;
   background: #F5F2EB;
   border-top: 1px solid var(--shq-grey-rule);
   display: flex;
   gap: 10px;
   flex-wrap: wrap;
   justify-content: flex-end;
 }
 .shq-cookie-modal__footer .shq-cookie-btn--primary {
   background: var(--shq-navy);
   color: white;
   flex: 0 1 auto;
 }
 .shq-cookie-modal__footer .shq-cookie-btn--primary:hover {
   background: #1A2452;
 }
 .shq-cookie-modal__footer .shq-cookie-btn--secondary {
   background: transparent;
   color: var(--shq-navy);
   border: 1px solid var(--shq-grey-rule);
 }
 .shq-cookie-modal__footer .shq-cookie-btn--secondary:hover {
   border-color: var(--shq-navy);
   background: white;
 }
 /* Floating "Cookie preferences" tab — appears bottom-left after consent given */
 .shq-cookie-relaunch {
   position: fixed;
   bottom: 16px;
   left: 16px;
   background: var(--shq-navy);
   color: white;
   border: none;
   border-radius: 999px;
   padding: 8px 14px 8px 12px;
   font-size: 12px;
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
   font-weight: 600;
   cursor: pointer;
   z-index: 9998;
   box-shadow: 0 4px 14px rgba(5, 10, 36, 0.25);
   display: none;
   align-items: center;
   gap: 6px;
   opacity: 0.85;
   transition: opacity 0.18s ease, background 0.18s ease;
 }
 .shq-cookie-relaunch:hover {
   opacity: 1;
   background: #1A2452;
 }
 .shq-cookie-relaunch.is-visible {
   display: inline-flex;
 }
 .shq-cookie-relaunch__icon {
   width: 14px;
   height: 14px;
   fill: var(--shq-teal);
 }
 /* Mobile adjustments */
 @media (max-width: 540px) {
   .shq-cookie-banner {
     bottom: 12px;
     left: 12px;
     right: 12px;
     width: auto;
     max-width: none;
     padding: 18px 20px 20px;
     border-radius: 10px;
   }
   .shq-cookie-banner__actions {
     flex-direction: column;
   }
   .shq-cookie-btn {
     width: 100%;
   }
   .shq-cookie-modal {
     max-height: 92vh;
   }
   .shq-cookie-modal__header, .shq-cookie-modal__body, .shq-cookie-modal__footer {
     padding-left: 20px;
     padding-right: 20px;
   }
 }
 /* Reduced-motion respect */
 @media (prefers-reduced-motion: reduce) {
   .shq-cookie-banner, .shq-cookie-modal, .shq-cookie-modal__overlay {
     transition: none;
   }
 }