/* Cookie Consent System Styles */

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    font-family: inherit;
    border-top: 4px solid var(--accent, #6fa882);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1 1 300px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.cookie-banner-text strong {
    color: var(--green-dark, #166534);
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

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

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: var(--green-dark, #166534);
    color: #ffffff;
}
.cookie-btn-accept:hover {
    background: var(--green-mid, #15803d);
}

.cookie-btn-reject {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.cookie-btn-reject:hover {
    background: #e2e8f0;
}

.cookie-btn-manage {
    background: transparent;
    color: var(--accent, #4a7c59);
    text-decoration: underline;
}

/* Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: translateY(0);
}

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

.cookie-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--green-dark, #166534);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.cookie-category-title {
    font-weight: bold;
    font-size: 16px;
    color: #334155;
}

.cookie-category-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--green-dark, #166534);
}

input:disabled + .cookie-slider {
    background-color: #94a3b8;
    cursor: not-allowed;
}

input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}


