/* Cookie Consent Banner — subtle bottom strip */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e8e6e1;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
}

.cookie-consent-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 24px;
}

.cookie-icon {
    font-size: 1.1rem;
    color: #8b7355;
    flex-shrink: 0;
    animation: none;
}

.cookie-text {
    flex: 1;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-text h4 {
    /* Heading is redundant with the paragraph in a single-line strip; hide visually */
    display: none;
}

.cookie-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.5;
}

.cookie-link {
    color: #8b7355;
    text-decoration: underline;
    font-size: 0.85rem;
    margin-left: 6px;
}

.cookie-link:hover {
    color: #a68760;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
}

.btn-cookie-accept,
.btn-cookie-necessary,
.btn-cookie-settings {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    background: transparent;
    color: #1a1a1a;
}

.btn-cookie-accept {
    background: #1a1a1a;
    color: #ffffff;
}

.btn-cookie-accept:hover {
    background: #333333;
    color: #ffffff;
}

.btn-cookie-necessary {
    border-color: #d4d2cc;
    color: #1a1a1a;
}

.btn-cookie-necessary:hover {
    background: #f5f4f0;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.btn-cookie-settings {
    color: #666666;
    text-decoration: underline;
    padding-left: 6px;
    padding-right: 6px;
}

.btn-cookie-settings:hover {
    color: #1a1a1a;
    background: transparent;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-settings-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-settings-header {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-settings {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-settings:hover {
    background: #f8f9fa;
    color: #333;
}

.cookie-settings-body {
    padding: 25px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: #e9ecef;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}

.category-header h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.category-header p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch label:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch input:checked + label {
    background-color: #28a745;
}

.toggle-switch input:checked + label:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.btn-save-settings {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 12px 16px;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cookie-text {
        font-size: 0.8rem;
    }

    .cookie-text p {
        font-size: 0.8rem;
    }

    .cookie-actions {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: stretch;
    }

    .btn-cookie-accept,
    .btn-cookie-necessary {
        flex: 1;
        text-align: center;
    }

    .cookie-settings-content {
        width: 95%;
        max-height: 90vh;
    }

    .category-header {
        flex-direction: column;
    }

    .toggle-switch {
        align-self: flex-start;
        margin-top: 10px;
    }
}