/* Search uses the same listing as a category. The banner carries the category name,
   so the plain "Search results for" heading stays available to screen readers only. */
.catalogsearch-result-index .ack-search-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Search PLP stays full-width; category uses 2columns-left + category nav. */
.catalogsearch-result-index.ack-category-full-width .sidebar {
    display: none;
}

@media (min-width: 768px) {
    .catalogsearch-result-index.ack-category-full-width {
        --page-layout: minmax(0px, 1fr);
    }

    .catalogsearch-result-index.ack-category-full-width .columns {
        grid-template-columns: minmax(0px, 1fr);
    }

    .catalogsearch-result-index.ack-category-full-width .columns > .column.main {
        grid-column: 1;
    }
}

.catalog-category-view.ack-category-with-nav .ack-category-nav a.is-active,
.catalog-category-view.ack-category-with-nav .ack-category-nav a[aria-current="page"],
.catalogsearch-result-index.ack-category-with-nav .ack-category-nav a.is-active,
.catalogsearch-result-index.ack-category-with-nav .ack-category-nav a[aria-current="page"] {
    border-left: 3px solid #f97316;
    padding-left: calc(1rem - 3px);
}

/* Mobile filter: trigger button + slide-in panel (category nav and provider listing) */
.ack-filter-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    color: #0b2c5f;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    cursor: pointer;
}

.ack-filter-trigger:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.ack-filter-trigger svg:first-child {
    color: #f97316;
}

.ack-filter-trigger__label {
    font-weight: 600;
}

.ack-filter-trigger__current {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 0.875rem;
    color: #64748b;
}

.ack-filter-dialog {
    max-width: 22rem;
    background: #fff;
}

.ack-filter-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.ack-filter-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: #0b2c5f;
}

.ack-filter-dialog__head svg:first-child {
    color: #f97316;
}

.ack-filter-dialog__title {
    margin: 0;
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.ack-applied-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ack-filter-dialog .ack-applied-filters {
    margin: 1rem 0 0;
}

.ack-applied-filters__chip,
.ack-applied-filters__clear {
    cursor: pointer;
}

.ack-applied-filters__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #0b2c5f;
    font-size: 0.8125rem;
    line-height: 1.25;
}

.ack-applied-filters__chip svg {
    color: #f97316;
}

.ack-applied-filters__chip:focus-visible,
.ack-applied-filters__clear:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.ack-applied-filters__clear {
    border: 0;
    background: transparent;
    padding: 0.3rem 0.25rem;
    color: #f97316;
    font-size: 0.8125rem;
    font-weight: 600;
}

.ack-category-nav .ack-filter-dialog .items a {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
}

.catalog-category-view.ack-category-with-nav .ack-category-nav .ack-filter-dialog .items a.is-active,
.catalog-category-view.ack-category-with-nav .ack-category-nav .ack-filter-dialog .items a[aria-current="page"],
.catalogsearch-result-index.ack-category-with-nav .ack-category-nav .ack-filter-dialog .items a.is-active,
.catalogsearch-result-index.ack-category-with-nav .ack-category-nav .ack-filter-dialog .items a[aria-current="page"] {
    padding-left: calc(1.5rem - 3px);
}

/* Category trust highlights */
.ack-category-highlights {
    margin: 0 0 1.5rem;
}

.ack-category-highlights__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ack-category-highlights__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.ack-category-highlights__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    flex: 0 0 auto;
    color: #fff;
}

.ack-category-highlights__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.ack-category-highlights__icon--green {
    background: #16a34a;
}

.ack-category-highlights__icon--blue {
    background: #2563eb;
}

.ack-category-highlights__icon--orange {
    background: #f97316;
}

.ack-category-highlights__icon--navy {
    background: #0b2c5f;
}

.ack-category-highlights__copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.ack-category-highlights__title {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.ack-category-highlights__text {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .ack-category-highlights__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 1.25rem;
    }
}

@media (min-width: 1024px) {
    .ack-category-highlights {
        margin: 0.25rem 0 1.75rem;
        padding: 1rem 0;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }

    .ack-category-highlights__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Sidebar help card */
.ack-category-help {
    margin-top: 1rem;
    padding: 1.25rem 1.1rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.85rem;
    background: #eff6ff;
    text-align: center;
}

.ack-category-help__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: #2563eb;
}

.ack-category-help__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.ack-category-help__title {
    margin: 0 0 0.35rem;
    color: #0b2c5f;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.ack-category-help__text {
    margin: 0 0 0.95rem;
    color: #64748b;
    font-size: 0.8125rem;
}

.ack-category-help__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #2563eb;
    border-radius: 0.55rem;
    background: #fff;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.ack-category-help .btn-secondary {
    width: 100%;
}
.ack-category-help .btn-secondary:hover {
    background: oklch(70.5% .213 47.604);
    color: #fff;
} 

.ack-category-help .btn-secondary svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: oklch(70.5% .213 47.604);
    margin-top: 2px;
}
.page-bottom {
    margin: 0 15px;
}

@media (max-width: 767px) {
    .ack-category-help {
        display: none;
    }
}

/* Category hero: title and highlights on the left, banner on the right */
.ack-category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem 2rem;
    align-items: center;
    margin-bottom: 1.75rem;
    margin-top: -1.9rem;
}

.ack-category-hero__title {
    margin: 0;
    padding: 0;
    order: 1;
}

.ack-category-hero > .ack-category-banner {
    order: 2;
}

.ack-category-hero > .category-view {
    order: 3;
}

.ack-category-hero .page-title {
    margin-bottom: 0.35rem;
}

.ack-category-hero > .category-view {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ack-category-hero .category-description {
    margin: 0 0 0.85rem;
    color: #5d6d86;
    font-size: 0.95rem;
}

.ack-category-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 1.25rem;
}

.ack-category-banner__desktop {
    display: none;
}

.ack-category-banner__mobile {
    display: block;
}
.ack-card__body {
    text-align: left;
}

.ack-card__name {
    display: block;
    margin-top: 0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.ack-card__desc {
    display: block;
    margin-top: 0.25rem;
    color: #0b2c5f;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
}

.ack-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 0.65rem;
    color: #0b2c5f;
    font-size: 0.875rem;
    font-weight: 600;
}

.ack-card__price .price-box,
.ack-card__price .price {
    margin: 0;
    color: #0b2c5f;
    font-weight: 700;
}

.ack-card__providers {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 500;
}

.ack-card__providers svg {
    flex: 0 0 auto;
}

.ack-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin: 0 0 0.5rem;
}

.ack-popular__title {
    margin: 0;
    color: #0b2c5f;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.ack-popular .toolbar-products {
    display: flex;
    justify-content: flex-end;
    width: auto;
    margin: 0;
}

/* Post a request bar, above the footer on listing pages */
.ack-post-request {
    margin: 0 0 2rem;
}

.ack-post-request__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: #eaf3ff;
}

.ack-post-request__copy {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.ack-post-request__mascot {
    flex: 0 0 auto;
}

.ack-post-request__title {
    margin: 0 0 0.15rem;
    color: #0b2c5f;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.ack-post-request__text {
    margin: 0;
    color: #5d6d86;
    font-size: 0.875rem;
}

.ack-post-request__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.15rem;
    border-radius: 0.7rem;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ack-post-request__btn:hover {
    background: #1d4ed8;
    color: #fff;
}

/* Category page design */
.ack-category-hero .page-title {
    display: none;
}
.ack-category-hero.container {
    display: flex;
    padding: 0;
    gap: 0;
}
.ack-category-banner img {
    border-radius: 0 !important;
}
.products .product-item {
    padding: 0;
    border: none;
    box-shadow: 0 0 6px rgba(0,0,0,.1);
    border-radius: 7px !important;
}
.products .ack-card__body {
    padding: 0.65rem 0.75rem 0.75rem;
}
.ack-category-nav .tracking-wide {
    display: none;
}
.ack-category-with-nav .column > section,
.ack-category-with-nav #product-list {
    padding-top: 0;
}
.sidebar .card div {
    text-transform: uppercase;
}
.products .ack-card__providers {
    background: none;
    border-radius: 0;
    padding: 0;
}
.products .ack-card__desc {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ack-help-wrap {
    display: flex;
    column-gap: 1.2rem;
}
.help-right {
    text-align: left;
}

.service-list-wrap {
    display: flex;
    width: 100%;
    gap: 1.5rem;
}
.service-list-wrap li {
    background: #fff;
    padding: 1.2rem;
    gap: 1.2rem;
    box-shadow: 0 0 5px rgba(0,0,0,.1);
    border-radius: 10px;
    width: 100%;
    align-items: flex-start;
}
.icon-block svg {
    width: 50px;
    height: 50px;
}
.text-block h4 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-slate-900);
    margin-bottom: .1rem;
}
.text-block small {
    font-size: .8rem;
    color: var(--color-slate-500);
}




/* Media Queries */
@media (min-width: 1024px) {
    .ack-category-hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    }

    .ack-category-hero > .ack-category-hero__title {
        grid-column: 1;
        grid-row: 1;
    }

    .ack-category-hero > .category-view {
        grid-column: 1;
        grid-row: 2;
    }

    .ack-category-hero > .ack-category-banner {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .ack-category-banner__desktop {
        display: block;
    }

    .ack-category-banner__mobile:not(.ack-category-banner__desktop) {
        display: none;
    }
    
}
@media (min-width: 768px) {
    .ack-post-request__card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.15rem 1.5rem;
    }
}
@media(max-width:767px) {
    .ack-provider-card__online {
        left: 0.4rem;
        transform: none;
        font-size: 0.62rem;
    }
    .ack-post-request {
        margin-bottom: 1rem;
    }
    .ack-post-request__card {
        align-items: stretch;
        gap: 0.7rem;
        padding: 0.85rem;
        text-align: left;
    }
    .ack-post-request__copy {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.7rem;
        text-align: left;
    }
    .ack-post-request__mascot img {
        display: block;
        width: 3.25rem;
        height: auto;
    }
    .ack-post-request__title {
        margin-bottom: 0.1rem;
        font-size: 0.95rem;
    }
    .ack-post-request__text {
        font-size: 0.8rem;
        line-height: 1.35;
    }
    .ack-post-request__card > a {
        width: 100%;
        justify-content: center;
    }
    .ack-category-hero.container {
        margin-bottom: -20px;
    }
    .ack-provider-intro__lead,
    .ack-provider-intro__location,
    .service-list-wrap {
        display: none;
    }
}