/* WayCare Before After Results Widget */

.wcbna-section,
.wcbna-section *{
    box-sizing:border-box;
    text-shadow:none !important;
}

.wcbna-section{
    width:100%;
    padding:42px 48px 54px;
    background:#08243D;
    color:#fff;
    font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    position:relative;
    overflow:hidden;
}

.wcbna-section::before{
    content:"";
    position:absolute;
    inset:-25%;
    background:radial-gradient(circle, rgba(42,191,183,0.14), transparent 62%);
    pointer-events:none;
}

.wcbna-shell{
    width:100%;
    max-width:1500px;
    margin:0 auto;
    position:relative;
    z-index:1;
}

.wcbna-heading{
    margin:0 0 28px;
    text-align:center;
}

.wcbna-label{
    color:#fff;
    font-family:"Geist Mono",monospace;
    font-size:13px;
    line-height:1;
    font-weight:900;
    letter-spacing:.23em;
    text-transform:uppercase;
    margin:0 0 14px;
    opacity:.95;
}

.wcbna-title{
    color:#fff;
    font-family:Fraunces,Georgia,serif;
    font-size:44px;
    line-height:1.05;
    letter-spacing:-.055em;
    font-weight:800;
    margin:0;
}

.wcbna-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:34px;
    align-items:start;
}

.wcbna-section.cols-1 .wcbna-grid{
    grid-template-columns:1fr;
}

.wcbna-card{
    min-width:0;
    border:1px solid rgba(255,255,255,0.18);
    border-radius:18px;
    overflow:hidden;
    background:rgba(255,255,255,.04);
    box-shadow:0 18px 48px rgba(0,0,0,.18);
    position:relative;
}

.wcbna-card-title{
    display:none;
}

.wcbna-comparison{
    --handle-size:42px;
    --divider-width:3px;
    width:100%;
    height:340px;
    border-radius:18px;
    overflow:hidden;
    position:relative;
    isolation:isolate;
    cursor:ew-resize;
    touch-action:none;
    background:#102C45;
    user-select:none;
}

.wcbna-img,
.wcbna-placeholder{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}

.wcbna-img{
    object-fit:cover;
    object-position:center;
    display:block;
    user-select:none;
    pointer-events:none;
}

.wcbna-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgba(255,255,255,.9);
    background:linear-gradient(135deg, rgba(18,44,74,.9), rgba(14,124,134,.9));
    font-size:20px;
    font-weight:800;
    letter-spacing:.02em;
}

.wcbna-img-after,
.wcbna-after-placeholder{
    z-index:1;
}

.wcbna-before-wrap{
    position:absolute;
    inset:0;
    z-index:2;
    clip-path:inset(0 calc(100% - var(--wcbna-pos, 50%)) 0 0);
}

.wcbna-divider{
    position:absolute;
    top:0;
    bottom:0;
    left:var(--wcbna-pos, 50%);
    width:var(--divider-width);
    transform:translateX(-50%);
    background:rgba(255,255,255,.96);
    z-index:4;
    box-shadow:0 0 12px rgba(0,0,0,.18);
}

.wcbna-handle{
    position:absolute;
    left:var(--wcbna-pos, 50%);
    top:50%;
    width:var(--handle-size);
    height:var(--handle-size);
    border:1px solid rgba(255,255,255,.22);
    border-radius:14px;
    transform:translate(-50%,-50%);
    background:rgba(42,191,183,.96);
    color:#fff;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:ew-resize;
    box-shadow:0 10px 26px rgba(10, 20, 30, .22);
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}

.wcbna-handle::before,
.wcbna-handle::after{
    content:"";
    position:absolute;
    width:8px;
    height:8px;
    border-top:3px solid currentColor;
    border-right:3px solid currentColor;
    top:50%;
    margin-top:-4px;
}

.wcbna-handle::before{
    left:12px;
    transform:rotate(-135deg);
}

.wcbna-handle::after{
    right:12px;
    transform:rotate(45deg);
}

.wcbna-handle span{
    display:none;
}

.wcbna-comparison:hover .wcbna-handle,
.wcbna-comparison.is-dragging .wcbna-handle{
    transform:translate(-50%,-50%) scale(1.03);
    box-shadow:0 14px 32px rgba(42,191,183,.18);
    background:#2ABFB7;
}

.wcbna-tag{
    position:absolute;
    z-index:6;
    bottom:16px;
    min-height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 14px;
    border-radius:10px;
    background:rgba(255,255,255,.96);
    color:#0F172A;
    font-size:14px;
    line-height:1;
    font-weight:800;
    box-shadow:0 8px 22px rgba(0,0,0,.14);
    pointer-events:none;
}

.wcbna-tag-before{ left:16px; }
.wcbna-tag-after{ right:16px; }

@media (max-width:1100px){
    .wcbna-section{ padding:38px 28px 46px; }
    .wcbna-title{ font-size:36px; }
    .wcbna-grid{ gap:22px; }
    .wcbna-comparison{ height:300px; --handle-size:38px; }
}

@media (max-width:767px){
    .wcbna-section{ padding:34px 12px 38px; }
    .wcbna-heading{ margin-bottom:22px; }
    .wcbna-label{ font-size:10.5px; margin-bottom:12px; letter-spacing:.20em; }
    .wcbna-title{ font-size:30px; line-height:1.08; max-width:360px; margin:0 auto; }
    .wcbna-grid,
    .wcbna-section.cols-1 .wcbna-grid{ grid-template-columns:1fr; gap:18px; }
    .wcbna-card{ border-radius:16px; box-shadow:0 16px 38px rgba(0,0,0,.15); }
    .wcbna-comparison{ height:220px; border-radius:16px; --handle-size:34px; --divider-width:2px; }
    .wcbna-handle{ border-radius:11px; }
    .wcbna-handle::before,
    .wcbna-handle::after{ width:6px; height:6px; border-top-width:2px; border-right-width:2px; margin-top:-3px; }
    .wcbna-handle::before{ left:10px; }
    .wcbna-handle::after{ right:10px; }
    .wcbna-tag{ bottom:12px; min-height:30px; padding:0 11px; border-radius:8px; font-size:12px; }
    .wcbna-tag-before{ left:12px; }
    .wcbna-tag-after{ right:12px; }
    .wcbna-placeholder{ font-size:16px; }
}

@media (max-width:390px){
    .wcbna-title{ font-size:27px; }
    .wcbna-comparison{ height:205px; }
}


/* v1.2 — best version: minimal premium handle + drag hint */
.wcbna-card{
    box-shadow:0 22px 60px rgba(0,0,0,.20) !important;
}

.wcbna-comparison{
    --handle-size:36px !important;
    --divider-width:2px !important;
}

.wcbna-divider{
    width:var(--divider-width) !important;
    background:rgba(255,255,255,.86) !important;
    box-shadow:0 0 10px rgba(0,0,0,.16) !important;
}

.wcbna-handle{
    width:var(--handle-size) !important;
    height:var(--handle-size) !important;
    border-radius:12px !important;
    border:1px solid rgba(255,255,255,.28) !important;
    background:rgba(42,191,183,.88) !important;
    box-shadow:
        0 10px 24px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.22) !important;
    backdrop-filter:blur(8px) !important;
    -webkit-backdrop-filter:blur(8px) !important;
}

.wcbna-handle:hover,
.wcbna-comparison.is-dragging .wcbna-handle{
    background:rgba(42,191,183,.98) !important;
    transform:translate(-50%,-50%) scale(1.04) !important;
}

.wcbna-handle::before,
.wcbna-handle::after{
    content:"" !important;
    position:absolute !important;
    width:7px !important;
    height:7px !important;
    border-top:2px solid currentColor !important;
    border-right:2px solid currentColor !important;
    top:50% !important;
    margin-top:-3.5px !important;
}

.wcbna-handle::before{
    left:10px !important;
    transform:rotate(-135deg) !important;
}

.wcbna-handle::after{
    right:10px !important;
    transform:rotate(45deg) !important;
}

.wcbna-handle span{
    display:none !important;
}

.wcbna-tag{
    border-radius:9px !important;
    min-height:32px !important;
    padding:0 13px !important;
    font-size:13px !important;
    box-shadow:0 8px 20px rgba(0,0,0,.16) !important;
}

.wcbna-drag-hint{
    width:max-content;
    max-width:100%;
    margin:14px auto 0;
    padding:8px 13px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    color:rgba(255,255,255,0.72);
    font-size:11px;
    line-height:1;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
    text-align:center;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}

.wcbna-img{
    background:#102C45;
}

@media (max-width:1100px){
    .wcbna-comparison{
        --handle-size:34px !important;
    }
}

@media (max-width:767px){
    .wcbna-comparison{
        --handle-size:32px !important;
        --divider-width:2px !important;
    }

    .wcbna-handle{
        border-radius:10px !important;
    }

    .wcbna-handle::before,
    .wcbna-handle::after{
        width:6px !important;
        height:6px !important;
        margin-top:-3px !important;
    }

    .wcbna-handle::before{
        left:9px !important;
    }

    .wcbna-handle::after{
        right:9px !important;
    }

    .wcbna-tag{
        min-height:28px !important;
        padding:0 10px !important;
        font-size:11.5px !important;
        border-radius:8px !important;
    }

    .wcbna-drag-hint{
        margin-top:12px;
        padding:7px 11px;
        font-size:9.5px;
        letter-spacing:.10em;
    }
}


/* v1.3 emergency syntax fix + premium hint fallback */
.wcbna-drag-hint{
    width:max-content;
    max-width:100%;
    margin:14px auto 0;
    padding:8px 13px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    color:rgba(255,255,255,0.72);
    font-size:11px;
    line-height:1;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
    text-align:center;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}
@media (max-width:767px){
    .wcbna-drag-hint{ margin-top:12px; padding:7px 11px; font-size:9.5px; letter-spacing:.10em; }
}
