/* Hide default header/footer if you want a bare look */
.whb-main-header,
.wd-footer.footer-container {
    display: none;
}

.cart-header {
    display: flex;
    align-items: center;
    height: 92px;
}
/* Use same or similar classes from your custom checkout */
.custom-cart-product-list ul.cart_list {
    list-style: none;
    margin: 0;
    padding-left: 0;
    padding-bottom: 32px;
    gap: 16px;
    display: flex;
    flex-direction: column;
}

.custom-cart-product-list ul .woocommerce-cart-item {
    display: flex;
    align-items: flex-start;
    border-bottom: none;
    position: relative;
    margin: 0;
    padding: 0;
    height: 220px;
    gap: 8px;
}

.remove-item-link {
    display: flex;
    align-self: flex-start;
    text-decoration: none;
    height: 100%;
    align-items: center;
}

.custom-cart-product-list ul .product-image-container {
    width: 240px;
    height: 220px;
}

.custom-cart-product-list ul .product-image-container img {
    width: 240px;
    min-width: 0;
    max-width: none;
    height: 100%;
    object-fit: cover;
    margin-right: 0;
    border-radius: 32px;
}

.woocommerce-cart-item .cart-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    height: 100%;
    padding: 24px 32px;
    background-color: #ebf2f4;
    border-radius: 32px;
}

.cart-title-variation-price {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    height: 100%;
}

.title-variation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.variation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-variation {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}

/* Example color swatch style */
.color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #e2e2e6;
}

.hex-divider {
    display: flex;
}

/* Pricing */
.cart-prices-quantity {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.cart-prices-quantity .price {
    display: flex;
    gap: 4px;
    margin: 0;
    align-items: baseline;
}

/* Quantity input inside mini-cart-variation */
.quantity-container .quantity {
    display: inline-flex;
    align-items: center;
}

/* Cart action row (coupon, update cart) */
.wd-cart-action-row {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.cart-actions {
    display: flex;
    gap: 16px;
}

/* Basic styling for coupon input */
.wd-coupon-form input#coupon_code {
    background-color: rgba(17, 16, 23, 0.05);
    border: none;
    padding: 4px 8px;
}

.button {
    background: #111017;
    color: white;
    border: none;
    padding: 8px 16px;
    font-family: "Instrument Sans";
    cursor: pointer;
}

.title-remove-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.cart-title-variation-price .title-variation .wd-entities-title,
.cart-info .cart-title-variation-price .variation {
    margin-bottom: 0;
}

.cart-info :is(ul, ol) li {
    margin-bottom: 0;
}

.cart-attr {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.24px;
    color: #0a0a0a;
    text-transform: uppercase;
}

.cart-info .cart-prices-quantity div.quantity {
    margin-bottom: 0;
}

.cart-info .cart-prices-quantity div.quantity input {
    border: unset;
    border-bottom: 1px solid #e2e2e2;
}

.woocommerce .cart-content-wrapper {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    margin-top: 32px;
}

/* Lock 67% / 33% split and include padding in the box */
.woocommerce .cart-content-wrapper .woocommerce-cart-form {
    flex: 0 0 67%;
    max-width: 67%;
    box-sizing: border-box;
    background-color: #f5f8f9;
    border-radius: 40px;
}

.woocommerce .cart-content-wrapper .cart_totals {
    flex: 0 0 33%;
    max-width: 33%;
    box-sizing: border-box;
}

.cart_totals .cart-totals-inner .roket-cart-checkout-button {
    display: flex;
    height: 48px;
    background: #263336;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    border-radius: 1024px;
    text-transform: none;
}

.cart_totals .cart-totals-inner .roket-cart-checkout-button:hover {
    background: #3c474a;
}

.cart_totals .cart-totals-inner .roket-cart-checkout-button:active {
    background: #515c5e;
    transform: scale(0.98);
}

.cart_totals .cart-totals-inner .roket-cart-checkout-button:focus {
    background: #263336;
    box-shadow: 0px 0px 0px 2px #ababab40;
}

.checkout-coupon-label {
    margin-bottom: 4px;
}

.cart_totals .cart-totals-inner .cart-coupon-section {
    /* margin-bottom: 24px; */
}

.roket-cart-checkout-button a {
    color: white;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: -0.24px;
    text-transform: uppercase;
    padding: 14px 32px;
    margin-bottom: 0;
}

.roket-cart-checkout-button a:hover {
    color: white;
}

.roket-cart-checkout-button .checkout-button-svg {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border: 1px solid #303030;
}

.cart-totals-inner .shop_table tbody tr:first-child th,
.cart-totals-inner .shop_table tbody tr:first-child td {
    padding: 0;
    padding-bottom: 24px;
    border: 0;
}

.cart-totals-inner .shop_table tbody tr td {
    text-align: right;
}

.cart-totals-inner .shop_table tbody tr:last-child th,
.cart-totals-inner .shop_table tbody tr:last-child td {
    padding: 0;
    padding-bottom: 24px;
}

.cart-totals-inner .shop_table tbody tr:not(:first-child):not(:last-child) th,
.cart-totals-inner .shop_table tbody tr:not(:first-child):not(:last-child) td {
    padding: 0;
    padding-bottom: 16px;
    border: 0;
}

.cart-totals-inner .shop_table tr {
    margin: 0;
    padding: 0;
}

.cart-totals-inner .shop_table tr:last-child {
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.woocommerce .cart-content-wrapper .cart_totals .cart-totals-inner {
    border: unset;
    background-color: #f5f8f9;
    padding: 32px;
}

.woocommerce .cart-content-wrapper .cart_totals .cart-totals-inner table {
    margin-bottom: 0;
}

.roket-cart-checkout-terms {
    display: flex;
    justify-content: center;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e2e2;
}

.roket-cart-checkout-terms span,
.roket-cart-checkout-terms a {
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: -0.1px;
    color: #777;
}

.roket-cart-checkout-terms a {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.roket-cart-help-services {
    display: flex;
    margin-top: 32px;
    flex-direction: column;
}

.roket-cart-help-services .top-text,
.roket-cart-help-services .bottom-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.24px;
    color: #0a0a0a;
}

.roket-cart-help-services p {
    font-weight: 400;
    margin-bottom: 0;
}

.cart_totals .roket-cart-help-services h2.top-text {
    margin-bottom: 12px;
}

.roket-cart-help-services>div {
    padding: 24px 0;
}

.roket-cart-help-services>div:first-of-type {
    padding: 0 0 24px 0;
}

.roket-cart-help-services>div:last-of-type {
    padding: 24px 0 0 0;
}

.roket-cart-help-services>div:not(:last-of-type) {
    border-bottom: 1px solid #e2e2e2;
}

.coupon-form-wrapper {
    padding: 24px 0 0;
    border-top: 1px solid #e3e2e1;
    /* Situos du atkomentuoti, istrinti padding: 24px 0 0; */
    /* padding: 24px 0; */
    /* border-bottom: 1px solid #e3e2e1; */
}

.checkout_coupon.woocommerce-form-coupon {
    position: relative;
    display: flex;
}

.coupon-input-group {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
}

.coupon-input-group input#coupon_code {
    border: 1px solid #ebf2f4;
    background-color: #ebf2f4;
    padding: 14px 120px 14px 16px;
    /* Extra right padding for button */
    border-radius: 16px;
    height: auto;
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
    transition: all 0.3s ease;
}

.coupon-input-group input#coupon_code:not(:placeholder-shown) {
    background-color: #fff;
    border: 1px solid #ebf2f4;
}

.coupon-input-group input#coupon_code:focus {
    outline: none;
    background-color: #fff;
    border: 1px solid #4b6269;
    box-shadow: 0px 0px 0px 2px #4b626940;
}

.coupon-input-group input#coupon_code::placeholder {
    color: #605e5c;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
}

.checkout_coupon.woocommerce-form-coupon .coupon-apply-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #263336;
    border: none;
    border-radius: 1024px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.3s ease;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
    min-height: 32px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: -0.24px;
}

.checkout_coupon.woocommerce-form-coupon .coupon-apply-btn:hover {
    background-color: #3C474A;
}

.checkout_coupon.woocommerce-form-coupon .coupon-apply-btn:active {
    background-color: #515C5E;
    transform: translateY(-50%) scale(0.98);
}

.checkout_coupon.woocommerce-form-coupon .coupon-apply-btn:focus {
    background-color: #263336;
}

/* Focus state for entire container */
.coupon-input-group:focus-within input#coupon_code {
    background-color: #fff;
    border: 1px solid #4b6269;
    box-shadow: 0px 0px 0px 2px #4b626940;
}

/* Override existing coupon input styling */
.wd-coupon-form input#coupon_code {
    border: 1px solid #ebf2f4 !important;
    background-color: #ebf2f4 !important;
    padding: 14px 120px 14px 16px !important;
    border-radius: 16px !important;
    height: auto !important;
    width: 100% !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: -0.28px !important;
}

body {
    display: flex;
    flex-direction: column;
}

#main-content,
.site-content {
    flex: 1 0 auto;
    /* This makes the content area grow to fill available space */
}

main.container {
    min-height: calc(100dvh - 150px);
    padding-block: 0;
}

.promo-card .promo-button {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.promo-card .promo-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.promo-card .promo-button:hover::after {
    opacity: 1;
}

.promo-card .promo-button .promo-button-text,
.promo-card .promo-button .promo-button-icon {
    position: relative;
    z-index: 2;
}

.checkout-info-accordion {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-accordion-item {
    background: transparent;
    padding-bottom: 24px;
    border-bottom: 1px solid #e3e2e1;
}

.checkout-info-accordion .info-accordion-item .info-accordion-question {
    all: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    background-color: transparent;
    box-sizing: border-box;
}

.info-accordion-label {
    flex: 1 1 auto;
    text-align: left;
}

.info-accordion-icon {
    display: flex;
    align-items: center;
    width: 1.5rem;
}

.info-icon {
    pointer-events: none;
}

.info-icon-minus {
    display: none;
}

.info-accordion-item.active .info-icon-plus {
    display: none;
}

.info-accordion-item.active .info-icon-minus {
    display: block;
}

.info-accordion-answer {
    max-height: 0;
    overflow: hidden;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    transition: max-height 0.4s ease, background-color 0.4s ease,
        padding 0.4s ease;
}

.info-accordion-item.active .info-accordion-answer {
    max-height: 500px;
    padding-top: 24px;
}

.cart_totals .cart-totals-inner table.shop_table strong,
.cart_totals .cart-totals-inner table.shop_table .amount,
.cart_totals .cart-totals-inner table.shop_table .amount bdi {
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.mh-save-pill {
    display: inline-block;
    padding: 6px 8px;
    background: #ffb266;
    border-radius: 1024px;
    white-space: nowrap;
}

.mh-save-pill bdi,
.mh-save-pill bdi span {
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: -0.1px;
    color: #111;
}

.cart_list .cart_item:hover .cart-info .wd-entities-title {
    color: #111;
}

.custom-cart-product-summary {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px 32px 0;
}

.custom-cart-product-header h2 {
    margin-bottom: 0;
}

/* Scoped styles to match the screenshot */
.cross-sells {
    padding: 0 32px 32px;
    overflow: hidden;
}

.cross-sells-title {
    padding-top: 32px;
    border-top: 1px solid #E3E2E1;
    margin-bottom: 32px;
}

.cross-sells .cross-sells-swiper.swiper {
    /* was: display: grid; */
    display: block;
    width: 100%;
    overflow: visible;
}

/* Hide controls by default; enable only when overflow */
.cross-sells-swiper .swiper-button-prev,
.cross-sells-swiper .swiper-button-next,
.cross-sells-swiper .swiper-pagination {
    display: none;
}

.cross-sells-swiper.has-overflow .swiper-button-prev,
.cross-sells-swiper.has-overflow .swiper-button-next,
.cross-sells-swiper.has-overflow .swiper-pagination {
    display: block;
}

.cross-sells-swiper .swiper-wrapper {
    min-width: 0;
}

.cs-card {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 8px;
}

.cs-media {
    position: relative;
    height: 264px;
    overflow: hidden;
    border-radius: 32px;
    background: #cadfe5;
}

.cs-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-stock-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff1d6;
    color: #3b3a39;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.cs-body {
    display: flex;
    flex-direction: column;
    background-color: #ebf2f4;
    padding: 24px 32px;
    border-radius: 32px;
    gap: 24px;
}

.cs-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-title {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-title a {
    color: inherit;
    text-decoration: none;
}

.cs-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #605e5c;
    font-size: 13px;
    margin-bottom: 12px;
}

a.cs-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #263336;
    color: #ffffff;
    border: 2px solid;
    border-image-source: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 100%);
    border-radius: 999px;
    padding: 12px 16px;
    height: 48px;
}

a.cs-btn:hover,
.cart_totals .cart-totals-inner .roket-cart-checkout-button:hover {
    background: #3c474a;
}

a.cs-btn:active,
.cart_totals .cart-totals-inner .roket-cart-checkout-button:active {
    background: #515c5e;
}

a.cs-btn:focus,
.cart_totals .cart-totals-inner .roket-cart-checkout-button:focus {
    background: #263336;
}

.cs-btn .cs-btn-price {
    margin-left: 12px;
    white-space: nowrap;
}

.cs-btn .cs-btn-price .amount {
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

/* Swiper controls */
.cross-sells-prev,
.cross-sells-next {
    color: #0f1417;
}

.cross-sells-pagination .swiper-pagination-bullet {
    background: #b8c6cc;
    opacity: 1;
}

.cross-sells-pagination .swiper-pagination-bullet-active {
    background: #0f1417;
}

/* Always hide Swiper arrows and pagination */
.cross-sells-swiper .swiper-button-prev,
.cross-sells-swiper .swiper-button-next,
.cross-sells-swiper .swiper-pagination {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.roket-empty-cart .cart-top-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 0;
}

@media (max-width: 1024px) {
    .woocommerce .cart-content-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    /* Override to full width when stacked */
    .woocommerce .cart-content-wrapper .woocommerce-cart-form,
    .woocommerce .cart-content-wrapper .cart_totals {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .woocommerce-cart-item .cart-info {
        padding: 24px;
    }

    .custom-cart-product-list ul .product-image-container {
        width: 160px;
        height: 220px;
    }

    .custom-cart-product-list ul .product-image-container img {
        width: 160px;
    }

    .custom-cart-product-list ul .woocommerce-cart-item {
        height: 220px;
    }

    .wc-proceed-to-checkout .checkout-button-text {
        margin-bottom: 0;
        padding: 14px 16px;
    }

    .woocommerce .cart-content-wrapper .cart_totals .cart-totals-inner{
        padding: 32px 24px;
    }
    .custom-cart-product-summary {
        padding: 32px 24px 0;
    }
    .custom-cart-product-list ul.cart_list {
        padding-left: 0;
    }
    .cart-header {
        height: 48px;
    }
    .cross-sells {
        padding: 0 24px 32px;
    }
}

/* Adjust responsive breakpoints if needed */
@media (max-width: 768px) {
    .woocommerce-cart-item .cart-info {
        padding: 24px 16px;
    }

    .custom-cart-product-list ul .product-image-container {
        width: 107px;
        height: 256px;
    }

    .custom-cart-product-list ul .product-image-container img {
        width: 107px;
    }

    .custom-cart-product-list ul .woocommerce-cart-item {
        height: 256px;
    }

    .wc-proceed-to-checkout .checkout-button-text {
        margin-bottom: 0;
        padding: 14px 12px;
    }
    .custom-cart-product-summary {
        padding: 32px 16px 0;
    }
    .woocommerce .cart-content-wrapper .cart_totals .cart-totals-inner {
        padding: 32px 16px;
    }
    .cross-sells {
        padding: 0 16px 32px;
    }
}