/**
 * DE Redirect Modal
 * Modale bloquante affichée sur le checkout FR/EN/PL quand le pays
 * de facturation est DE, AT ou CH.
 */

.xs-de-redirect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.xs-de-redirect-modal.is-open {
    display: flex;
}

.xs-de-redirect-modal[hidden] {
    display: none;
}

.xs-de-redirect-modal.is-open[hidden] {
    display: flex;
}

.xs-de-redirect-modal__dialog {
    background: #fff;
    border-radius: 8px;
    max-width: 480px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    position: relative;
}

.xs-de-redirect-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: none;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    border-radius: 4px;
}

.xs-de-redirect-modal__close:hover {
    color: #000;
    background: #f5f5f5;
}

.xs-de-redirect-modal__title {
    font-size: 1.25rem;
    margin: 0 0 12px;
    font-weight: 600;
    padding-right: 32px;
}

.xs-de-redirect-modal__text {
    margin: 0 0 24px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.xs-de-redirect-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xs-de-redirect-modal__go,
.xs-de-redirect-modal__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.2;
    box-sizing: border-box;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.xs-de-redirect-modal__go {
    background: #d4002a;
    color: #fff;
    border-color: #d4002a;
}

.xs-de-redirect-modal__go:hover,
.xs-de-redirect-modal__go:focus {
    background: #b00022;
    border-color: #b00022;
    color: #fff;
}

.xs-de-redirect-modal__go.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.xs-de-redirect-modal__edit {
    background: #f5f5f5;
    color: #333;
    border-color: #e0e0e0;
}

.xs-de-redirect-modal__edit:hover,
.xs-de-redirect-modal__edit:focus {
    background: #e8e8e8;
    color: #000;
}

body.xs-modal-open {
    overflow: hidden;
}
