/*
 * BRDCo Cookie Consent Styling
 * Special theme design for Borda Technology (Innovio theme)
 * Colors: Primary #f0552c, Text #2b444a
 * Sharp minimalist edges (0px - 2px border radius)
 */

/* Main Container Overlay */
#BRDCo-cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 68, 74, 0.7); /* Deep Slate with opacity */
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#BRDCo-cookie-consent-overlay.BRDCo-visible {
    display: flex;
    opacity: 1;
}

/* Modal Wrapper */
.BRDCo-cookie-modal {
    background-color: #ffffff;
    width: 90%;
    max-width: 960px;
    height: 85vh;
    max-height: 650px;
    box-shadow: 0 15px 35px rgba(43, 68, 74, 0.2);
    border: 1px solid rgba(43, 68, 74, 0.15);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: #2b444a;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#BRDCo-cookie-consent-overlay.BRDCo-visible .BRDCo-cookie-modal {
    transform: scale(1);
}

/* Modal Header */
.BRDCo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(43, 68, 74, 0.1);
    background-color: #ffffff;
}

.BRDCo-logo-area {
    display: flex;
    align-items: center;
}

.BRDCo-logo-area img {
    height: 36px;
    width: auto;
    margin-right: 15px;
}

.BRDCo-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2b444a;
    margin: 0;
    letter-spacing: 0.5px;
}

.BRDCo-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2b444a;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 5px;
    line-height: 1;
}

.BRDCo-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Modal Body */
.BRDCo-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    background-color: #ffffff;
}

/* Tabs Left Navigation */
.BRDCo-modal-tabs {
    width: 32%;
    border-right: 1px solid rgba(43, 68, 74, 0.1);
    background-color: #f9fafb;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.BRDCo-tab-link {
    background: none;
    border: none;
    border-left: 4px solid transparent;
    padding: 18px 24px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #2b444a;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    line-height: 1.4;
    border-bottom: 1px solid rgba(43, 68, 74, 0.05);
}

.BRDCo-tab-link:hover {
    background-color: rgba(43, 68, 74, 0.03);
    color: #f0552c;
}

.BRDCo-tab-link.BRDCo-active {
    background-color: #ffffff;
    border-left-color: #f0552c;
    color: #f0552c;
    font-weight: 700;
}

/* Content Right Panels */
.BRDCo-modal-content {
    width: 68%;
    padding: 35px;
    overflow-y: auto;
    background-color: #ffffff;
}

.BRDCo-tab-panel {
    display: none;
    animation: BRDCo-fadeIn 0.3s ease;
}

.BRDCo-tab-panel.BRDCo-active {
    display: block;
}

@keyframes BRDCo-fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Panel Header Info & Toggles */
.BRDCo-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(43, 68, 74, 0.06);
}

.BRDCo-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #2b444a;
    margin: 0;
}

/* Always Active Label */
.BRDCo-always-active {
    color: #f0552c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Switch Toggle Styling */
.BRDCo-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.BRDCo-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: background-color 0.25s ease;
    border-radius: 13px;
}

.BRDCo-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.BRDCo-switch input:checked + .BRDCo-slider {
    background-color: #f0552c;
}

.BRDCo-switch input:focus + .BRDCo-slider {
    box-shadow: 0 0 1px #f0552c;
}

.BRDCo-switch input:checked + .BRDCo-slider:before {
    transform: translateX(24px);
}

/* Tab Descriptions */
.BRDCo-tab-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(43, 68, 74, 0.85);
    margin-bottom: 20px;
}

.BRDCo-tab-desc p {
    margin-top: 0;
    margin-bottom: 15px;
}

.BRDCo-tab-desc a {
    color: #f0552c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #f0552c;
    transition: opacity 0.2s;
}

.BRDCo-tab-desc a:hover {
    opacity: 0.8;
}

/* Modal Footer */
.BRDCo-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid rgba(43, 68, 74, 0.1);
    background-color: #ffffff;
}

.BRDCo-footer-left {
    display: flex;
}

.BRDCo-footer-right {
    display: flex;
    gap: 12px;
}

/* Custom Buttons */
.BRDCo-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 14px 28px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.BRDCo-btn-primary {
    background-color: #f0552c;
    color: #ffffff;
    border-color: #f0552c;
}

.BRDCo-btn-primary:hover {
    background-color: #d8441b;
    border-color: #d8441b;
    transform: translateY(-1px);
}

.BRDCo-btn-primary:active {
    transform: translateY(0);
}

.BRDCo-btn-secondary {
    background-color: transparent;
    color: #f0552c;
    border-color: #f0552c;
}

.BRDCo-btn-secondary:hover {
    background-color: #f0552c;
    color: #ffffff;
    transform: translateY(-1px);
}

.BRDCo-btn-secondary:active {
    transform: translateY(0);
}

.BRDCo-btn-outline {
    background-color: transparent;
    color: #2b444a;
    border-color: #2b444a;
}

.BRDCo-btn-outline:hover {
    background-color: #2b444a;
    color: #ffffff;
    transform: translateY(-1px);
}

.BRDCo-btn-outline:active {
    transform: translateY(0);
}

/* Floating re-consent button */
.BRDCo-floating-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: 2px solid #f0552c;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(43, 68, 74, 0.15);
    z-index: 99999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.BRDCo-floating-trigger:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 16px rgba(43, 68, 74, 0.25);
}

.BRDCo-floating-trigger svg {
    width: 24px;
    height: 24px;
    fill: #f0552c;
}

/* Responsive Customization */
@media (max-width: 768px) {
    .BRDCo-cookie-modal {
        height: 90vh;
        max-height: none;
        width: 95%;
    }

    .BRDCo-modal-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .BRDCo-modal-tabs {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(43, 68, 74, 0.1);
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        background-color: #f9fafb;
    }

    .BRDCo-tab-link {
        flex: 0 0 auto;
        padding: 15px 20px;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 12px;
    }

    .BRDCo-tab-link.BRDCo-active {
        border-left-color: transparent;
        border-bottom-color: #f0552c;
    }

    .BRDCo-modal-content {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: visible;
        flex: 1;
    }

    .BRDCo-modal-footer {
        flex-direction: column-reverse;
        gap: 15px;
        padding: 15px 20px;
    }

    .BRDCo-footer-left,
    .BRDCo-footer-right {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .BRDCo-btn {
        width: 100%;
        padding: 12px 20px;
    }
}
