/* ============================================
   ORDER PAGE STYLES
   ============================================ */

.wp-bigCt-orderPage {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: calc(100vh - 400px);
}

.inner-orderPage {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1250px;
    margin: 0 auto;
}

/* --- Left Column: Order Product Summary --- */
.order-sum-prd {
    flex: 1;
}

.order-items-list {
    margin-bottom: 16px;
}

/* Overriding and extending cart item styles for order page */
.order-sum-prd .card-item-in-popup {
    padding: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    margin-bottom: 16px;
}

.order-sum-prd .card-item-in-popup-img {
    width: 90px;
    height: 90px;
}

.order-price-box {
    text-align: right;
    display: flex;
    gap: 8px;
    margin-right: auto;
    align-items: center;
}

.order-price-old {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
}

.order-price-new {
    font-size: 17px;
    font-weight: 700;
    color: #dc3545;
}



.order-sum-prd .card-item-in-popup-link {
    display: block;
    flex-shrink: 0;
}

.order-sum-prd .card-item-in-popup-name {
    font-size: 17px;
    display: block;
}

.order-sum-prd .qty-btn {
    width: 32px;
    height: 32px;
}

.order-sum-prd .qty-input {
    height: 32px;
    font-size: 15px;
}

.order-sum-prd .card-item-in-popup-name:hover {
    color: var(--primary-color);
}

.order-sum-prd .card-item-in-popup-info {
    display: flex;
    flex-direction: column;
}

.order-sum-prd .card-item-in-popup-meta {
    margin-top: auto
}

.order-total-summary {
    padding: 8px 20px;
    border-radius: 12px;
    border-left: 5px solid #ff9900;
    background: linear-gradient(135deg, #fff6d4 0%, #fffbf2 100%);
    position: relative;
    overflow: hidden;
}

.order-total-summary::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.order-total-summary .sub-title {
    font-weight: 600;
}

.order-total-summary .cost-last {
    font-size: 24px;
    font-weight: 800;
    color: #dc3545;
    margin-top: -4px;
}

/* --- Right Column: Customer Information --- */
.order-info-customer {
    flex: 1;
}

/* Button override to ensure full width block style within form */
.order-info-customer .btn-submit-order {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.form-support-text {
    margin-top: 20px;
    font-size: 15px;
    color: #666;
    text-align: center;
}

.form-support-text a {
    color: #e28e0f;
    font-weight: 600;
}

.form-support-text a:hover {
    text-decoration: underline;
}


/* --- Coupon / Mã giảm giá --- */
.coupon-wrap {
    margin-bottom: 20px;
    padding: 4px;
    padding-right: 8px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
}

.coupon-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-input-row .form-control {
    flex: 1;
    background: transparent;
    border: none;

}

.coupon-wrap .input-with-icon .form-control:disabled {
    background-color: transparent;

}

.btn-apply-coupon {
    flex-shrink: 0;
    white-space: nowrap;
    background-color: var(--primary-color);
    color: white;
    font-size: 13px;
}

.btn-apply-coupon:hover {
    background-color: #78ae6b;
}

.btn-apply-coupon.btn-remove-coupon {
    color: #dc2626;
    background: transparent;
    border: 1px solid #dc2626;
    padding: 4px 8px;
    font-weight: 600;
}

.btn-apply-coupon.btn-remove-coupon:hover {
    background-color: #ffe6e6;
    transform: none;
    border-color: #ffe6e6;
}

.coupon-discount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-top: 4px;
    background: #e3f4ec;
    border-radius: 8px;
    margin-right: -4px;
}

.coupon-success-msg {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.coupon-success-msg i {
    color: #32bc66;
}

/* Trạng thái lỗi - tone đỏ */
.coupon-discount-row--error {
    background: #fff1f1;
}

.coupon-error-msg {
    font-size: 14px;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 6px;
}

.coupon-error-msg i {
    color: #dc2626;
}

.coupon-discount-value {
    font-weight: 800;
    color: #32bc66;
}

.coupon-wrap .input-with-icon {
    flex: 1;

}

.coupon-wrap .input-with-icon input {
    font-weight: 800;
}

/*Các màn trạng thái*/
.pageNtf-stt-orderPage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px 0;
    text-align: center;
}

.icon-stt-orderPage {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.text-ntf-empty {
    color: #888;
    font-size: 16px;
    margin-bottom: 10px;
    max-width: 800px;
    text-align: center;
    margin: 0px 20px;
    line-height: 1.6;
}

.text-ntf-empty a {
    font-weight: 600;
    color: var(--secondary-color);
}

.text-ntf-empty a:hover {
    text-decoration: underline;
}

/*responsive màn thanh toán*/
@media (max-width: 575px) {
    .inner-orderPage {
        display: block;
    }

    .order-info-customer {
        margin-top: 32px;
    }

    .wp-bigCt-orderPage {
        padding-top: 44px;
        padding-bottom: 32px;
        min-height: auto;
    }

    .order-sum-prd .card-item-in-popup-name {
        font-size: 16px;
    }

    .icon-stt-orderPage {
        width: 140px;
        height: 140px;
    }

    .pageNtf-stt-orderPage {
        padding: 32px 0px;
    }

}

@media (min-width: 576px) and (max-width: 767px) {
    .inner-orderPage {
        display: block;
    }

    .wp-bigCt-orderPage {
        padding-top: 48px;
        min-height: auto;
    }

    .order-info-customer {
        margin-top: 32px;
    }

    .pageNtf-stt-orderPage {
        padding: 40px 0px;
    }

    .icon-stt-orderPage {
        width: 140px;
        height: 140px;
    }

    .order-sum-prd .card-item-in-popup-name {
        font-size: 16px;
    }

}

@media (min-width: 768px) and (max-width: 991px) {
    .inner-orderPage {
        gap: 24px;
    }

    .wp-bigCt-orderPage {
        padding-top: 40px;
        min-height: auto;
    }

    .order-sum-prd .card-item-in-popup {
        padding: 8px;
        gap: 10px;
    }

    .order-sum-prd .card-item-in-popup-name {
        font-size: 16px;
    }

    .icon-stt-orderPage {
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .wp-bigCt-orderPage {
        padding-top: 60px;
        min-height: auto;
    }

    .inner-orderPage {
        gap: 24px;
    }
}

@media (min-width: 1200px) and (max-width: 1499px) {
    .wp-bigCt-orderPage {
        padding-top: 80px;
    }
}

/*end responsive màn thanh toán*/