/* ============================================
   ЛИЧНЫЙ КАБИНЕТ: дашборд (/my-account)
   Основная вёрстка (принято).
   ============================================ */

.rf-account,
.rf-orders,
.rf-oi {
    --rf-bg: #ffffff;
    --rf-surface: #f6f8f6;
    --rf-surface-2: #ffffff;
    --rf-border: #e3e8e3;
    --rf-text: #1a1f1a;
    --rf-text-muted: #5a655a;
    --rf-accent: #2d6a3e;
    --rf-accent-dark: #1f4a2c;
    --rf-accent-deep: #1a3324;
    --rf-accent-soft: #e8f3ec;
    --rf-danger: #c8342a;
    --rf-danger-soft: #fdecea;
    --rf-radius: 14px;
    --rf-radius-sm: 8px;
    --rf-shadow-hover: 0 4px 8px rgba(15, 30, 18, .06), 0 12px 30px rgba(15, 30, 18, .08);

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    color: var(--rf-text);
    line-height: 1.55;
    font-size: 15px;
}

.rf-account *,
.rf-account *::before,
.rf-account *::after,
.rf-orders *,
.rf-orders *::before,
.rf-orders *::after,
.rf-oi *,
.rf-oi *::before,
.rf-oi *::after {
    box-sizing: border-box;
}

/* ===== Приветствие ===== */
.rf-account__greet {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 4px 0 22px;
    border-bottom: 1px solid var(--rf-border);
    margin-bottom: 24px;
}

.rf-account__avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3324 0%, #2d6a3e 100%); /* --rf-accent-deep → --rf-accent */
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .02em;
}

.rf-account__greet-body {
    flex: 1 1 200px;
    min-width: 0;
}

.rf-account__title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 2px;
    color: var(--rf-text);
}

.rf-account__email {
    font-size: 13px;
    color: var(--rf-text-muted);
}

.rf-account__stats {
    display: flex;
    gap: 20px;
}

.rf-account__stat {
    text-align: center;
    padding: 6px 16px;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
}

.rf-account__stat b {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--rf-accent-dark);
    line-height: 1.2;
}

.rf-account__stat span {
    font-size: 12px;
    color: var(--rf-text-muted);
}

/* ===== Последний заказ ===== */
.rf-last-order {
    background: var(--rf-surface-2);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    overflow: hidden;
}

.rf-last-order__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: var(--rf-surface);
    border-bottom: 1px solid var(--rf-border);
}

.rf-last-order__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rf-accent-dark);
}

.rf-last-order__body {
    display: flex;
    align-items: center;
    gap: 12px 28px;
    flex-wrap: wrap;
    padding: 18px 20px;
}

.rf-last-order__cell span {
    display: block;
    font-size: 11px;
    color: var(--rf-text-muted);
    margin-bottom: 2px;
}

.rf-last-order__cell b {
    font-size: 15px;
    font-weight: 700;
    color: var(--rf-text);
}

.rf-last-order__sum {
    color: var(--rf-accent-dark);
    font-size: 17px !important;
}

.rf-last-order__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex-wrap: wrap;
}

.rf-last-order__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--rf-accent);
    border-radius: var(--rf-radius-sm);
    text-decoration: none;
    transition: background .15s;
}

.rf-last-order__btn:hover {
    background: var(--rf-accent-dark);
    color: #fff;
    text-decoration: none;
}

.rf-last-order__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--rf-accent);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

.rf-last-order__link:hover {
    color: var(--rf-accent-dark);
}

/* Пустое состояние */
.rf-last-order--empty {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px 20px;
    flex-wrap: wrap;
}

.rf-last-order--empty .rf-last-order__label {
    flex: 1 1 100%;
}

.rf-last-order__empty-text {
    margin: 0;
    font-size: 14px;
    color: var(--rf-text-muted);
}

/* ===== Бейдж статуса заказа ===== */
.rf-order-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.rf-order-badge--wait {    /* Ожидает оплаты */
    background: #fff8e6;
    color: #8a6300;
}

.rf-order-badge--paid {    /* Оплачен */
    background: var(--rf-accent-soft);
    color: var(--rf-accent-dark);
}

.rf-order-badge--packed {  /* Поставлен на отправку */
    background: #eef4ef;
    color: var(--rf-accent);
}

.rf-order-badge--shipped { /* Отправлен */
    background: linear-gradient(135deg, #1a3324 0%, #2d6a3e 100%);
    color: #fff;
}

.rf-order-badge--expired { /* Истек период оплаты */
    background: var(--rf-danger-soft);
    color: var(--rf-danger);
}

.rf-order-badge--neutral {
    background: var(--rf-surface);
    color: var(--rf-text-muted);
}

/* ===== Быстрые плитки ===== */
.rf-account__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.rf-account__tile {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 20px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.rf-account__tile:hover,
.rf-account__tile:focus {
    transform: translateY(-3px);
    border-color: var(--rf-accent);
    box-shadow: var(--rf-shadow-hover);
    text-decoration: none;
}

.rf-account__tile .rf-card__title {
    margin: 0 0 4px;
    font-size: 15px;
}

.rf-account__tile .rf-card__desc {
    margin: 0;
    font-size: 13px;
}

/* ===== CTA внизу ===== */
.rf-account .rf-cta {
    text-align: center;
}

.rf-account .rf-cta__note a {
    color: #fff;
    text-decoration: underline;
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
    .rf-account__greet {
        padding-bottom: 16px;
    }

    .rf-account__title {
        font-size: 20px;
    }

    .rf-last-order__actions {
        margin-left: 0;
        width: 100%;
    }

    .rf-last-order__btn {
        flex: 1 1 100%;
    }
}

/* Сумма под счётчиком + акцент плитки «успешных» */
.rf-account__stat-sum {
    display: block;
    font-size: 11px;
    color: var(--rf-text-muted);
    margin-top: 2px;
    white-space: nowrap;
}

.rf-account__stat--ok {
    border-color: #1a3324; /* --rf-accent-deep */
    background: linear-gradient(135deg, #1a3324 0%, #2d6a3e 100%); /* --rf-accent-deep → --rf-accent */
}

.rf-account__stat--ok b {
    color: #fff;
}

.rf-account__stat--ok span,
.rf-account__stat--ok .rf-account__stat-sum {
    color: rgba(255, 255, 255, .75);
}

/* Кнопка «Выйти» в приветствии */
.rf-account__logout {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rf-danger); /* #c8342a */
    background: var(--rf-danger-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.rf-account__logout:hover,
.rf-account__logout:focus {
    background: var(--rf-danger);
    color: #fff;
    text-decoration: none;
}

.rf-account__logout svg {
    width: 15px;
    height: 15px;
}

/* ===== История заказов: список (rf) =====
   Карточка переиспользует стили rf-last-order с дашборда,
   здесь — только сетка списка и кнопка подгрузки. */
.rf-orders {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.rf-orders__item.rf-last-order {
    margin: 0;
}

.rf-orders__more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.rf-orders__count {
    font-size: 13px;
    color: #5a655a; /* --rf-text-muted */
}

.rf-orders__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    background: #fff;
    border: 1px solid #2d6a3e; /* --rf-accent */
    border-radius: 999px;
    color: #1f4a2c; /* --rf-accent-dark */
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.rf-orders__more:hover,
.rf-orders__more:focus {
    background: #2d6a3e; /* --rf-accent */
    color: #fff;
}

.rf-orders__more.is-busy {
    opacity: .55;
    cursor: default;
}

.rf-orders__done {
    text-align: center;
    font-size: 13px;
    color: #9aa49a; /* --rf-neutral-400 */
    margin-top: 2px;
}

@media (max-width: 480px) {
    .rf-orders {
        gap: 10px;
    }
}

/* ============================================
   КАРТОЧКА ЗАКАЗА (account/order_info.tpl, rf-oi)
   Переиспользует блоки дашборда: rf-last-order,
   rf-last-order__cell/__label/__btn/__link, rf-order-badge.
   ============================================ */

.rf-oi__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 6px 0 14px;
}

.rf-oi__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #5a655a; /* --rf-text-muted */
    font-size: 14px;
}

.rf-oi__invoice {
    padding: 2px 10px;
    background: #f1f3f1; /* --rf-neutral-100 */
    border-radius: 999px;
    font-size: 13px;
}

/* ===== Блок оплаты с табами ===== */
.rf-oi__pay {
    margin-top: 16px;
    background: #fff; /* --rf-surface-2 */
    border: 1px solid #e3e8e3; /* --rf-border */
    border-radius: 14px; /* --rf-radius */
    padding: 18px 20px 20px;
}

.rf-oi__pay-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.rf-oi__pay-sum {
    font-size: 14px;
    color: #5a655a; /* --rf-text-muted */
}

.rf-oi__pay-sum b {
    font-size: 16px;
    color: #1a1f1a; /* --rf-text */
}

.rf-oi__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.rf-oi__tab {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e3e8e3; /* --rf-border */
    border-radius: 999px;
    color: #1a1f1a; /* --rf-text */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.rf-oi__tab:hover {
    border-color: #2d6a3e; /* --rf-accent */
}

.rf-oi__tab.is-active {
    background: #2d6a3e; /* --rf-accent */
    border-color: #2d6a3e;
    color: #fff;
}

.rf-oi__panel {
    display: none;
}

.rf-oi__panel.is-active {
    display: block;
}

.rf-oi__pay-note {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #5a655a; /* --rf-text-muted */
}

.rf-oi__pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.rf-oi__pay-info {
    flex: 1 1 auto;
    min-width: 0;
}

.rf-oi__pay-info .rf-oi__pay-note {
    margin: 0 0 16px;
    max-width: 420px;
}

.rf-oi__qr {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rf-oi__qr #paypass-payment-qr {
    padding: 10px;
    background: #fff;
    border: 1px solid #e3e8e3; /* --rf-border */
    border-radius: 12px;
}

.rf-oi__qr #paypass-payment-qr img,
.rf-oi__qr #paypass-payment-qr canvas {
    display: block;
}

.rf-oi__qr-note {
    font-size: 12px;
    color: #9aa49a; /* --rf-neutral-400 */
}

/* ===== Таблица товаров ===== */
.rf-oi__sec {
    margin-top: 16px;
}

.rf-oi__table-wrap {
    overflow-x: auto;
    background: #fff; /* --rf-surface-2 */
    border: 1px solid #e3e8e3; /* --rf-border */
    border-radius: 14px; /* --rf-radius */
}

.rf-oi__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
}

.rf-oi__table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9aa49a; /* --rf-neutral-400 */
    border-bottom: 1px solid #e3e8e3; /* --rf-border */
    white-space: nowrap;
}

.rf-oi__table td {
    padding: 12px 16px;
    vertical-align: top;
    border-bottom: 1px solid #e3e8e3; /* --rf-border */
}

.rf-oi__table tbody tr:last-child td {
    border-bottom: none;
}

.rf-oi__num,
.rf-oi__table .rf-oi__num {
    text-align: right;
    white-space: nowrap;
}

/* Центр: Кол-во, Цена (шапки и значения) и заголовок Суммы;
   значения Суммы остаются справа (rf-oi__num) */
.rf-oi__ctr,
.rf-oi__table .rf-oi__ctr {
    text-align: center;
    white-space: nowrap;
}

.rf-oi__pname {
    font-weight: 700;
    color: #1a1f1a; /* --rf-text */
}

.rf-oi__popt {
    display: block;
    font-size: 12px;
    color: #9aa49a; /* --rf-neutral-400 */
    margin-top: 2px;
}

.rf-oi__psum {
    font-weight: 700;
}

.rf-oi__table tfoot td {
    padding: 8px 16px;
    color: #5a655a; /* --rf-text-muted */
    border-bottom: none;
}

.rf-oi__table tfoot b {
    color: #1a1f1a; /* --rf-text */
}

.rf-oi__total-grand td {
    padding-top: 12px;
    font-size: 15px;
    color: #1a1f1a;
    border-top: 1px solid #e3e8e3; /* --rf-border */
}

.rf-oi__total-grand b {
    font-size: 17px;
    color: #2d6a3e; /* --rf-accent */
}

/* ===== Адреса ===== */
.rf-oi__addrs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.rf-oi__addr {
    background: #fff; /* --rf-surface-2 */
    border: 1px solid #e3e8e3; /* --rf-border */
    border-radius: 14px; /* --rf-radius */
    padding: 16px 18px;
}

.rf-oi__addr-body {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1f1a; /* --rf-text */
}

/* ===== Комментарий и история ===== */
.rf-oi__comment {
    background: #f6f8f6; /* --rf-surface */
    border-left: 3px solid #2d6a3e; /* --rf-accent */
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #5a655a; /* --rf-text-muted */
}

.rf-oi__history {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.rf-oi__hist {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    padding: 9px 0;
    border-bottom: 1px dashed #e3e8e3; /* --rf-border */
    font-size: 14px;
}

.rf-oi__hist:last-child {
    border-bottom: none;
}

.rf-oi__hist-date {
    flex: 0 0 auto;
    color: #9aa49a; /* --rf-neutral-400 */
    font-size: 13px;
    white-space: nowrap;
}

.rf-oi__hist-status {
    flex: 0 0 auto;
    font-weight: 700;
    color: #1a1f1a; /* --rf-text */
}

.rf-oi__hist-comment {
    flex: 1 1 200px;
    color: #5a655a; /* --rf-text-muted */
    font-size: 13px;
}

.rf-oi__actions {
    margin-top: 18px;
}

/* ===== Адаптив карточки заказа ===== */

/* Планшет/узкий десктоп: прячем колонку «Упаковка».
   ВАЖНО: только thead+tbody — в tfoot второй td это ЗНАЧЕНИЕ итога,
   без скоупа пропадали все суммы (баг). */
@media (max-width: 973px) {
    .rf-oi__table thead th:nth-child(2),
    .rf-oi__table tbody td:nth-child(2) {
        display: none;
    }

    .rf-oi__table {
        min-width: 520px;
    }
}

/* Мобайл: таблица → карточки-строки, без горизонтальной прокрутки */
@media (max-width: 767px) {
    .rf-oi__pay {
        padding: 14px 16px 16px;
    }

    .rf-oi__pay-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .rf-oi__pay-info .rf-oi__pay-note {
        max-width: none;
    }

    .rf-oi__pay-btn {
        width: 100%;
    }

    .rf-oi__qr {
        align-self: center;
    }

    .rf-oi__table-wrap {
        overflow: visible;
        background: none;
        border: none;
    }

    .rf-oi__table {
        display: block;
        min-width: 0;
    }

    .rf-oi__table thead {
        display: none;
    }

    .rf-oi__table tbody {
        display: block;
    }

    .rf-oi__table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 12px;
        background: #fff; /* --rf-surface-2 */
        border: 1px solid var(--rf-border);
        border-radius: 12px;
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .rf-oi__table tbody td {
        display: block;
        padding: 0;
        border: none;
    }

    /* Название (и опции) — на всю ширину */
    .rf-oi__table tbody td:first-child {
        flex: 1 1 100%;
    }

    /* Кол-во / Цена / Сумма — одной строкой с подписями */
    .rf-oi__table tbody td:nth-child(3)::before {
        content: "Кол-во: ";
        color: var(--rf-text-muted);
        font-weight: 400;
    }

    .rf-oi__table tbody td:nth-child(4)::before {
        content: "Цена: ";
        color: var(--rf-text-muted);
        font-weight: 400;
    }

    .rf-oi__table tbody td:nth-child(5) {
        margin-left: auto;
    }

    .rf-oi__table tbody td:nth-child(5)::before {
        content: "Сумма: ";
        color: var(--rf-text-muted);
        font-weight: 400;
    }

    /* Итоги: строка «Название итога — значение» */
    .rf-oi__table tfoot {
        display: block;
        margin-top: 4px;
    }

    .rf-oi__table tfoot tr {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 14px;
        border: none;
        background: none;
    }

    .rf-oi__table tfoot td {
        display: block;
        padding: 0;
        border: none;
    }

    .rf-oi__table tfoot td:first-child {
        color: var(--rf-text-muted);
    }

    .rf-oi__table tfoot td:last-child {
        flex: 0 0 auto;
        text-align: right;
    }

    .rf-oi__table tfoot td:first-child {
        flex: 1 1 auto;
    }
}

/* Список заказов: бейдж статуса — обычная ячейка, выровнять под значение */
.rf-orders .rf-last-order__cell .rf-order-badge {
    display: inline-block;
    margin-top: 3px;
}

.rf-oi__track {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: .02em;
}

/* Табличное выравнивание: общая сетка для всех карточек. Колонки «резиновые»
   (minmax — сжимаются при уменьшении экрана), отступы ужимаются через clamp.
   Поля по мере сужения скрываются: Дата < 1135px, Позиций < 992px. */
.rf-orders .rf-last-order__body {
    display: grid;
    grid-template-columns: minmax(64px, 88px) minmax(88px, 108px) minmax(58px, 80px) minmax(96px, 132px) minmax(108px, 150px) 1fr;
    align-items: center;
    gap: 12px clamp(10px, 1.6vw, 24px);
}

.rf-orders .rf-last-order__actions {
    margin-left: 0;
    justify-self: end;
}

.rf-orders .rf-last-order__cell b {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1135px) {
    .rf-orders .rf-last-order__cell--date {
        display: none;
    }

    .rf-orders .rf-last-order__body {
        grid-template-columns: minmax(64px, 88px) minmax(58px, 80px) minmax(96px, 132px) minmax(108px, 150px) 1fr;
    }
}

@media (max-width: 991px) {
    .rf-orders .rf-last-order__cell--qty {
        display: none;
    }

    .rf-orders .rf-last-order__body {
        grid-template-columns: minmax(64px, 88px) minmax(96px, 132px) minmax(108px, 150px) 1fr;
    }
}

@media (max-width: 767px) {
    .rf-orders .rf-last-order__body {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .rf-orders .rf-last-order__actions {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .rf-orders .rf-last-order__actions .rf-last-order__btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Сводка заказа: клетки растянуть по ширине — только на странице карточки заказа
   (на дашборде .rf-last-order__body остаётся как есть) */
.rf-oi .rf-last-order__body {
    justify-content: space-between;
}

/* ===== Адреса: список (/address/) и форма создания/правки =====
   Разметка OC нетронута — таблица превращается в карточки через CSS. */
.rf-addresses .rf-addresses__table {
    border: none;
    margin-bottom: 20px;
}

.rf-addresses table.table {
    margin: 0;
    border: none;
}

.rf-addresses table.table > tbody > tr.rf-addresses__item {
    display: block;
    background: var(--rf-surface-2);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    margin-bottom: 12px;
}

.rf-addresses table.table > tbody > tr.rf-addresses__item > td {
    display: block;
    width: 100%;
    border: none !important;
    padding: 16px 20px;
}

.rf-addresses__info {
    font-size: 14px;
    line-height: 1.65;
    color: var(--rf-text);
    white-space: normal;
}

.rf-addresses__actions {
    padding-top: 0 !important;
    text-align: left !important;
}

/* кнопки «Редактировать» / «Удалить» — ghost-пилюли */
.rf-addresses .btn-info,
.rf-addresses .btn-danger {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: #fff;
    border: 1px solid #c8d0c8; /* --rf-neutral-300 */
    border-radius: 999px;
    box-shadow: none;
    text-shadow: none;
    font-size: 13px;
    font-weight: 700;
    color: #1a1f1a; /* --rf-text */
    transition: border-color .15s, color .15s;
}

.rf-addresses .btn-info:hover,
.rf-addresses .btn-info:focus {
    background: #fff;
    border-color: #2d6a3e; /* --rf-accent */
    color: #1f4a2c; /* --rf-accent-dark */
}

.rf-addresses .btn-danger:hover,
.rf-addresses .btn-danger:focus {
    background: #fff;
    border-color: #c8342a; /* --rf-danger */
    color: #c8342a;
}

@media (max-width: 767px) {
    .rf-addresses .btn-info,
    .rf-addresses .btn-danger {
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
}

/* ===== Форма адреса: селекты и чекбоксы (поля — из .rf-auth/.rf-form-page) ===== */
.rf-form-page select.form-control {
    height: 42px;
    padding: 10px 38px 10px 14px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a655a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    cursor: pointer;
}

.rf-form-page input[type="checkbox"] {
    accent-color: #2d6a3e; /* --rf-accent */
    width: 17px;
    height: 17px;
    margin: 0 8px 0 0;
    vertical-align: -2px;
    cursor: pointer;
}

.rf-form-page .checkbox label,
.rf-form-page .radio label {
    font-size: 14px;
    color: #1a1f1a; /* --rf-text */
    cursor: pointer;
}

/* пустой список адресов */
.rf-addresses > p {
    font-size: 14px;
    color: var(--rf-text-muted);
    padding: 20px;
    background: var(--rf-surface);
    border: 1px dashed var(--rf-border);
    border-radius: var(--rf-radius);
}
