/* styles/cookie-banner.css */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #121212;
    color: #FFFFFF;
    padding: 20px;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#cookie-consent-banner.active {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-banner-text {
    font-size: 14px;
    line-height: 1.5;
    margin-right: 20px;
}

.cookie-banner-text a {
    color: #F5F5F5;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: 1px solid #FFFFFF;
    background-color: transparent;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    border-radius: 4px;
}

.cookie-btn:hover {
    background-color: #FFFFFF;
    color: #121212;
}

.cookie-btn-accept {
    background-color: #FFFFFF;
    color: #121212;
}
.cookie-btn-accept:hover {
    background-color: #F5F5F5;
    border-color: #F5F5F5;
}

/* Modal/Settings Panel */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

#cookie-settings-modal.visible {
    display: flex;
}

.cookie-modal-content {
    background-color: #FFFFFF;
    color: #121212;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F5F5F5;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cookie-modal-header h3 {
    font-size: 24px;
    font-weight: bold;
}

.cookie-category {
    padding: 15px 0;
    border-bottom: 1px solid #F5F5F5;
}
.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category-header h4 {
    font-size: 18px;
    font-weight: bold;
}

.cookie-category-description {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}
.cookie-modal-footer .cookie-btn {
    color: #121212;
    border-color: #121212;
}
.cookie-modal-footer .cookie-btn:hover {
    background-color: #121212;
    color: #FFFFFF;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.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: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #121212;
}

input:disabled + .slider {
  background-color: #e0e0e0;
  cursor: not-allowed;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
