.cookie-banner,
.cookie-panel {
  position: fixed;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
  color: #0F0F0F;
}

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

.cookie-banner {
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 980px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
  padding: 1rem;
}

.cookie-banner__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.cookie-banner h2,
.cookie-panel h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.cookie-banner p,
.cookie-panel p {
  margin: 0;
  color: #555;
  font-size: 0.86rem;
  line-height: 1.5;
}

.cookie-banner a,
.cookie-panel a {
  color: #FF4D00;
  font-weight: 700;
  text-decoration: none;
}

.cookie-banner a:hover,
.cookie-panel a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn {
  min-height: 44px;
  border: 2px solid #0F0F0F;
  background: #FFFFFF;
  color: #0F0F0F;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  border-color: #FF4D00;
  color: #FF4D00;
}

.cookie-btn--primary {
  background: #FF4D00;
  border-color: #FF4D00;
  color: #FFFFFF;
}

.cookie-btn--primary:hover,
.cookie-btn--primary:focus-visible {
  background: #FF6A2A;
  border-color: #FF6A2A;
  color: #FFFFFF;
}

.cookie-btn--text {
  border-color: #E8E8E8;
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,0.42);
}

.cookie-panel {
  top: 50%;
  left: 50%;
  z-index: 1002;
  width: min(92vw, 560px);
  max-height: min(86vh, 680px);
  overflow: auto;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  padding: 1.25rem;
}

.cookie-panel__intro {
  margin-bottom: 1rem;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid #E8E8E8;
  padding: 1rem 0;
}

.cookie-option h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.cookie-option p {
  font-size: 0.82rem;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
}

.cookie-switch span {
  width: 100%;
  border-radius: 999px;
  background: #CCCCCC;
  transition: background 0.2s;
}

.cookie-switch span::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(0,0,0,0.22);
  transition: transform 0.2s;
}

.cookie-switch input:checked + span {
  background: #FF4D00;
}

.cookie-switch input:checked + span::before {
  transform: translateX(22px);
}

.cookie-switch input:disabled + span {
  background: #6B6B6B;
  cursor: not-allowed;
}

.cookie-panel__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid #E8E8E8;
  padding-top: 1rem;
}

@media (max-width: 680px) {
  .cookie-banner {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem;
  }

  .cookie-banner__content {
    grid-template-columns: 1fr;
  }

  .cookie-actions,
  .cookie-panel__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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