/* ==========================================================================
   TURBO-GIT CRO & UX Core (All-in-One) - Consolidated Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Smart Kaucja Module
   -------------------------------------------------------------------------- */
.tg-kaucja-wrapper {
    background: #18181b; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 8px;
    padding: 20px; 
    margin-bottom: 25px; 
    font-family: -apple-system, sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.tg-kaucja-title {
    font-size: 16px; 
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.tg-kaucja-option {
    border: 2px solid rgba(255, 255, 255, 0.1); 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 10px;
    cursor: pointer; 
    transition: all 0.2s; 
    background: rgba(255, 255, 255, 0.02); 
    position: relative;
}
.tg-kaucja-option:hover { 
    border-color: rgba(255, 255, 255, 0.2); 
}
.tg-kaucja-option.tg-selected { 
    border-color: #10b981; 
    background: rgba(16, 185, 129, 0.05); 
}
.tg-kaucja-opt-title { 
    font-size: 15px; 
    font-weight: 700; 
    color: #fff; 
    margin-bottom: 5px; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
.tg-kaucja-opt-desc { 
    font-size: 13px; 
    color: #a1a1aa; 
    line-height: 1.4; 
    padding-left: 30px;
}
.tg-radio-circle {
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.2s;
}
.tg-kaucja-option.tg-selected .tg-radio-circle { 
    border-color: #10b981; 
}
.tg-radio-dot { 
    width: 10px; 
    height: 10px; 
    background: #10b981; 
    border-radius: 50%; 
    opacity: 0; 
    transition: 0.2s; 
}
.tg-kaucja-option.tg-selected .tg-radio-dot { 
    opacity: 1; 
}
.tg-kaucja-badge {
    position: absolute; 
    right: 15px; 
    top: 15px; 
    font-size: 13px; 
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08); 
    padding: 4px 8px; 
    border-radius: 4px; 
    color: #e5e7eb;
}
.tg-kaucja-option.tg-selected .tg-kaucja-badge { 
    background: #10b981; 
    color: #fff; 
}
.tg-kaucja-hidden-input { 
    display: none; 
}

/* Wykluczenie kaucji na sticky przyciskach WoodMart/Elementor */
.wd-sticky-btn .tg-kaucja-wrapper,
.woodmart-sticky-add-to-cart .tg-kaucja-wrapper,
.elementor-sticky .tg-kaucja-wrapper {
    display: none !important;
}

/* --------------------------------------------------------------------------
   2. Master CRO Module (Benefits Box & Quick Contact Buttons)
   -------------------------------------------------------------------------- */
.tg-sleek-cro-box {
    margin: 25px 0;
    padding: 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #d1d5db;
    font-size: 14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.tg-sleek-cro-box ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}
.tg-sleek-cro-box ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: #e5e7eb;
    line-height: 1.5;
}
.tg-sleek-cro-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: 800;
    font-size: 16px;
}
.tg-sleek-cro-heading {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
    font-size: 15px;
    letter-spacing: 0.3px;
}
.tg-sleek-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tg-btn-sleek {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
}
.tg-btn-call {
    background: transparent;
    color: #ff6600;
    border: 2px solid rgba(255, 102, 0, 0.5);
}
.tg-btn-call:hover {
    background: #ff6600;
    color: #ffffff;
    border-color: #ff6600;
    transform: translateY(-1px);
}
.tg-btn-whatsapp {
    background: transparent;
    color: #25D366;
    border: 2px solid rgba(37, 211, 102, 0.5);
}
.tg-btn-whatsapp:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    transform: translateY(-1px);
}
.tg-btn-icon {
    margin-right: 10px;
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   3. Smart Upsell (Start Oil) Module
   -------------------------------------------------------------------------- */
#tg-upsell-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 99999999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s ease;
}
#tg-upsell-modal-overlay.tg-active { opacity: 1; pointer-events: auto; }
#tg-upsell-modal {
    background: #fff; border-radius: 12px; width: 90%; max-width: 650px; padding: 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); transform: translateY(30px) scale(0.95);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden;
    max-height: calc(100vh - 30px); overflow-y: auto;
}
#tg-upsell-modal-overlay.tg-active #tg-upsell-modal { transform: translateY(0) scale(1); }
.tg-upsell-header {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    color: #fff; padding: 25px; text-align: center;
}
.tg-upsell-header-title { font-size: 28px; font-weight: 900; margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase; }
.tg-upsell-body { padding: 35px; text-align: center; color: #111; font-family: -apple-system, sans-serif; }
.tg-upsell-warning { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 20px; line-height: 1.5; }
.tg-upsell-desc { font-size: 15px; color: #4b5563; line-height: 1.6; margin-bottom: 30px; }
.tg-upsell-product-box {
    background: #f9fafb; border: 2px dashed #d1d5db; border-radius: 8px; padding: 20px;
    display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 30px;
}
.tg-upsell-product-box svg { color: #f59e0b; }
.tg-upsell-product-info { text-align: left; }
.tg-upsell-product-name { font-size: 18px; font-weight: 800; color: #111; }
.tg-upsell-product-price { font-size: 22px; font-weight: 900; color: #10b981; }
.tg-upsell-actions { display: flex; flex-direction: column; gap: 15px; }
.tg-upsell-btn-yes {
    background: #10b981; color: #fff; border: none; padding: 18px; font-size: 18px; font-weight: 800;
    border-radius: 8px; cursor: pointer; transition: 0.2s; box-shadow: 0 10px 20px rgba(16,185,129,0.3);
    display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase;
}
.tg-upsell-btn-yes:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 15px 25px rgba(16,185,129,0.4); }
.tg-upsell-btn-no {
    background: transparent; color: #9ca3af; border: none; padding: 10px; font-size: 14px;
    font-weight: 600; cursor: pointer; text-decoration: underline; transition: 0.2s;
}
.tg-upsell-btn-no:hover { color: #4b5563; }
@media (max-width: 600px) {
    .tg-upsell-header-title { font-size: 22px; }
    .tg-upsell-body { padding: 24px 18px; }
    .tg-upsell-btn-yes { font-size: 15px; padding: 16px 12px; }
    .tg-upsell-product-box { flex-direction: column; text-align: center; }
    .tg-upsell-product-info { text-align: center; }
}

/* --------------------------------------------------------------------------
   4. Checkout Optimizer & Przelewy24 Fix
   -------------------------------------------------------------------------- */
.tg-hidden-field {
    display: none !important;
}
.tg-vat-checkbox-wrapper {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    margin-bottom: 20px !important;
}
.tg-checkout-trust-badges {
    margin-top: 25px;
    padding: 20px;
    background: #111111;
    border: 1px solid #333;
    border-radius: 8px;
}
.tg-trust-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}
.tg-trust-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.tg-trust-item {
    display: flex;
    align-items: center;
}
.tg-trust-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}
.tg-trust-text {
    display: flex;
    flex-direction: column;
}
.tg-trust-text strong {
    color: #fff;
    font-size: 14px;
    margin-bottom: 2px;
}
.tg-trust-text span {
    color: #a1a1aa;
    font-size: 12px;
}
#place_order {
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    width: 100% !important;
    transition: background 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}
#place_order:hover {
    background: #dc2626 !important;
}

/* --------------------------------------------------------------------------
   5. E-Commerce Booster (Smart Fuzzy Search dropdown & notices)
   -------------------------------------------------------------------------- */
.tg-smart-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 320px;
    background: #111111;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    margin-top: 5px;
    overflow: hidden;
}
.wd-search-form {
    position: relative !important;
    overflow: visible !important;
}
.tg-search-loading,
.tg-search-no-results,
.tg-search-error {
    padding: 20px;
    text-align: center;
    color: #a1a1aa;
    font-size: 14px;
}
.tg-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #ef4444;
    animation: tg-spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes tg-spin {
    to { transform: rotate(360deg); }
}
.tg-search-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    max-height: 400px;
    overflow-y: auto;
}
.tg-search-list::-webkit-scrollbar { width: 6px; }
.tg-search-list::-webkit-scrollbar-track { background: #1a1a1a; }
.tg-search-list::-webkit-scrollbar-thumb { background: #ef4444; border-radius: 3px; }
.tg-search-item { border-bottom: 1px solid #222; margin: 0 !important; padding: 0 !important; }
.tg-search-item:last-child { border-bottom: none; }
.tg-search-link {
    display: flex; padding: 12px 15px; align-items: center;
    text-decoration: none !important; transition: background 0.2s ease;
}
.tg-search-link:hover { background: #1a1a1a; }
.tg-search-img {
    width: 50px; height: 50px; object-fit: contain; background: #fff;
    border-radius: 4px; margin-right: 15px; flex-shrink: 0;
}
.tg-search-info { flex-grow: 1; overflow: hidden; }
.tg-search-title {
    color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3;
    margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tg-search-meta { display: flex; justify-content: space-between; align-items: center; }
.tg-search-price { color: #ef4444; font-weight: 700; font-size: 14px; }
.tg-search-price del { color: #666; font-weight: normal; font-size: 12px; margin-right: 5px; }
.tg-search-price ins { text-decoration: none; background: transparent; }
.tg-badge-in-stock {
    background: rgba(16, 185, 129, 0.15); color: #10b981;
    font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 4px; text-transform: uppercase;
}
.tg-badge-out-stock {
    background: rgba(245, 158, 11, 0.15); color: #f59e0b;
    font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 4px; text-transform: uppercase;
}
.tg-search-footer { background: #0a0a0f; padding: 10px 15px; text-align: center; border-top: 1px solid #222; }
.tg-search-footer a { color: #ef4444; font-size: 13px; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.tg-search-footer a:hover { color: #dc2626; text-decoration: underline; }
@media (max-width: 480px) {
    .tg-smart-search-results {
        min-width: 0;
    }
    .tg-search-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* --------------------------------------------------------------------------
   6. Social Proof (Purchase notifications - top slide on mobile)
   -------------------------------------------------------------------------- */
#tg-social-proof-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999999;
    width: 340px;
    max-width: calc(100vw - 40px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
#tg-social-proof-container.tg-sp-hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}
#tg-social-proof-container.tg-sp-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.tg-sp-link {
    display: flex;
    align-items: center;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #ff6600;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(255, 102, 0, 0.15);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.tg-sp-link:hover {
    background: rgba(25, 25, 25, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 20px rgba(255, 102, 0, 0.3);
}
.tg-sp-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    animation: tg-sp-shine 4s infinite;
}
.tg-sp-image {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    margin-right: 15px;
    padding: 2px;
}
.tg-sp-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.tg-sp-check {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #10b981;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111;
}
.tg-sp-content {
    flex-grow: 1;
    overflow: hidden;
}
.tg-sp-header {
    font-size: 12px;
    color: #a1a1aa;
    margin-bottom: 3px;
}
.tg-sp-header strong { color: #fff; }
.tg-sp-title {
    font-size: 13px;
    font-weight: 600;
    color: #ff6600;
    line-height: 1.3;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tg-sp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}
.tg-sp-time { color: #a1a1aa; }
.tg-sp-verified {
    color: #10b981;
    display: flex;
    align-items: center;
}
.tg-sp-verified::before {
    content: '★';
    margin-right: 3px;
    font-size: 10px;
}
.tg-sp-close {
    position: absolute;
    top: 5px;
    right: 8px;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.tg-sp-close:hover { color: #fff; }

/* Mobilny styl Social Proof - wysuwanie z GÓRY, omijając widgety na dole */
@media (max-width: 768px) {
    #tg-social-proof-container {
        top: 15px;
        bottom: auto;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: 100%;
    }
    #tg-social-proof-container.tg-sp-hidden {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    #tg-social-proof-container.tg-sp-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    .tg-sp-image { width: 50px; height: 50px; }
    .tg-sp-title { font-size: 12px; }
}
