/* The portal uses Shopfront's existing components. These rules cover the
 * layout and states specific to review-only catalogue content. */
.hf-global {
    min-width: 0;
}

.hf-global :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--cs-color-primary);
    outline-offset: 3px;
}

/* Match the page builder's native content position below the header. */
.hf-global-portal-home .cs-site-content {
    margin-top: 0;
}

.hf-global--home .hf-global-hero {
    --cs-featured-image-overlay: rgb(0 0 0 / 20%);
    margin-bottom: 20px;
}

/* Preserve the theme's configured mobile banner height and desktop slide geometry. */
.hf-global-hero .cs-featured__item {
    min-width: 0;
    background: var(--cs-dark-background-color, #1c1c1c);
}

.hf-global-hero picture {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hf-global-hero picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hf-global-hero .cs-featured__item-title {
    font-size: 1.625rem;
    text-wrap: balance;
    hyphens: auto;
    overflow-wrap: break-word;
}

.hf-global-hero .cs-featured__item-content {
    min-width: 0;
}

.hf-global-preview-notice {
    margin-block: 0 1.5rem;
    font-size: .75rem;
    line-height: 1.55;
    color: var(--cs-color-secondary, inherit);
}

.hf-global-preview-notice p {
    margin: 0;
}

.hf-global-preview-notice .hf-global-b2b-notice {
    color: var(--cs-color-primary);
    font-weight: 700;
}

.hf-global-translation-review {
    font-size: inherit;
}

.hf-global--home :is(.cs-product-categories__heading, .cs-featured-products__heading) {
    font-size: 1.25rem;
    line-height: 1;
}

.hf-global.hf-global--home .cs-product-categories__compact .cs-product-categories__cat-title {
    color: #fff;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hf-global.hf-global--home .cs-product-categories__compact .hf-global-light-tile .cs-product-categories__cat-title {
    color: #282626;
}

.hf-global-category-links {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .375rem 1.125rem;
    margin-top: 1rem;
    font-size: .875rem;
}

.hf-global-category-links a,
.hf-global-product-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.hf-global--home .cs-featured-products {
    margin-top: clamp(3.5rem, 6vw, 5rem);
}

.hf-global-page-header {
    max-width: 70ch;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
}

.hf-global-page-header p {
    margin-block: .5rem;
}

.hf-global-copy-fallback,
.hf-global-card-note,
.hf-global-product-note {
    color: var(--cs-color-secondary, inherit);
    font-size: .8125rem;
    line-height: 1.5;
}

.hf-global-product-card,
.hf-global-product-detail-media,
.hf-global-product-media {
    position: relative;
    min-width: 0;
}

.hf-global-product-media,
.hf-global-product-detail-media {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--cs-thumbnail-border-radius);
}

.woocommerce .hf-global-product-card .hf-global-product-media img,
.hf-global-product-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

.hf-global-image-placeholder {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .25rem;
    width: 100%;
    height: 100%;
    padding: .5rem;
    text-align: center;
    color: var(--cs-color-secondary, inherit);
    background: var(--cs-color-border, transparent);
}

.hf-global-image-placeholder > span {
    color: var(--cs-color-primary);
    font-size: var(--cs-font-primary-size);
    font-weight: var(--cs-font-primary-weight);
}

.hf-global-image-placeholder small,
.hf-global-range-photo {
    font-size: .6875rem;
    line-height: 1.4;
}

.hf-global-range-photo {
    position: absolute;
    inset: auto 0 0;
    padding: .25rem .4rem;
    color: var(--cs-dark-primary-color, #fff);
    background: var(--cs-dark-background-color, #1c1c1c);
}

.woocommerce .hf-global-product-card .woocommerce-loop-product__title {
    overflow-wrap: anywhere;
}

.hf-global-card-note {
    display: block;
    margin-top: .25rem;
    font-size: .6875rem;
}

.hf-global-compare-check {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-height: 32px;
    margin-top: .25rem;
    font-size: .75rem;
}

.hf-global-compare-check input {
    flex-shrink: 0;
    margin: 0;
}

.hf-global-filters,
.hf-global-compare-actions,
.hf-global-two-column,
.hf-global-route-grid {
    display: grid;
    gap: 1rem;
}

.hf-global-filters {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    align-items: end;
    max-width: 52rem;
    margin-bottom: 1rem;
}

.hf-global-filters label,
.hf-global-form label {
    display: grid;
    gap: .25rem;
    font-size: .875rem;
    font-weight: 700;
}

.hf-global-filters :is(input, select),
.hf-global-form :is(input, textarea) {
    min-width: 0;
    min-height: 44px;
    width: 100%;
}

.hf-global-filters .cs-button,
.hf-global-form .cs-button {
    justify-self: start;
    min-height: 44px;
}

.hf-global-compare-actions {
    grid-template-columns: auto 1fr;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: .75rem;
}

.hf-global-compare-actions .cs-button {
    background: transparent;
    color: var(--cs-color-primary);
    border: 1px solid var(--cs-color-border);
}

.hf-global-comparison {
    margin-block: 1.5rem;
}

.hf-global-comparison .hf-table-wrap {
    max-width: 100%;
    overflow: auto;
}

.hf-global-comparison table {
    min-width: 32rem;
    width: 100%;
}

.hf-global-product-detail-copy {
    min-width: 0;
}

.hf-global-product-detail-copy .product_title {
    overflow-wrap: anywhere;
}

.hf-global-product-detail-copy .hf-global-product-note {
    margin-block: .5rem;
}

.hf-global-product-detail-copy > .cs-button {
    margin-top: .5rem;
}

.hf-global-tiers {
    margin-block: 1.25rem;
}

.hf-global-tiers h2 {
    margin-bottom: .5rem;
    font-size: 1rem;
}

.hf-global-tiers .tiered-pricing-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: .875rem;
}

.hf-global .cs-single-product .hf-global-tiers table.tiered-pricing-table :is(th, td) {
    padding: .375rem .625rem;
    text-align: left;
    border-color: var(--cs-color-border);
    color: #fff;
    background: var(--cs-dark-background-color, #1c1c1c);
}

.hf-global-tiers .tiered-pricing-table th {
    font-weight: 700;
}

.hf-global-tiers .tiered-pricing-table :is(th, td):last-child {
    text-align: right;
}

.hf-global-specs {
    margin-top: 2.5rem;
}

.hf-global-specs dl {
    max-width: 44rem;
    margin: 0;
}

.hf-global-specs dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
    padding-block: .375rem;
    border-bottom: 1px solid var(--cs-color-border);
    overflow-wrap: anywhere;
}

.hf-global-specs dd {
    margin: 0;
}

.hf-global-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem clamp(1.5rem, 6vw, 5rem);
}

.hf-global-two-column h2,
.hf-global-route-grid h2,
.hf-global-manufacturing-note h2 {
    font-size: 1.25rem;
}

.hf-global-form {
    display: grid;
    gap: .875rem;
}

.hf-global-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.hf-global-route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--cs-color-border);
    padding-top: 1rem;
}

.hf-global-manufacturing-note {
    max-width: 70ch;
}

.hf-global-admin-market-list label {
    display: block;
}

@media (max-width: 991px) {
    .hf-global-portal-home .cs-site-content {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .hf-global-hero .cs-featured__item {
        height: 288px;
    }

    .hf-global-hero picture img {
        object-position: center 45%;
    }

    .hf-global .cs-single-product .cs-single-product-summary-wrap .cs-single-product-summary {
        gap: 1.25rem;
    }

    .hf-global .cs-single-product .cs-single-product-summary-wrap .cs-single-product-summary .entry-summary .product_title {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }

    .hf-global-route-grid,
    .hf-global-two-column {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 479px) {
    .hf-global-hero .cs-featured__item-title {
        font-size: clamp(1.25rem, 6vw, 1.625rem);
    }

    .hf-global.hf-global--home .cs-product-categories__compact .cs-product-categories__cat-title {
        font-size: .875rem;
    }

    .hf-global--home :is(.cs-product-categories__header, .cs-featured-products__header) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: center;
        gap: .75rem;
    }

    .hf-global--home :is(.cs-product-categories__heading, .cs-featured-products__heading) {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .hf-global-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .hf-global-compare-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .hf-global-compare-actions .cs-button {
        justify-self: start;
    }
}

/* Form honeypot: kept out of view and out of the accessibility tree. */
.hf-global-form .hf-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
