/* Relifi Discomfort Cards */
.elementor-widget-relifi_discomfort_cards {
    width: 100%;
    max-width: 100%;
}

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

.rdc-section {
    width: 100%;
    overflow: hidden;
}

.rdc-section.rdc-full-width {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.rdc-inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.rdc-heading-wrap {
    width: 100%;
    text-align: center;
}

.rdc-heading {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.rdc-heading span {
    display: inline;
}

.rdc-heading-before:not(:last-child)::after {
    content: " ";
}

.rdc-highlight:not(:last-child)::after {
    content: " ";
}

.rdc-subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

.rdc-grid {
    display: grid;
    width: 100%;
    align-items: stretch;
}

.rdc-card {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-style: solid;
    text-decoration: none !important;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

a.rdc-card:hover {
    text-decoration: none !important;
    color: inherit;
}

.rdc-card-image {
    width: 100%;
    overflow: hidden;
    flex: 0 0 auto;
    background: #eee;
}

.rdc-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.rdc-card-content {
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.rdc-card-title,
.rdc-card-desc,
.rdc-card-price {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.rdc-card-title {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.18;
}

.rdc-card-desc {
    margin-top: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.35;
}

.rdc-card-price {
    margin-top: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Keep 3-column mobile layout readable like the reference */
@media (max-width: 767px) {
    .rdc-section.rdc-full-width {
        left: 50%;
    }

    .rdc-inner {
        width: 100%;
        max-width: 100% !important;
    }

    .rdc-heading {
        line-height: 1.05;
    }

    .rdc-grid {
        width: 100%;
    }

    .rdc-card {
        min-width: 0;
    }

    .rdc-card-title {
        line-height: 1.08;
    }

    .rdc-card-desc {
        margin-top: 5px;
        line-height: 1.25;
    }
}

/* Extra narrow phones: prevent accidental character-by-character wrapping */
@media (max-width: 390px) {
    .rdc-card-content {
        padding-left: 7px;
        padding-right: 7px;
    }

    .rdc-card-title,
    .rdc-card-desc,
    .rdc-card-price {
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}


/* v1.1 Reference typography preset
   Uses the same clean Arial/Helvetica-style sans-serif appearance as the supplied reference.
   Elementor Typography controls remain editable and can override these defaults. */
.rdc-section .rdc-heading,
.rdc-section .rdc-subtitle,
.rdc-section .rdc-card-title,
.rdc-section .rdc-card-desc,
.rdc-section .rdc-card-price {
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    text-transform: none;
}

.rdc-section .rdc-heading {
    font-weight: 700;
}

.rdc-section .rdc-card-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.rdc-section .rdc-subtitle,
.rdc-section .rdc-card-desc {
    font-weight: 400;
    letter-spacing: 0;
}

/* Match the reference's lighter, cleaner text rendering. */
.rdc-section {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   v1.1.1 — CARD TITLE WEIGHT ONLY
   Requested change: card headings should not look overly bold.
   No other layout, size, spacing, image or responsive styles changed.
========================================================= */
.rdc-section .rdc-card-title{
    font-weight:600!important;
}

@media (max-width:767px){
    .rdc-section .rdc-card-title{
        font-weight:600!important;
    }
}


/* =========================================================
   v1.1.2 — MOBILE REFERENCE MATCH
   Desktop styles are unchanged.
========================================================= */
@media (max-width:767px){

    /*
     * Match the supplied mobile reference:
     * 3 equal cards per row, 2 rows for six cards.
     */
    .elementor-widget-relifi_discomfort_cards{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-section,
    .elementor-widget-relifi_discomfort_cards .rdc-section.rdc-full-width{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        left:auto!important;
        right:auto!important;
        margin-left:0!important;
        margin-right:0!important;
        padding:8px 7px 10px!important;
        overflow:hidden!important;
        box-sizing:border-box!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-inner{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-grid{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        display:grid!important;
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        column-gap:6px!important;
        row-gap:7px!important;
        align-items:stretch!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        min-height:224px!important;
        height:224px!important;
        margin:0!important;
        border-width:1px!important;
        border-radius:14px!important;
        overflow:hidden!important;
        box-shadow:0 2px 8px rgba(0,0,0,.04)!important;
        display:flex!important;
        flex-direction:column!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card-image{
        width:100%!important;
        height:105px!important;
        min-height:105px!important;
        max-height:105px!important;
        flex:0 0 105px!important;
        border-radius:14px 14px 0 0!important;
        overflow:hidden!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card-image img{
        width:100%!important;
        height:100%!important;
        max-width:100%!important;
        display:block!important;
        object-fit:cover!important;
        object-position:center!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card-content{
        width:100%!important;
        min-width:0!important;
        flex:1 1 auto!important;
        padding:8px 8px 9px!important;
        text-align:left!important;
        overflow:hidden!important;
    }

    /*
     * Reference title is compact/medium-bold, not heavy bold.
     * !important prevents WoodMart/Elementor typography overrides.
     */
    .elementor-widget-relifi_discomfort_cards .rdc-card-title{
        margin:0!important;
        padding:0!important;
        color:#0b0b0b!important;
        font-family:Arial,Helvetica,sans-serif!important;
        font-size:12px!important;
        line-height:1.12!important;
        font-weight:600!important;
        letter-spacing:-.15px!important;
        text-transform:none!important;
        overflow-wrap:normal!important;
        word-break:normal!important;
        hyphens:none!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card-desc{
        margin:5px 0 0!important;
        padding:0!important;
        color:#7b7b75!important;
        font-family:Arial,Helvetica,sans-serif!important;
        font-size:10.5px!important;
        line-height:1.2!important;
        font-weight:400!important;
        letter-spacing:0!important;
        overflow-wrap:normal!important;
        word-break:normal!important;
        hyphens:none!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card-price{
        margin-top:6px!important;
        font-size:10.5px!important;
        line-height:1.15!important;
    }
}

/* Reference proportions on very narrow phones */
@media (max-width:390px){
    .elementor-widget-relifi_discomfort_cards .rdc-section,
    .elementor-widget-relifi_discomfort_cards .rdc-section.rdc-full-width{
        padding-left:6px!important;
        padding-right:6px!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-grid{
        column-gap:6px!important;
        row-gap:7px!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card-content{
        padding-left:8px!important;
        padding-right:7px!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card-title{
        font-size:12px!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card-desc{
        font-size:10.5px!important;
    }
}


/* =========================================================
   v1.1.3 — TRUE MOBILE FULL-WIDTH FIX
   Break out of Elementor / WoodMart boxed containers.
   Desktop remains unchanged.
========================================================= */
@media (max-width:767px){

    .elementor-widget-relifi_discomfort_cards{
        position:relative!important;
        width:100vw!important;
        max-width:100vw!important;
        min-width:100vw!important;
        margin-left:calc(50% - 50vw)!important;
        margin-right:calc(50% - 50vw)!important;
        padding-left:0!important;
        padding-right:0!important;
        left:auto!important;
        right:auto!important;
        overflow:visible!important;
        box-sizing:border-box!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-section,
    .elementor-widget-relifi_discomfort_cards .rdc-section.rdc-full-width{
        position:relative!important;
        width:100vw!important;
        max-width:100vw!important;
        min-width:100vw!important;
        margin:0!important;
        padding:8px 6px 10px!important;
        left:auto!important;
        right:auto!important;
        box-sizing:border-box!important;
        overflow-x:clip!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-inner{
        width:100%!important;
        max-width:none!important;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
        box-sizing:border-box!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-grid{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin:0!important;
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        column-gap:6px!important;
        row-gap:7px!important;
        box-sizing:border-box!important;
    }

    .elementor-widget-relifi_discomfort_cards .rdc-card{
        min-width:0!important;
        width:100%!important;
        max-width:100%!important;
        box-sizing:border-box!important;
    }
}

@media (max-width:390px){
    .elementor-widget-relifi_discomfort_cards .rdc-section,
    .elementor-widget-relifi_discomfort_cards .rdc-section.rdc-full-width{
        padding-left:5px!important;
        padding-right:5px!important;
    }
}


/* =========================================================
   v1.2.1 — EXACT REFERENCE VIDEO HOVER
   Reference behavior:
   • whole card moves up ~3px
   • border changes from soft gray to dark Relifi green
   • shadow becomes slightly clearer
   • image/text do NOT zoom
   • card size/layout stays unchanged
========================================================= */

.rdc-section .rdc-card{
    transform:translate3d(0,0,0)!important;
    transition:
        transform .26s cubic-bezier(.22,.61,.36,1),
        border-color .26s ease,
        box-shadow .26s ease!important;
    will-change:transform,border-color,box-shadow;
}

/* Exact dark green sampled from the supplied reference video. */
@media (hover:hover) and (pointer:fine){

    .rdc-section .rdc-card:hover,
    .rdc-section .rdc-card.rdc-hover-active,
    .rdc-section .rdc-card:focus-visible{
        transform:translate3d(0,-3px,0)!important;
        border-color:#2f6741!important;
        box-shadow:
            0 7px 16px rgba(32,74,46,.10),
            0 2px 5px rgba(32,74,46,.05)!important;
    }

    /* Reference does not zoom the image/content. */
    .rdc-section .rdc-card:hover .rdc-card-image img,
    .rdc-section .rdc-card.rdc-hover-active .rdc-card-image img,
    .rdc-section .rdc-card:focus-visible .rdc-card-image img,
    .rdc-section .rdc-card:hover .rdc-card-content,
    .rdc-section .rdc-card.rdc-hover-active .rdc-card-content{
        transform:none!important;
    }
}

/* Mobile/tablet: tap recreates the same visual hover state. */
@media (hover:none), (pointer:coarse){

    .rdc-section .rdc-card.rdc-touch-active,
    .rdc-section .rdc-card:active{
        transform:translate3d(0,-3px,0)!important;
        border-color:#2f6741!important;
        box-shadow:
            0 7px 16px rgba(32,74,46,.10),
            0 2px 5px rgba(32,74,46,.05)!important;
    }

    .rdc-section .rdc-card.rdc-touch-active .rdc-card-image img,
    .rdc-section .rdc-card:active .rdc-card-image img,
    .rdc-section .rdc-card.rdc-touch-active .rdc-card-content{
        transform:none!important;
    }
}

@media (prefers-reduced-motion:reduce){
    .rdc-section .rdc-card{
        transition:none!important;
    }
}
