.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

.cookie-modal-overlay {
  padding: 16px;
  z-index: 20001;
}

.cookie-modal-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin: 0;
  max-width: 380px;
  width: calc(100% - 32px);
  text-align: center;
  position: relative;
}

.cookie-modal-title {
  margin: 0 0 12px 0;
  font-size: 1.2em;
  color: #c8b274;
  font-weight: 600;
}

.cookie-modal-text {
  margin: 0 0 20px 0;
  line-height: 1.5;
  font-size: 0.9em;
  color: #1a1a1a;
}

.cookie-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-modal-btn {
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  width: 100%;
}

.cookie-modal-btn-accept {
  background-color: #c8b274;
  color: #ffffff;
}

.cookie-modal-btn-decline {
  background: #f8f8f8;
  color: #1a1a1a;
  border: 1px solid #ddd;
}

.cookie-modal-btn-settings {
  background: transparent;
  color: #5a4a2a;
  border: 1px solid #5a4a2a;
}

.cookie-settings-overlay {
  z-index: 21000;
}

.cookie-settings-modal {
  background: #ffffff;
  border-radius: 12px;
  margin: 20px;
  max-width: 500px;
  width: calc(100% - 40px);
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-settings-header {
  padding: 20px;
  background-color: #c8b274;
  color: #ffffff;
  border-radius: 8px 8px 0 0;
}

.cookie-settings-header h2 {
  margin: 0;
  font-size: 1.2em;
}

.cookie-settings-body {
  padding: 20px;
}

.cookie-category {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
}

.cookie-category h3 {
  margin: 0 0 8px 0;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1em;
}

.cookie-category p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.4;
  font-size: 0.85em;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: #c8b274;
}

input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-slider.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-settings-footer {
  padding: 20px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  background: #f8f8f8;
  border-radius: 0 0 8px 8px;
}

.cookie-settings-save {
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #c8b274;
  color: #ffffff;
}

body.cookie-consent-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .cookie-modal-overlay {
    align-items: flex-start;
    padding-top: 5vh;
  }
  
  .cookie-modal-content {
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .cookie-settings-modal {
    margin: 16px;
    max-height: 90vh;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 480px) {
  .cookie-modal-overlay {
    padding-top: 2vh;
    padding: 8px;
  }
  
  .cookie-modal-content {
    padding: 16px;
    max-height: 95vh;
    width: calc(100vw - 16px);
  }

  .cookie-modal-title {
    font-size: 1.1em;
  }

  .cookie-modal-text {
    font-size: 0.85em;
  }

  .cookie-modal-buttons {
    gap: 8px;
  }
  
  .cookie-modal-btn {
    padding: 10px;
    font-size: 0.9em;
  }
  
  .cookie-settings-modal {
    margin: 8px;
    width: calc(100vw - 16px);
  }
}