/* Custom Cookie Banner Styling - Desktop Version */
@media (min-width: 1440px) {
    .lcc-modal.lcc-modal--alert {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 120px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10001;
        padding: 20px 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
        overflow: hidden;
        height: fit-content;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__text-content {
        flex: 1;
        min-width: 0;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__title {
        font-size: 20px;
        font-weight: 700;
        color: #000;
        margin: 0 0 8px 0;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .lcc-modal.lcc-modal--alert .lcc-text {
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        margin: 0;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__actions {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin: 0;
        min-width: 200px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .lcc-modal.lcc-modal--alert .lcc-button {
        width: 171px;
        height: 62px;
        padding: 0;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        text-transform: capitalize;
        letter-spacing: 0.5px;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--preference {
        background: white;
        color: #0066cc;
        border: 1px solid #0066cc;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--preference:hover {
        background: #f8f9fa;
        border-color: #0052a3;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--essential {
        background: #6C8BA3;
        color: white;
        border: 1px solid #6C8BA3;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--essential:hover {
        background: #5a7a8f;
        border-color: #5a7a8f;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--accept {
        background: #6C8BA3;
        color: white;
        border: 1px solid #6C8BA3;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--accept:hover {
        background: #5a7a8f;
        border-color: #5a7a8f;
    }

    /* Close button for alert modal */
    .lcc-modal.lcc-modal--alert .lcc-modal__close {
        position: absolute;
        right: 15px;
        top: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
        z-index: 10003;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__close:hover {
        background-color: #f0f0f0;
        color: #333;
    }

    /* Settings modal styling */
    .lcc-modal.lcc-modal--settings {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 10002;
        padding: 30px;
        overflow: hidden;
        height: fit-content;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__close {
        position: absolute;
        right: 15px;
        top: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__close:hover {
        background-color: #f0f0f0;
        color: #333;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__title {
        font-size: 20px;
        font-weight: 700;
        color: #000;
        margin: 0 0 15px 0;
        padding-right: 40px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .lcc-modal.lcc-modal--settings .lcc-text {
        font-size: 14px;
        line-height: 1.6;
        color: #333;
        margin: 0 0 20px 0;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__section {
        margin-bottom: 10px;
        padding: 8px;
        background: white;
    }

    .lcc-modal.lcc-modal--settings .lcc-label {
        display: flex;
        align-items: center;
        font-weight: 600;
        font-size: 14px;
        color: #333;
        margin-bottom: 8px;
        cursor: pointer;
    }

    .lcc-modal.lcc-modal--settings .lcc-label input[type="checkbox"] {
        margin-right: 12px;
        width: 18px;
        height: 18px;
    }

    .lcc-modal.lcc-modal--settings .lcc-text {
        font-size: 14px;
        line-height: 1.5;
        color: #666;
        margin: 0 0 0 30px;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__actions {
        margin-top: 30px;
        text-align: center;
    }

    .lcc-modal.lcc-modal--settings .lcc-button {
        background: #6C8BA3;
        color: white;
        border: 1px solid #6C8BA3;
        width: 200px;
        height: 45px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        text-transform: capitalize;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .lcc-modal.lcc-modal--settings .lcc-button:hover {
        background: #5a7a8f;
        border-color: #5a7a8f;
    }

    /* Backdrop styling */
    .lcc-backdrop {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10000;
        transition: opacity 0.2s ease-in-out;
    }
}

/* Mobile Version - Show as modal overlay */
@media (max-width: 1439px) {
    .lcc-modal.lcc-modal--alert {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 10001;
        padding: 25px;
        overflow: hidden;
        height: fit-content;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__content {
        display: block;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__text-content {
        margin-bottom: 20px;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__title {
        font-size: 20px;
        font-weight: 700;
        color: #000;
        margin: 0 0 12px 0;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .lcc-modal.lcc-modal--alert .lcc-text {
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        margin: 0 0 20px 0;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0;
    }

    .lcc-modal.lcc-modal--alert .lcc-button {
        width: 100%;
        height: 62px;
        padding: 0;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        text-transform: capitalize;
        letter-spacing: 0.5px;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.2;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--preference {
        background: white;
        color: #0066cc;
        border: 1px solid #0066cc;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--preference:hover {
        background: #f8f9fa;
        border-color: #0052a3;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--essential {
        background: #6C8BA3;
        color: white;
        border: 1px solid #6C8BA3;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--essential:hover {
        background: #5a7a8f;
        border-color: #5a7a8f;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--accept {
        background: #6C8BA3;
        color: white;
        border: 1px solid #6C8BA3;
    }

    .lcc-modal.lcc-modal--alert .lcc-button--accept:hover {
        background: #5a7a8f;
        border-color: #5a7a8f;
    }

    /* Close button for alert modal on mobile */
    .lcc-modal.lcc-modal--alert .lcc-modal__close {
        position: absolute;
        right: 15px;
        top: 15px;
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #666;
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
        z-index: 10003;
    }

    .lcc-modal.lcc-modal--alert .lcc-modal__close:hover {
        background-color: #f0f0f0;
        color: #333;
    }

    /* Settings modal for mobile */
    .lcc-modal.lcc-modal--settings {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 10002;
        padding: 40px;
        overflow: hidden;
        height: fit-content;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__close {
        position: absolute;
        right: 15px;
        top: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__close:hover {
        background-color: #f0f0f0;
        color: #333;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__title {
        font-size: 10px;
        font-weight: 700;
        color: #000;
        margin: 0 0 0 20px;
        padding-right: 40px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .lcc-modal.lcc-modal--settings .lcc-text {
        font-size: 14px;
        line-height: 1.4;
        color: #333;
        margin: 0 0 10px 0;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__section {
        margin-bottom: 8px;
        padding: 6px;
        border-radius: 4px;
        background: white;
    }

    .lcc-modal.lcc-modal--settings .lcc-label {
        display: flex;
        align-items: center;
        font-weight: 600;
        font-size: 10px;
        color: #333;
        margin-bottom: 4px;
        cursor: pointer;
    }

    .lcc-modal.lcc-modal--settings .lcc-label input[type="checkbox"] {
        margin-right: 8px;
        width: 12px;
        height: 12px;
    }

    .lcc-modal.lcc-modal--settings .lcc-text {
        font-size: 10px;
        line-height: 1.3;
        color: #666;
        margin: 0 0 0 20px;
    }

    .lcc-modal.lcc-modal--settings .lcc-modal__actions {
        margin-top: 15px;
        text-align: center;
    }

    .lcc-modal.lcc-modal--settings .lcc-button {
        background: #6C8BA3;
        color: white;
        border: 1px solid #6C8BA3;
        width:200px;
        height: 35px;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 600;
        text-transform: capitalize;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 10px auto;
    }

    .lcc-modal.lcc-modal--settings .lcc-button:hover {
        background: #5a7a8f;
        border-color: #5a7a8f;
    }

    /* Backdrop styling */
    .lcc-backdrop {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10000;
        transition: opacity 0.2s ease-in-out;
    }
}

/* Utility classes */
.lcc-u-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.lcc-u-text-center {
    text-align: center !important;
}

/* Ensure the banner doesn't prevent scrolling on desktop */
@media (min-width: 1440px) {
    body:not(.js-lcc-active) {
        overflow: auto !important;
    }
    
    .js-lcc-active {
        overflow: auto !important;
    }
}

/* Only prevent scrolling when settings modal is open */
.js-lcc-active .lcc-modal--settings {
    overflow: hidden;
}
