
.elementor-widget-relifi_how_to_use{
    width:100vw!important;
    max-width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
}

.rhtu-section,
.rhtu-section *{
    box-sizing:border-box;
}

.rhtu-section{
    width:100%;
    padding:22px 0 26px;
    background:#f8fbf9;
    color:#25322c;
    font-family:Arial,Helvetica,sans-serif!important;
}

.rhtu-inner{
    width:calc(100% - 40px);
    max-width:1320px;
    margin:0 auto;
}

.rhtu-shell{
    width:100%;
    padding:14px 18px 10px;
    border:1px solid #d7e2dc;
    border-radius:15px;
    background:#fff;
}

/* IMPORTANT: don't stretch the step cards to the intro panel height */
.rhtu-content-grid{
    display:grid;
    grid-template-columns:278px minmax(0,1fr);
    gap:14px;
    align-items:start;
}

/* =========================================================
   INTRO - closer to reference
========================================================= */
.rhtu-intro{
    min-width:0;
    padding:10px 8px 0;
}

.rhtu-eyebrow{
    margin:0 0 8px!important;
    color:#007a45!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:700!important;
    letter-spacing:.1px!important;
    text-transform:uppercase!important;
}

.rhtu-title{
    max-width:270px;
    margin:0 0 9px!important;
    padding:0!important;
    color:#0b4e30!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:20px!important;
    line-height:1.12!important;
    font-weight:700!important;
    letter-spacing:-.25px!important;
    text-transform:uppercase!important;
}

.rhtu-intro-text{
    max-width:240px;
    color:#6f7c76!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:12px!important;
    line-height:1.42!important;
    font-weight:400!important;
}

.rhtu-intro-image-link{
    display:block;
}

.rhtu-intro-image{
    display:block;
    width:auto;
    max-width:185px;
    max-height:82px;
    margin:12px auto 0;
    object-fit:contain;
}

/* =========================================================
   STEP GRID
========================================================= */
.rhtu-steps{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    min-width:0;
    align-items:start;
}

.rhtu-step-card{
    position:relative;
    min-width:0;
    height:220px;
    min-height:220px;
    overflow:visible;
    border:1px solid #d7e2dc;
    border-radius:13px;
    background:#fff;
    display:flex;
    flex-direction:column;
}

.rhtu-step-number{
    position:absolute;
    z-index:3;
    top:-9px;
    left:-8px;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
    border-radius:50%;
    background:#00864b;
    color:#fff;
    box-shadow:0 0 0 1px rgba(0,0,0,.03);
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:16px!important;
    line-height:1!important;
    font-weight:700!important;
}

.rhtu-step-image-wrap{
    height:106px;
    flex:0 0 auto;
    overflow:hidden;
    border-radius:12px 12px 7px 7px;
    background:#fafcfb;
    display:flex;
    align-items:center;
    justify-content:center;
}

.rhtu-step-image{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

/* Reference has the text vertically centered in the lower card section */
.rhtu-step-copy{
    flex:1 1 auto;
    min-height:0;
    padding:13px 12px 12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.rhtu-step-title{
    margin:0 0 6px!important;
    padding:0!important;
    color:#006b3d!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:14px!important;
    line-height:1.15!important;
    font-weight:700!important;
    letter-spacing:0!important;
    text-transform:none!important;
}

.rhtu-step-description{
    margin:0!important;
    max-width:210px;
    color:#6b7872!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:10.5px!important;
    line-height:1.35!important;
    font-weight:400!important;
}

.rhtu-card-arrow{
    position:absolute;
    z-index:4;
    top:98px;
    right:-12px;
    width:24px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #d5e1da;
    border-radius:50%;
    background:#fff;
    color:#00864b;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:20px;
    line-height:1;
}

/* =========================================================
   BOTTOM NOTE
========================================================= */
.rhtu-note{
    min-height:29px;
    margin-top:10px;
    padding:8px 10px 2px;
    border-top:1px solid #d7e2dc;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#68756f!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:10.5px!important;
    line-height:1.3!important;
    font-weight:400!important;
    text-align:center;
}

.rhtu-note-icon{
    width:16px;
    height:16px;
    flex:0 0 16px;
    color:#00864b;
}

.rhtu-note-icon svg{
    display:block;
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.6;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* =========================================================
   LAPTOP
========================================================= */
@media(max-width:1100px){
    .rhtu-content-grid{
        grid-template-columns:235px minmax(0,1fr);
    }

    .rhtu-title{
        font-size:18px!important;
    }

    .rhtu-step-title{
        font-size:12.5px!important;
    }

    .rhtu-step-description{
        font-size:9.8px!important;
    }
}

/* =========================================================
   TABLET
========================================================= */
@media(max-width:900px){
    .rhtu-inner{
        width:calc(100% - 26px);
    }

    .rhtu-content-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .rhtu-intro{
        text-align:center;
        padding:7px 10px 0;
    }

    .rhtu-title,
    .rhtu-intro-text{
        max-width:620px;
        margin-left:auto!important;
        margin-right:auto!important;
    }

    .rhtu-title{
        font-size:20px!important;
    }

    .rhtu-intro-image{
        max-width:205px;
        max-height:95px;
    }

    .rhtu-steps{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:16px;
    }

    .rhtu-step-card{
        height:250px;
        min-height:250px;
    }

    .rhtu-step-image-wrap{
        height:145px;
    }

    .rhtu-card-arrow{
        display:none;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media(max-width:640px){
    .rhtu-section{
        padding:14px 0 18px;
    }

    .rhtu-inner{
        width:calc(100% - 18px);
    }

    .rhtu-shell{
        padding:13px 11px 10px;
        border-radius:13px;
    }

    .rhtu-content-grid{
        gap:16px;
    }

    .rhtu-intro{
        padding:3px 5px 0;
    }

    .rhtu-eyebrow{
        font-size:10px!important;
    }

    .rhtu-title{
        max-width:330px;
        font-size:19px!important;
        line-height:1.12!important;
    }

    .rhtu-intro-text{
        max-width:330px;
        font-size:11.5px!important;
        line-height:1.4!important;
    }

    .rhtu-intro-image{
        max-width:180px;
        max-height:86px;
    }

    .rhtu-content-grid.rhtu-mobile-cols-1 .rhtu-steps{
        grid-template-columns:1fr;
    }

    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-steps{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .rhtu-step-card{
        height:auto;
        min-height:235px;
    }

    .rhtu-step-image-wrap{
        height:160px;
    }

    .rhtu-step-copy{
        min-height:92px;
        padding:12px 9px;
    }

    .rhtu-step-title{
        font-size:14px!important;
    }

    .rhtu-step-description{
        max-width:300px;
        font-size:10.5px!important;
    }

    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-card{
        min-height:205px;
    }

    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-image-wrap{
        height:110px;
    }

    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-copy{
        min-height:92px;
        padding:10px 6px;
    }

    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-title{
        font-size:11.5px!important;
        line-height:1.18!important;
    }

    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-description{
        font-size:9px!important;
        line-height:1.3!important;
    }

    .rhtu-step-number{
        width:28px;
        height:28px;
        font-size:14px!important;
    }

    .rhtu-note{
        padding-top:10px;
        font-size:9.5px!important;
    }
}


/* =========================================================
   v1.2.0 — MOBILE REFERENCE 2×2 RESPONSIVE FIX
   Matches supplied reference mobile screenshot:
   • two cards per row
   • compact square-ish images
   • compact titles/descriptions
   • no oversized single-column cards
========================================================= */

@media(max-width:640px){

    .elementor-widget-relifi_how_to_use{
        width:100%!important;
        max-width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
        min-width:0!important;
    }

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

    .rhtu-section{
        width:100%!important;
        max-width:100%!important;
        padding:8px 0 12px!important;
        overflow-x:hidden!important;
    }

    .rhtu-inner{
        width:calc(100% - 10px)!important;
        max-width:100%!important;
        margin:0 auto!important;
    }

    .rhtu-shell{
        width:100%!important;
        max-width:100%!important;
        padding:8px 7px 9px!important;
        border-radius:11px!important;
    }

    .rhtu-content-grid{
        width:100%!important;
        max-width:100%!important;
        gap:10px!important;
    }

    /* Intro block compact like reference */
    .rhtu-intro{
        padding:0 5px!important;
    }

    .rhtu-eyebrow{
        margin-bottom:4px!important;
        font-size:8.5px!important;
        line-height:1!important;
        text-align:center!important;
    }

    .rhtu-title{
        max-width:330px!important;
        margin:0 auto 7px!important;
        font-size:18px!important;
        line-height:1.08!important;
        text-align:center!important;
    }

    .rhtu-intro-text{
        max-width:320px!important;
        margin:0 auto!important;
        font-size:10.5px!important;
        line-height:1.32!important;
        text-align:center!important;
    }

    .rhtu-intro-image{
        width:auto!important;
        max-width:126px!important;
        max-height:72px!important;
        margin:8px auto 0!important;
        object-fit:contain!important;
    }

    /* Force existing saved 1-column widgets to the 2×2 reference layout */
    .rhtu-content-grid.rhtu-mobile-cols-1 .rhtu-steps,
    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-steps,
    .rhtu-steps{
        width:100%!important;
        max-width:100%!important;
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:10px!important;
        align-items:stretch!important;
    }

    .rhtu-step-card,
    .rhtu-content-grid.rhtu-mobile-cols-1 .rhtu-step-card,
    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-card{
        width:100%!important;
        min-width:0!important;
        height:auto!important;
        min-height:190px!important;
        border-radius:11px!important;
        overflow:visible!important;
    }

    /* Override Elementor's old saved 160px mobile image height */
    .rhtu-step-image-wrap,
    .rhtu-content-grid.rhtu-mobile-cols-1 .rhtu-step-image-wrap,
    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-image-wrap{
        width:100%!important;
        height:104px!important;
        min-height:104px!important;
        max-height:104px!important;
        flex:0 0 104px!important;
        border-radius:10px 10px 6px 6px!important;
    }

    .rhtu-step-image{
        width:100%!important;
        height:100%!important;
        display:block!important;
        object-fit:cover!important;
        object-position:center!important;
    }

    .rhtu-step-copy,
    .rhtu-content-grid.rhtu-mobile-cols-1 .rhtu-step-copy,
    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-copy{
        min-height:84px!important;
        padding:9px 6px 8px!important;
        justify-content:center!important;
    }

    .rhtu-step-title,
    .rhtu-content-grid.rhtu-mobile-cols-1 .rhtu-step-title,
    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-title{
        margin:0 0 5px!important;
        font-size:11.5px!important;
        line-height:1.12!important;
    }

    .rhtu-step-description,
    .rhtu-content-grid.rhtu-mobile-cols-1 .rhtu-step-description,
    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-description{
        max-width:145px!important;
        font-size:9px!important;
        line-height:1.25!important;
    }

    .rhtu-step-number{
        top:-8px!important;
        left:-7px!important;
        width:27px!important;
        height:27px!important;
        font-size:14px!important;
    }

    .rhtu-card-arrow{
        display:none!important;
    }

    .rhtu-note{
        margin-top:8px!important;
        padding-top:8px!important;
        font-size:9px!important;
    }
}

/* Narrow phones: keep 2 columns but reduce the cards proportionally */
@media(max-width:380px){

    .rhtu-inner{
        width:calc(100% - 8px)!important;
    }

    .rhtu-shell{
        padding-left:5px!important;
        padding-right:5px!important;
    }

    .rhtu-steps{
        gap:8px!important;
    }

    .rhtu-step-card,
    .rhtu-content-grid.rhtu-mobile-cols-1 .rhtu-step-card,
    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-card{
        min-height:184px!important;
    }

    .rhtu-step-image-wrap,
    .rhtu-content-grid.rhtu-mobile-cols-1 .rhtu-step-image-wrap,
    .rhtu-content-grid.rhtu-mobile-cols-2 .rhtu-step-image-wrap{
        height:100px!important;
        min-height:100px!important;
        max-height:100px!important;
        flex-basis:100px!important;
    }

    .rhtu-step-title{
        font-size:11px!important;
    }

    .rhtu-step-description{
        font-size:8.6px!important;
    }
}


/* =========================================================
   v1.2.1 — MOBILE TRUE FULL-WIDTH FIX
   Makes the How To Use section edge-to-edge on phones.
========================================================= */

@media(max-width:640px){

    .elementor-widget-relifi_how_to_use{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;

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

    .elementor-widget-relifi_how_to_use > .elementor-widget-container{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;

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

    /* Break out of boxed Elementor/WoodMart parent containers */
    .elementor-widget-relifi_how_to_use .rhtu-section{
        position:relative!important;
        left:50%!important;

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

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

        padding-left:0!important;
        padding-right:0!important;

        overflow-x:clip!important;
    }

    .elementor-widget-relifi_how_to_use .rhtu-inner{
        width:100%!important;
        max-width:none!important;

        margin:0!important;
        padding:0 4px!important;
    }

    .elementor-widget-relifi_how_to_use .rhtu-shell{
        width:100%!important;
        max-width:none!important;

        margin:0!important;

        padding-left:5px!important;
        padding-right:5px!important;

        border-radius:0!important;
    }

    .elementor-widget-relifi_how_to_use .rhtu-content-grid,
    .elementor-widget-relifi_how_to_use .rhtu-steps{
        width:100%!important;
        max-width:none!important;
    }
}

/* Very narrow phones: keep only a tiny safe edge */
@media(max-width:380px){

    .elementor-widget-relifi_how_to_use .rhtu-inner{
        padding-left:3px!important;
        padding-right:3px!important;
    }

    .elementor-widget-relifi_how_to_use .rhtu-shell{
        padding-left:4px!important;
        padding-right:4px!important;
    }
}

/* Prevent viewport breakout from creating horizontal page scroll */
html,
body{
    overflow-x:hidden!important;
}
