/* Cookie Consent CSS */

#unf-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 999999;
    padding: 20px;
    font-family: inherit;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.unf-cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.unf-cc-banner-content {
    flex: 1 1 500px;
}

.unf-cc-banner-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.unf-cc-banner-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.unf-cc-banner-content a {
    color: #233E2A;
    text-decoration: underline;
}

.unf-cc-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.unf-cc-btn-primary {
    background: #233E2A;
    color: #fff;
}
.unf-cc-btn-primary:hover {
    background: #c91f2f;
}

.unf-cc-btn-secondary {
    background: #f0f0f0;
    color: #333;
}
.unf-cc-btn-secondary:hover {
    background: #e0e0e0;
}

/* Modal */
#unf-cookie-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unf-cc-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}

.unf-cc-modal-inner {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

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

.unf-cc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#unf-cc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.unf-cc-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.unf-cc-modal-body > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.unf-cc-cat {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.unf-cc-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.unf-cc-cat-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.unf-cc-cat p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Toggles */
.unf-cc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.unf-cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

input:checked + .unf-cc-slider {
    background-color: #233E2A;
}

input:focus + .unf-cc-slider {
    box-shadow: 0 0 1px #233E2A;
}

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

input:disabled + .unf-cc-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.unf-cc-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    #unf-cookie-banner {
        padding: 10px 12px 12px;
    }
    .unf-cc-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .unf-cc-banner-content {
        flex: none;
    }
    .unf-cc-banner-content h3 {
        font-size: 13px;
        margin-bottom: 3px;
    }
    .unf-cc-banner-content p {
        font-size: 11px;
        line-height: 1.4;
        color: #888;
    }
    .unf-cc-banner-buttons {
        flex-direction: row;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .unf-cc-btn {
        flex: 1;
        padding: 7px 5px;
        font-size: 11px;
        text-align: center;
        border-radius: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .unf-cc-modal-inner {
        width: 96%;
        max-height: 88vh;
    }
}
