.moto-oos-request {
    margin-top: 1rem;
}

/* вариация без наличия: вместо неактивной «В корзину» — только наша кнопка */
.variations_form.moto-oos-variation .woocommerce-variation-add-to-cart {
    display: none !important;
}

.moto-oos-request[hidden],
.moto-oos-modal[hidden],
.moto-oos-modal [hidden] {
    display: none !important;
}

.moto-oos-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.moto-oos-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.moto-oos-modal__box {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 2rem;
    background: var(--color-content-bg, #fff);
    color: var(--color-content-text, inherit);
    border-radius: var(--inputs-border-radius, 8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

.moto-oos-modal__close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    padding: 0 .25rem;
    background: none;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    color: inherit;
    opacity: .5;
    cursor: pointer;
}

.moto-oos-modal__close:hover {
    opacity: 1;
}

.moto-oos-modal__title {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    margin-bottom: .25rem;
}

.moto-oos-modal__product {
    margin-bottom: 1.25rem;
    opacity: .75;
}

.moto-oos-form__row {
    margin-bottom: .75rem;
}

.moto-oos-form__row input {
    width: 100%;
}

.moto-oos-form__hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.moto-oos-form__agree {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    font-size: .875rem;
    line-height: 1.4;
    cursor: pointer;
}

.moto-oos-form__agree input {
    flex-shrink: 0;
    margin-top: .2em;
}

.moto-oos-form__error {
    color: #e53935;
    font-size: .875rem;
}

.moto-oos-form__error:empty {
    display: none;
}

.moto-oos-form__submit {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

.moto-oos-form__submit:disabled {
    opacity: .6;
    cursor: wait;
}

.moto-oos-modal__success {
    padding: 1rem 0;
    font-size: 1.1rem;
}

body.moto-oos-modal-open {
    overflow: hidden;
}
