.affirm-modal-trigger {
        font-size: 0;
    }

.affirm-modal-trigger::after {
        content: "Learn how";
        font-size: 15px;
    }

/* Sidebar subcategory toggle (same as listing page) */
.fwd-category-menu,
.fwd-subcat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fwd-cat-item {
    border-bottom: 1px solid #ececec;
}

.fwd-cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fwd-cat-link {
    display: block;
    padding: 8px 10px;
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    text-decoration: none;
}

.fwd-cat-item.has-children > .fwd-cat-link {
    font-weight: 600;
}

.fwd-cat-toggle {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #2b2764;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 28px;
}

.fwd-cat-toggle:hover,
.fwd-cat-toggle[aria-expanded="true"] {
    color: #ec0908;
}

.fwd-cat-toggle[aria-expanded="true"]::before {
    content: "-";
}

.fwd-cat-toggle[aria-expanded="false"]::before {
    content: "+";
}

.fwd-cat-link:hover,
.fwd-cat-link.active {
    color: #ec0908;
    font-weight: 600;
}

.fwd-subcat-list {
    display: none;
    padding: 0 0 10px 20px;
    margin-top: -2px;
}

.fwd-cat-item.is-open > .fwd-subcat-list {
    display: block;
}

.fwd-subcat-list li {
    border-bottom: 0;
}

.fwd-subcat-list li:last-child {
    border-bottom: 0;
}

.fwd-subcat-list .fwd-cat-link {
    padding: 8px 10px;
    font-size: 16px;
    line-height: 1.4;
    border: 0 !important;
    text-decoration: none;
    color: #000;
}

.cart-qty-cell {
    min-width: 92px;
}

.cart-qty-wrap {
    position: relative;
    display: inline-block;
}

.cart-qty-input {
    width: 86px;
    height: 38px;
    padding: 6px 8px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font-size: inherit;
    line-height: normal;
    font-weight: inherit;
    text-align: center;
    box-shadow: none;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.cart-qty-mobile-spinner {
    display: none;
}

.cart-qty-input:focus {
    border-color: #cfcfcf;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    opacity: 1;
    -webkit-appearance: inner-spin-button;
    margin: 0;
}

@media (hover: none), (pointer: coarse) {
    .cart-qty-wrap {
        width: 86px;
    }

    .cart-qty-input {
        width: 100%;
        padding-right: 24px;
        -webkit-appearance: none;
        -moz-appearance: textfield;
        appearance: textfield;
    }

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

    .cart-qty-mobile-spinner {
        position: absolute;
        top: 1px;
        right: 1px;
        bottom: 1px;
        width: 22px;
        display: flex;
        flex-direction: column;
        border-left: 1px solid #d7d7d7;
        border-radius: 0 4px 4px 0;
        overflow: hidden;
        background: #f7f7f7;
    }

    .cart-qty-mobile-arrow {
        flex: 1 1 50%;
        border: 0;
        background: transparent;
        color: #555;
        font-size: 9px;
        line-height: 1;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }

    .cart-qty-mobile-up {
        border-bottom: 1px solid #d7d7d7;
    }

.cart-qty-mobile-arrow:disabled {
        opacity: 0.5;
    }
}

.cart-content-layout::before,
.cart-content-layout::after {
    content: " ";
    display: table;
}

.cart-content-layout::after {
    clear: both;
}

@media only screen and (max-width: 767px) {
    .cart-content-layout {
        display: flex;
        flex-direction: column;
    }

    .cart-summary-column,
    .cart-items-column {
        float: none !important;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .cart-items-column {
        order: 1;
    }

    .cart-summary-column {
        order: 2;
    }

    .cart-summary-column .checkout-right.row,
    .cart-items-column .carttable.row {
        margin-left: 0;
        margin-right: 0;
    }

    .cart-summary-column .summery-box {
        margin-top: 8px;
        margin-bottom: 0;
    }

    .cart-items-column .carttable {
        overflow-x: visible;
    }

    .cart-items-column .carttable table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
        max-width: 100%;
    }

    .cart-items-column .carttable table thead,
    .cart-items-column .carttable table tbody,
    .cart-items-column .carttable table tr {
        display: block;
        width: 100%;
    }

    .cart-items-column .carttable table thead tr,
    .cart-items-column .carttable table tbody tr {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) 60px 56px 56px 18px;
        column-gap: 8px;
        align-items: start;
        width: 100%;
    }

    .cart-items-column .carttable table thead tr {
        column-gap: 8px;
        align-items: center;
        background: #2b2764;
    }

    .cart-items-column .carttable table thead tr td {
        font-size: 13px !important;
        line-height: 1.2;
        padding: 10px 4px !important;
        text-align: center;
        word-break: keep-all;
        box-sizing: border-box;
        background: transparent;
        border-left: 0;
    }

    .cart-items-column .carttable table tbody tr td {
        font-size: 12px !important;
        line-height: 1.45;
        padding: 10px 2px !important;
        vertical-align: top;
        min-width: 0;
        box-sizing: border-box;
    }

    .cart-items-column .carttable table thead tr td,
    .cart-items-column .carttable table tbody tr td {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .cart-items-column .carttable table thead tr td,
    .cart-items-column .carttable table tbody tr td {
        width: auto !important;
    }

    .cart-items-column .carttable table thead tr td:first-child,
    .cart-items-column .carttable table thead tr td:last-child {
        font-size: 0 !important;
        padding: 0 !important;
    }

    .cart-items-column .carttable table thead tr td:nth-child(2),
    .cart-items-column .carttable table thead tr td:nth-child(3),
    .cart-items-column .carttable table thead tr td:nth-child(4),
    .cart-items-column .carttable table thead tr td:nth-child(5) {
        display: block;
    }

    .cart-items-column .carttable table thead tr td:nth-child(2) {
        text-align: center;
    }

    .cart-items-column .carttable table tbody tr td:first-child {
        padding-left: 0 !important;
        padding-top: 34px !important;
    }

    .cart-items-column .carttable table tbody tr td:last-child {
        padding-right: 0 !important;
        text-align: center;
        padding-top: 16px !important;
    }

    .cart-items-column .carttable table tbody tr td:nth-child(2) a {
        display: inline-block;
        font-size: 11px;
        line-height: 1.45;
    }

    .cart-items-column .carttable table tbody tr td:nth-child(2) p {
        margin: 0px 0 0;
        font-size: 10px;
        line-height: 1.45;
    }

    .cart-items-column .carttable table tbody tr td:nth-child(4),
    .cart-items-column .carttable table tbody tr td:nth-child(5) {
        font-size: 11px !important;
        line-height: 1.3;
        text-align: center;
        word-break: break-word;
        padding-top: 14px !important;
    }

    .cart-items-column .carttable table tbody tr td:last-child a {
        display: inline-block;
        margin: 0;
        font-size: 13px;
        line-height: 1;
    }

    .cart-items-column .cart-qty-cell {
        min-width: 0;
        text-align: center;
        padding-top: 12px !important;
    }

    .cart-items-column .cart-qty-wrap {
        width: 60px;
    }

    .cart-items-column .cart-qty-input {
        width: 100%;
        height: 34px;
        padding: 4px 20px 4px 4px;
        font-size: 12px;
    }

    .cart-items-column .cart-qty-mobile-spinner {
        width: 18px;
    }

    .cart-items-column .cart-qty-mobile-arrow {
        font-size: 8px;
    }

    .cart-items-column .carttable table tbody tr td:first-child img {
        width: 24px;
        max-width: 24px;
    }

    .cart-items-column .cupdivcls {
        padding-top: 20px;
    }

    .cart-items-column .regfrm-box {
        text-align: center;
    }

    .cart-items-column .checkout_btu {
        width: 100%;
        margin: 16px 0 12px;
    }

    .cart-desktop-checkout,
    .cart-desktop-checkout-wrap {
        display: none;
    }

    .cart-mobile-checkout {
        display: block;
        text-align: center;
    }

    .cart-mobile-checkout .checkout_btu {
        width: 100%;
        margin: 16px 0 12px;
    }

    .cart-items-column .coupinpdiv {
        display: flex;
        width: 100%;
    }

    .cart-items-column .coupinpdiv .form-control {
        min-width: 0;
        height: 36px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .cart-items-column .coupinpdiv .input-group-btn {
        width: auto;
        white-space: nowrap;
        vertical-align: top;
    }

    .cart-items-column .coupon-btn {
        height: 36px;
        padding: 6px 14px;
        font-size: 12px;
        line-height: 1.2;
        vertical-align: top;
        border-radius: 0 4px 4px 0;
    }

    .cart-items-column .cupdivcls .row + .row {
        margin-top: 10px;
    }
}

@media only screen and (min-width: 768px) {
    .cart-mobile-checkout {
        display: none;
    }
}
