.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 9999;
  background: #fcf1e9;
  border: 1px solid #e6d3c4;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  padding: 20px;
}

.cookie-banner__content {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner__text h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #2b1d17;
}

.cookie-banner__text p {
  margin: 0;
  color: #5d463c;
  line-height: 1.5;
  max-width: 760px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.cookie-btn--primary {
  background: #2b1d17;
  color: #fff;
}

.cookie-btn--primary:hover {
  transform: translateY(-1px);
}

.cookie-btn--secondary {
  background: #ffffff;
  color: #2b1d17;
  border: 1px solid #d6c0b0;
}

.cookie-btn--ghost {
  background: transparent;
  color: #2b1d17;
  border: 1px dashed #b89986;
}

/* Modal */
.cookie-modal[hidden],
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.cookie-modal__box {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 8vh auto;
  background: #fffaf6;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.cookie-modal__box h3 {
  margin-top: 0;
  color: #2b1d17;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #eee1d8;
}

.cookie-option p {
  margin: 6px 0 0;
  color: #6b564c;
}

.cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Switch */
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #d7c2b3;
  border-radius: 30px;
  transition: .3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}

.switch input:checked + .slider {
  background: #2b1d17;
}

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

@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }

  .cookie-modal__box {
    margin: 4vh 12px;
  }
}