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

.cookie-consent-layer {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(15, 23, 42, 0.48);
  font-family: inherit;
}

.cookie-consent-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  width: min(900px, 100%);
  padding: 20px;
  color: #273247;
  background: #fff;
  border: 1px solid #d5dbe5;
  border-top: 4px solid #e6bd27;
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.25);
}

.cookie-consent-copy h2 {
  margin: 0 0 7px;
  color: #4b0c0d;
  font-size: 18px;
  line-height: 1.45;
}

.cookie-consent-copy p {
  margin: 0 0 10px;
  color: #3f4b5f;
  font-size: 14px;
  line-height: 1.65;
}

.cookie-consent-copy a {
  color: #174f91;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: grid;
  gap: 8px;
}

.cookie-consent-button {
  min-height: 46px;
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #4b0c0d;
  border-radius: 5px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.cookie-consent-button--reject {
  color: #4b0c0d;
  background: #fff;
}

.cookie-consent-button--reject:hover {
  background: #fff8e3;
}

.cookie-consent-button--accept {
  color: #fff;
  background: #4b0c0d;
}

.cookie-consent-button--accept:hover {
  background: #681416;
}

.cookie-consent-button:focus-visible,
.cookie-consent-copy a:focus-visible,
.cookie-consent-settings-button:focus-visible {
  outline: 3px solid #2265a8;
  outline-offset: 3px;
}

.cookie-consent-footer-control {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.cookie-consent-settings-button {
  padding: 4px 8px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cookie-consent-layer {
    padding: 10px;
  }

  .cookie-consent-dialog {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
  }

  .cookie-consent-copy h2 {
    font-size: 17px;
  }

  .cookie-consent-copy p {
    font-size: 13px;
  }

  .cookie-consent-actions {
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-button {
    transition: none;
  }
}
