
.kkt-ofd-checkout{cursor:pointer}
.kkt-ofd-modal[hidden]{display:none!important}
.kkt-ofd-modal{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:18px}
.kkt-ofd-card{width:min(460px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 24px 80px rgba(0,0,0,.28);font-family:Arial,sans-serif;color:#222}
.kkt-ofd-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.kkt-ofd-head h3{margin:0;font-size:24px}
.kkt-ofd-sub{margin:4px 0 18px;color:#777;font-size:13px}
.kkt-ofd-close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer}
.kkt-ofd-field{margin:0 0 12px}
.kkt-ofd-field label{display:block;font-weight:700;font-size:12px;margin-bottom:5px}
.kkt-ofd-field input{width:100%;box-sizing:border-box;border:1px solid #ddd;border-radius:10px;padding:11px 12px;font-size:15px}
.kkt-ofd-price{border:1px solid #ffd08a;background:#fff9ef;border-radius:12px;padding:12px;margin:12px 0}
.kkt-ofd-row{display:flex;justify-content:space-between;gap:12px;margin:5px 0}
.kkt-ofd-old{text-decoration:line-through;color:#888}
.kkt-ofd-good{color:#168a43;font-weight:700}
.kkt-ofd-error{display:none;background:#fff0f0;color:#b42318;padding:10px;border-radius:9px;margin:8px 0;font-size:13px}
.kkt-ofd-error.show{display:block}
.kkt-ofd-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kkt-ofd-btn{border:0;border-radius:11px;padding:13px 14px;font-weight:700;cursor:pointer}
.kkt-ofd-primary{background:#ff9700;color:#fff}
.kkt-ofd-secondary{background:#f2f2f2;color:#222}
.kkt-ofd-btn:disabled{opacity:.5;cursor:not-allowed}
.kkt-ofd-status{background:#fff8ec;border-radius:10px;padding:11px;margin:12px 0;font-size:13px}
.kkt-ofd-codes{font-family:monospace;font-size:17px;white-space:pre-wrap;word-break:break-all;background:#f7f7f7;padding:14px;border-radius:10px;text-align:left}
.kkt-ofd-copy{width:100%;margin-top:10px}
@media(max-width:520px){.kkt-ofd-card{padding:18px;border-radius:14px}.kkt-ofd-actions{grid-template-columns:1fr}.kkt-ofd-btn{min-height:50px}}

.kkt-ofd-card #kktOfdQr{margin:14px auto;text-align:center}
.kkt-ofd-card #kktOfdQr svg{display:block;max-width:240px;width:100%;height:auto;margin:0 auto}
.kkt-ofd-card #kktOfdBank{width:100%;margin-top:10px}

/* 2.0.4 — возвращён старый дизайн окна успешной выдачи */
.kkt-ofd-result{
    text-align:center;
}
.kkt-ofd-result-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    text-align:left;
}
.kkt-ofd-result-head h2{
    margin:0 0 5px;
    font-size:24px;
    line-height:1.2;
    font-weight:800;
    color:#222;
}
.kkt-ofd-result-head p{
    margin:0;
    color:#716a63;
    font-size:13px;
    line-height:1.45;
}
.kkt-ofd-result-close{
    flex:0 0 auto;
}
.kkt-ofd-result-code{
    margin:18px 0 10px;
    padding:16px;
    border:2px dashed #ff9f00;
    border-radius:14px;
    font-size:24px;
    font-weight:800;
    word-break:break-all;
    white-space:pre-line;
    line-height:1.7;
    background:#fff9ee;
    color:#222;
}
.kkt-ofd-result-meta{
    color:#716a63;
    line-height:1.55;
    margin-bottom:18px;
    font-size:13px;
    text-align:center;
}
.kkt-ofd-result-copy{
    width:100%;
    min-height:48px;
    border:2px solid #ff9f00;
    border-radius:24px;
    background:#fff;
    color:#ff9f00;
    font-weight:800;
    cursor:pointer;
}
.kkt-ofd-result-copy:hover{
    background:#fff9ee;
}
@media(max-width:520px){
    .kkt-ofd-result-head h2{font-size:21px}
    .kkt-ofd-result-code{font-size:20px;padding:14px}
}


/* v2.0.6 — запрос отсутствующего товара */
.kkt-ofd-stock-note{
    margin:12px 0 10px;
    padding:12px 14px;
    border-radius:14px;
    background:#fff7e6;
    border:1px solid #ffd38a;
    color:#5e4a28;
    font-size:14px;
    line-height:1.45;
}
.kkt-ofd-stock-note strong{
    color:#2e261c;
}
.kkt-ofd-request{
    cursor:pointer !important;
    opacity:1 !important;
}
.kkt-ofd-request-result{
    padding:28px;
}


/* v2.0.7 — строгий режим запроса товара */
#kktOfdRequest:not([hidden]) {
    display: inline-flex !important;
}
.kkt-ofd-request-mode #kktOfdPayCard,
.kkt-ofd-request-mode #kktOfdPaySbp {
    display: none !important;
}


/* v2.0.10 — постоянное сообщение на карточке товара при нулевом остатке */
.kkt-ofd-stock-note[data-kkt-generated="1"] {
    display: block !important;
    margin: 8px 0 10px;
    font-size: 13px;
    line-height: 1.4;
}
