/* === Basic Layout === */
div#cartpage-drawer {
    width: 100%;
}
.cartpage-drawer_inner {
    display: flex;
        width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.ctp-L{
    width: 40%;
    display: flex;
    flex-direction: column;
} 
.ctp-R{
    width: 30%; 
    display: flex;
    gap: 10px;
    flex-direction: column;
} 
.ctp-R .order_data {
    background-color: var(--e-global-color-dbcfbb5);
    padding: 36px 24px;
}
.ctp-R h6 {
    font-family: var(--e-global-typography-text-font-family, sans-serif);
    font-size: 14px; 
    font-weight: 700;
    line-height: 16px;
}
.continue_shopping a {
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    padding: 1rem;
    text-transform: uppercase;
    font-family: var(--e-global-typography-accent-font-family);
    color: var(--e-global-color-primary);
    background: var(--e-global-color-dbcfbb5);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.cartpage-header .cph-row-1 {
    flex-direction: row;
    justify-content: space-between;
    display: flex;
    align-items: center;
}

.cartpage-close {
    font-size: 28px;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    cursor: pointer;
}

/* === Free Shipping Tracker === */
.cartpage-shipping-bar {
    padding: 0;
    text-align: left;
    font-family: var(--e-global-typography-text-font-family, sans-serif);
    line-height: 16px;
    font-size: 13px;
}

.cartpage-progress-track {
    background: var(--e-global-color-secondary, #e0e0e0);
    border-radius: 0;
    height: 5px;
    margin: 14px 0 10px;
    overflow: hidden;
}

.cartpage-progress-fill {
    height: 100%;
    background: #1e8449;
    width: 0%;
    transition: width 0.3s ease;
}

.cartpage-free-text {
    font-weight: bold;
    color: #1e8449;
    font-size: 13px;
}

/* === Product List === */
.cartpage-products {
    flex: 1;
    padding: 0px;
    flex-direction: column;
    display: flex;
    gap: 6px;
}

.cartpage-product {
    display: flex;
    margin-bottom: 0;
    padding: 20px 28px;
    background-color: var(--e-global-color-dbcfbb5);
    gap: 1rem;
    align-items: center;
}

.cartpage-product a {
    color: var(--e-global-color-primary, #000000);
}

.cartpage-product .cartpage-thumb {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cartpage-product .cartpage-thumb img {
    width: 70px;
    height: 105px;
    object-fit: contain;
}

.cartpage-info {
    flex: 1;
    padding-left: 12px;
}

.cartpage-info .cp-t-s-of {
    justify-content: space-between;
    display: flex;
    align-items: flex-start;
}

.cartpage-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 16px;
    font-family: var(--e-global-typography-text-font-family, sans-serif);
}

.cartpage-size {
    color: #6b6b6b;
    margin: 6px 0 22px;
    font-weight: 600;
    font-size: 11px;
    line-height: 14px;
    font-family: var(--e-global-typography-text-font-family, sans-serif);
        text-transform: uppercase;
}

.cartpage-product .cartpage-info .cp-p-q {
    flex-direction: row;
    justify-content: space-between;
    display: flex;
    align-items: flex-end;
}

.cartpage-percentageOFF {
    background: var(--e-global-color-accent, #ffffff);
    color: var(--e-global-color-primary, #000000);
    font-size: 13px;
    line-height: 16px;
        flex-shrink: 0;
    font-weight: 600;
    padding: 5px 14px;
}

.cartpage-price {
    font-size: 13px;
    line-height: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6b6b6b;
}

.cartpage-price ins bdi {
    color: var(--e-global-color-primary, #000000);
}

.cartpage-price del,
.cartpage-price del bdi {
    color: #6b6b6b;
}

.cartpage-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--e-global-color-accent, #ffffff);
    width: 130px;
    flex-direction: row;
    justify-content: space-between;
}

.cartpage-qty-controls button {
    margin: 0;
    background: transparent !important;
    padding: 10px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    width: 40px;
    height: 30px;
    justify-content: center;
}

.cartpage-qty-controls button img.cartpage-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

span.cartpage-qty-val {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    font-family: var(--e-global-typography-accent-font-family, sans-serif);
}

.cartpage-border.border-divider {
    padding: 3.5rem 1.75rem;
}

/* === Summary === */
.cartpage-summary {
    flex-direction: column;
    display: flex;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--e-global-color-339ad27);
}
.cartpage-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 14px;
    line-height: 14px;
    color: var(--e-global-color-primary);
    font-family: var(--e-global-typography-text-font-family, sans-serif);
    font-weight: 700;
}

.cartpage-summary hr {
    border: none;
    border-top: 1px solid var(var(--e-global-color-339ad27));
    margin: 0 0 12px !important;
}

.cartpage-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.cartpage-buttons a {
    flex: 1;
    min-height: 48px;
    padding: 12px;
    margin: 0;
    text-align: center;
    background: var(--e-global-color-primary);
    color: var(--e-global-color-accent) !important;
    border-radius: 0;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    font-family: var(--e-global-typography-accent-font-family, sans-serif);
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
}

.cartpage-buttons a.cartpage-view {
    width: 100px;
    flex: none;
}
.Payment-Options{
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* === Upsell Carousel === */
.cartpage-upsell { 
}

.cartpage-upsell h4 {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: bold;
}

.cartpage-upsell-carousel { 
}

/* Add responsive behavior */
@media (max-width: 767px) {
 #cartpage-drawer { 
    width: 100%; 
    height: 100%; 
    z-index: 99999 !important;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    touch-action: manipulation;
    pointer-events: auto;
  }

  #cartpage-drawer:not(.cartpage-closed) {
    transform: translateX(0);
  }
.cartpage-product .cartpage-thumb img {
    width: 70px;
    height: auto;
    object-fit: contain;
}
 .cartpage-qty-controls { 
    width: 100px; 
} 

  /* --- Fix mobile tap issues --- */
  .cartpage-products,
  .cartpage-product,
  .cartpage-qty {
    pointer-events: auto !important;
  }

  .cartpage-closed {
    pointer-events: none !important;
  }

    .cartpage-buttons a {
        font-size: 14px;
    }

    .cartpage-thumb img {
        width: 100%;
    }
}