/* Cart page styles, extracted from resources/views/shop/cart/index.blade.php (2026-07-22) */
/* Tailwind-inspired Cart Styles */
.tw-cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.tw-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
}

.tw-cart-checkout-error {
    margin: -1.25rem 0 1.5rem;
    padding: 0.875rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    background: #fef2f2;
    color: #7f1d1d;
    font-size: 0.9rem;
    line-height: 1.45;
}

.tw-cart-checkout-error strong {
    display: block;
    margin-bottom: 0.2rem;
}

@media (min-width: 1024px) {
    .tw-cart-grid {
        grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
        align-items: flex-start;
    }
}

.tw-cart-item {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
    margin-bottom: 1.25rem;
}

.tw-cart-item-body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tw-cart-item:first-child {
    margin-top: 0;
}

.tw-cart-item:last-child {
    margin-bottom: 0;
}

.tw-cart-item-image-container {
    position: relative;
    flex-shrink: 0;
    width: 6rem;
}

@media (min-width: 640px) {
    .tw-cart-item-image-container {
        width: 10rem;
    }
}

.tw-cart-item-image {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    display: block;
}

@media (min-width: 640px) {
    .tw-cart-item-image {
        height: 10rem;
    }
}

.tw-qty-container {
    margin-top: 0.5rem;
    width: 100%;
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.tw-qty-select {
    flex: 1;
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-align: center;
}

	.tw-qty-select:focus {
	    outline: none;
	    border-color: #2563eb;
	    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
	}

.tw-cart-remove-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tw-cart-remove-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.tw-cart-remove-btn svg {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
}

.tw-cart-remove-btn:hover svg {
    color: #374151;
}

.tw-cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tw-cart-item-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tw-cart-item-header-main {
    min-width: 0;
}

.tw-cart-config-summary {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.tw-cart-config-meta {
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.tw-cart-item-price-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

.tw-cart-price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.875rem;
    color: #6b7280;
}

.tw-cart-price-label {
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.2;
    white-space: nowrap;
}

.tw-cart-price-value {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.tw-cart-price-value--compare {
    color: #9ca3af;
    text-decoration: line-through;
}

.tw-cart-price-value--current {
    color: #111827;
    font-weight: 600;
}

.tw-cart-price-value--save {
    color: #059669;
    font-weight: 600;
}

.tw-cart-price-row--total {
    margin-top: 0;
    font-size: 0.875rem;
    color: #111827;
}

.tw-cart-price-row--total .tw-cart-price-label {
    color: #6b7280;
    font-weight: 500;
}

.tw-cart-price-value--total {
    font-weight: 700;
    color: #111827;
    font-size: 1.125rem;
}

.tw-cart-price-meta {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

.tw-cart-price-unit::before {
    content: " · ";
}

.tw-cart-price-meta [data-line-unit] {
    display: inline;
}

.tw-cart-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tw-cart-item-title-link {
    color: inherit;
    text-decoration: none;
}

.tw-cart-item-title-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tw-cart-item-variant {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

	.tw-cart-edit-config {
	    display: inline-block;
	    margin-top: 0;
	    font-size: 0.875rem;
	    font-weight: 500;
	    color: #2563eb;
	    text-decoration: underline;
	    text-underline-offset: 2px;
	}

	.tw-cart-edit-config:hover {
	    color: #1d4ed8;
	}

/* Options container with improved layout */
.tw-cart-item-options {
    margin-top: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tw-cart-details {
    margin-top: 0.5rem;
}

	.tw-cart-details-summary {
	    list-style: none;
	    display: inline-flex;
	    align-items: center;
	    gap: 0.35rem;
	    cursor: pointer;
	    user-select: none;
	    font-size: 0.875rem;
	    font-weight: 600;
	    color: #2563eb;
	    padding: 0.25rem 0;
	}

	.tw-cart-details-summary:hover {
	    color: #1d4ed8;
	}

.tw-cart-details-summary::-webkit-details-marker {
    display: none;
}

.tw-cart-details-summary::marker {
    display: none;
}

.tw-cart-details-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

.tw-cart-details[open] .tw-cart-details-chevron {
    transform: rotate(180deg);
}

.tw-cart-details-label--hide {
    display: none;
}

.tw-cart-details[open] .tw-cart-details-label--hide {
    display: inline;
}

.tw-cart-details[open] .tw-cart-details-label--show {
    display: none;
}

.tw-cart-details-content {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: none;
}

.tw-cart-discount-details {
    margin-top: 0.5rem;
}

.tw-cart-discount-details--item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
}

.tw-cart-discount-details--inline {
    margin-top: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
}

.tw-cart-discount-label--hide {
    display: none;
}

.tw-cart-discount-details[open] .tw-cart-discount-label--hide {
    display: inline;
}

.tw-cart-discount-details[open] .tw-cart-discount-label--show {
    display: none;
}

.tw-cart-discount-details--inline .tw-cart-discount-summary {
    padding: 0.15rem 0;
}

.tw-cart-discount-details--inline .tw-cart-discount-summary:hover .tw-cart-price-label {
    color: #111827;
}

.tw-cart-discount-details--inline .tw-cart-price-value {
    color: #059669;
    font-weight: 600;
}

.tw-cart-discount-details--inline .tw-cart-price-value svg {
    color: #6b7280;
}

.tw-cart-discount-details--inline .tw-cart-discount-summary:hover .tw-cart-price-value svg {
    color: #374151;
}

.tw-cart-discount-note {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.35;
}

.tw-cart-discount-breakdown {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    display: grid;
    row-gap: 0.5rem;
}

.tw-cart-discount-details--inline[open] .tw-cart-discount-breakdown {
    position: static;
    width: 100%;
    max-width: none;
    padding: 0.5rem 0 0;
    border: none;
    border-top: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.tw-cart-discount-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tw-cart-discount-line-body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.tw-cart-discount-line-title {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.tw-cart-discount-line-description {
    color: #6b7280;
    font-size: 0.8125rem;
}

.tw-cart-discount-line-amount {
    color: #059669;
    font-weight: 600;
    white-space: nowrap;
}

.tw-cart-discount-line-amount--compare {
    color: #9ca3af;
    font-weight: 600;
    text-decoration: line-through;
}

.tw-cart-discount-summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0.25rem 0;
}

.tw-cart-discount-summary:hover {
    color: #4b5563;
}

.tw-cart-discount-summary::-webkit-details-marker {
    display: none;
}

.tw-cart-discount-summary::marker {
    display: none;
}

.tw-cart-discount-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

.tw-cart-discount-details[open] .tw-cart-discount-chevron {
    transform: rotate(180deg);
}

.tw-cart-section {
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

.tw-cart-section:last-of-type {
    margin-bottom: 0;
}

.tw-cart-section-heading {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.tw-cart-section-subheading {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
}

.tw-cart-option-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 1.25rem;
    padding: 0.2rem 0;
}

.tw-cart-option-row--discount {
    background: #f9fafb;
    border-radius: 0.65rem;
    padding: 0.5rem 0.75rem;
    border: none;
    margin-bottom: 0.25rem;
}

.tw-cart-option-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    margin-right: 0.4rem;
    font-weight: 600;
}

.tw-cart-option-name {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.4;
}

.tw-cart-option-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tw-cart-option-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

.tw-cart-option-value {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 400;
}

.tw-cart-option-description {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Order Notes Editing */
.tw-cart-notes-editable {
    width: 100%;
}

.tw-cart-notes-display {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem;
    margin: -0.25rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s;
}

.tw-cart-notes-display:hover {
    background-color: #f3f4f6;
}

.tw-cart-notes-edit-btn {
    flex-shrink: 0;
    padding: 0.25rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.15s;
    opacity: 0;
}

.tw-cart-notes-display:hover .tw-cart-notes-edit-btn {
    opacity: 1;
}

	.tw-cart-notes-edit-btn:hover {
	    color: #2563eb;
	}

.tw-cart-notes-editor {
    position: relative;
    width: 100%;
}

.tw-cart-notes-textarea {
    width: 100%;
    min-height: 2.5rem;
    max-height: 12rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #374151;
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
    box-sizing: border-box;
}

	.tw-cart-notes-textarea:focus {
	    outline: none;
	    border-color: #2563eb;
	    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
	}

.tw-cart-notes-textarea:disabled {
    background-color: #f9fafb;
}

.tw-cart-notes-saving {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.tw-cart-option-check {
    color: #10b981;
    font-size: 0.875rem;
    flex-shrink: 0;
    font-weight: 600;
}

.tw-cart-option-label {
    color: #4b5563;
    line-height: 1.4;
}

.tw-cart-option-price {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
}

.tw-cart-option-price-primary {
    font-size: 1rem;
    font-weight: 600;
}

.tw-cart-option-price-savings {
    color: #059669;
}

.tw-cart-option-price-compare {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 500;
}

.tw-cart-option-price-savings {
    color: #059669;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.125rem;
}

.tw-cart-option-price.tw-cart-option-price--empty {
    visibility: hidden;
}

.tw-cart-option-price.negative {
    color: #059669;
}

.tw-cart-attachment-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0 0;
}

.tw-cart-attachment-thumb {
    display: block;
    width: 60px;
    height: 60px;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #f9fafb;
}

.tw-cart-attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tw-cart-discount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0fdf4;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin: 0.375rem 0;
    border: 1px solid #bbf7d0;
}

.tw-cart-discount-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #15803d;
    font-size: 0.875rem;
    font-weight: 500;
}

.tw-discount-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #16a34a;
    flex-shrink: 0;
}

.tw-cart-discount-amount {
    color: #15803d;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}


.tw-cart-item-price {
    text-align: right;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.tw-cart-price-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.tw-cart-price-unit {
    font-size: 0.75rem;
    color: #6b7280;
}

.tw-cart-price-savings {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 600;
    background-color: #ecfdf5;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}


.tw-cart-summary {
    position: sticky;
    top: 110px; /* Announcement bar (52px) + Header (53px) + spacing (5px) = 110px */
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.tw-summary-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.tw-summary-savings {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tw-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.tw-summary-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.tw-summary-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.tw-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.tw-summary-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.tw-summary-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.tw-shipping-progress {
    margin-top: 0.75rem;
}

.tw-shipping-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

	.tw-shipping-amount {
	    color: #2563eb;
	    font-weight: 600;
	}

.tw-progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

	.tw-progress-fill {
	    height: 100%;
	    background: #2563eb;
	    transition: width 0.3s;
	}

.tw-checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.tw-checkout-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.tw-checkout-btn:disabled,
.tw-checkout-btn[disabled] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    cursor: not-allowed;
    opacity: 0.55;
}

.tw-checkout-btn:disabled:hover,
.tw-checkout-btn[disabled]:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Shake animations for checkout button - EXACT FROM PRODUCT PAGE */
@keyframes shakeRightToLeft {
    0% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    30% { transform: translateX(5px); }
    50% { transform: translateX(-3px); }
    70% { transform: translateX(3px); }
    90% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

@keyframes shakeLeftToRight {
    0% { transform: translateX(0); }
    10% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    50% { transform: translateX(3px); }
    70% { transform: translateX(-3px); }
    90% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

.tw-checkout-btn.shake-right-to-left {
    animation: shakeRightToLeft 2s ease-in-out;
}

.tw-checkout-btn.shake-left-to-right {
    animation: shakeLeftToRight 2s ease-in-out;
}

/* EXACT Same Design as Product Page - Vercel Style with Blur */
.tw-checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(248, 249, 251, 0.97));
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    transition: opacity 0.48s ease, visibility 0.48s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tw-checkout-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tw-checkout-overlay[hidden] {
    visibility: hidden;
    opacity: 0;
}

.tw-checkout-overlay__card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    color: #0f172a;
    max-width: 320px;
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.tw-checkout-overlay.is-visible .tw-checkout-overlay__card {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Spinner - EXACT same as product page */
.tw-checkout-overlay__spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px auto;
    position: relative;
    display: block;
}

/* Static gray ring */
.tw-checkout-overlay__spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

/* Spinning black ring */
.tw-checkout-overlay__spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border: 2px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
    animation: twCheckoutSpinner 1s linear infinite;
}

/* Title - EXACT same styling */
.tw-checkout-overlay__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
    text-align: center;
    display: block;
}

/* Subtitle - EXACT same styling */
.tw-checkout-overlay__text {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    text-align: center;
    display: block;
}

@keyframes twCheckoutSpinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments - EXACT same as product page */
@media (max-width: 640px) {
    .tw-checkout-overlay__spinner {
        width: 40px;
        height: 40px;
    }

    .tw-checkout-overlay__spinner::before,
    .tw-checkout-overlay__spinner::after {
        width: 40px;
        height: 40px;
    }

    .tw-checkout-overlay__title {
        font-size: 16px;
    }

    .tw-checkout-overlay__text {
        font-size: 13px;
    }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .tw-checkout-overlay {
        transition: opacity 0.2s ease;
    }

    .tw-checkout-overlay__spinner::after {
        animation: none;
    }
}

.tw-trust-badges {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tw-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.813rem;
    color: #6b7280;
}

.tw-trust-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.tw-related-section {
    margin-top: 6rem;
}

.tw-related-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.tw-related-grid {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0 0 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    position: relative;
}

.tw-related-grid::after,
.tw-related-grid::before {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tw-related-grid::after {
    width: 72px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 65%);
}

.tw-related-grid::before {
    width: 64px;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.05) 55%, rgba(255, 255, 255, 0) 70%);
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 5 16 12 9 19"/></svg>') center / 16px 16px no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 5 16 12 9 19"/></svg>') center / 16px 16px no-repeat;
}

.tw-related-grid.has-scroll-hint::after,
.tw-related-grid.has-scroll-hint::before {
    opacity: 1;
}

.tw-related-grid::-webkit-scrollbar {
    height: 6px;
}

.tw-related-grid::-webkit-scrollbar-thumb {
    background: rgba(107, 114, 128, 0.45);
    border-radius: 999px;
}

.tw-related-grid > * {
    flex: 0 0 calc(40% - 0.625rem);
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .tw-related-grid {
        overflow: visible;
        scroll-snap-type: none;
        flex-wrap: wrap;
    }

    .tw-related-grid::after,
    .tw-related-grid::before {
        content: none;
    }

    .tw-related-grid > * {
        flex: 0 0 calc((100% - 5rem) / 5);
    }
}

.tw-related-product {
    position: relative;
    group: hover;
}

.tw-related-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #f3f4f6;
    transition: opacity 0.2s;
}

.tw-related-product:hover .tw-related-product-image {
    opacity: 0.75;
}

.tw-related-product-info {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tw-related-product-title {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 500;
}

.tw-related-product-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.tw-empty-cart {
    text-align: center;
    padding: 6rem 1.5rem;
}

.tw-empty-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem;
    color: #d1d5db;
    transform: rotate(90deg);
}

.tw-empty-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.tw-empty-text {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

	.tw-empty-btn {
	    display: inline-block;
	    padding: 0.75rem 2rem;
	    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	    color: white;
	    border-radius: 0.5rem;
	    font-weight: 600;
	    text-decoration: none;
	    transition: background 0.2s, transform 0.15s;
	}

	.tw-empty-btn:hover {
	    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	    transform: translateY(-1px);
	}

	.tw-empty-help {
	    margin-top: 1.25rem;
	    font-size: 0.875rem;
	    color: #6b7280;
	}

	.tw-empty-help a {
	    color: #374151;
	    font-weight: 600;
	    text-decoration: underline;
	    text-underline-offset: 2px;
	}

/* Mobile Sticky Checkout Bar */
.tw-mobile-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 40;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none; /* Hidden by default, shown via JS on mobile */
}

.tw-mobile-checkout-bar.is-visible {
    transform: translateY(0);
}

.tw-mobile-checkout-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tw-mobile-total {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tw-mobile-total-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.tw-mobile-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.tw-mobile-checkout-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.tw-mobile-checkout-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.tw-mobile-checkout-btn:active {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

/* Shake animations for mobile checkout button */
.tw-mobile-checkout-btn.shake-right-to-left {
    animation: shakeRightToLeft 2s ease-in-out;
}

.tw-mobile-checkout-btn.shake-left-to-right {
    animation: shakeLeftToRight 2s ease-in-out;
}

/* Show mobile bar only on mobile/tablet */
@media (max-width: 1023px) {
    .tw-mobile-checkout-bar {
        display: block;
    }

    /* Add bottom padding to prevent content overlap */
    .tw-cart-container {
        padding-bottom: 6rem;
    }
}

/* Always hide on desktop */
@media (min-width: 1024px) {
    .tw-mobile-checkout-bar {
        display: none !important;
    }
}
/* Fitment confirmation line per cart item */
/* Understated fitment confirmation: green check + quiet text, no loud pill */
.tw-fitment-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
}

.tw-fitment-line svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    color: #059669;
}

/* Trust rating block above checkout button */
.tw-summary-trust {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tw-summary-trust-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tw-summary-trust-stars {
    display: inline-flex;
    gap: 2px;
}

.tw-summary-trust-stars span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    background: #00b67a;
    color: #ffffff;
}

.tw-summary-trust-stars span svg {
    width: 0.72rem;
    height: 0.72rem;
}

.tw-summary-trust-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
}

/* Review count as quiet inline text, not a chip */
.tw-summary-trust-count {
    display: inline;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}


.tw-summary-trust-perks {
    font-size: 0.76rem;
    color: #4b5563;
    line-height: 1.45;
}

/* Note under checkout CTA */
.tw-checkout-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

/* Compact Trustpilot reviews slider */
.tw-cart-reviews {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.tw-cart-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.tw-cart-reviews-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
}

.tw-cart-reviews-title .tw-tp-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    background: #00b67a;
    color: #ffffff;
}

.tw-cart-reviews-title .tw-tp-star svg {
    width: 0.68rem;
    height: 0.68rem;
}

.tw-cart-reviews-nav {
    display: inline-flex;
    gap: 0.3rem;
}

.tw-cart-reviews-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.tw-cart-reviews-nav button:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 10px rgba(18, 18, 22, 0.06);
}

.tw-cart-reviews-nav button svg {
    width: 0.8rem;
    height: 0.8rem;
}

.tw-cart-reviews-viewport {
    position: relative;
    overflow: hidden;
}

.tw-cart-reviews-track {
    display: flex;
    align-items: flex-start;
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tw-cart-reviews-viewport {
    transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tw-cart-review-card {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.8rem 0.9rem;
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tw-cart-review-card::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: #00b67a;
    opacity: 0.75;
}

.tw-cart-review-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 18px rgba(18, 18, 22, 0.06);
}

.tw-cart-reviews-track .tw-cart-review-card + .tw-cart-review-card {
    margin-left: 0.75rem;
}

.tw-cart-review-stars {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 0.35rem;
}

.tw-cart-review-stars span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9rem;
    height: 0.9rem;
    background: #00b67a;
    color: #ffffff;
}

.tw-cart-review-stars span svg {
    width: 0.62rem;
    height: 0.62rem;
}

.tw-cart-review-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.tw-cart-review-content {
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.5;
}

.tw-cart-review-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.tw-cart-review-avatar {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.tw-cart-review-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
}

.tw-cart-review-date {
    font-size: 0.68rem;
    color: #9ca3af;
    line-height: 1.25;
}

.tw-cart-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    min-height: 20px;
    border: 1px solid #d1e7dd;
    background: #f2faf6;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #047857;
    white-space: nowrap;
}

.tw-cart-reviews-progress {
    margin-top: 0.6rem;
    height: 3px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.tw-cart-reviews-all {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tw-cart-reviews-all:hover {
    color: #111827;
}

.tw-cart-reviews-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #00b67a;
    transition: width 320ms ease;
}

/* Facebook community section */
.tw-fb-community {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.tw-fb-community-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tw-fb-community-head svg {
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
}

.tw-fb-community-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.tw-fb-community-sub {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.1rem;
}

.tw-fb-comments--masonry {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tw-fb-col {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 1023px) {
    .tw-fb-comments {
        display: block;
        max-width: 100%;
    }

    .tw-fb-shot {
        width: 100%;
        max-width: 18.5rem;
        margin: 0 auto 0.75rem;
    }
}

.tw-fb-shot {
    display: block;
    break-inside: avoid;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.6rem 0.7rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tw-fb-shot:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 18px rgba(18, 18, 22, 0.06);
}

.tw-fb-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.tw-fb-showmore-wrap {
    text-align: center;
    margin-top: 0.75rem;
}

.tw-fb-showmore {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.tw-fb-showmore:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 10px rgba(18, 18, 22, 0.06);
}

.tw-fb-showmore[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.tw-fb-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1.1rem auto 0;
    max-width: 34rem;
    text-align: center;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.5;
}

.tw-fb-welcome svg {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    color: #047857;
}

.tw-fb-shot {
    cursor: zoom-in;
    -webkit-user-select: none;
    user-select: none;
}

.tw-fb-shot img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.tw-fb-shot--extra.is-revealed {
    animation: twFbReveal 320ms ease both;
}

@keyframes twFbReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tw-fb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(15, 23, 42, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    opacity: 0;
    transition: opacity 180ms ease;
}

.tw-fb-lightbox.is-visible {
    opacity: 1;
}

.tw-fb-lightbox[hidden] {
    display: none;
}

.tw-fb-lightbox-img {
    max-width: min(92vw, 46rem);
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.tw-fb-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
    transition: background 140ms ease;
}

.tw-fb-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.tw-fb-lightbox-close svg {
    width: 1.15rem;
    height: 1.15rem;
}

.tw-fb-lightbox {
    touch-action: pinch-zoom;
}

.tw-fb-lightbox-img {
    touch-action: pinch-zoom;
}

.tw-fb-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
    transition: background 140ms ease;
    z-index: 1;
}

.tw-fb-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.tw-fb-lightbox-nav svg {
    width: 1.15rem;
    height: 1.15rem;
}

.tw-fb-lightbox-nav--prev {
    left: 1rem;
}

.tw-fb-lightbox-nav--next {
    right: 1rem;
}

@media (max-width: 767px) {
    .tw-fb-lightbox {
        padding: 2rem 0.5rem;
    }

    .tw-fb-lightbox-img {
        max-width: 96vw;
    }

    .tw-fb-lightbox-nav {
        width: 2.1rem;
        height: 2.1rem;
        top: auto;
        bottom: 1.25rem;
        transform: none;
    }

    .tw-fb-lightbox-nav--prev {
        left: calc(50% - 3.4rem);
    }

    .tw-fb-lightbox-nav--next {
        right: calc(50% - 3.4rem);
    }
}

@media (max-width: 1023px) {
    .tw-fb-shot--extra[hidden] {
        display: none;
    }
}

/* Mobile sticky bar trust line */
.tw-mobile-trust-line {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.2;
    margin-top: 2px;
}

.tw-mobile-trust-line svg {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    color: #047857;
}

/* ============================================================
   Uniform rhythm for the sections below the cart grid:
   identical divider, top margin and padding for Complete-your-
   install, Trustpilot carousel and Facebook community.
   ============================================================ */
.tw-cart-container .tw-related-section,
.tw-cart-container .tw-fb-community {
    margin-top: 3.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid #e5e7eb;
}

.tw-cart-container .product-page-trustpilot {
    margin-top: 3.5rem;
    padding: 2.25rem 0 0.25rem;
    border-top: 1px solid #e5e7eb;
}

/* Keep the footer reachable above the fixed mobile checkout bar */
@media (max-width: 1023px) {
    body:has(.tw-mobile-checkout-bar.is-visible) footer[role="contentinfo"] {
        margin-bottom: 128px;
    }
}

/* ============================================================
   Mobile cart-item layout (2026-07-22): image + controls share one
   full-width row, content gets the full card width below. Fixes the
   48px horizontal squeeze where qty + remove overflowed the 96px
   image column.
   ============================================================ */
@media (max-width: 768px) {
    .tw-cart-item-body {
        display: block;
    }

    .tw-cart-item-image-container {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        max-width: none;
        margin-bottom: 1rem;
    }

    .tw-cart-item-image {
        width: 96px;
        max-width: 96px;
        flex: 0 0 96px;
        height: auto;
    }

    .tw-qty-container {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: auto;
    }

    .tw-cart-item-content {
        width: 100%;
    }
}

/* Quieter, larger cart-item controls on every viewport */
.tw-qty-select {
    height: 40px;
    border-radius: 8px;
    padding: 0 0.5rem;
}

.tw-cart-remove-btn {
    border: 0;
    background: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tw-cart-remove-btn svg {
    width: 20px;
    height: 20px;
}

.tw-cart-remove-btn:hover,
.tw-cart-remove-btn:active {
    color: #dc2626;
    background: #fef2f2;
}

/* Chat launcher must never sit on the mobile checkout bar */
@media (max-width: 1023px) {
    body:has(.tw-mobile-checkout-bar.is-visible) #chat-icon-btn {
        bottom: 132px !important;
    }
}

/* Floating checkout bar: tighter, calmer, clearly secondary to the page CTA */
.tw-mobile-checkout-bar {
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(17, 24, 39, 0.08);
}

.tw-mobile-checkout-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tw-mobile-total-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.tw-mobile-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.tw-mobile-trust-line {
    font-size: 0.68rem;
    color: #6b7280;
}

.tw-mobile-checkout-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Empty cart: content vertically centered, footer pinned to the bottom (min-height set by JS) */
.tw-empty-cart[data-empty-state] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* No doubled support line: the empty state already says "Talk to our team" */
body:has(.tw-empty-cart[data-empty-state]:not([hidden])) .tw-minifooter-support {
    display: none;
}

/* ============================================================
   Removed-items history panel ("Removed from your cart")
   Visually subordinate to real cart items by design: smaller
   thumbs, muted colors, no quantity steppers, no sum impact.
   ============================================================ */
[data-cart-history-mount] { text-align: left; }
[data-history-context="filled"] { margin-top: 3.5rem; }
[data-history-context="empty"] { width: 100%; max-width: 560px; margin: 2rem auto 0; }

.tw-removed-panel {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    overflow: hidden;
}
.tw-removed-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: #374151;
}
.tw-removed-head:hover { color: #111827; }
.tw-removed-head-icon { width: 18px; height: 18px; flex: 0 0 auto; color: #6b7280; }
.tw-removed-head-title { font-size: 0.95rem; font-weight: 600; }
.tw-removed-head-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}
.tw-removed-chevron { width: 16px; height: 16px; margin-left: auto; color: #9ca3af; transition: transform 0.15s ease; }
.tw-removed-head[aria-expanded="true"] .tw-removed-chevron { transform: rotate(180deg); }

.tw-removed-sub { padding: 0 16px 10px; margin: 0; font-size: 0.8rem; color: #6b7280; }
.tw-removed-list { list-style: none; margin: 0; padding: 0; }
.tw-removed-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #eef0f2;
    background: #fff;
}
.tw-removed-row.is-busy { opacity: 0.6; pointer-events: none; }
.tw-removed-row.is-unavailable { opacity: 0.55; }

.tw-removed-thumb {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
    display: block;
}
.tw-removed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tw-removed-thumb-fallback { display: block; width: 100%; height: 100%; background: #f3f4f6; }

.tw-removed-info { flex: 1 1 auto; min-width: 0; }
.tw-removed-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tw-removed-title a { color: inherit; text-decoration: none; }
.tw-removed-title a:hover { text-decoration: underline; }
.tw-removed-config { margin: 2px 0 0; font-size: 0.8rem; color: #6b7280; }
.tw-removed-more {
    border: 0;
    background: none;
    padding: 0;
    font-size: 0.8rem;
    color: #374151;
    text-decoration: underline;
    cursor: pointer;
}
.tw-removed-options { list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: 1px dashed #e5e7eb; }
.tw-removed-options li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
    color: #4b5563;
    padding: 2px 0;
}
.tw-removed-opt-price { color: #6b7280; white-space: nowrap; }
.tw-removed-error { margin: 6px 0 0; font-size: 0.78rem; color: #b91c1c; }

.tw-removed-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.tw-removed-price { font-size: 0.875rem; color: #374151; display: flex; align-items: center; gap: 8px; }
.tw-removed-qty {
    font-size: 0.72rem;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 1px 7px;
}
.tw-removed-actions { display: flex; align-items: center; gap: 6px; }
.tw-removed-add {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    white-space: nowrap;
}
.tw-removed-add:hover { border-color: #111827; }
.tw-removed-add:disabled { cursor: default; color: #9ca3af; border-color: #e5e7eb; }
.tw-removed-del {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
}
.tw-removed-del:hover { color: #dc2626; background: #fef2f2; }
.tw-removed-del svg { width: 16px; height: 16px; }
.tw-removed-unavailable { font-size: 0.78rem; color: #6b7280; white-space: nowrap; }

.tw-removed-foot { padding: 10px 16px; border-top: 1px solid #eef0f2; background: #f9fafb; }
.tw-removed-clear {
    border: 0;
    background: none;
    padding: 0;
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
}
.tw-removed-clear:hover { color: #111827; }

@media (max-width: 640px) {
    .tw-removed-row { flex-wrap: wrap; }
    .tw-removed-side {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-left: 60px;
    }
    .tw-removed-unavailable { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .tw-removed-chevron { transition: none; }
}
