/* 
* Cookie Consent Styles for obzhigayuschaya-kolbasa.com
*/

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 20px 0;
  display: none;
}

.cookie-consent-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
  margin-right: 20px;
  margin-bottom: 20px;
}

.cookie-consent-text h3 {
  margin-bottom: 10px;
}

.cookie-consent-text p {
  margin-bottom: 0;
}

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

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.cookie-settings-content {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.cookie-settings-header {
  padding: 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings-header h3 {
  margin-bottom: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #333;
}

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

.cookie-option {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-option-header h4 {
  margin-bottom: 0;
}

.cookie-option p {
  margin-bottom: 0;
  color: #666;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

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

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

input:checked + .slider {
  background-color: #3498db;
}

input:focus + .slider {
  box-shadow: 0 0 1px #3498db;
}

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

input:disabled + .slider {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-settings-footer {
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent-text {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .cookie-consent-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-consent-buttons .btn {
    flex: 1;
    margin-right: 10px;
  }

  .cookie-consent-buttons .btn:last-child {
    margin-right: 0;
  }
}

@media (max-width: 576px) {
  .cookie-consent-buttons {
    flex-direction: column;
  }

  .cookie-consent-buttons .btn {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .cookie-consent-buttons .btn:last-child {
    margin-bottom: 0;
  }

  .cookie-option-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-option-header h4 {
    margin-bottom: 10px;
  }
}
