/*
 * WP Rentalo – shared validation modal.
 *
 * Used by wp-admin customer screens, Rentalo Control and the customer area.
 * Keep this component surface-neutral; context-specific refinements belong to
 * the later Control/customer responsive layers.
 */
.rentalo-country-other[hidden] {
    display: none;
}

.rentalo-validation-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
}

.rentalo-validation-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,31,45,.62);
}

.rentalo-validation-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100vw - 32px));
    max-width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.3);
    box-sizing: border-box;
    overscroll-behavior: contain;
}

.rentalo-validation-modal-dialog h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.rentalo-validation-modal-dialog p {
    margin: 0 0 20px;
}

.rentalo-validation-modal-dialog button {
    min-width: 100px;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: var(--rentalo-primary-color, #006699);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
