/* ============================================
   Cart Checkout — Two-Column Layout
   ============================================ */

:root {
    --primary-color: #63AF69;
    --accent-color: #FBDDD4;
}

.checkout-wrapper {
    padding: 20px 0;
}

/* ---- Card ---- */
.checkout-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
}

.checkout-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* ---- Form overrides ---- */
.checkout-card .form-group {
    margin-bottom: 14px;
}

.checkout-card label {
    float: none;
    font-weight: 500;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

.checkout-card .form-control {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.checkout-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 175, 105, 0.15);
    outline: none;
}

.red {
    color: #e74c3c;
    font-style: normal;
}

/* ---- Select2 in card ---- */
.checkout-card .select2-container {
    text-align: left;
}

.checkout-card .select2-container--default .select2-selection--single {
    height: 38px;
    width: 100%;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}


/* ---- Cart Items ---- */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-thumbnail {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.4;
}

.cart-item-variant {
    font-size: 11px;
    color: #999;
    margin: 0 0 6px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

/* ---- Qty Control ---- */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-control .qty-btn {
    width: 28px;
    height: 28px;
    background: #f8f8f8;
    border: none;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.qty-control .qty-btn:hover:not(:disabled) {
    background: #eee;
}

.qty-control .qty-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.qty-control .qty-input {
    width: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
    padding: 0;
    height: 28px;
    -moz-appearance: textfield;
}

.qty-control .qty-input::-webkit-outer-spin-button,
.qty-control .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-control .qty-input:disabled {
    background: #fafafa;
}

/* ---- Delete Button ---- */
.cart-item-delete {
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    background: none;
    border: none;
    transition: color 0.15s;
    flex-shrink: 0;
}

.cart-item-delete:hover {
    color: #e74c3c;
}

/* ---- Payment Radio Cards ---- */
.payment-radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-weight: normal;
    float: none;
}

.payment-radio-card:last-of-type {
    margin-bottom: 0;
}

.payment-radio-card:hover {
    border-color: var(--primary-color);
    background: #f9fdf9;
}

.payment-radio-card.selected {
    border-color: var(--primary-color);
    background: #f0faf1;
}

.payment-radio-card input[type="radio"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.payment-radio-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

/* ---- Continue Shopping Link ---- */
.btn-continue-shopping {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
}

.btn-continue-shopping:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* ---- Order Summary ---- */
.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.order-summary-row.order-total {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 16px;
    color: #222;
}

.order-summary-row .order-label {
    color: #555;
}

.order-summary-row.order-total .order-label {
    color: #222;
}

/* ---- Place Order Button ---- */
.btn-place-order {
    width: 100%;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 12px;
    display: block;
}

.btn-place-order:hover {
    background: #444;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .col-lg-7,
    .col-lg-5 {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .checkout-wrapper {
        padding: 10px 0;
    }

    .cart-item-name {
        white-space: normal;
    }

    .login-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
