.toto-order-modal[hidden] { display: none !important; }
body.toto-order-open #scrollUp { display: none !important; }
.toto-order-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.toto-order-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 9, 37, .64);
}
.toto-order-panel {
    position: relative;
    width: min(100%, 620px);
    max-height: min(92vh, 800px);
    overflow-y: auto;
    padding: 28px 34px 32px;
    border: 1px solid #fcb040;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 65px rgba(3, 9, 37, .24);
    color: #030925;
}
.toto-order-panel h2 {
    margin: 0 42px 5px;
    color: #030925;
    font-size: 29px;
    line-height: 1.2;
    text-align: center;
}
.toto-order-intro {
    margin: 0 0 22px;
    color: #545a6b;
    font-size: 16px;
    text-align: center;
}
.toto-order-intro strong { color: #e55e26; }
.toto-order-close {
    position: absolute;
    top: 12px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #616675;
    cursor: pointer;
    font: 30px/1 Arial, sans-serif;
}
.toto-order-close:hover { background: #fff3e5; color: #d9531f; }
.toto-order-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 18px;
}
.toto-order-field {
    display: block;
    min-width: 0;
    color: #030925;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.toto-order-field > span { color: #e55e26; }
.toto-order-field input,
.toto-order-field select {
    display: block;
    width: 100%;
    height: 47px;
    margin: 7px 0 0;
    padding: 0 13px;
    border: 1px solid #d6d8df;
    border-radius: 8px;
    background: #fff;
    color: #030925;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    box-shadow: none;
}
.toto-order-field input::placeholder { color: #8c90a0; }
.toto-order-field input:focus,
.toto-order-field select:focus {
    border-color: #ef7624;
    outline: 2px solid rgba(239, 118, 36, .18);
}
.toto-order-close:focus-visible,
.toto-order-submit:focus-visible {
    outline: 3px solid #1b4eab;
    outline-offset: 2px;
}
.toto-order-required {
    margin: 15px 0 0;
    color: #777d89;
    font-size: 13px;
}
.toto-order-message {
    min-height: 22px;
    margin: 9px 0 14px;
    color: #bb3b22;
    font-size: 14px;
    line-height: 1.4;
}
.toto-order-message.is-success { color: #187148; }
.toto-order-submit {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #fcb040;
    color: #030925;
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.toto-order-submit:hover { background: #ef7624; color: #fff; }
.toto-order-submit:disabled { cursor: wait; opacity: .65; }
@media (max-width: 600px) {
    .toto-order-modal { align-items: flex-end; padding: 0; }
    .toto-order-panel {
        width: 100%;
        max-height: 95vh;
        padding: 25px 20px 25px;
        border-radius: 18px 18px 0 0;
    }
    .toto-order-panel h2 { margin: 0 35px 5px; font-size: 24px; }
    .toto-order-fields { gap: 13px 12px; }
    .toto-order-field:not(.toto-order-field--short) { grid-column: 1 / -1; }
}
