.rd-qo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    padding: 20px;
}
.rd-qo-overlay.is-open { display: flex; }

.rd-qo-dialog {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.rd-qo-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}
.rd-qo-close:hover { background: #f3f3f3; color: #000; }

.rd-qo-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a1a;
}
.rd-qo-subtitle {
    color: #5a6b80;
    font-size: 13px;
    margin: 0 0 18px;
    line-height: 1.4;
}

.rd-qo-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-qo-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rd-qo-field > span {
    color: #5a6b80;
    font-size: 12px;
    font-weight: 500;
}
.rd-qo-field input,
.rd-qo-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d4d8df;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color .15s ease;
}
.rd-qo-field input:focus,
.rd-qo-field textarea:focus {
    border-color: #1a5fb4;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, .12);
}
.rd-qo-field textarea { resize: vertical; min-height: 70px; }

.rd-qo-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #5a6b80;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}
.rd-qo-agree input[type=checkbox] { margin-top: 2px; flex-shrink: 0; }

.rd-qo-status {
    font-size: 13px;
    line-height: 1.4;
    min-height: 0;
}
.rd-qo-status.is-error   { color: #d31700; padding: 6px 0; }
.rd-qo-status.is-success { color: #1a8a4e; padding: 6px 0; }
.rd-qo-status.is-error ul { list-style: disc; margin: 0; padding-left: 18px; }
.rd-qo-status.is-error li { margin: 2px 0; }

.rd-qo-submit {
    background: #1a5fb4;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.rd-qo-submit:hover:not(:disabled) { background: #154f93; }
.rd-qo-submit:disabled {
    background: #9ab5d6;
    cursor: progress;
}

/* Кнопка «Купить в один клик» в корзине */
.rd-cart-quick-order {
    display: block;
    width: 100%;
    background: #fff;
    color: #1a5fb4;
    border: 1px solid #1a5fb4;
    border-radius: 6px;
    padding: 12px 22px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.rd-cart-quick-order:hover {
    background: #1a5fb4;
    color: #fff;
}
