#checkoutPage a {
    color: var(--primary-color);
    cursor: pointer;
}

#checkoutPage {
    margin-top: 30px;
    margin-bottom: 30px;
}

.order-totals-column {
    max-width: 35%;
}

.total-cost {
    border: 1px solid var(--border-color);
    border-radius: 5px 5px;
    /* min-height: 47px; */
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .2);
    background: #fff;
}

.price-font {
    font-size: calc(var(--font-size) + 2px);
    font-weight: bold;
}

.price-details-text {
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--border-color);
    background: var(--third-color);
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 5px 5px 0px 0px;
}

.checkout-desc-text {
    padding: 5px 15px;
    border-radius: var(--border-radius);
    background-color: #fdf4d6;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .2);
    font-size: calc(var(--font-size) - 2px);
}

.infoAndTable {
    width: 100%;
    margin-top: 15px;
}

.infoAndTable td {
    padding: 10px 20px;
}

.infoAndTable td:nth-of-type(1) {
    width: 55%;
    text-align: left;
}

.infoAndTable td:nth-of-type(2) {
    width: 45%;
    text-align: right;
}

.border-default {
    border-bottom: 1px solid var(--border-color);
}

.order-header-3 {
    font-size: calc(var(--font-size) + 2px);
    font-weight: 700;
}

.checkout-login,
.checkout-company-detail,
.checkout-shipping-address,
.checkout-billing-address,
.checkout-order-summary,
.checkout-payment,
.checkout-add-address,
.checkout-order-confirmation,
.checkout-order-payment {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .2);
    border-radius: var(--border-radius);
}

.inner-content {
    padding: 10px 20px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.checkout-sequence {
    font-size: var(--font-size);
    color: #fff;
    background-color: var(--secondary-color);
    border-radius: 2px;
    padding: 3px 10px;
    vertical-align: baseline;
    margin-right: 17px;
    min-width: 28px;
    text-align: center;
    margin-left: 2px;
}

.checkout-title {
    color: var(--place-holder-color);
    font-size: calc(var(--font-size) + 1px);
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.checkout-email {
    font-size: calc(var(--font-size) - 2px);
}

.checkout-change-button {
    padding: 0 20px;
    height: 30px;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color) !important;
    font-size: 14px;
    font-weight: 500;
    margin: auto 0px auto auto;
}

.check-icon {
    color: green;
}

.checkout-active {
    color: #fff;
    background-color: var(--secondary-color);
    padding: 15px 15px 15px 20px;
    border-radius: 5px 5px 0px 0px;
}

.checkout-active .checkout-sequence {
    color: var(--secondary-color) !important;
    background-color: #fff !important;
}

.checkout-active .checkout-title {
    color: #fff !important;
}

.checkout-terms {
    margin-top: 10px;
    font-size: calc(var(--font-size) - 3px);
}

.check-email-btn {
    margin-top: 10px;
    padding: 7px 20px;
    margin-bottom: 10px;
}

.address-card {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.selected-address {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.address-details {
    display: inline-block;
    margin-left: 20px;
    width: calc(100% - 34px);
}

.address-info {
    max-width: 523px;
    float: left;
    cursor: pointer;
    width: 100%;
}

.address-email {
    margin-left: 10px;
}

.address-line {
    margin-top: 10px;
    display: block;
}

.delivery-btn {
    margin-top: 10px;
    background: #fff !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    padding: 3px 7px;
}

.address-actions {
    max-width: 325px;
    float: right;
}

.my-account-btn {
    color: #fff !important;
    background-color: var(--primary-color) !important;
}

.action-button {
    margin-top: 20px;
}

.action-button button {
    margin-right: 10px;
    padding: 5px 10px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    background-color: #fff;
    font-size: calc(var(--font-size) - 2px);
}

.order-item {
    padding: 20px;
}

.product-info-table {
    width: 100%;
}

.product-info-table td:not(:last-of-type) {
    padding-right: 20px;
}

.product-info-table td {
    vertical-align: top;
}

.product-info-table-col1 {
    width: 15%;
}

.product-info-table-col2 {
    /* width: 40%; */
    width: 33%;
}

.product-info-table-col3 {
    width: 22%;
}

.product-info-table-col4 {
    width: 30%;
}

.product-info-row img {
    border-radius: var(--border-radius);
    width: 100%;
    aspect-ratio: 1/1;
}

.item-name a {
    font-size: calc(var(--font-size)) !important;
    font-weight: bold;
    outline: 0;
    color: var(--primary-color);
}

.product-attr a {
    color: var(--alternative-color) !important;
}

.product-attr a:hover {
    color: var(--primary-color) !important;
}

.product-attr li {
    list-style: disc !important;
    padding-top: 2px;
    margin-left: 15px;
    color: var(--alternative-color);
    /* Reduce margin between bullet and text */
}

.product-attr li span {
    color: var(--secondary-color);
}

.product-attr li span a {
    color: var(--secondary-color) !important;
    font-size: calc(var(--font-size) - 2px);
}

.net-price {
    font-weight: 700;
    margin-bottom: 10px;
}

.btn-link {
    cursor: pointer;
    text-decoration: none;
    font-size: calc(var(--font-size) - 2px)
}

.btn-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.remove-item {
    margin-top: 10px;
    font-size: calc(var(--font-size) - 2px);
}

.qty-change-buttons {
    display: flex;
    color: var(--secondary-color);
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    white-space: nowrap;
}

.qty-change-button {
    width: 25px;
    height: 25px;
    background: linear-gradient(#fff, #f9f9f9);
    display: inline-block;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: var(--font-size);
    border-radius: 50%;
    line-height: 1;
}

.qty-change-input {
    display: inline-block;
    padding: 3px 6px;
    width: calc(100% - 110px);
    height: 100%;
    margin: 0 10px;
}

.qty-change-input input {
    text-align: center;
}

.lot-weight {
    font-size: calc(var(--font-size) - 2px);
    margin-left: 4px;
}

.loader {
    display: inline-block;
    margin-left: 10px;
    position: relative;
    top: 50%;
}

.loader div {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: loader 1.2s infinite ease-in-out;
    margin-right: 5px;
}

.loader div:nth-child(1) {
    animation-delay: -0.24s;
}

.loader div:nth-child(2) {
    animation-delay: -0.12s;
}

.loader div:nth-child(3) {
    animation-delay: 0;
}

@keyframes loader {

    0%,
    100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}

.timer-message {
    display: block;
    font-size: calc(var(--font-size) - 3px);
    margin-top: 5px;
    margin-left: 10.9rem;
}

.otp-input input {
    width: 50px;
    height: 50px;
    margin: 0 15px 0px 0px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid #d3d3d3;
    border-radius: 7px;
    background-color: #fff
}

.otp-input input::-webkit-outer-spin-button,
.otp-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.confirm-order {
    border: 1px solid var(--border-color);
    padding: 20px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .2);
    border-radius: var(--border-radius);
}

.confirm-order-btn,
.continue-order-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* .confirm-order-btn {
    display: flex;
    justify-content: center;
    align-items: center;
} */
.confirm-order-btn .btn-primary {
    font-size: calc(var(--font-size) - 2px) !important;
    padding: 6px 12px !important;
}

.confirm-order-btn .btn-primary:hover {
    color: #fff !important;
}

/* .confirm-order-btn i {
    margin-left: 5px;
} */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.field-label {
    font-size: calc(var(--font-size) - 2px) !important;
}


.multi-supplier-confirm-box {
    padding: 10px 20px;
    border: 1px dashed #e8c444;
    border-radius: var(--border-radius);
    background: #fdf4d6;
    padding-left: 40px;
}

.multi-supplier-confirm-box .subtitle {
    color: var(--alternative-color);
    font-size: calc(var(--font-size) - 3px);
}

.multi-supplier-confirm-box .field-label {
    color: var(--secondary-color);
    margin: 0px;
}

/* .surplus-item{
    background: #e3d7ff38;
} */
/* .surplus-label{
    background: #e3d7ff;
    border-radius: 20px;
    color: #3D188D;
    padding: 3px 10px;
    font-size: calc(var(--font-size) - 3px);
    margin-left: 3px;
    font-weight: bold;
} */
.surplus-label {
    border-radius: var(--border-radius);
    padding: 0px 8px 1px 8px;
    font-size: calc(var(--font-size) - 3px);
    margin-left: 10px;
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.product-attr {
    font-size: calc(var(--font-size) - 2px);
}

.product-attr a {
    color: var(--alternative-color);
}

.buy-cart-text {
    flex-basis: 0;
    -webkit-box-flex: 1;
    flex-grow: 1;
    max-width: 100%;
    margin-top: 50px;
}

.buy-cart-text p {
    font-weight: 700;
    font-size: calc(var(--font-size) + 5px);
}

.checkout-order-payment .payment-options {
    margin: 20px 0;
}

.checkout-order-payment .form-check-inline {
    margin-right: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
}

.checkout-order-payment .form-check-inline input[type="radio"] {
    margin-right: 8px;
}

.checkout-order-payment .form-check-label {
    font-size: 16px;
    color: #333;
}

.checkout-order-payment .payment-notice {
    margin-top: 5px;
    padding: 5px 15px;
    background-color: #fff3e6;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    color: #856404;
    font-size: calc(var(--font-size) - 1px);
}

.checkout-order-payment .payment-content {
    display: flex;
    flex-direction: column;
}

.continue-order-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Top row with spinner + text */
.loading-top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(219, 78, 57, 0.08);
    border-top-color: var(--primary-color);
    animation: spin 0.95s linear infinite;
    box-shadow: 0 3px 8px rgba(219, 78, 57, 0.12);
}

/* Fine text style */
.loading-text strong {
    display: block;
    font-size: 15px;
    color: var(--secondary-color);
}

.loading-text .muted {
    display: block;
    font-size: 13px;
    color: var(--alternative-color);
    margin-top: 2px;
}

/* Skeleton list */
.skeleton-list {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

/* Each skeleton row resembles a cart line item */
.skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary-light-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(219, 78, 57, 0.08);
}

.skeleton-thumb {
    width: 56px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    position: relative;
    overflow: hidden;
}

.skeleton-lines {
    flex: 1;
    min-width: 0;
}

.skeleton-line {
    height: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    overflow: hidden;
}

.skeleton-line.short {
    width: 45%;
}

.skeleton-price {
    width: 60px;
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
}

/* shimmer animation for skeleton pieces */
.skeleton-thumb::after,
.skeleton-line::after,
.skeleton-price::after {
    content: "";
    position: relative;
    inset: 0;
    background: linear-gradient(90deg, rgba(219, 78, 57, 0), rgba(255, 255, 255, 0.45), rgba(219, 78, 57, 0));
    transform: translateX(-150%);
    animation: shimmer 1.1s linear infinite;
}

.skeleton-lines .skeleton-line::after {
    position: absolute;
    left: 0;
    top: 0;
}

/* empty state */
.cart-empty {
    text-align: center;
    padding: 40px 18px;
    background: var(--third-color);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(23, 30, 40, 0.06);
}

.empty-illustration {
    opacity: .9;
    margin-bottom: 10px;
}

.cart-empty h3 {
    margin: 6px 0;
    font-size: 18px;
}

.cart-empty p.muted {
    color: var(--alternative-color);
    margin-bottom: 14px;
}

.btn-cta {
    display: inline-block;
    padding: 10px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 600;
}

.btn-cta:hover {
    transform: translateY(-2px);
    transition: transform .12s ease;
}

.category-label {
    color: rgb(102, 102, 102) !important;
    margin-right: 5px;
}

.product-attr .cart-category-link a {
    color: var(--primary-color) !important;
}

/* #checkoutPage .total-cost{
    display: none;
} */
/* small animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* responsive */
@media (max-width: 640px) {
    .skeleton-item {
        padding: 10px;
        gap: 10px;
    }

    .skeleton-thumb {
        width: 48px;
        height: 44px;
    }
}





@media (max-width: 800px) and (min-width: 360px) {
    #checkoutPage .checkout-process {
        flex: none;
    }

    /* #checkoutPage .total-cost{
    display: none;
} */
    .product-detailed-tr {
        /* display: block; */
        width: 100%;
    }

    .product-detailed-tr td {
        display: block;
        width: 100%;
    }

    .total-cost {
        width: 90vw;
    }

    .confirm-order {
        width: 90vw;
    }
}

@media (max-width: 932px) and (min-width: 430px) {
    .mobile-drawer {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transition: left 0.3s ease;
        z-index: 9999;
        padding: 20px;
        overflow-y: auto;
    }
}

.unidentified-part-name {
    color: var(--primary-color) !important;
    font-size: calc(var(--font-size) + 2px) !important;
    font-weight: 700 !important;
}


.order-item {
    padding: 20px 20px 20px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px dotted #ededed;
}
