.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cart-item__image {
    display: block;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item__top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.cart-item__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.cart-item__variant {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.cart-item__remove {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item__remove:hover {
    color: #ef4444;
    border-color: #fecaca;
}

.cart-item__remove svg {
    width: 1rem;
    height: 1rem;
}

.cart-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.cart-item__qty button {
    width: 2.25rem;
    height: 2.25rem;
    color: #374151;
    font-size: 1rem;
    line-height: 1;
}

.cart-item__qty span {
    min-width: 2rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.cart-item__line-total {
    display: block;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #111827;
    text-align: right;
}

.cart-item__unit-price {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
}

.order-summary {
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.order-summary__title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

.order-summary__shipping-progress {
    margin-bottom: 1rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: #fff7ed;
    border: 1px solid #ffedd5;
}

.order-summary__shipping-progress-bar {
    height: 0.375rem;
    border-radius: 999px;
    background: #fed7aa;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.order-summary__shipping-progress-bar span {
    display: block;
    height: 100%;
    background: var(--color-accent);
    border-radius: inherit;
}

.order-summary__shipping-progress p {
    font-size: 0.75rem;
    color: #9a3412;
    line-height: 1.4;
}

.order-summary__free-shipping {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.8125rem;
    font-weight: 600;
}

.order-summary__free-shipping svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.order-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 0;
}

.order-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: #111827;
}

.order-summary__row--discount dd {
    color: #111827;
    font-weight: 600;
}

.order-summary__row--total {
    margin-top: 0.5rem;
    padding-top: 0.875rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.order-summary__trust {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.order-summary__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.order-summary__trust-item svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--color-primary);
}

.order-summary__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.875rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
}

.order-summary__cta:hover {
    background: var(--color-primary-dark);
}

/* Timed Slider Image Match Style */
.checkout-v2-upsell {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.checkout-v2-upsell * {
    box-sizing: border-box;
}

.checkout-v2-upsell__timer {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    font-weight: 600;
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    border-bottom: 1px solid #fee2e2;
    text-align: center;
}

.checkout-v2-upsell__timer strong {
    color: #dc2626 !important;
    font-weight: 800;
}

.checkout-v2-upsell__intro {
    padding: 1.25rem 1.25rem 0.5rem !important;
    text-align: center;
}

.checkout-v2-upsell__intro h3 {
    color: #15803d !important; /* Green title */
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem !important;
    margin-top: 0 !important;
}

.checkout-v2-upsell__intro p {
    color: #4b5563 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

.checkout-v2-upsell__offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.25rem 1rem !important;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

.checkout-v2-upsell__arrow {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 9999px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #374151 !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkout-v2-upsell__arrow:hover:not(:disabled) {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

.checkout-v2-upsell__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.checkout-v2-upsell__product {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

.checkout-v2-upsell__product img {
    width: 4.75rem !important;
    height: 4.75rem !important;
    border-radius: 0.5rem !important;
    object-fit: cover;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.checkout-v2-upsell__product > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.checkout-v2-upsell__product strong {
    font-size: 0.9rem !important;
    color: #1f2937 !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.checkout-v2-upsell__discount {
    align-self: flex-start;
    background: #fef3c7 !important; /* amber-100 */
    color: #92400e !important; /* amber-800 */
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 0.25rem !important;
    margin-top: 0.125rem;
}

.checkout-v2-upsell__prices {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.checkout-v2-upsell__prices s {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
}

.checkout-v2-upsell__prices em {
    font-style: normal !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
}

.checkout-v2-upsell__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem !important;
    width: 100%;
}

.checkout-v2-upsell__reject,
.checkout-v2-upsell__accept {
    width: 100%;
    text-align: center;
    padding: 0.65rem 0.75rem !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-v2-upsell__reject {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.checkout-v2-upsell__reject:hover {
    background: #f9fafb !important;
    border-color: #cbd5e1 !important;
}

.checkout-v2-upsell__accept {
    background: #15803d !important; /* Solid green button color */
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(21, 128, 61, 0.15);
}

.checkout-v2-upsell__accept:hover {
    background: #166534 !important;
    box-shadow: 0 4px 8px rgba(21, 128, 61, 0.25);
}

/* Mobile specific styling adjustments */
@media (max-width: 639px) {
    .checkout-v2-upsell__intro {
        padding: 0.85rem 0.75rem 0.35rem !important;
    }

    .checkout-v2-upsell__intro h3 {
        font-size: 1rem !important;
    }

    .checkout-v2-upsell__intro p {
        font-size: 0.75rem !important;
    }

    .checkout-v2-upsell__offer {
        padding: 0.35rem 0.5rem 0.5rem !important;
        gap: 0.35rem;
    }

    .checkout-v2-upsell__arrow {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }

    .checkout-v2-upsell__product {
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .checkout-v2-upsell__product img {
        width: 3.75rem !important;
        height: 3.75rem !important;
    }

    .checkout-v2-upsell__product strong {
        font-size: 0.8125rem !important;
    }

    .checkout-v2-upsell__actions {
        padding: 0 0.5rem 0.75rem !important;
        gap: 0.4rem;
    }

    .checkout-v2-upsell__reject,
    .checkout-v2-upsell__accept {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.75rem !important;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .8; transform: scale(1.05); }
}

@media (min-width: 1024px) {
    .cart-summary-section {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 8rem !important;
        align-self: start !important;
    }
}
