/* --- Layout --- */
.checkout-page-wrapper {
    background-color: #f5f5f5;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

/* --- Checkout Section (Left) --- */
.checkout-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.checkout-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #3e1515; /* Điểm nhấn đỏ rượu */
    padding-left: 15px;
}

/* Form Fields */
.checkout-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.checkout-input, .checkout-select, .checkout-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fbfbfb;
}

.checkout-input:focus, .checkout-select:focus, .checkout-textarea:focus {
    border-color: #d4af37; /* Vàng kim khi focus */
    background-color: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.two-cols .form-group { flex: 1; }
.three-cols .form-group { flex: 1; }

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.payment-option input {
    display: none; /* Ẩn radio mặc định */
}

.payment-content {
    padding: 20px;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Custom Radio Circle */
.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background-color: #3e1515;
    border-radius: 50%;
    transition: transform 0.2s;
}

/* Trạng thái Active của Payment */
.payment-option.active {
    border-color: #3e1515;
    background-color: #fffbfc;
}

.payment-option input:checked + .payment-content .radio-mark {
    border-color: #3e1515;
}

.payment-option input:checked + .payment-content .radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.payment-name {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    flex-grow: 1;
}

.payment-icon {
    color: #3e1515;
    font-size: 20px;
}

.payment-desc {
    margin-top: 10px;
    margin-left: 35px; /* Thụt vào thẳng hàng với text */
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: none; /* Mặc định ẩn mô tả */
}

/* Hiện mô tả khi active */
.payment-option.active .payment-desc {
    display: block;
    animation: slideDown 0.3s ease;
}

.bank-info {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    color: #333;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Sidebar Summary (Right) --- */
.checkout-sidebar {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-top: 4px solid #d4af37; /* Điểm nhấn vàng trên đầu */
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
}

.checkout-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.c-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.c-img {
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
    border-radius: 6px;
    position: relative;
}

.c-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.c-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #3e1515;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-info {
    flex: 1;
}

.c-name {
    font-size: 14px;
    margin: 0 0 3px 0;
    color: #333;
}

.c-price {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.checkout-divider {
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}

/* Totals */
.c-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.free-ship {
    color: #28a745; /* Màu xanh lá */
    font-weight: 600;
}

.discount {
    color: #d4af37;
}

.c-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    color: #333;
    margin-bottom: 25px;
}

.total-amount {
    color: #3e1515; /* Đỏ rượu */
    font-size: 24px;
}

.btn-place-order {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #3e1515, #000000);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(62, 21, 21, 0.2);
}

.secure-text {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .checkout-page-wrapper {
        padding: 20px 0;
    }
    
    .col-lg-5 {
        order: -1; /* Đẩy tóm tắt đơn hàng lên trên ở mobile cho dễ xem */
        margin-bottom: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}