/*
 * Action-button labels share one size at every breakpoint and interaction state.
 * Large product quote, help-search and contact-submit buttons are excluded.
 * Navigation tabs, filters, language controls and icon buttons retain their sizes.
 * Only font-size is set here: spacing, dimensions and interactions stay in their components.
 */
html body #page :is(
    .elementor-button,
    .elementor-button-text,
    .vpk-btn-more,
    .vpk-btn-quote:not(.vpk-product-template-quote),
    .vpk-product-component__action,
    .vpk-blog-card-button,
    .vpk-featured-article-button,
    .vpk-homepage-banner-button,
    .vpk-product-template-related-more,
    .vpk-quote-page-empty-shell-button,
    .vpk-secondary-button-modal,
    .vpk-success-primary,
    .vpk-ebook-card__button,
    .vpk-ebook-submit,
    .vpk-custom-cta__button,
    .vpk-newsletter-field button
),
html body .vpk-ebook-modal .vpk-ebook-submit,
html body #vpk-consent-root .vpk-consent-btn,
html body #vpk-consent-root .vpk-consent-reopen {
    font-size: 14px !important;
}

/* Quotation-list navigation remains the same action, presented beside its title. */
.vpk-quote-list-panel .vpk-quote-list-expand {
    display: none;
}

@media (max-width: 767px) {
    .vpk-quote-list-panel .vpk-quote-list-collapsed > .vpk-quote-page-item:nth-child(n + 4) {
        display: none;
    }

    .vpk-quote-list-panel .vpk-quote-list-expand:not([hidden]) {
        display: inline-flex;
        margin-top: 16px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #00273d;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.75;
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }

    .vpk-quote-list-panel .vpk-quote-list-expand:focus-visible {
        outline: 2px solid #00273d;
        outline-offset: 4px;
    }
}

@media (min-width: 1025px) {
    :is(.page-id-559, .page-id-2482) .vpk-quote-column-sticky {
        position: sticky;
        top: var(--vpk-quote-sticky-top, 100px);
    }
}

:is(.page-id-559, .page-id-2482) .vpk-quote-list-panel .vpk-product-component--quote-page {
    --vpk-product-padding: 14px;
    --vpk-product-gap: 10px;
    --vpk-product-media-width: 84px;
    --vpk-product-media-height: 84px;
}

:is(.page-id-559, .page-id-2482) .vpk-quote-list-panel .vpk-quote-page-list {
    gap: 12px;
}

:is(.page-id-559, .page-id-2482) .vpk-quote-list-panel .vpk-quote-page-item-head {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 16px;
}

:is(.page-id-559, .page-id-2482) .vpk-quote-list-panel .vpk-quote-page-item-body {
    gap: 12px;
    padding-top: 12px;
    margin-top: 12px;
}

@media (max-width: 767px) {
    :is(.page-id-559, .page-id-2482) .vpk-quote-list-panel .vpk-product-component--quote-page {
        --vpk-product-padding: 12px;
        --vpk-product-gap: 8px;
    }

    html body:is(.page-id-559, .page-id-2482) .vpk-quote-list-panel .vpk-quote-page-list .vpk-product-component .vpk-quote-page-item-head div.vpk-product-component__media.vpk-quote-page-thumb-wrap {
        height: 60px !important;
    }
}

:is(.page-id-559, .page-id-2482) .vpk-quote-list-panel .vpk-quote-page-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

:is(.page-id-559, .page-id-2482) .vpk-quote-list-panel .vpk-quote-page-heading h3 {
    margin: 0;
}

:is(.page-id-559, .page-id-2482) .vpk-quote-list-panel .vpk-quote-page-back {
    background: transparent !important;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    color: #00273d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Apply the site's light neutral only to the quotation modal body. */
.vpk-side-body {
    background-color: var(--ast-global-color-4, #f9f9f9);
}

/* About-page text uses no additional tracking, including the HTML timeline. */
:is(.page-id-51, .page-id-732) .vpk-about,
:is(.page-id-51, .page-id-732) .vpk-about * {
    letter-spacing: 0 !important;
}

/* Header search and language controls share their border palette. */
#masthead .vpk-smart-search .vpk-search-header,
#masthead .vpk-language-trigger,
#masthead .vpk-language-switcher-trigger {
    border-color: #d7dee5;
}

#masthead .vpk-smart-search:hover .vpk-search-header,
#masthead .vpk-smart-search:focus-within .vpk-search-header,
#masthead .vpk-language-trigger:hover,
#masthead .vpk-language-trigger:focus-visible,
#masthead .vpk-language-switcher.is-open .vpk-language-trigger,
#masthead .vpk-language-switcher-trigger:hover,
#masthead .vpk-language-switcher-trigger:focus-visible,
#masthead .vpk-language-switcher-dropdown[open] .vpk-language-switcher-trigger {
    border-color: #00273d;
}

/* Mobile footer columns, headings and links share a left alignment. */
@media (max-width: 767px) {
    #colophon .ast-builder-grid-row-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    #colophon .footer-widget-area,
    #colophon .widget {
        margin-left: 0;
        margin-right: 0;
    }

    #colophon .site-footer-section,
    #colophon .footer-widget-area,
    #colophon .footer-widget-area-inner,
    #colophon .widget,
    #colophon :is(h1, h2, h3, h4, h5, h6, a, .widget-title, .menu, .menu-item) {
        text-align: left;
    }

    #colophon .site-footer-section {
        align-items: flex-start;
    }

    #colophon :is(.footer-widget-area, .footer-widget-area-inner) {
        width: 100%;
    }

    #colophon :is(.footer-social-inner-wrap, .vpk-footer-project-logos, .footer-badges) {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Let the site background show through the responsive product-page wrapper. */
@media (max-width: 1024px) {
    body.single-produto.ast-separate-container #primary .ast-article-single {
        background: transparent;
    }
}

/* Keep compact-header results as wide as the original desktop search. */
@media (min-width: 922px) {
    #masthead.vpk-header--compact #ast-desktop-header .vpk-search-dropdown {
        width: calc(var(--vpk-initial-search-width, 800px) * 0.9);
        max-width: calc(100vw - 40px);
        left: auto;
        right: 0;
    }
}

/* Mobile results retain all three columns, including the action button. */
@media (max-width: 767px) {
    html body .vpk-search-results .vpk-search-row {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 8px;
    }

    html body .vpk-search-results .vpk-search-thumb img,
    html body .vpk-search-results .vpk-search-thumb-placeholder {
        width: 44px;
        height: 44px;
    }

    html body .vpk-search-results .vpk-search-content {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    html body .vpk-search-results .vpk-search-row a.vpk-search-more,
    html body .vpk-search-results .vpk-search-row a.vpk-search-more:hover,
    html body .vpk-search-results .vpk-search-row a.vpk-search-more:focus-visible {
        grid-column: 3;
        grid-row: 1;
        padding: 10px 12px;
        margin-top: 0;
    }
}

/* Search-result actions use the theme blue on hover and keyboard focus. */
html body .vpk-search-results .vpk-search-row a.vpk-search-more:hover,
html body .vpk-search-results .vpk-search-row a.vpk-search-more:focus-visible {
    background-color: #00273d;
    color: #fff !important;
}

/* Catalog FAQs share the product-information accordion surface and dividers.
 * All section, title and content spacing remains configured in Elementor. */
:is(.page-id-43, .page-id-1022) .vpk-catalog-faq > .e-n-accordion {
    border: 1px solid #e6edf2;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

:is(.page-id-43, .page-id-1022) .vpk-catalog-faq .e-n-accordion-item + .e-n-accordion-item {
    border-top: 1px solid #e6edf2;
}

:is(.page-id-43, .page-id-1022) .vpk-catalog-faq .e-n-accordion-item-title {
    background: transparent;
}

:is(.page-id-43, .page-id-1022) .vpk-catalog-faq .e-n-accordion-item > .e-con {
    color: #12516f;
    font-size: 16px;
    line-height: 1.75;
}

:is(.page-id-43, .page-id-1022) .vpk-catalog-faq .e-n-accordion-item-title:focus-visible {
    outline: 2px solid #00273d;
    outline-offset: -3px;
    border-radius: 8px;
}

/* Match the lighter, 1.5px product-accordion chevrons in both states. */
:is(.page-id-43, .page-id-1022) .vpk-catalog-faq .e-n-accordion-item-title-icon svg {
    visibility: hidden;
}

:is(.page-id-43, .page-id-1022) .vpk-catalog-faq .e-n-accordion-item-title-icon {
    position: relative;
}

:is(.page-id-43, .page-id-1022) .vpk-catalog-faq .e-n-accordion-item-title-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2300273d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    pointer-events: none;
}

:is(.page-id-43, .page-id-1022) .vpk-catalog-faq details[open] > summary .e-n-accordion-item-title-icon::after {
    transform: rotate(180deg);
}
