body {
    padding-bottom: 0;
}

/* The menu widget can retain a narrow inline width after a mobile resize. */
@media (min-width: 1200px) {
    #ct-header-elementor .hfe-nav-menu__layout-horizontal {
        width: 100% !important;
        left: 0 !important;
    }
}

/* The quote form is the destination, so it needs no floating quote prompt. */
body.page-id-84 #colophon.site-footer-custom {
    padding-bottom: 24px;
}

body.page-id-84 .scroll-top,
body.page-id-84 .scroll-top.on {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

#ct-menu-mobile .open-menu:focus-visible,
.ct-menu-toggle:focus-visible,
.ct-ac-title-text:focus-visible {
    outline: 3px solid #3874b7;
    outline-offset: 4px;
}

/* Leave room for the floating quote panel without a gap below the footer. */
#colophon.site-footer-custom {
    padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px));
    background: #070c14;
    font-family: Poppins, sans-serif;
}

#colophon .elementor-element-91bb494 {
    padding: 64px 0 40px;
    background: #070c14;
}

#colophon .elementor-element-91bb494 > .elementor-container {
    max-width: 1200px;
}

#colophon .elementor-element-5d8c1ed {
    max-width: 330px;
    margin: 22px 0 0;
    color: #a6b0bf;
    font-size: 14px;
    line-height: 1.8;
}

#colophon .elementor-element-5d8c1ed p {
    margin: 0;
    color: #a6b0bf;
}

#colophon .elementor-element-91bb494 h4 {
    margin: 0;
    color: #f4f7fb;
    /* Override the theme's forced mobile heading size in the footer. */
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.5 !important;
    letter-spacing: .09em;
    text-transform: uppercase;
}

#colophon .elementor-element-91bb494 .ct-nav-inner a,
#colophon .elementor-element-91bb494 .ct-nav-inner a span,
#colophon .elementor-element-d705a72 .elementor-icon-list-text {
    color: #a6b0bf;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
}

#colophon .elementor-element-91bb494 .ct-nav-inner a:hover,
#colophon .elementor-element-91bb494 .ct-nav-inner a:hover span,
#colophon .elementor-element-d705a72 a:hover .elementor-icon-list-text {
    color: #fff;
}

#colophon .elementor-element-62fd2f9 {
    margin-top: 28px;
    text-align: left;
}

#colophon .elementor-social-icons-wrapper {
    text-align: left;
}

#colophon .elementor-social-icon {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}

#colophon .elementor-social-icon:hover {
    background: rgba(255, 255, 255, .12);
}

#colophon .elementor-element-1b880bc {
    padding: 0 24px;
    background: #070c14;
}

#colophon .elementor-element-1b880bc > .elementor-container {
    max-width: 1200px;
}

#colophon .elementor-element-38ce5a2 {
    margin: 0;
}

#colophon .elementor-element-38ce5a2 > .elementor-widget-wrap {
    padding: 0 15px;
}

.tresto-footer-meta {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #8895a6;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

.tresto-footer-meta p {
    margin: 0;
}

.tresto-footer-meta .tresto-footer-meta__credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8895a6;
    text-decoration: none;
}

.tresto-footer-meta__credit strong {
    color: #d5dfec;
    font-weight: 500;
}

.tresto-footer-meta__credit:hover strong {
    color: #fff;
}

.tresto-quote-bar {
    position: fixed;
    z-index: 9990;
    right: 24px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    left: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 26px;
    border: 1px solid rgba(184, 208, 235, .2);
    border-radius: 14px;
    background: #102b47;
    box-shadow: 0 12px 40px rgba(0, 12, 28, .24), 0 2px 8px rgba(0, 12, 28, .12);
    font-family: Poppins, sans-serif;
}

.tresto-quote-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.tresto-quote-bar .tresto-quote-bar__copy {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.02em;
}

.tresto-quote-bar .tresto-quote-bar__detail {
    margin: 5px 0 0;
    color: #bac8d9;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.tresto-quote-bar .tresto-quote-bar__button {
    display: inline-flex;
    min-width: 180px;
    min-height: 50px;
    padding: 13px 26px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 8px;
    background: #fff;
    color: #102b47;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

.tresto-quote-bar .tresto-quote-bar__button:hover {
    background: #edf3f9;
    color: #102b47;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}

.tresto-quote-bar__button:focus-visible,
.tresto-inline-quote a:focus-visible,
.tresto-footer-meta a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

body .scroll-top,
body .scroll-top.on {
    right: 24px;
    bottom: calc(206px + env(safe-area-inset-bottom, 0px));
    width: 40px;
    height: 40px;
    border: 1px solid rgba(184, 208, 235, .22);
    border-radius: 10px;
    background: #102b47;
    color: #fff;
    line-height: 40px;
    box-shadow: 0 4px 16px rgba(0, 12, 28, .12);
}

body .scroll-top.on {
    right: 24px;
}

/* A quiet, persistent WhatsApp link above the quote panel. */
.tresto-whatsapp {
    position: fixed;
    z-index: 9991;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(138px + env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #128c4c;
    color: #fff;
    box-shadow: 0 3px 14px rgba(0, 30, 16, .2);
    text-decoration: none;
    transition: background-color 150ms ease, transform 150ms ease;
}

.tresto-whatsapp:hover,
.tresto-whatsapp:focus-visible {
    background: #0d703c;
    color: #fff;
    transform: translateY(-2px);
}

.tresto-whatsapp:focus-visible {
    outline: 3px solid #102b47;
    outline-offset: 4px;
}

.tresto-whatsapp svg {
    display: block;
    flex-shrink: 0;
}

.tresto-whatsapp__tooltip {
    position: absolute;
    right: calc(100% + 12px);
    padding: 8px 12px;
    border-radius: 6px;
    background: #102b47;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tresto-whatsapp:hover .tresto-whatsapp__tooltip,
.tresto-whatsapp:focus-visible .tresto-whatsapp__tooltip {
    opacity: 1;
    visibility: visible;
}

.tresto-whatsapp--no-quote {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

body.page-id-84 .scroll-top,
body.page-id-84 .scroll-top.on {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {
    .tresto-whatsapp {
        transition: none;
    }
}

@media (max-width: 767px) {
    #colophon .elementor-element-91bb494 {
        padding: 42px 12px 24px;
    }

    #colophon .elementor-element-91bb494 > .elementor-container > .elementor-column {
        margin: 0 0 28px;
    }

    #colophon .elementor-element-1b880bc {
        padding: 0 24px;
    }

    #colophon .elementor-element-38ce5a2 > .elementor-widget-wrap {
        padding: 0 2px;
    }

    .tresto-footer-meta {
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }
}

@media (max-width: 640px) {
    #colophon.site-footer-custom {
        padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    }

    .tresto-quote-bar {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        padding: 14px 16px;
        border-radius: 12px;
    }

    .tresto-quote-bar__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        gap: 12px;
    }

    .tresto-quote-bar .tresto-quote-bar__copy {
        font-size: 14px;
        text-align: center;
    }

    .tresto-quote-bar__detail {
        display: none;
    }

    .tresto-quote-bar .tresto-quote-bar__button {
        width: 100%;
        min-height: 46px;
        padding: 11px 20px;
        font-size: 14px;
    }

    body .scroll-top,
    body .scroll-top.on {
        right: 14px;
        bottom: calc(204px + env(safe-area-inset-bottom, 0px));
    }

    .tresto-whatsapp {
        right: calc(14px + env(safe-area-inset-right, 0px));
        bottom: calc(140px + env(safe-area-inset-bottom, 0px));
        width: 48px;
        height: 48px;
    }

    .tresto-whatsapp--no-quote {
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .tresto-whatsapp__tooltip {
        display: none;
    }
}

/* Packaging product cards: keep complete titles and aligned quote buttons. */
body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) > .e-con-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}
body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) > .e-con-inner > .e-con {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    min-width: 0;
    max-width: none;
}
body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) .elementor-widget-heading {
    min-height: 60px;
    margin: 0 !important;
}
body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) .elementor-heading-title {
    margin: 0;
    font-size: 22px !important;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) .elementor-widget-image img {
    display: block;
}
body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) .elementor-widget-button {
    margin-top: auto;
}
body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) .elementor-icon-list-item {
    align-items: flex-start;
}
body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) .elementor-icon-list-icon {
    padding-top: 5px;
}
body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) .elementor-icon-list-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
    body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) > .e-con-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) {
        margin-bottom: 36px;
    }
    body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) > .e-con-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) .elementor-widget-heading {
        min-height: 0;
    }
    body.postid-6600 :is(.elementor-element-8a1844e, .elementor-element-a379697) .elementor-heading-title {
        font-size: 20px !important;
        line-height: 1.4;
    }
}
