/* Base Banner Styles */
#dcb-cookie-banner {
    position: fixed;
    width: 100%;
    max-width: 100%;
    padding: 15px;
    z-index: 1000;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
}

#dcb-cookie-banner p {
    margin: 0;
    text-align: center;
    font-size: 14px;
}

#dcb-cookie-banner a {
    text-decoration: underline;
}

/* Button Styles */
.dcb-button-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px; /* Limit button width on mobile */
}

#dcb-cookie-banner button {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

/* Desktop Styles for Banner */
@media (min-width: 768px) {
    #dcb-cookie-banner {
        width: auto;
        max-width: 380px;
        border-radius: 5px;
        align-items: flex-start;
        gap: 10px;
    }

    #dcb-cookie-banner p {
        text-align: left;
    }

    .dcb-button-wrapper {
        width: 100%;
    }
}

/* Settings Modal - Mobile First (Fullscreen) */
#dcb-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Full white background for mobile */
    z-index: 1001;
    display: none; /* Initially hidden, shown with display: flex */
    align-items: flex-start; /* Align content to top */
    justify-content: center;
    padding: 0;
}

.dcb-modal-content {
    position: relative;
    background-color: #fff;
    padding: 25px;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    text-align: left;
    border-radius: 0;
}

.dcb-modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.dcb-modal-content > p {
    margin-top: 0;
    margin-bottom: 25px;
    color: #666;
    font-size: 15px;
}

.dcb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.dcb-modal-close:hover {
    color: #333;
}

/* Toggle Switch Styling */
.dcb-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dcb-option-text {
    font-size: 16px;
    padding-right: 10px;
}

.dcb-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

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

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

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

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

/* Disabled State */
.dcb-option[data-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.dcb-option[data-disabled="true"] .dcb-slider {
    cursor: not-allowed;
}


.dcb-modal-content .dcb-option-description {
    font-size: 14px;
    color: #777;
    margin-top: -8px;
    margin-bottom: 25px;
    padding-right: 60px; /* Avoid overlapping with switch */
}

/* Modal Button Wrapper */
.dcb-modal-button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.dcb-modal-button-wrapper button {
    flex-grow: 1;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: filter 0.2s, background-color 0.2s, color 0.2s;
}

/* Re-open Tab */
#dcb-reopen-tab {
    position: fixed;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 999;
    display: none;
    transition: filter 0.2s;
}

/* Desktop Styles for Modal */
@media (min-width: 768px) {
    #dcb-settings-modal {
        background-color: rgba(0,0,0,0.6); /* Restore overlay */
        align-items: center; /* Re-center vertically */
        padding: 20px;
    }

    .dcb-modal-content {
        padding: 30px;
        border-radius: 8px;
        width: 100%;
        max-width: 500px;
        height: auto;
        max-height: 90vh;
    }

    .dcb-modal-button-wrapper {
        flex-direction: row;
    }
}