.start-vre-live-capacity {
    box-sizing: border-box;
    width: 100%;
    margin: 14px 0;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.start-vre-live-capacity--checking,
.start-vre-live-capacity--neutral {
    background: #f5f5f5;
    border: 1px solid #dddddd;
    color: #333333;
}

.start-vre-live-capacity--success {
    background: #edf8f0;
    border: 1px solid #b9dfc2;
    color: #185c2a;
}

.start-vre-live-capacity--error {
    background: #fff1c9;
    border: 1px solid #f0d77d;
    color: #3d3213;
}


/* v0.2.2: feedback visivo senza modificare lo stato disabled gestito da VikRestaurants */
form[data-start-vre-blocked="1"] button[type="submit"],
form[data-start-vre-blocked="1"] input[type="submit"] {
    opacity: 0.58;
    cursor: not-allowed;
}

/* v0.7.2 - consenso Termini e condizioni */
.start-vre-terms-row {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    align-items: start !important;
    justify-items: start !important;
    width: 100% !important;
    text-align: left !important;
}

.start-vre-terms-row > .start-vre-terms-checkbox-wrap,
.start-vre-terms-row > input[type="checkbox"] {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.start-vre-terms-row input[type="checkbox"] {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 2px 0 0 0 !important;
    float: none !important;
    position: static !important;
}

.start-vre-terms-row .start-vre-terms-text,
.start-vre-terms-row label,
.start-vre-terms-row p,
.start-vre-terms-row span:has(a.start-vre-terms-modal-link),
.start-vre-terms-row div:has(> a.start-vre-terms-modal-link) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

.start-vre-terms-row a.start-vre-terms-modal-link {
    display: inline !important;
}

/* Modale termini: volutamente indipendente dal tema WordPress/Vik. */
.start-vre-terms-modal[hidden] {
    display: none !important;
}

.start-vre-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.start-vre-terms-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(2px);
}

.start-vre-terms-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    height: min(760px, 88vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.start-vre-terms-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.start-vre-terms-modal__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
}

.start-vre-terms-modal__close {
    appearance: none;
    border: 0;
    background: #f3f4f6;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
}

.start-vre-terms-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
}

.start-vre-terms-modal__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

body.start-vre-modal-open {
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .start-vre-terms-modal {
        padding: 10px;
    }

    .start-vre-terms-modal__dialog {
        height: 92vh;
        border-radius: 13px;
    }
}
