html.cc-scroll-locked {
  overflow: hidden;
}

html.cc-scroll-locked #smooth-wrapper {
  overflow: hidden;
}

.cookie-consent {
  --cc-accent: #000000;
  --cc-accent-bg: #F0F1FD;
  --cc-border: #E5E7EB;
  --cc-text-primary: #111827;
  --cc-text-secondary: #6B7280;
  --cc-text-muted: #9CA3AF;
  --cc-white: #FFFFFF;
  --cc-overlay: rgba(0, 0, 0, 0.4);
  --cc-close-bg: #F3F4F6;
  --cc-intro-bg: #F9FAFB;
  --cc-gradient: linear-gradient(114.67deg, #01488A -114.33%, #008CD8 -18.75%, #0064B9 33.39%, #0064B9 85.52%, #0156A2 137.66%, #008CD8 181.11%, #0072C3 207.18%, #0065B9 233.25%, #008CD8 285.38%, #0066BA 363.59%, #0064B9 407.03%, #008CD8 476.55%, #0064B9 528.69%, #0066BA 580.82%, #03C3FF 641.65%, #0066BA 728.54%, #0088D5 754.61%);
  position: relative;
  z-index: var(--z-cookie-root, 1000000);
  font-family: inherit;
}

@keyframes ccSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes ccFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.cookie-consent__banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(740px, calc(100vw - 32px));
  z-index: var(--z-cookie-banner, 1000000);
  background: var(--cc-white);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
}

.cookie-consent.is-banner-ready .cookie-consent__banner {
  animation: ccSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cookie-consent__banner-text {
  flex: 1;
  min-width: 0;
}

.cookie-consent__banner-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-text-primary);
  line-height: 1.4;
}

.cookie-consent__banner-description {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--cc-text-secondary);
  line-height: 1.5;
}

.cookie-consent__detail-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--cc-text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.cookie-consent__banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  padding: 9px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-consent__btn--outline {
  border: 1.5px solid var(--cc-border);
  background: transparent;
  color: var(--cc-text-secondary);
}

.cookie-consent__btn--primary {
  border: 1.5px solid transparent;
  background: var(--cc-gradient);
  color: var(--cc-white);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.cookie-consent__btn--primary:hover {
  opacity: 1;
  filter: brightness(1.08);
}

.cookie-consent__btn--primary:active {
  transform: scale(0.98);
}

.cookie-consent__modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-cookie-modal, 1000001);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ccFadeIn 0.25s ease forwards;
}

.cookie-consent__modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--cc-overlay);
}

.cookie-consent__modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  background: var(--cc-white);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ccScaleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cookie-consent__modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 22px 24px 20px;
  position: relative;
}

.cookie-consent__close {
  position: sticky;
  top: 0;
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--cc-close-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1;
  margin: 0 0 8px 8px;
  color: var(--cc-text-secondary);
}

.cookie-consent__modal-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clear: right;
}

.cookie-consent__modal-title,
.cookie-consent__modal-content h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--cc-text-primary);
  line-height: 1.35;
}

.cookie-consent__modal-content h3,
.cookie-consent__modal-content h4 {
  margin: 20px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-text-primary);
  line-height: 1.5;
}

.cookie-consent__modal-content p {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--cc-text-secondary);
  line-height: 1.65;
}

.cookie-consent__modal-content > p:first-child {
  margin-top: 0;
}

.cookie-consent__modal-content ul,
.cookie-consent__modal-content ol {
  margin: 8px 0 0;
  padding-left: 1.25rem;
  font-size: 13px;
  color: var(--cc-text-secondary);
  line-height: 1.65;
}

.cc-policy {
  margin: 0;
}

.cc-policy--title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cc-text-primary);
  line-height: 1.45;
  text-align: center;
}

.cc-policy--heading {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-text-primary);
  line-height: 1.5;
}

.cc-policy--paragraph {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--cc-text-secondary);
  line-height: 1.65;
}

.cookie-consent__modal-actions {
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--cc-border);
}

@media (max-width: 640px) {
  .cookie-consent__banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__banner-actions {
    justify-content: flex-end;
  }
}
