/* ===== ОБЩИЙ КОНТЕЙНЕР ===== */
.order-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'TildaSans', Arial, sans-serif;
}

.order-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

/* ===== КАРТА CDEK ===== */
#cdek-map {
    width: 100%;
    height: 500px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 2px solid #097178;
    box-shadow: 0 4px 15px rgba(9, 113, 120, 0.15);
    overflow: hidden;
}

/* ===== ИНФО-БЛОК ===== */
.placeholder-info {
    background: linear-gradient(135deg, #e7f5f7 0%, #f1fdfe 100%);
    color: #097178;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed #097178;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 500;
}

/* ===== ФОРМА ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

form h3 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* ===== INPUT ===== */
input[type="text"],
input[type="tel"],
input[type="email"] {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.25s ease;
}

input:focus {
    outline: none;
    border-color: #097178;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(9, 113, 120, 0.12);
}

input::placeholder {
    color: #999;
}

/* ===== КОЛИЧЕСТВО ===== */
.game_count {
    text-align: center;
    font-size: 16px;
    color: #555;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #097178;
    background: #ffffff;
    color: #097178;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:disabled {
    border: 2px solid #09717871;
    background-color: #ffffff5d;
    color: #09717865;
    cursor: not-allowed;
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.qty-btn:hover {
    background: #097178;
    color: #ffffff;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.center-text {
    text-align: center;
}

/* ===== ПРОМОКОД ===== */
.promo-wrapper {
    display: grid !important;
    gap: 8px;
}

@media (min-width: 400px) {
    .promo-wrapper {
        display: flex !important;
        gap: 8px;
    }
}

#promo {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    min-width: 0;
}

#applyPromo {
    padding: 12px 18px;
    background: #097178;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

#applyPromo:hover {
    background: #074d52;
}

#promoFeedback {
    font-size: 14px;
    margin-top: 4px;
}

/* ===== БЛОК ЦЕН ===== */
.price-block {
    background: linear-gradient(135deg, #097178 0%, #0a5f65 100%);
    padding: 24px;
    border-radius: 10px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 113, 120, 0.2);
    display: grid;
    row-gap: 10px;
}

/* СТРОКА ЦЕН */
.price-row {
    display: grid;
    grid-template-columns: 1fr 90px auto;
    align-items: center;
}

.label {
    text-align: left;
}

.value {
    text-align: center;
    font-weight: 700;
}

.unit {
    text-align: left;
}

/* ИТОГО */
.price-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid rgba(255, 255, 255, 0.35);
}

.price-row.total .value {
    font-size: 20px;
}

/* ===== КНОПКА ОПЛАТЫ ===== */
#payButton {
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #097178 0%, #0a5f65 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

#payButton:hover {
    background: linear-gradient(135deg, #0a5f65 0%, #084950 100%);
    transform: translateY(-2px);
}

#payButton:active {
    transform: translateY(0);
}

#payButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .order-title {
        font-size: 28px;
    }

    #cdek-map {
        height: 400px;
    }

    form {
        padding: 20px;
    }

    .price-row {
        grid-template-columns: 1fr 70px auto;
    }
}