/**
 * recommendation-v3-modal.css — Complete The Look & Inline Recommendation V3
 * Scoped specifically to #ttRecommendationV3Section inside #cartSuccessModal.
 * Pure UTF-8 without BOM.
 */

#ttRecommendationV3Section {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    display: none;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding-right: 4px;
}

#cartRecommendationV3Section {
    margin: 28px 0 16px;
    padding: 24px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    display: none;
    width: 100%;
}

#cartRecommendationV3Section .tt-rec-v3-row-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

#cartRecommendationV3Section .tt-rec-v3-card {
    flex: 0 0 215px;
    width: 215px;
}

.tt-rec-v3-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tt-rec-v3-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tt-rec-v3-title i {
    color: #ec4899;
    font-size: 15px;
}

/* Skeleton Loading State */
.tt-rec-v3-skeleton {
    display: flex;
    gap: 12px;
    overflow: hidden;
    padding: 4px 0 8px;
}

.tt-rec-v3-skeleton-card {
    flex: 0 0 170px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tt-rec-v3-skeleton-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: tt-rec-shimmer 1.5s infinite;
    border-radius: 10px;
}

.tt-rec-v3-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: tt-rec-shimmer 1.5s infinite;
    border-radius: 4px;
}

.tt-rec-v3-skeleton-line.short {
    width: 60%;
}

.tt-rec-v3-skeleton-btn {
    height: 32px;
    margin-top: 4px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: tt-rec-shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes tt-rec-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Semantic Rows */
.tt-rec-v3-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tt-rec-v3-row {
    width: 100%;
}

.tt-rec-v3-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tt-rec-v3-row-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tt-rec-v3-row-title i {
    font-size: 12px;
    color: #ec4899;
}

/* Carousel / Card Container */
.tt-rec-v3-carousel-wrap {
    position: relative;
    width: 100%;
}

.tt-rec-v3-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.tt-rec-v3-carousel::-webkit-scrollbar {
    height: 4px;
}

.tt-rec-v3-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* Hide horizontal scrollbar inside modal on PC to eliminate ugly browser scrollbar */
#cartSuccessModal .tt-rec-v3-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#cartSuccessModal .tt-rec-v3-carousel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Side Floating Navigation Buttons on PC */
.tt-rec-v3-carousel-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    padding: 0;
}

.tt-rec-v3-carousel-nav:hover:not(:disabled) {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
    transform: translateY(-50%) scale(1.08);
}

.tt-rec-v3-carousel-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

.tt-rec-v3-carousel-nav.prev {
    left: -8px;
}

.tt-rec-v3-carousel-nav.next {
    right: -8px;
}

.tt-rec-v3-carousel-nav:disabled,
.tt-rec-v3-carousel-nav.is-disabled {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translateY(-50%) scale(0.85);
}

/* Header Navigation Buttons */
.tt-rec-v3-row-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tt-rec-v3-row-nav-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tt-rec-v3-row-nav-btn:hover:not(:disabled) {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
    transform: scale(1.06);
}

.tt-rec-v3-row-nav-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.tt-rec-v3-row-nav-btn:disabled,
.tt-rec-v3-row-nav-btn.is-disabled {
    opacity: 0.35 !important;
    cursor: default !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

@media (max-width: 640px) {
    .tt-rec-v3-carousel-nav,
    .tt-rec-v3-row-nav {
        display: none !important;
    }
}

/* Recommendation Product Card */
.tt-rec-v3-card {
    flex: 0 0 185px;
    width: 185px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    gap: 3px;
}

#ttRecommendationV3Section .tt-rec-v3-card {
    flex: 0 0 180px;
    width: 180px;
}

.tt-rec-v3-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.tt-rec-v3-card-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Thumbnail and Badges */
.tt-rec-v3-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.tt-rec-v3-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.tt-rec-v3-card:hover .tt-rec-v3-thumb {
    transform: scale(1.03);
}

.tt-rec-v3-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    pointer-events: none;
    z-index: 2;
}

.tt-rec-v3-badge--bestseller {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.tt-rec-v3-badge--sale {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
}

/* Product Info */
.tt-rec-v3-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tt-rec-v3-name {
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin: 3px 0 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 28px;
    max-height: 28px;
}

.tt-rec-v3-prices {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tt-rec-v3-price-cur {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
}

.tt-rec-v3-price-old {
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Dimension Lines & Toggles */
.tt-rec-v3-dimensions {
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px dashed #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 9.5px;
    color: #475569;
}

.tt-rec-v3-dim-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    font-size: 9.5px;
}

.tt-rec-v3-dim-label {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 85px;
    font-size: 9.5px;
}

.tt-rec-v3-dim-val {
    font-weight: 700;
    color: #1e293b;
}

.tt-rec-v3-btn-change {
    background: none;
    border: none;
    padding: 0;
    font-size: 9.5px;
    font-weight: 600;
    color: #ec4899;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tt-rec-v3-btn-change:hover {
    color: #be185d;
}

.tt-rec-v3-btn-change:focus-visible {
    outline: 2px solid #ec4899;
    border-radius: 2px;
}

/* Expanded Swatches & Chips Container */
.tt-rec-v3-selector-panel {
    margin-top: 3px;
    padding: 2px 0;
    background: transparent;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    gap: 3px;
    max-height: 52px;
    overflow-y: auto;
}

.tt-rec-v3-selector-panel.is-expanded,
.tt-rec-v3-selector-panel.is-visible {
    display: flex;
}

.tt-rec-v3-swatch-list,
.tt-rec-v3-chip-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

/* Color Swatch */
.tt-rec-v3-swatch {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tt-rec-v3-swatch:hover:not(:disabled) {
    transform: scale(1.18);
}

.tt-rec-v3-swatch.is-selected {
    box-shadow: 0 0 0 2px #ec4899;
}

.tt-rec-v3-swatch:disabled,
.tt-rec-v3-swatch[aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(80%);
}

.tt-rec-v3-swatch:disabled::after,
.tt-rec-v3-swatch[aria-disabled="true"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, #ef4444 45%, #ef4444 55%, transparent 60%);
    border-radius: 50%;
}

/* Size Chip */
.tt-rec-v3-chip {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tt-rec-v3-chip:hover:not(:disabled) {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.tt-rec-v3-chip.is-selected {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.tt-rec-v3-chip:disabled,
.tt-rec-v3-chip[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    text-decoration: line-through;
}

/* CTA Action Button */
.tt-rec-v3-cta-wrap {
    margin-top: auto;
    padding-top: 6px;
}

.tt-rec-v3-cta {
    width: 100%;
    height: 32px;
    min-height: 32px;
    box-sizing: border-box;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
    background: #0f172a;
    color: #ffffff;
}

.tt-rec-v3-cta:hover:not(:disabled) {
    background: #1e293b;
}

.tt-rec-v3-cta:active:not(:disabled) {
    transform: scale(0.98);
}

.tt-rec-v3-cta.is-ready {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

.tt-rec-v3-cta.is-ready:hover:not(:disabled) {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.tt-rec-v3-cta:focus-visible {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

.tt-rec-v3-cta.is-loading {
    background: #334155;
    cursor: wait;
    opacity: 0.85;
}

.tt-rec-v3-cta.is-added {
    background: #10b981;
    color: #ffffff;
    cursor: default;
}

.tt-rec-v3-cta.is-unresolved {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    cursor: pointer;
}

.tt-rec-v3-cta.is-unresolved:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.tt-rec-v3-cta.is-error {
    background: #ef4444;
    color: #ffffff;
    font-size: 10.5px;
    cursor: default;
}

/* Responsive Styles */
@media (max-width: 640px) {
    #ttRecommendationV3Section {
        margin-top: 14px;
        padding-top: 14px;
    }

    #ttRecommendationV3Section .tt-rec-v3-card {
        flex: 0 0 150px;
        width: 150px;
    }

    .tt-rec-v3-title {
        font-size: 14px;
    }

    .tt-rec-v3-card {
        flex: 0 0 150px;
        width: 150px;
        padding: 6px;
    }

    .tt-rec-v3-name {
        font-size: 11.5px;
        min-height: 30px;
    }

    .tt-rec-v3-price-cur {
        font-size: 12.5px;
    }

    .tt-rec-v3-cta {
        padding: 6px 8px;
        font-size: 11.5px;
    }

    .tt-rec-v3-chip {
        min-width: 24px;
        height: 22px;
        font-size: 10.5px;
    }

    .tt-rec-v3-swatch {
        width: 20px;
        height: 20px;
    }
}

/* Compact Cart Page Inline Recommendations Slot */
/* Compact Cart Page Inline Recommendations Slot — Premium Nested Hierarchy */
.cart-inline-rec-slot {
    margin: 4px 0 24px 84px;
    width: calc(100% - 84px);
    max-width: calc(100% - 84px);
    min-width: 0;
    box-sizing: border-box;
    padding: 13px 15px 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.cart-inline-rec-content {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.cart-inline-rec-collapsed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
}

.cart-inline-rec-expand-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    transition: color 0.15s ease;
}

.cart-inline-rec-expand-btn:hover {
    color: #ec4899;
}

.cart-inline-rec-expand-btn i {
    color: #ec4899;
    font-size: 13px;
}

.cart-inline-rec-expand-action {
    color: #ec4899;
    font-weight: 600;
}

.cart-inline-rec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.cart-inline-rec-header-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cart-inline-rec-header-title i {
    color: #ec4899;
    font-size: 13.5px;
}

.cart-inline-rec-badge {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2.5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

.cart-inline-rec-cards {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.cart-inline-rec-cards .tt-rec-v3-card {
    flex: 0 0 170px;
    width: 170px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 640px) {
    .cart-inline-rec-cards .tt-rec-v3-card {
        flex: 0 0 140px;
        width: 140px;
        padding: 6px;
    }
}

.cart-inline-rec-cards::-webkit-scrollbar {
    height: 4px;
}

.cart-inline-rec-cards::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.cart-inline-rec-cards::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.cart-inline-rec-cards::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* In-Cart Variant Picker Modal */
.tt-rec-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tt-rec-picker-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.tt-rec-picker-sheet {
    background: #ffffff;
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.tt-rec-picker-overlay.is-active .tt-rec-picker-sheet {
    transform: scale(1);
}

.tt-rec-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
}

.tt-rec-picker-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.tt-rec-picker-thumb-wrap {
    width: 54px;
    height: 72px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.tt-rec-picker-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tt-rec-picker-info {
    min-width: 0;
    flex: 1;
}

.tt-rec-picker-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 290px;
}

.tt-rec-picker-price {
    font-size: 16px;
    font-weight: 800;
    color: #be123c;
}

.tt-rec-picker-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.tt-rec-picker-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tt-rec-picker-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.tt-rec-picker-section label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 8px;
}

.tt-rec-picker-section label strong {
    color: #0f172a;
    font-weight: 700;
}

.tt-rec-picker-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.tt-rec-picker-swatch {
    width: 56px;
    height: 75px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tt-rec-picker-swatch:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.tt-rec-picker-swatch.is-selected {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px #0f172a, 0 6px 16px rgba(15, 23, 42, 0.18);
    transform: translateY(-2px);
}

.tt-rec-picker-swatch-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tt-rec-picker-swatch-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.tt-rec-picker-swatch-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 600;
    padding: 10px 2px 3px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
    line-height: 1.1;
}

.tt-rec-picker-swatch-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tt-rec-picker-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tt-rec-picker-chip {
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tt-rec-picker-chip:hover:not(:disabled) {
    border-color: #94a3b8;
    background: #f8fafc;
}

.tt-rec-picker-chip.is-selected {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.tt-rec-picker-chip:disabled,
.tt-rec-picker-chip.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
    text-decoration: line-through;
}

.tt-rec-picker-foot {
    padding: 14px 20px 18px;
    border-top: 1px solid #e2e8f0;
}

.tt-rec-picker-submit {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tt-rec-picker-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.tt-rec-picker-submit:hover:not(:disabled) {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.cart-inline-rec-card {
    flex: 0 0 134px;
    width: 134px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cart-inline-rec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.cart-inline-rec-card-top {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-inline-rec-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

.cart-inline-rec-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.35s ease;
}

.cart-inline-rec-card:hover .cart-inline-rec-img {
    transform: scale(1.05);
}

.cart-inline-rec-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin: 5px 0 2px;
    height: 31px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-inline-rec-price {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.cart-inline-rec-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-inline-rec-cta {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    display: block;
}

.cart-inline-rec-cta:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.cart-inline-rec-cta.is-ready,
.cart-inline-rec-cta[data-action="add-inline-rec"] {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
}

.cart-inline-rec-cta.is-ready:hover,
.cart-inline-rec-cta[data-action="add-inline-rec"]:hover {
    background: #059669;
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.cart-inline-rec-cta.is-added {
    background: #10b981;
}

.cart-inline-rec-cta.is-loading {
    background: #94a3b8;
}

.cart-inline-rec-helper {
    font-size: 9.5px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 4px;
    padding: 2px 4px;
    margin-top: 4px;
    text-align: center;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .cart-inline-rec-slot {
        margin: 2px 0 20px 48px;
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
    }
}

@media (max-width: 640px) {
    .cart-inline-rec-slot {
        margin: 2px 0 16px 16px;
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        padding: 10px;
    }

    .cart-inline-rec-card {
        flex: 0 0 126px;
        width: 126px;
    }

    #cartSuccessModal #ttRecommendationV3Section .tt-rec-v3-card {
        flex: 0 0 128px !important;
        width: 128px !important;
        padding: 6px !important;
    }
}

#cartSuccessModal #ttRecommendationV3Section .tt-rec-v3-card {
    flex: 0 0 150px;
    width: 150px;
}

@media (max-height: 700px) and (max-width: 767px) {
    #cartSuccessModal .cart-drawer-header {
        padding: 10px 14px !important;
    }

    #cartSuccessModal .cart-drawer-body {
        padding: 10px 14px !important;
        gap: 10px !important;
    }

    #cartSuccessModal .cart-drawer-footer {
        padding: 10px 14px 12px !important;
    }

    #cartSuccessModal .tt-modal-note {
        display: none !important;
    }

    #cartSuccessModal #ttRecommendationV3Section .tt-rec-v3-card {
        flex: 0 0 120px !important;
        width: 120px !important;
        padding: 5px !important;
    }
}
