.cookie-consent-card {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  width: min(392px, calc(100vw - 24px));
  padding: 20px;
  border-radius: 24px;
  background: #eae6e5;
  box-shadow: inset 0 0 0 2px #0e1412;
  color: #0f1513;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.19, 1, 0.22, 1),
    visibility 0.46s ease;
}

.cookie-consent-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.cookie-consent-eyebrow {
  margin: 0 0 10px;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  color: rgba(15, 21, 19, 0.62);
}

.cookie-consent-title {
  margin: 0 0 10px;
  padding-right: 36px;
  font-family: neue-haas-grotesk-display, sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.02;
  color: #0f1513;
}

.cookie-consent-copy,
.cookie-consent-note,
.cookie-consent-helper,
.cookie-consent-option-description {
  margin: 0;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(15, 21, 19, 0.72);
}

.cookie-consent-note,
.cookie-consent-helper {
  margin-top: 10px;
}

.cookie-consent-helper {
  color: #cf5541;
}

.cookie-consent-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-consent-close::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: #0f1513;
  -webkit-mask-image: url("../icons/Close_Circle_Red.svg");
  mask-image: url("../icons/Close_Circle_Red.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.cookie-consent-actions,
.cookie-consent-preference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cookie-consent-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.cookie-consent-actions .cookie-consent-btn-primary {
  grid-column: 1 / -1;
  justify-self: start;
}

.cookie-consent-actions .cookie-consent-btn-secondary {
  width: 100%;
  min-width: 0;
}

.cookie-consent-btn-primary {
  background: #0f1513;
  color: #f8f7f7;
  box-shadow: inset 0 0 0 2px #0e1412;
}

.cookie-consent-btn-primary:hover,
.cookie-consent-btn-primary:focus-visible {
  background: #161d1a;
}

.cookie-consent-btn-secondary {
  background: #eae6e5;
  color: #0f1513;
  box-shadow: inset 0 0 0 2px #0e1412;
}

.cookie-consent-btn-secondary:hover,
.cookie-consent-btn-secondary:focus-visible {
  background: #f1eeee;
}

.cookie-consent-preferences {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 21, 19, 0.12);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition:
    max-height 0.56s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.56s cubic-bezier(0.19, 1, 0.22, 1),
    margin-top 0.56s cubic-bezier(0.19, 1, 0.22, 1),
    padding-top 0.56s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-consent-card.is-preferences-open .cookie-consent-preferences {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.cookie-consent-option + .cookie-consent-option {
  border-top: 1px solid rgba(15, 21, 19, 0.08);
}

.cookie-consent-option-copy {
  display: grid;
  gap: 4px;
}

.cookie-consent-option-title {
  font-family: neue-haas-grotesk-text, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.1;
  color: #0f1513;
}

.cookie-consent-option.is-disabled .cookie-consent-option-title,
.cookie-consent-option.is-disabled .cookie-consent-option-description {
  opacity: 0.75;
}

.cookie-consent-toggle {
  position: relative;
  flex: 0 0 auto;
}

.cookie-consent-toggle-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-consent-toggle-indicator {
  display: inline-flex;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 21, 19, 0.16);
  box-shadow: inset 0 0 0 2px rgba(15, 21, 19, 0.16);
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.cookie-consent-toggle-indicator::after {
  content: "";
  width: 20px;
  height: 20px;
  margin: 4px;
  border-radius: 50%;
  background: #f8f7f7;
  transition: transform 0.22s ease;
}

.cookie-consent-toggle-input:checked + .cookie-consent-toggle-indicator {
  background: #0f1513;
  box-shadow: inset 0 0 0 2px #0e1412;
}

.cookie-consent-toggle-input:checked + .cookie-consent-toggle-indicator::after {
  transform: translateX(18px);
}

.cookie-consent-toggle-input:disabled + .cookie-consent-toggle-indicator {
  opacity: 0.72;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .cookie-consent-card {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .cookie-consent-title {
    font-size: 18px;
  }

  .cookie-consent-actions,
  .cookie-consent-preference-actions {
    display: flex;
    grid-template-columns: none;
    flex-direction: column;
  }

  .cookie-consent-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .cookie-consent-actions .cookie-consent-btn-primary,
  .cookie-consent-actions .cookie-consent-btn-secondary {
    width: 100%;
  }
}
