.cookie-consent {
  position: fixed;
  top: auto;
  right: 20px;
  bottom: 20px;
  left: auto;
  z-index: 2000;
  max-width: 460px;
  width: calc(100% - 40px);
  max-height: 40vh;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
  border-top: 3px solid var(--color-brand-red, #d71920);
  border-radius: 16px;
  background: #ffffff;
  color: var(--color-text, #111111);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__eyebrow {
  display: none;
}

.cookie-consent__summary {
  margin: 0;
  color: var(--color-text-secondary, #666666);
  font-size: 0.78rem;
  line-height: 1.3;
}

.cookie-consent__summary a {
  color: var(--color-text, #111111);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cookie-consent__btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border, rgba(0, 0, 0, 0.16));
  background: #ffffff;
  color: var(--color-text, #111111);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus-visible {
  border-color: var(--color-text, #111111);
}

.cookie-consent__btn--primary {
  background: var(--color-brand-red, #d71920);
  border-color: var(--color-brand-red, #d71920);
  color: #ffffff;
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus-visible {
  background: var(--color-brand-red-dark, #a90f16);
  border-color: var(--color-brand-red-dark, #a90f16);
}

.cookie-consent__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  font-size: 0.7rem;
}

.cookie-consent__meta a,
.cookie-consent__meta button {
  color: var(--color-text-secondary, #666666);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-consent__meta a:hover,
.cookie-consent__meta a:focus-visible,
.cookie-consent__meta button:hover,
.cookie-consent__meta button:focus-visible {
  color: var(--color-text, #111111);
}

@media (max-width: 640px) {
  .cookie-consent {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
  }

  .cookie-consent__summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Privacy notice/manage links are also reachable from the footer on every
     page - dropped here purely to keep the card short enough not to cover
     page content on tall mobile screens (see the PDP title occlusion fix). */
  .cookie-consent__meta {
    display: none;
  }
}
