/* Order modal (static-site/order-modal.js). Colours from the onepage theme: navy 39,53,130, text 5,13,43. */
/* scroll lock; the gutter keeps the scrollbar's space so the page does not get wider and re-wrap
   (older Safari without scrollbar-gutter: order-modal.js pads by the scrollbar width instead) */
.vr24-modal-open { overflow: hidden; scrollbar-gutter: stable; }

.vr24-modal {
    width: calc(100% - 32px);
    max-width: 520px;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: rgb(5, 13, 43);
    box-shadow: 0 24px 64px rgba(5, 13, 43, .35);
    font-family: var(--font-kit-text-font, "Onest", system-ui, -apple-system, sans-serif);
    overflow: auto;
}
.vr24-modal::backdrop { background: rgba(5, 13, 43, .6); }

.vr24-modal__box { position: relative; padding: 32px 32px 24px; }
.vr24-modal__close {
    position: absolute; top: 8px; right: 8px;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: transparent; color: rgb(5, 13, 43);
    font-size: 28px; line-height: 1; cursor: pointer;
}
.vr24-modal__close:hover { background: rgba(5, 13, 43, .06); }
.vr24-modal__close:focus-visible,
.vr24-modal__submit:focus-visible,
.vr24-modal__note a:focus-visible { outline: 3px solid rgba(39, 53, 130, .45); outline-offset: 2px; }

.vr24-modal__title {
    margin: 0 40px 8px 0;
    font-family: var(--font-kit-header-font, inherit);
    font-size: 24px; line-height: 1.25; font-weight: 700;
}
.vr24-modal__intro { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: rgba(5, 13, 43, .7); }

.vr24-modal__row { margin: 0 0 14px; }
.vr24-modal__row label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.vr24-modal__req { color: #b42318; }
.vr24-modal__row input {
    box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px;
    border: 1px solid rgba(5, 13, 43, .25); border-radius: 8px;
    background: #fff; color: inherit; font: inherit; font-size: 16px; /* 16px: no zoom on iOS */
}
.vr24-modal__row input:focus { outline: none; border-color: rgb(39, 53, 130); box-shadow: 0 0 0 3px rgba(39, 53, 130, .2); }
.vr24-modal__row input[aria-invalid="true"] { border-color: #b42318; }

/* the same form inline on /bestellanfrage */
.order-form { max-width: 560px; }

/* product choice */
.vr24-product { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; color: rgb(5, 13, 43); font-family: "Onest", system-ui, sans-serif; }
.vr24-product legend { margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; }
.vr24-product__options { display: flex; flex-wrap: wrap; gap: 8px; }
.vr24-product label {
    flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 14px; border: 1px solid rgba(5, 13, 43, .25); border-radius: 8px;
    background: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
}
.vr24-product input { width: 18px; height: 18px; margin: 0; accent-color: rgb(39, 53, 130); }
.vr24-product label:has(input:checked) { border-color: rgb(39, 53, 130); background: rgba(39, 53, 130, .07); }
.vr24-product label:has(input:focus-visible) { outline: 3px solid rgba(39, 53, 130, .45); outline-offset: 2px; }

.vr24-modal__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vr24-modal__hint { margin: 4px 0 0; font-size: 13px; color: rgba(5, 13, 43, .6); }
.vr24-modal__error:empty { display: none; }
.vr24-modal__error { margin: 12px 0 0; color: #b42318; font-weight: 600; font-size: 14px; }

.vr24-modal__submit {
    display: block; width: 100%; min-height: 56px; margin: 18px 0 0; padding: 8px 24px;
    border: 0; border-radius: 8px;
    background: rgb(242, 140, 37); color: rgb(5, 13, 43);
    font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 16px rgba(242, 140, 37, .25);
}
.vr24-modal__submit:hover { background: rgb(255, 160, 74); }
.vr24-modal__submit:disabled { opacity: .7; cursor: progress; }

.vr24-modal__note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: rgba(5, 13, 43, .6); }
.vr24-modal__note a { color: rgb(39, 53, 130); }

@media (max-width: 600px) {
    .vr24-modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; }
    .vr24-modal__box { padding: 24px 16px 32px; }
    .vr24-modal__title { font-size: 21px; }
}
