.cookie-banner,
.cookie-panel {
  position: fixed;
  z-index: 9999;
  color: #f2f1ec;
  font-family: Inter, Arial, sans-serif;
}

.cookie-banner {
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(31rem, calc(100vw - 2rem));
  border: 1px solid rgba(242, 241, 236, 0.22);
  background: rgba(7, 19, 15, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  padding: 1rem;
}

.cookie-banner[hidden],
.cookie-panel[hidden] {
  display: none !important;
}

.cookie-banner p,
.cookie-panel p {
  margin: 0;
  color: rgba(242, 241, 236, 0.76);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner strong,
.cookie-panel strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #f2f1ec;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.cookie-button,
.cookie-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border: 1px solid rgba(242, 241, 236, 0.42);
  background: transparent;
  color: #f2f1ec;
  padding: 0.68rem 0.85rem;
  font: 800 0.68rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-button.primary {
  border-color: #f2f1ec;
  background: #f2f1ec;
  color: #07130f;
}

.cookie-link-button {
  min-height: auto;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  font-weight: 700;
}

.cookie-panel {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 5, 4, 0.58);
  padding: 1rem;
}

.cookie-card {
  width: min(39rem, 100%);
  max-height: min(44rem, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid rgba(242, 241, 236, 0.22);
  background: #07130f;
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(242, 241, 236, 0.16);
}

.cookie-option h3 {
  margin: 0 0 0.25rem;
  color: #f2f1ec;
  font-size: 1rem;
}

.cookie-option label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f2f1ec;
  font-size: 0.84rem;
  font-weight: 700;
}

.cookie-option input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #d8bd7a;
}

@media (max-width: 620px) {
  .cookie-actions {
    display: grid;
  }

  .cookie-button {
    width: 100%;
  }
}
