#order-standard_cart .cart-no-sidebar .cart-sidebar,
#order-standard_cart .cart-no-sidebar .sidebar-collapsed {
    display: none !important;
}

#order-standard_cart .cart-no-sidebar .cart-body {
    float: none;
    width: 100%;
}

#order-standard_cart .hc-empty-cart-card,
#order-standard_cart .hc-product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

#order-standard_cart .hc-empty-cart-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

#order-standard_cart .hc-empty-cart-card p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.5;
}

#order-standard_cart .hc-empty-cart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#order-standard_cart .hc-product-card-main {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

#order-standard_cart .hc-product-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

#order-standard_cart .hc-product-title {
    margin: 0 0 6px;
    font-size: 22px;
    color: #0f172a;
}

#order-standard_cart .hc-product-domain {
    margin: 0;
    color: #6b7280;
}

#order-standard_cart .hc-product-meta {
    text-align: right;
    min-width: 260px;
}

#order-standard_cart .hc-product-cycle {
    display: block;
    color: #4b5563;
    font-weight: 600;
}

#order-standard_cart .hc-product-price {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin: 2px 0 10px;
}

#order-standard_cart .hc-product-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

#order-standard_cart .hc-product-details {
    margin-top: 14px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

#order-standard_cart .hc-product-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #374151;
    margin-bottom: 6px;
}

#order-standard_cart .hc-qty-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    max-width: 220px;
}

@media (max-width: 767px) {
    #order-standard_cart .hc-product-meta {
        text-align: left;
        min-width: 0;
        width: 100%;
    }

    #order-standard_cart .hc-product-actions {
        justify-content: flex-start;
    }

    #order-standard_cart .hc-product-actions-wrap {
        justify-content: flex-start;
    }
}

/* Disable WHMCS floating order summary animation for this custom layout */
#order-standard_cart #orderSummary {
    margin-top: 0 !important;
    position: static !important;
    top: auto !important;
}

#order-standard_cart .hc-main-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

#order-standard_cart {
    overflow-x: hidden;
}

/* Action buttons in cart items */
#order-standard_cart .hc-action-btn {
    border: 1px solid transparent;
}

#order-standard_cart .hc-action-detail,
#order-standard_cart .hc-action-edit {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8 !important;
}

#order-standard_cart .hc-action-detail:hover,
#order-standard_cart .hc-action-edit:hover {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af !important;
}

#order-standard_cart .hc-action-remove {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff !important;
}

#order-standard_cart .hc-action-remove:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff !important;
}

#order-standard_cart .hc-action-btn i {
    color: inherit !important;
}

#order-standard_cart .hc-action-detail i,
#order-standard_cart .hc-action-edit i {
    color: #1d4ed8 !important;
}

#order-standard_cart .hc-action-remove.btn-remove-from-cart,
#order-standard_cart .hc-action-remove.btn-remove-from-cart i {
    color: #ffffff !important;
}

#order-standard_cart .hc-product-meta-wrap {
    min-width: 0;
    max-width: 100%;
}

#order-standard_cart .hc-product-actions-wrap {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
}

#order-standard_cart .hc-detail-chevron {
    transition: transform .2s ease;
}

#order-standard_cart .hc-action-detail.is-open .hc-detail-chevron {
    transform: rotate(180deg);
}

/* Fix legacy negative margin that pushes empty-cart button over forms */
#order-standard_cart .empty-cart {
    margin: 16px 0 0 !important;
    text-align: initial !important;
    line-height: normal !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#order-standard_cart .empty-cart #btnEmptyCart {
    width: 100% !important;
    max-width: 100%;
    display: inline-flex !important;
    box-sizing: border-box;
}


/* Tailwind-like centered modal styling for cart popups */
.modal-backdrop {
    z-index: 10550 !important;
}

#modalEmptyCart,
#modalRemoveItem {
    z-index: 10560 !important;
}

#modalEmptyCart .modal-dialog,
#modalRemoveItem .modal-dialog {
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    max-width: 560px;
}

#modalEmptyCart .modal-content,
#modalRemoveItem .modal-content {
    width: 100%;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
}

#modalEmptyCart .modal-body,
#modalRemoveItem .modal-body {
    padding: 20px 20px 12px;
    text-align: center;
}

#modalEmptyCart .modal-title,
#modalRemoveItem .modal-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

#modalEmptyCart .modal-footer,
#modalRemoveItem .modal-footer {
    border-top: 0;
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

#modalEmptyCart .modal-footer .btn,
#modalRemoveItem .modal-footer .btn {
    min-width: 110px;
}

@media (max-width: 575px) {
    #modalEmptyCart .modal-dialog,
    #modalRemoveItem .modal-dialog {
        padding: 10px;
    }

    #modalEmptyCart .modal-footer,
    #modalRemoveItem .modal-footer {
        flex-direction: column;
    }

    #modalEmptyCart .modal-footer .btn,
    #modalRemoveItem .modal-footer .btn {
        width: 100%;
    }
}
