.cart-page .cart-item a i {
    margin-right: 5px;
}

.cart-page .cart-item a:hover {
    color: #f3332e;
}

.next-cart.fas.fa-minus::before {
    content: '\f067';
}

.box-cart-ctnr {
    background: #f7f7f7;
    padding: 2rem 0px;
}

.main {
    background: #f7f7f7;
}

.cart-customer-group {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.cart-page .box-title {
    border-bottom: 1px dashed #f0f0f0;
    padding: 0 12px;
    line-height: 42px;
    font-weight: 500;
    font-size: 18px;
    margin: 0;
    text-align: center;
}

.cart-page .cart-box-group {
    padding: 12px 25px 20px;
}

.cart-page .customer-sex {
    margin-bottom: 5px;
}

.cart-page .customer-sex label {
    display: inline-block;
    margin: 0 20px 12px 0;
}

.label-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.label-container input:checked~.checkmark {
    background-color: #fe7801;
    -webkit-box-shadow: 0 0 0 1px #fe7801;
    box-shadow: 0 0 0 1px #fe7801;
}

.label-container .checkmark {
    position: absolute;
    top: 4px;
    left: 0;
    height: 12px;
    width: 12px;
    background-color: #fff;
    border-radius: 50%;
    -webkit-box-shadow: 0 0 0 1px #c4c4c4;
    box-shadow: 0 0 0 1px #c4c4c4;
}

.label-container input:checked~.checkmark::before {
    background: #fe7801;
}

.label-container .checkmark:before {
    content: '';
    background: #fff;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.label-container input:checked~.checkmark:after {
    display: block;
}

.label-container .checkmark:after {
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 20px;
    background: #fff;
}

.label-container {
    display: block;
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.label-container .checkmark:after {
    content: '';
    position: absolute;
    display: none;
}

.cart-page .cutomer-info-tbl td {
    width: 75%;
    padding: 7px 0;
}

.cart-page .form-input {
    display: block;
    padding: 10px 12px;
    margin: 0;
    width: 100%;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    height: 40px;
    outline: none;
}

table.cutomer-info-tbl {
    width: 100%;
}

.cart-page .box-title i {
    font-weight: 200;
    font-size: 13px;
}

.label-container span {
    font-weight: 400;
}

.cart-page .cart-item {
    padding: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    background: #fff;
    /* border-radius: 20px; */
}

.cart-col-right {
    border-radius: 20px;
    margin-bottom: 12px;
    overflow: hidden;
    position: sticky;
    top: 20px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.cart-page .cart-item .item-left {
    width: 130px;
    text-align: center;
}

.cart-page .cart-item .item-left a {
    color: black;
    line-height: 18px;
}

.cart-page .cart-item .item-img {
    height: 70px;
    position: relative;
    margin-right: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cart-page .cart-item a {
    display: block;
    color: #000;
}

.cart-page .cart-item .item-right {
    width: calc(100% - 164px);
    line-height: 18px;
    display: flex;
    justify-content: space-between;
}

.cart-page .cart-item .item-name {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}

.cart-page .cart-item .item-price-group {
    /* margin-bottom: 16px; */
}

.cart-page .cart-item .item-price {
    font-weight: 700;
    font-size: 18px;
    color: red;
    margin: 0;
}

.cart-page .cart-item .item-price-group * {
    display: inline-block;
    padding-bottom: 3px;
}

.cart-page .cart-item .item-discount {
    min-width: 30px;
    color: #fff;
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    background: #ff312e;
    border-radius: 4px;
    padding: 0 3px;
}

.cart-page .cart-item .item-old-price {
    color: #999;
    margin: 0 3px;
}

.cart-page .cart-item .item-quantity-group {
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    width: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.cart-page .cart-item .item-quantity-group a {
    width: 30px;
    text-align: center;
    line-height: 34px;
    cursor: pointer;
}

.cart-page .cart-item a {
    display: block;
    color: #000;
}

.cart-page .cart-item .item-quantity-group input {
    border: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 40px;
    border-left: 1px solid #dfdfdf;
    border-right: 1px solid #dfdfdf;
    height: 34px;
}

.cart-page .cart-total-group {
    padding: 12px 12px 15px;
    font-size: 15px;
    line-height: 28px;
    width: 100%;
}

.cart-page .cart-total-group td:nth-child(2) {
    text-align: right;
}

.cart-page .btn-send-cart {
    display: block;
    margin-top: 9px;
    background: #ff69b4;
    border-radius: 5px;
    border: 1px solid #ff69b4;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    height: 50px;
}

.cart-page .btn-send-cart:hover {
    background: white;
    color: #fc322d;
}

.cart-total-group table {
    width: 100%;
}

.cart-total-price-group {
    background: #fff;
    margin-top: 20px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.error-message {
    color: red;
    font-size: 12px;
}

.small-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.small-modal-content {
    text-align: center;
}

.close-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #0056b3;
}

.cart-total-group {
    max-width: 400px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.cart-total-group table {
    width: 100%;
    border-collapse: collapse;
}

.cart-total-group td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.discount-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.discount-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.discount-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.apply-discount-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.apply-discount-btn:hover {
    background: #0056b3;
}

.discount-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.discount-code-tag {
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.discount-code-tag:hover {
    background: #007bff;
    color: white;
}

.discount-applied {
    background: #d4edda;
    color: #155724;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.discount-applied .remove-discount {
    color: #721c24;
    text-decoration: none;
    float: right;
    font-weight: bold;
}

.discount-applied .remove-discount:hover {
    color: #d32f2f;
}

.discount-row {
    color: #28a745;
}

.btn-send-cart {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-send-cart:hover {
    background: #218838;
}

.icon-price {
    color: #dc3545;
    font-weight: bold;
}

.total {
    color: #dc3545;
    font-size: 18px;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 14px;
}

.text-color {
    color: #666;
}

.item-export-intro {
    padding: 10px 0px;
}

.item-export-intro span {
    font-weight: 600;
    margin-left: 5px;
}

.company-group.active {
    display: block;
}

.company-group {
    display: none;
}

.item-quantity-group a svg {
    width: 10px;
    height: 10px;
}

.box-content-cod {
    display: none;
}

label.label-container.active .box-content-cod {
    display: block;
}

.section_cart {
    width: 100%;
    padding: 30px 0;
}

@media (min-width: 992px) {
    .offset-lg-2 {
        margin-left: 16.66666667%;
    }
}

.box_order_success {
    margin-top: 0;
}

.box_order_success .box_icon_sucess {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.box_order_success .box_icon_sucess .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgb(87 209 124);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.box_order_success .box_icon_sucess .icon:before {
    /* content: ''; */
    position: absolute;
    width: 90px;
    height: 90px;
    background-color: rgba(87, 209, 124, 0.3);
    border-radius: 50%;
    left: -10px;
    top: -10px;
}

.box_order_success .box_icon_sucess {
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

.box_order_success .box_icon_sucess .icon i {
    color: #fff;
    font-size: 31px;
    position: relative;
}

.box_order_success .box_icon_sucess .title_success {
    text-align: center;
    width: 100%;
    font-weight: 700;
    font-size: 23px;
    margin-top: 15px;
}

.box_info_order_success {
    /* border: 1px solid #000; */
    padding: 25px;
    font-size: 20px;
}

.box_info_order_success .info_customer {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000;
}

.box_info_order_success .info_customer .name {
    margin-bottom: 8px;
    font-size: 16px;
}

.box_info_order_success .info_customer .phone {
    font-size: 16px;
    margin-bottom: 8px;
}

.box_info_order_success .info_customer .address {
    font-size: 16px;
}

.box_info_order_success .list_sp_order_success {
    width: 100%;
}

.box_info_order_success .list_sp_order_success .item {
    width: 100%;
    margin-bottom: 15px;
}

.box_info_order_success .list_sp_order_success .box {
    display: flex;
    align-items: center;
}

.list_sp_order_success .cart-product-image img {
    height: 83px;
    padding-right: 20px;
}

.box_info_order_success .list_sp_order_success .box_name {
    width: 75%;
    /* margin-right: 5%; */
}

.box_info_order_success .list_sp_order_success .box_name .name {
    font-weight: 700;
    font-size: 18px;
}

.box_info_order_success .list_sp_order_success .box_info {
    width: 40%;
}

.box_info_order_success .list_sp_order_success .box_info .qty {
    font-size: 14px;
}

.box_info_order_success .list_sp_order_success .box_info .price {
    font-size: 14px;
}

.thank_you {
    width: 100%;
    text-align: center;
    margin-top: 24px;
}

.thank_you .content_thank {
    text-align: center;
    width: 100%;
    font-size: 16px;
    max-width: 700px;
    display: block;
    margin: 0 auto 30px;
}

.group_button_home a.back_home {
    background-color: #e91e63;
    color: #fff;
    margin-right: 15px;
}

.group_button_home a {
    display: inline-block;
    width: 100%;
    max-width: 210px;
    line-height: 40px;
    border-radius: 5px;
}

.box_order_success .box_icon_sucess .icon i svg {
    width: 47px;
    height: 47px;
    margin-bottom: -15px;
}

.box-cart-top {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.member-quantily-cart p {
    font-size: 13px;
}

td.cart-phuongthuc {
    width: 100% !important;
}

.cart-page .cutomer-info-tbl td:nth-child(1) {
    width: 25%;
}

table.cutomer-info-tbl tbody tr {
    display: flex;
}

@media (max-width: 990px) {
    .cart-page .cutomer-info-tbl td:nth-child(2) {
        width: 60%;
    }

    table.cutomer-info-tbl tbody tr {
        display: flex;
        flex-wrap: wrap;
    }

    .cart-page .box-title i {
        width: 100%;
        display: block;
    }

    .cart-page .box-title {
        line-height: 35px;
        font-size: 15px;
    }

    .cart-page .cutomer-info-tbl td:nth-child(1) {
        width: 40%;
    }
}

.remove-from-cart {
    cursor: pointer;
}


/* ====== Order Success Styles ====== */
:root {
    --primary: #ff69b4;
    --primary-600: #e65379;
    --primary-700: #d94770;
    --bg-soft: #fff6f8;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #22c55e;
}

.box_order_success {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(237, 107, 135, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 980px;
    margin: 24px auto;
}

/* Header success */
.box_order_success .box_icon_sucess {
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 3px;
    background:
        radial-gradient(1200px 1200px at -10% -10%, rgba(237, 107, 135, 0.08), transparent 60%),
        linear-gradient(0deg, rgba(237, 107, 135, 0.06), rgba(237, 107, 135, 0.06));
    border: 1px solid #fbe2e8;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.box_order_success .box_icon_sucess .icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-700));
    color: #fff;
    box-shadow: 0 6px 16px rgba(237, 107, 135, 0.35);
}

.box_order_success .box_icon_sucess .icon i.fas.fa-check::before {
    content: "✓";
    font-weight: 700;
    font-size: 20px;
}

.box_order_success .box_icon_sucess .title_success {
    font-weight: 800;
    letter-spacing: .3px;
    font-size: 20px;
    color: var(--primary-700);
    text-transform: uppercase;
}

/* Body layout */
.box_order_success .box_info_order_success {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    padding: 0;
}

@media (max-width: 900px) {
    .box_order_success .box_info_order_success {
        grid-template-columns: 1fr;
    }
}

/* Customer info card */
.box_order_success .info_customer {
    background: var(--bg-soft);
    border: 1px solid #f7d9e0;
    border-radius: 12px;
    padding: 16px;
}

.box_order_success .info_customer>div {
    padding: 10px 0;
    border-bottom: 1px dashed #f0bac6;
}

.box_order_success .info_customer>div:last-child {
    border-bottom: none;
}

.box_order_success .info_customer strong {
    color: var(--muted);
    font-weight: 600;
}

.box_order_success .info_customer .name,
.box_order_success .info_customer .phone {
    font-size: 15px;
    line-height: 1.5;
}

/* Product list */
.box_order_success .list_sp_order_success {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.box_order_success .list_sp_order_success .item+.item {
    border-top: 1px solid #f3f4f6;
    margin-top: 12px;
    padding-top: 12px;
}

.box_order_success .list_sp_order_success .box {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: center;
}

@media (max-width: 520px) {
    .box_order_success .list_sp_order_success .box {
        grid-template-columns: 72px 1fr;
    }
}

.box_order_success .cart-item.cart-image .cart-product-image {
    width: 84px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    background: #fff;
}

.box_order_success .cart-item.cart-image .cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .25s ease;
}

.box_order_success .item:hover .cart-product-image img {
    transform: scale(1.04);
}

.box_order_success .box_name .name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.box_order_success .box_name .box_info {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}

.box_order_success .box_name .box_info strong {
    color: var(--text);
    font-weight: 600;
}

/* Total row */
.box_order_success .box_info_order_success>div:last-child strong {
    font-weight: 800;
    color: var(--text);
}

.box_order_success .box_info_order_success>div:last-child {
    background: linear-gradient(0deg, #fff, #fff),
        radial-gradient(800px 600px at 100% 100%, rgba(237, 107, 135, 0.08), transparent 60%);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 16px;
}

.box_order_success .box_info_order_success>div:last-child::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-left: 8px;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(237, 107, 135, 0.12);
}

/* Thank you area */
.box_order_success .thank_you {
    margin-top: 22px;
    background: var(--bg-soft);
    border: 1px solid #f7d9e0;
    padding: 16px;
    border-radius: 12px;
}

.box_order_success .thank_you .content_thank strong {
    display: block;
    font-weight: 600;
    color: #7a1f34;
}

/* Button group */
.box_order_success .group_button_home {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.box_order_success .group_button_home .back_home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 10px 18px rgba(237, 107, 135, 0.25), 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(237, 107, 135, 0.45);
    transition: transform .15s ease, box-shadow .15s ease, filter .2s ease;
}

.box_order_success .group_button_home .back_home:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(237, 107, 135, 0.32), 0 4px 10px rgba(0, 0, 0, 0.07);
    filter: brightness(1.02);
}

.box_order_success .group_button_home .back_home:active {
    transform: translateY(0);
}

/* Micro badges for statuses (rely on existing labels) */
.box_order_success .info_customer .name strong:nth-child(1),
.box_order_success .info_customer .phone strong:nth-child(1) {
    position: relative;
}

.box_order_success .info_customer .name strong,
.box_order_success .info_customer .phone strong {
    padding-left: 0;
}

/* Optional: animated subtle divider in header */
.box_order_success .box_icon_sucess::after {
    /* content: ""; */
    margin-left: auto;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: .45;
}

/* Accessibility: focus ring for links/buttons inside */
.box_order_success a:focus {
    outline: 3px solid rgba(237, 107, 135, 0.4);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Typography polish */
.box_order_success strong {
    font-weight: 700;
}
