/* ==========================================================================
   1. THE INVISIBILITY CLOAK
   ========================================================================== */
.wcpa_section:has(.teleport-upsell),
.wcpa_section:has(.acoweb-product-video),
.wcpa_section:has(.Bought-Together) {
    position: absolute !important; opacity: 0 !important; pointer-events: none !important;
    z-index: -999 !important; height: 0 !important; overflow: hidden !important;
    margin: 0 !important; padding: 0 !important; border: none !important;
}

/* iOS STRICT SCROLL LOCK */
body.tresneria-locked { overflow: hidden !important; touch-action: none !important; overscroll-behavior: none !important; }
#teleport-bottom-sheet { touch-action: auto !important; }

/* ==========================================================================
   2. BOTTOM SHEET FRAMEWORK & DESKTOP CONSTRAINTS
   ========================================================================== */
#teleport-sheet-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 999999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    display: flex; justify-content: center; align-items: flex-end;
}
#teleport-sheet-backdrop.active { opacity: 1; pointer-events: auto; }
#teleport-bottom-sheet {
    width: 100%; max-width: 500px; max-height: 85vh; background: #faf9f5; 
    border-top-left-radius: 24px; border-top-right-radius: 24px;
    display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#teleport-sheet-backdrop.active #teleport-bottom-sheet { transform: translateY(0); }
.teleport-sheet-handle {
    width: 40px; height: 4px; background: #cbd5e1; border-radius: 2px;
    margin: 12px auto 6px auto; flex-shrink: 0;
}

/* ==========================================================================
   3. HEADER UI 
   ========================================================================== */
.teleport-sheet-header {
    padding: 12px 24px 16px 24px; border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.teleport-sheet-header-left { display: flex; align-items: center; }
.teleport-sheet-thumb {
    width: 45px; height: 45px; border-radius: 8px; object-fit: cover;
    margin-right: 14px; border: 1px solid #e2e8f0; background: #fff;
}
.teleport-sheet-title-group h3 { font-size: 16px; font-weight: 700; margin: 0 0 2px 0; color: #0f172a; }
.teleport-sheet-title-group p { font-size: 12px; color: #64748b; margin: 0; }
.teleport-sheet-close {
    background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 18px; 
    color: #64748b; cursor: pointer; transition: background 0.2s;
}
.teleport-sheet-close:hover { background: #e2e8f0; color: #1e293b; }

/* ==========================================================================
   4 & 7. SCROLL WALL, SLIDER (NESTED FLEXBOX FIX), & ROW UI
   ========================================================================== */
.teleport-sheet-content {
    flex-grow: 1; 
    min-height: 0; /* Crucial: Allows the container to squish */
    padding: 0 !important; 
    overflow: hidden !important; 
    display: flex; /* Passes the height limit down to the slider */
    flex-direction: column; 
}

#teleport-sheet-slider { 
    display: flex; 
    flex-grow: 1; /* Expands to fill the content area */
    min-height: 0; /* Crucial: Passes the squish to the panes */
    width: 200%; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

.teleport-slide-pane { 
    width: 50%; 
    overflow-y: auto; /* The scrollbar is forced to activate here! */
    flex-shrink: 0; 
    padding: 20px 24px; 
    box-sizing: border-box; 
    overscroll-behavior: contain; 
    -webkit-overflow-scrolling: touch; 
}

#teleport-bottom-sheet.show-qv #teleport-sheet-slider { transform: translateX(-50%); }

.proxy-section { margin-bottom: 24px; }
.proxy-section-title { font-size: 15px; font-weight: 600; color: #1e293b; margin-bottom: 12px; }
.proxy-option {
    display: flex; align-items: center; border: 1px solid #e2e8f0;
    padding: 10px; margin-bottom: 10px; border-radius: 12px; cursor: pointer;
    background: #ffffff; transition: all 0.2s; -webkit-tap-highlight-color: transparent;
}
.proxy-option.selected { border-color: #0f172a; background: #f8fafc; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02); }
.proxy-img { width: 75px; height: 75px; border-radius: 8px; margin-right: 14px; object-fit: cover; border: 1px solid #f1f5f9; flex-shrink: 0; }
.proxy-middle { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

#teleport-bottom-sheet .proxy-name { font-size: 14px; font-weight: 600; color: #1e293b !important; margin-bottom: 8px; }
#teleport-bottom-sheet .proxy-zoom-btn { width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b !important; transition: all 0.2s; }
#teleport-bottom-sheet .proxy-zoom-btn:hover { background: #e2e8f0; color: #1e293b !important; }
#teleport-bottom-sheet .proxy-zoom-btn svg { width: 14px; height: 14px; }
#teleport-bottom-sheet .proxy-price { font-size: 14px; font-weight: 500; color: #334155 !important; flex-shrink: 0; margin-left: 12px; }

/* ==========================================================================
   5. VIDEO PILL & STICKY FOOTER
   ========================================================================== */
.proxy-video-row { margin-bottom: 20px; display: flex; justify-content: center; }
.proxy-video-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; background-color: #000000; color: #ffffff; border: 1px solid #cbd5e1; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: 500; font-size: 13px; transition: all 0.2s ease; }
.proxy-video-btn::before { content: "►"; font-size: 10px; margin-right: 8px; opacity: 0.8; transition: opacity 0.2s; }
.proxy-video-btn:hover { background-color: #f8fafc; color: #1e293b; border-color: #94a3b8; }
.proxy-video-btn:hover::before { opacity: 1; }

.teleport-sheet-footer { padding: 16px 24px 24px 24px; border-top: 1px solid #e2e8f0; background: #faf9f5; flex-shrink: 0; }
#teleport-sheet-submit { display: flex !important; width: 100% !important; background-color: #de5656 !important; color: #ffffff !important; border: none !important; padding: 16px 24px !important; border-radius: 16px !important; font-size: 15px !important; font-weight: 600 !important; justify-content: space-between !important; align-items: center !important; cursor: pointer !important; box-shadow: 0 4px 14px rgba(222, 86, 86, 0.25) !important; transition: background 0.2s ease; }
#teleport-sheet-submit:hover { background-color: #cb4646 !important; }
#teleport-sheet-price { background: rgba(0, 0, 0, 0.15); padding: 4px 12px; border-radius: 8px; font-size: 14px; letter-spacing: 0.5px; }
#teleport-sheet-price span { font-weight: normal; margin-right: 2px; }

/* ==========================================================================
   6. FBT BOUGHT-TOGETHER GRID UI & QUICK VIEW INTERNALS
   ========================================================================== */
.fbt-section { margin-top: 24px; padding-top: 24px; border-top: 2px dashed #e2e8f0; }
.fbt-section-title { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.fbt-badge { background: #e53e3e; color: white; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.fbt-option { display: flex; align-items: center; border: 1px solid #e2e8f0; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: #ffffff; }
.fbt-img { width: 75px; height: 75px; border-radius: 8px; object-fit: cover; margin-right: 14px; flex-shrink: 0; border: 1px solid #f1f5f9;}
.fbt-middle { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
.fbt-title { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3;}
.fbt-prices { margin-bottom: 8px; font-size: 13px; }
.fbt-old-price { text-decoration: line-through; color: #94a3b8; margin-right: 6px; font-size: 12px;}
.fbt-new-price { color: #e53e3e; font-weight: 700; }
.fbt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fbt-pill { padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 12px; cursor: pointer; border: 1px solid #cbd5e1; color: #475569; display: flex; align-items: center; gap: 4px; transition: background 0.2s; }
.fbt-pill:hover { background: #f8fafc; color: #1e293b; }
.fbt-add-wrapper { flex-shrink: 0; margin-left: 12px; }
.fbt-add-btn { background: #f1f5f9; color: #0f172a; border: none; padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 12px; cursor: pointer; transition: all 0.2s; min-width: 75px;}
.fbt-add-btn.added { background: #10b981; color: #ffffff; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2); }

.qv-header { display: flex; align-items: center; margin-bottom: 16px; cursor: pointer; color: #64748b; font-weight: 600; font-size: 14px; }
.qv-header span { margin-left: 6px; }
.qv-header:hover { color: #1e293b; }
.qv-main-img { width: 100%; height: 280px; object-fit: contain; background: #f8fafc; border-radius: 12px; margin-bottom: 12px; border: 1px solid #e2e8f0; }
.qv-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: none; }
.qv-thumbs::-webkit-scrollbar { display: none; }
.qv-thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: 0.6; flex-shrink: 0; }
.qv-thumb.active { border-color: #3b82f6; opacity: 1; }
.qv-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.qv-desc { font-size: 14px; color: #475569; line-height: 1.6; padding-bottom: 24px;}

.wcpa_preview_area { z-index: 9999999 !important; }
