/* 
 * Cookie Consent Styles
 * Styles for cookie consent banner and modal
 */

/* Cookie Consent Banner */
.cookie-consent {
  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: 1000;
  display: none;
  padding: 1rem 0;
}

.cookie-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  flex: 2;
  min-width: 300px;
  padding-right: 1rem;
}

.cookie-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #2b5876;
}

.cookie-text p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #666;
}

.cookie-buttons {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.cookie-modal-content {
  background-color: white;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-header h3 {
  margin-bottom: 0;
  color: #2b5876;
}

.cookie-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-option {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  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: 0.5rem;
}

.cookie-option-header h4 {
  margin-bottom: 0;
  font-size: 1rem;
}

.cookie-option p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #eee;
  text-align: right;
}

/* 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;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2b5876;
}

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

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

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

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cookie-container {
    flex-direction: column;
  }
  
  .cookie-text {
    margin-bottom: 1rem;
    padding-right: in3.14159it;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-option-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .cookie-modal-content {
    max-height: 80vh;
  }
}
