.visually-hidden {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border: 0;
}

.cookie-consent {
   position: relative;
   z-index: 9999;
}

.cookie-consent__banner {
   position: fixed;
   inset: auto clamp(0.85rem, 3vw, 1.5rem) clamp(0.85rem, 3vw, 1.5rem);
   max-width: min(36rem, calc(100vw - 1.7rem));
   z-index: 10001;
   animation: cookie-slide-up 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent__banner-inner {
   background: rgba(255, 255, 255, 0.97);
   border: 1px solid rgba(195, 168, 67, 0.28);
   border-radius: 1.75rem;
   padding: clamp(1.25rem, 3vw, 1.65rem);
   box-shadow:
      0 24px 60px rgba(60, 60, 60, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.6) inset;
   backdrop-filter: blur(12px);
}

.cookie-consent__eyebrow {
   font-size: 0.68rem;
   font-weight: 600;
   letter-spacing: 0.22em;
   text-transform: uppercase;
   color: var(--color-accent, #C3A843);
   margin-bottom: 0.45rem;
}

.cookie-consent__title {
   font-size: clamp(1.15rem, 2.5vw, 1.35rem);
   font-weight: 500;
   line-height: 1.25;
   color: #3C3C3C;
   margin-bottom: 0.65rem;
}

.cookie-consent__text,
.cookie-consent__modal-intro,
.cookie-consent__category-desc,
.cookie-consent__legal {
   font-size: 0.92rem;
   font-weight: 300;
   line-height: 1.6;
   color: rgba(60, 60, 60, 0.82);
}

.cookie-consent__text a,
.cookie-consent__legal a {
   color: var(--color-accent, #C3A843);
   text-decoration: underline;
   text-underline-offset: 0.15em;
}

.cookie-consent__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 0.55rem;
   margin-top: 1.1rem;
}

.cookie-consent__btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0.72rem 1.15rem;
   border-radius: 999px;
   border: 1px solid transparent;
   font: inherit;
   font-size: 0.86rem;
   font-weight: 500;
   cursor: pointer;
   transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cookie-consent__btn:hover {
   transform: translateY(-1px);
}

.cookie-consent__btn--primary {
   background: var(--color-accent, #C3A843);
   color: #3C3C3C;
   box-shadow: 0 10px 24px rgba(195, 168, 67, 0.28);
}

.cookie-consent__btn--outline {
   background: #fff;
   border-color: rgba(60, 60, 60, 0.14);
   color: #3C3C3C;
}

.cookie-consent__btn--ghost {
   background: transparent;
   border-color: rgba(60, 60, 60, 0.12);
   color: rgba(60, 60, 60, 0.75);
}

/* Modal */
.cookie-consent__modal {
   position: fixed;
   inset: 0;
   z-index: 10002;
   display: grid;
   place-items: center;
   padding: 1rem;
}

.cookie-consent__modal[hidden],
.cookie-consent__modal-backdrop[hidden] {
   display: none !important;
}

.cookie-consent__modal-backdrop {
   position: absolute;
   inset: 0;
   background: rgba(60, 60, 60, 0.42);
   backdrop-filter: blur(4px);
}

.cookie-consent__modal-dialog {
   position: relative;
   width: min(100%, 520px);
   max-height: min(90vh, 720px);
   overflow: auto;
   background: #fdfcfa;
   border-radius: 1.75rem;
   border: 1px solid rgba(195, 168, 67, 0.22);
   box-shadow: 0 28px 70px rgba(60, 60, 60, 0.18);
   animation: cookie-scale-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent__modal-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 1rem;
   padding: 1.35rem 1.35rem 0.5rem;
}

.cookie-consent__modal-title {
   font-size: 1.25rem;
   font-weight: 500;
   color: #3C3C3C;
}

.cookie-consent__modal-close {
   width: 2.25rem;
   height: 2.25rem;
   border: none;
   border-radius: 50%;
   background: rgba(60, 60, 60, 0.06);
   color: #3C3C3C;
   font-size: 1.4rem;
   line-height: 1;
   cursor: pointer;
}

.cookie-consent__modal-body {
   padding: 0.5rem 1.35rem 1rem;
}

.cookie-consent__category {
   padding: 1rem 0;
   border-top: 1px solid rgba(60, 60, 60, 0.08);
}

.cookie-consent__category-head {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 1rem;
}

.cookie-consent__category-title {
   font-size: 0.98rem;
   font-weight: 600;
   color: #3C3C3C;
   margin-bottom: 0.35rem;
}

.cookie-consent__always-on {
   flex-shrink: 0;
   font-size: 0.72rem;
   font-weight: 600;
   letter-spacing: 0.06em;
   text-transform: uppercase;
   color: var(--color-accent, #C3A843);
   padding: 0.35rem 0.65rem;
   border-radius: 999px;
   background: rgba(195, 168, 67, 0.12);
}

.cookie-consent__switch {
   position: relative;
   flex-shrink: 0;
   width: 3rem;
   height: 1.65rem;
   cursor: pointer;
}

.cookie-consent__switch input {
   position: absolute;
   opacity: 0;
   width: 0;
   height: 0;
}

.cookie-consent__switch-ui {
   position: absolute;
   inset: 0;
   border-radius: 999px;
   background: rgba(60, 60, 60, 0.16);
   transition: background 0.2s ease;
}

.cookie-consent__switch-ui::after {
   content: "";
   position: absolute;
   top: 0.18rem;
   left: 0.18rem;
   width: 1.28rem;
   height: 1.28rem;
   border-radius: 50%;
   background: #fff;
   box-shadow: 0 2px 8px rgba(60, 60, 60, 0.18);
   transition: transform 0.2s ease;
}

.cookie-consent__switch input:checked + .cookie-consent__switch-ui {
   background: var(--color-accent, #C3A843);
}

.cookie-consent__switch input:checked + .cookie-consent__switch-ui::after {
   transform: translateX(1.35rem);
}

.cookie-consent__switch input:focus-visible + .cookie-consent__switch-ui {
   outline: 2px solid var(--color-accent, #C3A843);
   outline-offset: 2px;
}

.cookie-consent__modal-footer {
   display: flex;
   flex-wrap: wrap;
   justify-content: flex-end;
   gap: 0.55rem;
   padding: 0.85rem 1.35rem 1.35rem;
   border-top: 1px solid rgba(60, 60, 60, 0.08);
}

.site-footer__cookie-btn {
   background: none;
   border: none;
   padding: 0;
   font: inherit;
   font-size: 0.78rem;
   font-weight: 400;
   letter-spacing: 0.06em;
   text-transform: uppercase;
   color: rgba(255, 255, 255, 0.72);
   cursor: pointer;
   transition: color 0.2s ease;
}

.site-footer__cookie-btn:hover {
   color: #ffffff;
}

/* Calendly consent gate */
.calendly-consent-gate {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 1rem;
   min-height: 280px;
   padding: clamp(2rem, 4vw, 2.75rem);
   text-align: center;
   border-radius: 1.25rem;
   background: rgba(255, 255, 255, 0.72);
   box-shadow:
      0 24px 60px rgba(60, 60, 60, 0.06),
      0 0 0 1px rgba(195, 168, 67, 0.1);
}

.calendly-consent-gate p {
   max-width: 28rem;
   font-size: 0.98rem;
   font-weight: 300;
   line-height: 1.6;
   color: var(--color-text-muted, rgba(60, 60, 60, 0.78));
   margin: 0;
}

@keyframes cookie-slide-up {
   from {
      opacity: 0;
      transform: translateY(18px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes cookie-scale-in {
   from {
      opacity: 0;
      transform: scale(0.96);
   }
   to {
      opacity: 1;
      transform: scale(1);
   }
}

@media (max-width: 520px) {
   .cookie-consent__banner {
      inset: auto 0.65rem 0.65rem;
   }

   .cookie-consent__actions .cookie-consent__btn {
      flex: 1 1 calc(50% - 0.3rem);
   }

   .cookie-consent__actions .cookie-consent__btn--primary,
   .cookie-consent__modal-footer .cookie-consent__btn--primary {
      flex-basis: 100%;
   }

   .cookie-consent__modal-footer .cookie-consent__btn {
      flex: 1 1 calc(50% - 0.3rem);
   }
}
