/* главная карточка страницы */
.order-page {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px 20px;
    border: 1px solid #d6e4f1;
    color: #2e353f;
}

/* сетка основного контента */
.order-main {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.order-main-left {
    flex: 2 1 460px;
}
.order-main-right {
    flex: 1 1 280px;
}

/* блоки-панели */
.order-section {
    background: #f5f9fc;
    border-radius: 10px;
    padding: 12px 14px 10px;
    border: 1px solid #d8e6f2;
    margin-bottom: 10px;
}
.order-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.order-section-title {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1f2d3a;
}
.order-section-title img {
    width: 18px;
    height: 18px;
}

/* сетка карточек */
.option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* базовая карточка */
.option-card {
    position: relative;
    border-radius: 10px;
    padding: 7px 10px;
    min-width: 120px;
    background: #f7f7fa;
    border: 1px solid #cfdde9;
    cursor: pointer;
    font-size: 11px;
    color: #1f2d3a;
    line-height: 1.35;
    transition: 0.18s;
    box-shadow: none;
    text-align: left;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
}

/* квадратные карточки (Локация + Тариф) */
.option-card--square {
    width: 190px;
    min-height: 72px;
}

/* маленькие (период) */
.option-card--small {
    min-width: 90px;
    text-align: center;
}

.option-card span.oc-main {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}
.option-card span.oc-sub {
    opacity: 0.7;
}

/* эффект при наведении */
.option-card:hover {
    border-color: #4bb8ff;
    box-shadow: 0 0 6px rgba(75, 184, 255, 0.45);
}

/* Активная карточка */
.option-card.active {
    position: relative;
    border: 1px solid #009cff;
    box-shadow: 0 0 12px rgba(0, 156, 255, 0.35);
    overflow: hidden;
}

/* Световой блик, мягкий */
.option-card.active::after {
    content: "";
    position: absolute;

    /* Размер блика — тонкая полоска */
    width: 30%;
    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(0, 200, 255, 0) 0%,
        rgba(0, 200, 255, 0.6) 40%,
        rgba(0, 200, 255, 0) 100%
    );

    filter: blur(3px);

    animation: softGlow 3.8s linear infinite;
}

/* Движение "теневого блика" по периметру */
@keyframes softGlow {
    0%   { top: -2px; left: 0; transform: rotate(0deg); }
    25%  { top: 0; left: calc(100% - 2px); transform: rotate(90deg); }
    50%  { top: calc(100% - 2px); left: calc(100% - 40%); transform: rotate(180deg); }
    75%  { top: calc(100% - 2px); left: 0; transform: rotate(270deg); }
    100% { top: -2px; left: 0; transform: rotate(360deg); }
}


.option-card.option-card--disabled {
    cursor: default;
    opacity: 0.55;
    box-shadow: none;
}

/* скрытые select'ы */
.order-select-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* промо */
.order-promo-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.order-promo-input {
    flex: 1;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #cfdde9;
    background: #ffffff;
    color: #1f2d3a;
    outline: none;
    font-size: 12px;
}
.order-promo-input:focus {
    border-color: #4bb8ff;
    box-shadow: 0 0 5px rgba(0, 156, 255, 0.35);
}
.order-promo-btn {
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    background: #009cff;
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: 0.16s;
    white-space: nowrap;
}
.order-promo-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(0, 156, 255, 0.55);
}
.order-promo-btn[disabled] {
    opacity: 0.45;
    cursor: default;
}

/* summary справа */
.order-summary {
    background: #f8fbfd;
    border-radius: 10px;
    padding: 12px 14px 14px;
    border: 1px solid #d8e6f2;
    font-size: 12px;
}
.order-summary-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2d3a;
}
.order-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.order-summary-line span.os-label {
    opacity: 0.75;
}
.order-summary-line span.os-value {
    font-weight: 600;
}
.order-promo-applied .label {
    font-size: 10px;
}

/* слоты */
.order-slots-block {
    margin-top: 8px;
    margin-bottom: 10px;
}
.order-slots-label {
    font-size: 12px;
    margin-bottom: 3px;
}
.order-slots-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.order-slots-range-row input[type=range] {
    flex: 1;
    accent-color: #009cff;
}
.order-slots-value {
    min-width: 34px;
    text-align: right;
    font-weight: 600;
}

/* итог */
.order-total {
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid #d6e4f1;
    text-align: center;
    font-size: 13px;
}
.order-total-amount {
    font-size: 16px;
    font-weight: 700;
    color: #1f2d3a;
}

/* кнопка */
.order-submit-wrap {
    margin-top: 10px;
    text-align: right;
}
.order-submit-btn {
    min-width: 180px;
}

/* подсказки */
.order-hint {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 3px;
}

/* гостевой режим */
.order-guest-note {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    color: #4a5563;
}

/* адаптив */
@media (max-width: 900px) {
    .order-main {
        flex-direction: column;
    }
    .order-main-right {
        order: -1;
    }
}
.order-mini-btn {
    padding: 3px 8px;          
    border-radius: 6px;
    border: none;
    background: #009cff;
    color: #ffffff !important;
    font-size: 10px;           
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.16s;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.1;         
}

.order-mini-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(0, 156, 255, 0.55);
    text-decoration: none;
}
.order-summary-title {
    margin-bottom: 8px;
}

.order-summary-line .os-label {
    font-size: 12px;
}

.order-summary-line .os-value {
    font-size: 12px;
    font-weight: 600;
}

.order-summary hr {
    border: 0;
    border-top: 1px solid #d6e4f1;
}
.promo-active-badge {
    display: inline-block;
    background: rgba(46, 204, 113, 0.15);
    border-left: 3px solid #2ecc71;
    padding: 3px 8px 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #1d7f46;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.price-bubble {
    display: inline-block;
    padding: 2px 10px;
    background: #eef8ff;
    color: #009cff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 4px rgba(0, 156, 255, 0.25);
}
#tarif_cards .option-card::before {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    background: url('/images/tariff_fps_icon.png') no-repeat center center;
    background-size: contain;
    opacity: 0.50;
    pointer-events: none;
}