/* SILVER-CUSTOM: M5-bron (2026-07-15) — стили бронирования (кнопка + попап по мокапам партнёра).
   Боевое место: /local/silver-bron/bron.css. Откат: убрать подключение из component_epilog.php. */

/* кнопка на карточке, рядом со статусом наличия */
.sbron-btn {
    border: 1.6px solid #32CB41;
    color: #32CB41;
    background: #fff;
    border-radius: 18px;
    padding: 5px 14px;
    margin-left: 12px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    vertical-align: middle;
    transition: background .15s, color .15s;
}
.sbron-btn:hover { background: #32CB41; color: #fff; }
/* контейнер статуса с нашей кнопкой: разрешаем перенос — на узких экранах
   кнопка переезжает на следующую строку, а не выталкивается за край */
.sbron-row { flex-wrap: wrap !important; row-gap: 8px; }
.sbron-btn { flex-shrink: 0; }

/* попап */
.sbron-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.sbron-popup {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 20px 18px;
    color: #222;
    font-size: 14px;
    line-height: 1.45;
}
.sbron-x {
    position: absolute;
    right: 10px;
    top: 6px;
    border: 0;
    background: none;
    color: #b5b5b5;
    font-size: 20px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
}
.sbron-x:hover { color: #777; }
.sbron-loading { text-align: center; color: #777; padding: 30px 0; }

/* экран 2 — выбор магазина */
.sbron-title {
    font-size: 16.5px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 16px;
    padding: 0 14px;
}
.sbron-title small {
    display: block;
    font-weight: 400;
    font-size: 13.5px;
    color: #555;
    margin-top: 4px;
}
.sbron-shop { border-top: 1px solid #e7e7e7; padding: 13px 2px; }
.sbron-shop:first-of-type { border-top: 0; }
.sbron-shop-name { font-size: 14.5px; font-weight: 600; }
.sbron-shop-meta { font-size: 12.5px; color: #8b8b8b; margin-top: 2px; }
.sbron-nowrap { white-space: nowrap; }
.sbron-shop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.sbron-st { font-size: 13px; }
.sbron-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #32CB41;
    color: #fff;
    font-size: 11px;
    vertical-align: -3px;
}
.sbron-pick {
    border: 1.6px solid #32CB41;
    color: #32CB41;
    background: #fff;
    border-radius: 18px;
    padding: 5px 14px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.sbron-pick:hover { background: #32CB41; color: #fff; }

/* экран 3 — форма */
.sbron-head {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    margin: 4px 0 12px;
    padding: 0 14px;
}
.sbron-promise {
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    text-align: center;
    color: #444;
    background: #fafafa;
    margin-bottom: 16px;
}
.sbron-inp {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7d7d7;
    border-radius: 22px;
    padding: 12px 16px;
    font-size: 14.5px;
    margin-bottom: 12px;
    color: #222;
    background: #fff;
}
.sbron-inp::placeholder { color: #9a9a9a; }
.sbron-inp:focus { outline: none; border-color: #32CB41; }
.sbron-hp { display: none !important; } /* honeypot для ботов */
.sbron-err {
    color: #d33;
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
}
.sbron-send {
    display: block;
    width: 100%;
    border: 1.6px solid #32CB41;
    background: #32CB41;
    color: #fff;
    border-radius: 22px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.sbron-send:hover { background: #2ab837; }
.sbron-send[disabled] { opacity: .6; cursor: default; }
.sbron-pdn {
    font-size: 11px;
    color: #a5a5a5;
    text-align: center;
    margin-top: 10px;
    line-height: 1.45;
}

/* экран 4 — подтверждение */
.sbron-ok {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #32CB41;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 14px;
}
.sbron-strong {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
}
.sbron-till { color: #32CB41; }
.sbron-line { text-align: center; font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
.sbron-note { text-align: center; font-size: 13.5px; color: #555; line-height: 1.55; }

@media (max-width: 480px) {
    .sbron-popup { padding: 18px 14px; }
}
