.argo-cookie-consent-root {
  --argo-wpcn-brand: #0f8b8d;
  --argo-wpcn-brand-2: #2bb3b6;
  --argo-wpcn-brand-dark: #0b6d6f;
  --argo-wpcn-surface: #ffffff;
  --argo-wpcn-surface-solid: #ffffff;
  --argo-wpcn-bg: #ffffff;
  --argo-wpcn-text: #16202a;
  --argo-wpcn-muted: #687584;
  --argo-wpcn-line: rgba(22, 32, 42, 0.08);
  --argo-wpcn-line-strong: rgba(15, 139, 141, 0.24);
  --argo-wpcn-brand-soft: rgba(43, 179, 182, 0.08);
  --argo-wpcn-checkmark: #ffffff;
  --argo-wpcn-shadow: 0 24px 60px rgba(18, 30, 40, 0.10);
  --argo-wpcn-shadow-soft: 0 14px 34px rgba(15, 139, 141, 0.16);
  --argo-wpcn-radius-xl: 28px;
  --argo-wpcn-font-display: 'Montserrat', sans-serif;
  --argo-wpcn-font-body: 'Inter', sans-serif;

  /* Existing component sizing tokens are preserved exactly. */
  --argo-wpcn-radius-sm: 8px;
  --argo-wpcn-radius-md: 11px;
  --argo-wpcn-radius-lg: 14px;
  --argo-wpcn-transition: 180ms ease;
  --argo-cookie-toggle-bottom: max(0.8rem, env(safe-area-inset-bottom));
  position: relative;
  z-index: 2147483000;
  isolation: isolate;
  color: var(--argo-wpcn-muted);
  font-family: var(--argo-wpcn-font-body);
  font-size: 16px;
  line-height: 1.5;
}

.argo-cookie-consent-root,
.argo-cookie-consent-root * {
  box-sizing: border-box;
}

.argo-cookie-consent-root button,
.argo-cookie-consent-root input {
  font: inherit;
}

.argo-cookie-consent-root .argo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Compact settings control. Explicit sizing prevents theme button rules from stretching it. */
#argo-cookie-consent-root .argo-cookie-toggle {
  position: fixed !important;
  left: max(0.85rem, env(safe-area-inset-left)) !important;
  bottom: var(--argo-cookie-toggle-bottom) !important;
  z-index: 2147483647 !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 2.75rem !important;
  min-width: 2.75rem !important;
  max-width: 2.75rem !important;
  height: 2.75rem !important;
  min-height: 2.75rem !important;
  max-height: 2.75rem !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--argo-wpcn-brand-dark), var(--argo-wpcn-brand) 58%, var(--argo-wpcn-brand-2)) !important;
  box-shadow: 0 6px 18px rgba(11, 109, 111, 0.24) !important;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto !important;
  transform: translateZ(0);
  transition: transform var(--argo-wpcn-transition), box-shadow var(--argo-wpcn-transition), background var(--argo-wpcn-transition) !important;
}

#argo-cookie-consent-root .argo-cookie-toggle[hidden] {
  display: none !important;
}

#argo-cookie-consent-root .argo-cookie-toggle:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--argo-wpcn-brand-dark), var(--argo-wpcn-brand) 58%, var(--argo-wpcn-brand-dark)) !important;
  box-shadow: var(--argo-wpcn-shadow-soft) !important;
  transform: translateY(-2px);
}

#argo-cookie-consent-root .argo-cookie-toggle:active {
  transform: translateY(0) scale(0.97);
}

#argo-cookie-consent-root .argo-cookie-toggle:focus-visible,
#argo-cookie-consent-root .argo-cookie-btn:focus-visible,
#argo-cookie-consent-root .argo-cookie-back:focus-visible,
#argo-cookie-consent-root .argo-cookie-close:focus-visible,
#argo-cookie-consent-root .argo-privacy-link:focus-visible,
#argo-cookie-consent-root .argo-cookie-check input:focus-visible + span::before {
  outline: 3px solid var(--argo-wpcn-brand-2) !important;
  outline-offset: 3px !important;
}

#argo-cookie-consent-root .argo-cookie-toggle svg {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 1.35rem !important;
  height: 1.35rem !important;
  margin: 0 !important;
  overflow: visible;
  color: currentColor;
}

#argo-cookie-consent-root .argo-cookie-toggle-icon {
  transform-origin: 12px 12px;
  transition: opacity var(--argo-wpcn-transition), transform var(--argo-wpcn-transition);
}

#argo-cookie-consent-root .argo-cookie-toggle-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.65);
}

#argo-cookie-consent-root .argo-cookie-toggle[aria-expanded="true"] .argo-cookie-toggle-icon-cookie {
  opacity: 0;
  transform: rotate(90deg) scale(0.65);
}

#argo-cookie-consent-root .argo-cookie-toggle[aria-expanded="true"] .argo-cookie-toggle-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Compact desktop banner. It sits above the settings button and never uses a decorative top border. */
#argo-cookie-consent-root .argo-cookie-banner {
  position: fixed;
  left: max(0.85rem, env(safe-area-inset-left));
  bottom: max(4.2rem, calc(env(safe-area-inset-bottom) + 4rem));
  z-index: 2147483646 !important;
  width: min(42rem, calc(100vw - 1.7rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100dvh - 5.4rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--argo-wpcn-line);
  border-top: 0;
  border-radius: var(--argo-wpcn-radius-lg);
  background: var(--argo-wpcn-surface);
  box-shadow: var(--argo-wpcn-shadow);
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 139, 141, 0.32) transparent;
}

#argo-cookie-consent-root .argo-cookie-banner[hidden] {
  display: none !important;
}

#argo-cookie-consent-root .argo-cookie-inner {
  position: relative;
  padding: 1.1rem 3.2rem 1.15rem 1.2rem;
}

/* Visually minimal close control. The click target stays comfortably accessible. */
#argo-cookie-consent-root .argo-cookie-close {
  position: absolute;
  top: 0.48rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  color: var(--argo-wpcn-brand);
  background: transparent;
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
}

#argo-cookie-consent-root .argo-cookie-close:hover {
  color: var(--argo-wpcn-brand-dark);
  background: transparent;
}

#argo-cookie-consent-root .argo-cookie-close:focus-visible {
  outline: 3px solid var(--argo-wpcn-brand-2) !important;
  outline-offset: 2px !important;
}

#argo-cookie-consent-root .argo-cookie-close svg {
  display: block;
  width: 1.08rem;
  height: 1.08rem;
}

/* When the banner is open the floating toggle is hidden, so the banner can sit near the viewport edge. */
#argo-cookie-consent-root.argo-is-cookie-open .argo-cookie-banner {
  bottom: max(0.85rem, env(safe-area-inset-bottom));
}

#argo-cookie-consent-root .argo-cookie-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0 0 0.4rem;
  color: var(--argo-wpcn-brand-dark);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

#argo-cookie-consent-root .argo-cookie-kicker::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--argo-wpcn-brand-2), var(--argo-wpcn-brand-2));
}

#argo-cookie-consent-root .argo-cookie-kicker-spaced {
  display: flex;
  width: max-content;
  margin-top: 0.7rem;
}

#argo-cookie-consent-root .argo-cookie-title {
  max-width: 34ch;
  margin: 0;
  color: var(--argo-wpcn-text);
  font-family: var(--argo-wpcn-font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

#argo-cookie-consent-root .argo-cookie-text {
  max-width: 70ch;
  margin: 0.48rem 0 0;
  color: var(--argo-wpcn-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

#argo-cookie-consent-root .argo-privacy-link {
  color: var(--argo-wpcn-brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--argo-wpcn-transition);
}

#argo-cookie-consent-root .argo-privacy-link:hover {
  color: var(--argo-wpcn-brand-dark);
}

#argo-cookie-consent-root .argo-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

#argo-cookie-consent-root .argo-cookie-btn {
  min-height: 2.65rem;
  margin: 0;
  padding: 0.65rem 1rem;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: var(--argo-wpcn-radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--argo-wpcn-transition), background var(--argo-wpcn-transition), border-color var(--argo-wpcn-transition), color var(--argo-wpcn-transition), box-shadow var(--argo-wpcn-transition);
}

#argo-cookie-consent-root .argo-cookie-btn:hover {
  transform: translateY(-1px);
}

#argo-cookie-consent-root .argo-cookie-btn:active {
  transform: translateY(0);
}

#argo-cookie-consent-root .argo-cookie-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--argo-wpcn-brand) 0%, var(--argo-wpcn-brand-2) 54%, var(--argo-wpcn-brand-2) 100%);
  box-shadow: 0 5px 14px rgba(15, 139, 141, 0.18);
}

#argo-cookie-consent-root .argo-cookie-btn-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--argo-wpcn-brand-dark) 0%, var(--argo-wpcn-brand) 55%, var(--argo-wpcn-brand-dark) 100%);
  box-shadow: 0 7px 18px rgba(15, 139, 141, 0.23);
}

#argo-cookie-consent-root .argo-cookie-btn-secondary {
  color: var(--argo-wpcn-brand-dark);
  border-color: var(--argo-wpcn-line-strong);
  background: #ffffff;
  box-shadow: none;
}

#argo-cookie-consent-root .argo-cookie-btn-secondary:hover {
  color: var(--argo-wpcn-brand-dark);
  border-color: rgba(43, 179, 182, 0.48);
  background: var(--argo-wpcn-brand-soft);
}

#argo-cookie-consent-root .argo-cookie-panel {
  display: none;
}

#argo-cookie-consent-root .argo-cookie-panel.argo-is-active {
  display: block;
  animation: argo-cookie-panel-in 180ms ease-out both;
}

@keyframes argo-cookie-panel-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#argo-cookie-consent-root .argo-cookie-back {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 2rem;
  margin: -0.2rem 0 0;
  padding: 0.15rem 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  color: var(--argo-wpcn-brand-dark);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

#argo-cookie-consent-root .argo-cookie-back:hover {
  color: var(--argo-wpcn-brand-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#argo-cookie-consent-root .argo-cookie-back svg {
  width: 0.9rem;
  height: 0.9rem;
}

#argo-cookie-consent-root .argo-cookie-options {
  display: flex;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  padding: 0;
  border: 0;
  flex-direction: column;
}

#argo-cookie-consent-root .argo-cookie-check {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 0.78rem;
  border: 1px solid var(--argo-wpcn-line);
  border-radius: var(--argo-wpcn-radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: border-color var(--argo-wpcn-transition), background var(--argo-wpcn-transition), box-shadow var(--argo-wpcn-transition);
}

#argo-cookie-consent-root .argo-cookie-check:hover {
  border-color: var(--argo-wpcn-line-strong);
  background: rgba(43, 179, 182, 0.04);
  box-shadow: 0 4px 12px rgba(15, 139, 141, 0.05);
}

#argo-cookie-consent-root .argo-cookie-check:has(input:disabled) {
  cursor: default;
}

#argo-cookie-consent-root .argo-cookie-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#argo-cookie-consent-root .argo-cookie-check span {
  position: relative;
  display: block;
  padding-left: 1.85rem;
  color: var(--argo-wpcn-text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

#argo-cookie-consent-root .argo-cookie-check span::before,
#argo-cookie-consent-root .argo-cookie-check span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.03rem;
  transition: border-color var(--argo-wpcn-transition), background var(--argo-wpcn-transition), opacity var(--argo-wpcn-transition), transform var(--argo-wpcn-transition);
}

#argo-cookie-consent-root .argo-cookie-check span::before {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--argo-wpcn-brand-2);
  border-radius: 0.33rem;
  background: var(--argo-wpcn-surface-solid);
}

#argo-cookie-consent-root .argo-cookie-check span::after {
  width: 0.34rem;
  height: 0.62rem;
  left: 0.41rem;
  top: 0.18rem;
  border: solid var(--argo-wpcn-checkmark);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.72);
}

#argo-cookie-consent-root .argo-cookie-check input:checked + span::before,
#argo-cookie-consent-root .argo-cookie-check input:disabled + span::before {
  border-color: var(--argo-wpcn-brand);
  background: linear-gradient(135deg, var(--argo-wpcn-brand), var(--argo-wpcn-brand-2));
}

#argo-cookie-consent-root .argo-cookie-check input:checked + span::after,
#argo-cookie-consent-root .argo-cookie-check input:disabled + span::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

#argo-cookie-consent-root .argo-cookie-check small {
  display: block;
  margin-top: 0.28rem;
  color: var(--argo-wpcn-muted);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.42;
}

@media (max-width: 47rem) {
  #argo-cookie-consent-root .argo-cookie-banner {
    left: max(0.6rem, env(safe-area-inset-left));
    bottom: max(4rem, calc(env(safe-area-inset-bottom) + 3.8rem));
    width: calc(100vw - 1.2rem - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height: calc(100dvh - 5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 13px;
  }

  #argo-cookie-consent-root .argo-cookie-inner {
    /* The close control is overlaid in the corner, so mobile content keeps the full usable width. */
    padding: 0.95rem 1rem 1rem;
  }

  #argo-cookie-consent-root .argo-cookie-close {
    top: 0.5rem;
    right: 0.55rem;
  }

  #argo-cookie-consent-root.argo-is-cookie-open .argo-cookie-banner {
    /* Keep the open banner comfortably above browser/home-indicator UI. */
    bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  }

  #argo-cookie-consent-root .argo-cookie-title {
    font-size: 1.1rem;
  }

  #argo-cookie-consent-root .argo-cookie-text {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  #argo-cookie-consent-root .argo-cookie-options {
    grid-template-columns: 1fr;
  }

  #argo-cookie-consent-root .argo-cookie-check {
    min-height: auto;
    padding: 0.68rem 0.72rem;
  }

  #argo-cookie-consent-root .argo-cookie-toggle {
    left: max(0.65rem, env(safe-area-inset-left)) !important;
    width: 2.6rem !important;
    min-width: 2.6rem !important;
    max-width: 2.6rem !important;
    height: 2.6rem !important;
    min-height: 2.6rem !important;
    max-height: 2.6rem !important;
  }
}

@media (max-width: 30rem) {
  #argo-cookie-consent-root .argo-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #argo-cookie-consent-root .argo-cookie-btn {
    width: 100%;
  }

  #argo-cookie-consent-root .argo-cookie-kicker {
    font-size: 0.64rem;
  }
}

@media (max-height: 38rem) {
  #argo-cookie-consent-root .argo-cookie-banner {
    bottom: max(3.8rem, calc(env(safe-area-inset-bottom) + 3.6rem));
    max-height: calc(100dvh - 4.6rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  #argo-cookie-consent-root .argo-cookie-inner {
    padding: 0.78rem 0.85rem 0.82rem;
  }

  #argo-cookie-consent-root.argo-is-cookie-open .argo-cookie-banner {
    bottom: max(0.85rem, calc(env(safe-area-inset-bottom) + 0.65rem));
  }

  #argo-cookie-consent-root .argo-cookie-kicker {
    margin-bottom: 0.25rem;
  }

  #argo-cookie-consent-root .argo-cookie-text {
    margin-top: 0.35rem;
  }

  #argo-cookie-consent-root .argo-cookie-actions,
  #argo-cookie-consent-root .argo-cookie-options {
    margin-top: 0.62rem;
  }
}

@media (max-width: 22rem) {
  #argo-cookie-consent-root .argo-cookie-banner {
    left: max(0.45rem, env(safe-area-inset-left));
    width: calc(100vw - 0.9rem - env(safe-area-inset-left) - env(safe-area-inset-right));
    border-radius: 11px;
  }

  #argo-cookie-consent-root .argo-cookie-inner {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  #argo-cookie-consent-root .argo-cookie-close {
    right: 0.4rem;
  }

  #argo-cookie-consent-root .argo-cookie-title {
    font-size: 1.04rem;
  }

  #argo-cookie-consent-root .argo-cookie-text {
    font-size: 0.83rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .argo-cookie-consent-root *,
  .argo-cookie-consent-root *::before,
  .argo-cookie-consent-root *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
