/* Consent Banner Styles */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: inherit;
    display: none;
}

.consent-banner.show {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consent-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.consent-banner-text {
    flex: 1;
}

.consent-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e3268;
}

.consent-banner-text p {
    margin: 0;
    font-size: 14px;
    color: #1e3268;
    line-height: 1.5;
}

.consent-banner-text a {
    color: #1e3268;
    text-decoration: underline;
}

.consent-banner-text a:hover {
    color: #152447;
}

.consent-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #1e3268;
}

/* Support for btn-primary class */
.consent-btn.btn-primary {
    /* Inherits styles from consent-btn */
}

.consent-btn-accept {
    background-color: #1e3268;
    color: white;
}

.consent-btn-accept:hover {
    background-color: #152447;
    box-shadow: 0 2px 4px rgba(30, 50, 104, 0.3);
}

.consent-btn-reject {
    background-color: #f5f5f5;
    color: #1e3268;
    border: 1px solid #ddd;
}

.consent-btn-reject:hover {
    background-color: #efefef;
    border-color: #bbb;
}

.consent-btn-manage {
    background-color: #ffffff;
    color: #1e3268;
    border: 1px solid #1e3268;
}

.consent-btn-manage:hover {
    background-color: #f0f4ff;
    border-color: #152447;
}

/* Modal Popup Styles */
.consent-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.consent-modal-overlay.show {
    display: flex;
}

.consent-modal {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    height: 600px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.consent-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consent-modal-header h2 {
    margin: 0;
    color: #1e3268;
    font-size: 24px;
}

.consent-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1e3268;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consent-modal-close:hover {
    color: #152447;
}

.consent-modal-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.consent-modal-tabs {
    width: 280px;
    background-color: #f9f9f9;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.consent-tab-button {
    padding: 16px 20px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #1e3268;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.consent-tab-button:hover {
    background-color: #f0f4ff;
}

.consent-tab-button.active {
    background-color: #f0f4ff;
    border-left-color: #1e3268;
    color: #1e3268;
    font-weight: 600;
}

.consent-modal-panels {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.consent-panel {
    display: none;
    color: #1e3268;
}

.consent-panel.active {
    display: block;
}

.consent-panel h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e3268;
}

.consent-panel-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #1e3268;
}

.consent-panel-status.always-active {
    color: #666;
}

.consent-panel p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #1e3268;
}

.consent-panel p:last-child {
    margin-bottom: 0;
}

.consent-panel-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.consent-panel-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #1e3268;
}

.consent-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f9f9f9;
}

.consent-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e3268;
}

.consent-modal-btn.btn-primary {
    /* Inherits styles from consent-modal-btn */
}

.consent-modal-btn-secondary {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #1e3268;
}

.consent-modal-btn-secondary:hover {
    background-color: #efefef;
}

.consent-modal-btn-primary {
    background-color: #1e3268;
    color: white;
}

.consent-modal-btn-primary:hover {
    background-color: #152447;
    box-shadow: 0 2px 4px rgba(30, 50, 104, 0.3);
}

/* Consent Details (initially hidden) */
.consent-details {
    display: none;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    margin-top: 8px;
}

.consent-details.show {
    display: block;
}

.consent-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.consent-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.consent-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.consent-item-title {
    font-weight: 600;
    color: #1e3268;
    margin: 0;
}

.consent-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    background-color: #ccc;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 2px;
}

.consent-toggle.active {
    background-color: #1e3268;
}

.consent-toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
}

.consent-toggle.active::after {
    left: 22px;
}

.consent-item-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Customize buttons */
.consent-customize-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .consent-banner-content {
        flex-direction: column;
        gap: 12px;
    }

    .consent-banner-buttons {
        justify-content: stretch;
    }

    .consent-btn {
        flex: 1;
        text-align: center;
    }

    .consent-modal {
        max-width: 95vw;
        max-height: 95vh;
    }

    .consent-modal-content {
        flex-direction: column;
    }

    .consent-modal-tabs {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        flex-direction: row;
        overflow-x: auto;
    }

    .consent-tab-button {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 16px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .consent-tab-button.active {
        border-left: none;
        border-bottom-color: #1e3268;
        background-color: transparent;
    }

    .consent-banner-text h3 {
        font-size: 16px;
    }

    .consent-banner-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .consent-banner {
        padding: 16px;
    }

    .consent-banner-text h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .consent-banner-text p {
        font-size: 12px;
    }

    .consent-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .consent-modal-header {
        padding: 16px;
    }

    .consent-modal-header h2 {
        font-size: 18px;
    }

    .consent-modal-panels {
        padding: 16px;
    }

    .consent-modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }

    .consent-modal-btn {
        width: 100%;
    }

    .consent-modal-tabs {
        overflow-x: auto;
    }

    .consent-tab-button {
        padding: 10px 12px;
        font-size: 12px;
    }

    .consent-panel h3 {
        font-size: 15px;
    }

    .consent-panel p {
        font-size: 13px;
    }
}
