/* --- Cookie Consent Popup --- */
.cookie-consent {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 25px;
    font-family: var(--font-body);
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.cookie-btn-primary {
    background: #e51a1a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.cookie-btn-primary:hover {
    background: #cc1515;
}

.cookie-btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.cookie-btn-outline:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

@media screen and (max-width: 576px) {
    .cookie-consent {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        max-width: none;
    }
}

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

.cookie-modal {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

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

.cookie-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-main);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cookie-modal-body {
    padding: 20px 25px;
    overflow-y: auto;
}

.cookie-accordion-item {
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.cookie-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    cursor: pointer;
}

.cookie-accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.cookie-toggle-container {
    display: flex;
    align-items: center;
}

.cookie-accordion-content {
    padding: 0 20px 20px 45px;
    display: none;
}

.cookie-accordion-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cookie-accordion-item.open .cookie-accordion-content {
    display: block;
}

.cookie-accordion-item.open .toggle-icon::before {
    content: "\ea0a"; /* bx-minus */
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cookie-modal-footer .btn {
    flex: none;
    min-width: 150px;
}

/* Switch Toggle CSS */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  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: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #64a6ff;
}

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

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

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

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