body {
    background: #f7f9fc;
    color: #2c3e50;
    font-size: 15px;
}

.container {
    max-width: 960px;
}

h1, h2, h3, h4 {
    color: #1f3a5f;
}

/* Шрифт заголовка h1 уменьшен на 1/5 (2.5rem -> 2rem) */
h1 {
    font-size: 2rem;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.form-label {
    font-weight: 600;
    font-size: .95rem;
}

.required::after {
    content: " *";
    color: #dc3545;
}

.btn-primary-custom {
    background: #2f6db3;
    border-color: #2f6db3;
    color: #fff;
}
.btn-primary-custom:hover {
    background: #285d98;
    color: #fff;
}

/* Оптическая компенсация отступов кнопок: низ чуть больше верха */
.btn {
    padding-top: 8px;
    padding-bottom: 10px;
}
.btn-lg {
    padding-top: 12px;
    padding-bottom: 14px;
}
.btn-sm {
    padding-top: 4px;
    padding-bottom: 6px;
}

.btn-green {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}
.btn-green:hover {
    background: #218838;
    border-color: #1e7e34;
    color: #fff;
}

.btn-green-outline {
    background: #fff;
    border-color: #28a745;
    border-width: 3px;
    color: #28a745;
}
.btn-green-outline:hover {
    background: #28a745;
    border-color: #28a745;
    border-width: 3px;
    color: #fff;
}

/* Иконка 32x32 в списке способов оплаты и заголовках */
.pay-ic-32 {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
}

/* Иконки внутри кнопок */
.btn-ic {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}
.arrow-left {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

/* Кнопка удаления строки — компактная, без рамки */
.btn-delete {
    border: none;
    background: transparent;
}
.btn-delete:hover {
    background: #f8d7da;
}
.btn-delete .btn-ic {
    width: 18px;
    height: 18px;
}

table.order-items {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
table.order-items th,
table.order-items td {
    border: 1px solid #dee2e6;
    padding: 8px 10px;
    vertical-align: middle;
}
table.order-items thead th {
    background: #eef3f9;
    font-weight: 600;
}
table.order-items td.num {
    text-align: right;
    white-space: nowrap;
}
th.col-quant, td.col-quant { width: 120px; text-align: center; }

/* Колонка «Скидка %» — узкая (уменьшена на ~треть от автоподбора) */
th.col-disc, td.col-disc { width: 55px; white-space: nowrap; }

/* Колонка «Удалить» на первой странице — узкая */
th.col-del, td.col-del { width: 50px; text-align: center; white-space: nowrap; }

.spinbox {
    width: 90px;
    text-align: center;
}

.total-line {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f3a5f;
}

.captcha-img {
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    width: auto;
    height: 38px;
    object-fit: contain;
    display: block;
    background: #fff;
}

/* Подсветка пункта списка способов оплаты при наведении (как заголовок таблицы) */
.list-group-item {
    background: #fff;
}
.list-group-item-action:hover {
    background: #eef3f9;
    color: #1f3a5f;
}

.after-pay {
    background: #fff8e6;
    border-left: 4px solid #f0ad4e;
    padding: 10px 14px;
    border-radius: 6px;
}

.back-btn {
    margin-top: 24px;
}

/* Курсор "ожидание" во время обработки формы (отправка уведомлений) */
html.proc-wait, html.proc-wait * {
    cursor: wait !important;
}
