/* 
  Cookie consent styles for AutoExpert website
  Polish Car Services Business
  Author: myagkaya-pshenitsa.com
*/

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

.cookie-consent.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-content h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-content a {
  text-decoration: underline;
}

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

.cookie-buttons button {
  margin: 0;
  font-size: 0.9rem;
  padding: 8px 16px;
}

/* Cookie Settings Modal */
.cookie-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  display: none;
}

.cookie-settings.show {
  display: flex;
}

.cookie-settings-content {
  background-color: #fff;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cookie-settings-content h3 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.cookie-settings-content p {
  margin: 0 0 20px 0;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.cookie-option {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cookie-option label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-option input {
  margin: 0;
}

.cookie-option p {
  margin: 0 0 0 25px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.cookie-settings-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
  }
  
  .cookie-content > p {
    flex: 1;
  }
  
  .cookie-buttons {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-buttons button {
    width: 100%;
  }
  
  .cookie-settings-content {
    max-width: 90%;
    padding: 15px;
  }
  
  .cookie-settings-buttons {
    flex-direction: column;
  }
  
  .cookie-settings-buttons button {
    width: 100%;
  }
}
