/* =========================================================
   Relifi Pain & Trust Hover V1
   Clean, unique namespace: .rpth-*
========================================================= */

.rpth-section{
    --rpth-green:#087b45;
    --rpth-hover-green:#0b934f;
    --rpth-soft:#eef8f1;
    --rpth-left-lift:4px;
    --rpth-right-lift:3px;
    --rpth-right-scale:1.08;

    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
    font-family:Arial, Helvetica, sans-serif;
    color:#102018;
}

.rpth-section *{
    box-sizing:border-box;
}

.rpth-layout{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1.28fr) minmax(0,.92fr);
    gap:18px;
    align-items:stretch;
}

.rpth-panel{
    width:100%;
    min-width:0;
    padding:18px 18px 20px;
    border:1px solid #d6e0da;
    border-radius:15px;
    background:#fff;
}

.rpth-heading{
    margin:0 0 17px;
    padding:0;
    text-align:center;
    color:#075b35;
    font-size:22px;
    line-height:1.08;
    font-weight:700;
    letter-spacing:-.35px;
}

/* ---------- LEFT ---------- */

.rpth-left-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
}

.rpth-card{
    min-width:0;
    overflow:hidden;
    border:1px solid #d8e0db;
    border-radius:10px;
    background:#fff;
    outline:none;
    transform:translate3d(0,0,0);
    transition:
        transform .22s cubic-bezier(.22,.61,.36,1),
        border-color .22s ease,
        box-shadow .22s ease;
    will-change:transform,border-color,box-shadow;
}

.rpth-card-image{
    width:100%;
    aspect-ratio:1 / 1.12;
    overflow:hidden;
    background:#f7f8f7;
}

.rpth-card-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
    transform:none;
}

.rpth-image-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px;
    color:#8a938e;
    font-size:12px;
    text-align:center;
}

.rpth-card-footer{
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:7px 6px;
}

.rpth-small-icon{
    width:15px;
    height:15px;
    flex:0 0 15px;
    color:var(--rpth-green);
}

.rpth-small-icon svg{
    width:100%;
    height:100%;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.rpth-card-title{
    min-width:0;
    color:#0b5634;
    font-size:11px;
    line-height:1.1;
    font-weight:700;
    text-align:center;
}

/* REFERENCE VIDEO HOVER: whole card lifts, border turns green, subtle shadow.
   Image/text stay stable — no zoom/jump. */
.rpth-card:hover,
.rpth-card:focus-visible,
.rpth-card.is-rpth-hover,
.rpth-card.is-rpth-touch{
    transform:translate3d(0,calc(var(--rpth-left-lift) * -1),0);
    border-color:var(--rpth-hover-green);
    box-shadow:
        0 8px 18px rgba(5,91,48,.12),
        0 2px 5px rgba(5,91,48,.06);
    z-index:5;
}

/* ---------- RIGHT ---------- */

.rpth-right-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
    align-items:start;
}

.rpth-feature{
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:9px;
    text-align:center;
    outline:none;
    transform:translate3d(0,0,0);
    transition:transform .22s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
}

.rpth-feature-icon{
    width:66px;
    height:66px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #d5e2da;
    border-radius:50%;
    background:#f4f9f5;
    color:var(--rpth-green);
    transform:translate3d(0,0,0) scale(1);
    transform-origin:center;
    transition:
        transform .22s cubic-bezier(.22,.61,.36,1),
        background-color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        color .22s ease;
    will-change:transform;
}

.rpth-feature-icon svg{
    width:34px;
    height:34px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.rpth-feature-title{
    color:#0b5634;
    font-size:12px;
    line-height:1.08;
    font-weight:700;
}

/* REFERENCE VIDEO HOVER: item lifts; circle gently enlarges and gains soft green emphasis. */
.rpth-feature:hover,
.rpth-feature:focus-visible,
.rpth-feature.is-rpth-hover,
.rpth-feature.is-rpth-touch{
    transform:translate3d(0,calc(var(--rpth-right-lift) * -1),0);
    z-index:5;
}

.rpth-feature:hover .rpth-feature-icon,
.rpth-feature:focus-visible .rpth-feature-icon,
.rpth-feature.is-rpth-hover .rpth-feature-icon,
.rpth-feature.is-rpth-touch .rpth-feature-icon{
    transform:translate3d(0,-1px,0) scale(var(--rpth-right-scale));
    background:#eef8f1;
    border-color:#b9d9c5;
    box-shadow:0 6px 14px rgba(5,91,48,.09);
    color:#078a49;
}

/* ---------- TABLET ---------- */

@media (max-width:1024px){
    .rpth-layout{
        grid-template-columns:1fr;
    }

    .rpth-left-grid,
    .rpth-right-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .rpth-panel{
        padding:16px;
    }
}

/* ---------- MOBILE ---------- */

@media (max-width:767px){
    .rpth-section{
        width:100%;
        max-width:100%;
    }

    .rpth-layout{
        width:100%;
        grid-template-columns:1fr;
        gap:12px;
    }

    .rpth-panel{
        width:100%;
        padding:13px 10px 14px;
        border-radius:12px;
    }

    .rpth-heading{
        margin-bottom:12px;
        font-size:18px;
    }

    .rpth-left-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:7px;
    }

    .rpth-card{
        border-radius:9px;
    }

    .rpth-card-footer{
        min-height:38px;
        padding:6px 4px;
        gap:4px;
    }

    .rpth-small-icon{
        width:13px;
        height:13px;
        flex-basis:13px;
    }

    .rpth-card-title{
        font-size:9.5px;
        line-height:1.08;
    }

    .rpth-right-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:12px 8px;
    }

    .rpth-feature{
        gap:7px;
    }

    .rpth-feature-icon{
        width:58px;
        height:58px;
    }

    .rpth-feature-icon svg{
        width:29px;
        height:29px;
    }

    .rpth-feature-title{
        font-size:10.5px;
        line-height:1.08;
    }
}

@media (max-width:380px){
    .rpth-panel{
        padding-left:7px;
        padding-right:7px;
    }

    .rpth-feature-icon{
        width:54px;
        height:54px;
    }

    .rpth-feature-icon svg{
        width:27px;
        height:27px;
    }
}


/* =========================================================
   v1.0.1 — TRUE FULL-WIDTH RESPONSIVE FIX
   Desktop + tablet + mobile use the full viewport width,
   even when Elementor/WoodMart places the widget inside
   a boxed/container layout.
========================================================= */

/* Break out of constrained Elementor/WoodMart parent width */
.elementor-widget-relifi_pain_trust_hover_v1{
    width:100% !important;
    max-width:none !important;
}

.elementor-widget-relifi_pain_trust_hover_v1 > .elementor-widget-container{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

.elementor-widget-relifi_pain_trust_hover_v1 .rpth-section{
    position:relative !important;
    left:50% !important;

    width:100vw !important;
    max-width:none !important;

    margin-left:-50vw !important;
    margin-right:0 !important;

    padding:0 18px !important;

    overflow-x:clip !important;
}

/* Full-width two-panel desktop layout */
@media (min-width:1025px){

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-layout{
        width:100% !important;
        max-width:none !important;

        grid-template-columns:
            minmax(0,1.28fr)
            minmax(0,.92fr) !important;

        gap:18px !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-panel{
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
    }
}

/* Tablet */
@media (min-width:768px) and (max-width:1024px){

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-section{
        padding-left:14px !important;
        padding-right:14px !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-layout{
        width:100% !important;
        max-width:none !important;
        grid-template-columns:1fr !important;
        gap:14px !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-panel{
        width:100% !important;
        max-width:none !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-left-grid,
    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-right-grid{
        width:100% !important;
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}

/* Mobile — edge-to-edge responsive */
@media (max-width:767px){

    .elementor-widget-relifi_pain_trust_hover_v1,
    .elementor-widget-relifi_pain_trust_hover_v1 > .elementor-widget-container{
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-section{
        left:50% !important;

        width:100vw !important;
        max-width:none !important;

        margin-left:-50vw !important;
        margin-right:0 !important;

        padding-left:6px !important;
        padding-right:6px !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-layout{
        width:100% !important;
        max-width:none !important;

        margin:0 !important;
        padding:0 !important;

        grid-template-columns:1fr !important;
        gap:10px !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-panel{
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;

        margin:0 !important;
        padding-left:7px !important;
        padding-right:7px !important;
    }

    /* Keep 3 cards/items per row on phones */
    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-left-grid,
    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-right-grid{
        width:100% !important;
        max-width:none !important;

        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:7px !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-card,
    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-feature{
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
    }
}

/* Very narrow phones */
@media (max-width:380px){

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-section{
        padding-left:4px !important;
        padding-right:4px !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-panel{
        padding-left:5px !important;
        padding-right:5px !important;
    }

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-left-grid,
    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-right-grid{
        gap:5px !important;
    }
}

/* Prevent the full-width breakout from creating page horizontal scroll */
html,
body{
    overflow-x:hidden;
}


/* =========================================================
   v1.0.2 — MOBILE HEADING SIZE MATCH
   Matches the smaller heading scale in the supplied reference.
========================================================= */
@media (max-width:767px){

    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-heading{
        margin:0 0 10px !important;
        padding:0 !important;

        font-family:Arial, Helvetica, sans-serif !important;
        font-size:17px !important;
        line-height:1.08 !important;
        font-weight:700 !important;
        letter-spacing:-0.2px !important;

        text-align:center !important;
        color:#075b35 !important;
    }
}

/* Small phones */
@media (max-width:380px){
    .elementor-widget-relifi_pain_trust_hover_v1 .rpth-heading{
        font-size:16px !important;
        line-height:1.08 !important;
    }
}


/* =========================================================
   v1.0.3 — GUARANTEED REFERENCE-VIDEO HOVER
   Tuned against the supplied "oral guard hover" video.

   LEFT CARD:
   • thin bright Relifi-green border on hover
   • ~4px lift
   • soft green shadow
   • image does NOT zoom

   RIGHT ICON:
   • ~3px lift
   • icon circle gently enlarges
   • pale green hover emphasis
========================================================= */

.rpth-section{
    --rpth-ref-hover-border:#0a9650;
    --rpth-ref-hover-shadow:rgba(4,100,52,.14);
    --rpth-ref-hover-soft:#eef8f1;
}

/* Make sure WoodMart/Elementor cannot put a transparent layer above items. */
.rpth-section,
.rpth-panel,
.rpth-left-grid,
.rpth-right-grid,
.rpth-card,
.rpth-feature{
    position:relative;
    pointer-events:auto !important;
}

.rpth-panel{
    z-index:1;
}

.rpth-card,
.rpth-feature{
    z-index:2;
}

/* Stronger transition so the change is clearly visible like the video. */
.rpth-card{
    transform:translate3d(0,0,0) !important;
    transition:
        transform .22s cubic-bezier(.22,.61,.36,1),
        border-color .22s ease,
        box-shadow .22s ease !important;
    will-change:transform,border-color,box-shadow;
}

.rpth-card:hover,
.rpth-card:focus-visible,
.rpth-card.is-rpth-hover,
.rpth-card.is-rpth-touch,
.rpth-card.is-rpth-force-hover{
    z-index:20 !important;
    transform:translate3d(0,-4px,0) !important;
    border-color:var(--rpth-ref-hover-border) !important;
    box-shadow:
        0 8px 18px var(--rpth-ref-hover-shadow),
        0 0 0 1px rgba(10,150,80,.06) !important;
}

.rpth-card:hover .rpth-card-image img,
.rpth-card:focus-visible .rpth-card-image img,
.rpth-card.is-rpth-hover .rpth-card-image img,
.rpth-card.is-rpth-touch .rpth-card-image img,
.rpth-card.is-rpth-force-hover .rpth-card-image img{
    transform:none !important;
}

/* Right-side reference hover */
.rpth-feature{
    transform:translate3d(0,0,0) !important;
    transition:transform .22s cubic-bezier(.22,.61,.36,1) !important;
    will-change:transform;
}

.rpth-feature-icon{
    transform:translate3d(0,0,0) scale(1) !important;
    transition:
        transform .22s cubic-bezier(.22,.61,.36,1),
        background-color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        color .22s ease !important;
}

.rpth-feature:hover,
.rpth-feature:focus-visible,
.rpth-feature.is-rpth-hover,
.rpth-feature.is-rpth-touch,
.rpth-feature.is-rpth-force-hover{
    z-index:20 !important;
    transform:translate3d(0,-3px,0) !important;
}

.rpth-feature:hover .rpth-feature-icon,
.rpth-feature:focus-visible .rpth-feature-icon,
.rpth-feature.is-rpth-hover .rpth-feature-icon,
.rpth-feature.is-rpth-touch .rpth-feature-icon,
.rpth-feature.is-rpth-force-hover .rpth-feature-icon{
    transform:translate3d(0,-1px,0) scale(1.08) !important;
    background:var(--rpth-ref-hover-soft) !important;
    border-color:#b9dbc7 !important;
    color:#078a49 !important;
    box-shadow:0 6px 14px rgba(4,100,52,.10) !important;
}

/* Keep hover active on mobile only while tapped. */
@media (hover:none), (pointer:coarse){
    .rpth-card:hover,
    .rpth-feature:hover{
        transform:none;
    }
}
