/* Breadcrumb spacing is shared by product, shop and taxonomy pages. */
#main-content:is(.shop-main,.market-shop){padding-top:16px}
#main-content>.woocommerce-breadcrumb{margin:0 0 12px!important;padding:0}
#main-content>.woocommerce-breadcrumb+.market-shop-heading{padding-top:8px}
@media(max-width:760px){
    #main-content:is(.shop-main,.market-shop){padding-top:8px}
    #main-content>.woocommerce-breadcrumb{margin-bottom:8px!important}
    #main-content>.woocommerce-breadcrumb+.market-shop-heading{padding-top:4px}
}

/* Mobile layout owns the flow of content; desktop dimensions must not squeeze it. */
@media (max-width:760px) {
    .site-header .header-inner{gap:10px}
    .site-header .brand{flex:none;width:clamp(116px,36vw,144px)}
    .site-header .brand .allit-wordmark{width:100%;height:auto}
    .header-actions{gap:0}
    .header-actions .icon-button,.header-actions .cart-link{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
    .header-actions .icon{width:26px;height:26px;flex:none;stroke-width:1.7}
    .header-actions .cart-link{position:relative;padding:0;border:0;gap:0}
    .header-actions .cart-count{position:absolute;top:1px;inset-inline-end:1px;min-width:18px;height:18px;padding-inline:3px;font-size:11px;line-height:1;box-sizing:border-box}
    .header-actions .account-link{display:none}

    /* Touch navigation and autoplay share the slide labels; transport controls are desktop-only. */
    .market-hero-controls.hero-controls{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding-block:12px}
    .market-hero-controls .hero-pagination{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:3px;flex:auto}
    .market-hero-controls .hero-dot{width:100%;min-width:0!important;min-height:44px;height:auto;padding:8px 3px;font-size:12px;white-space:nowrap}
    .market-hero-controls .hero-navigation{display:none}

    /* A seller has a full-width identity, options and statistics, then its price and action. */
    .allit-offers .offer-row-main{grid-template-columns:minmax(0,1fr);gap:16px}
    .allit-offers .offer-vendor-select{grid-column:1;grid-row:auto;grid-template-columns:20px max-content minmax(0,1fr);gap:14px 10px;align-items:center}
    .offer-vendor-select>input{grid-column:1;grid-row:1;align-self:center}
    .offer-vendor-select>.allit-store-identity{grid-column:2;grid-row:1;justify-self:start;max-width:100%}
    .offer-vendor-select .offer-vendor-details{display:contents}
    .allit-offers .offer-vendor-details>strong{grid-column:3;grid-row:1;justify-self:end;text-align:end!important;font-size:14px;line-height:1.9;margin:0;max-width:100%;min-width:0;overflow-wrap:anywhere}
    .offer-vendor-details .selection-tokens{grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;gap:9px;width:100%}
    .offer-vendor-details .rating-summary{grid-column:1/-1;grid-row:2}
    .offer-vendor-details .selection-token{display:grid;grid-template-columns:54px minmax(0,1fr);gap:8px;align-items:baseline;max-width:100%;padding:0;border:0;background:none}
    .offer-vendor-details .selection-token>small{width:auto;min-width:0;font-size:13px;line-height:1.9}
    .offer-vendor-details .selection-values{display:block;min-width:0}
    .offer-vendor-details .selection-values .spec-colorway{font-size:14px;line-height:1.9;padding:6px 9px}
    .offer-vendor-details .selection-values bdi{display:inline-block;font-size:14px;padding:4px 8px}
    .allit-offers .offer-price-stack{grid-column:1;grid-row:auto;align-items:flex-start;gap:7px}
    .offer-price-heading{max-width:100%;gap:8px;line-height:1.9}
    .offer-price-heading del{font-size:13px;white-space:normal}
    .offer-price-stack>strong{font-size:19px;line-height:1.9;max-width:100%;white-space:normal}
    .offer-price-stack>.allit-money-native{font-size:14px;line-height:1.8}
    .allit-offers .offer-row-action{grid-column:1;grid-row:auto;flex-direction:row;align-items:center;gap:14px}
    .offer-row-action .offer-availability{flex:none;text-align:start;font-size:13px}
    .offer-row-action .offer-choose{flex:1;width:auto;min-height:46px;padding:10px 12px;font-size:14px;line-height:1.8}
    .offer-row-links{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding-top:10px;margin-top:16px}
    .offer-row-links a{min-height:44px;line-height:1.9;gap:9px;font-size:13px!important;overflow-wrap:anywhere}
    .offer-row-links svg{width:21px;height:21px;flex:none}

    /* Metrics keep the requested type and icon sizes, and wrap as complete groups. */
    .allit-source-rating.rating-summary{gap:8px 0;max-width:100%}
    .offer-vendor-details .allit-source-rating.rating-summary{margin-top:0}
    .rating-summary .rating-metric{margin:0;padding:3px 0;max-width:100%}
    .rating-summary .rating-metric+.rating-metric{border-inline-start:1px solid #e3e7ed;padding-inline-start:8px;margin-inline-start:8px}
    .rating-summary .rating-metric{gap:6px;min-height:31px}
    .allit-selected-options .selection-token>small{width:auto;min-width:0;flex:none}
    .allit-selected-options .selection-token,.allit-selected-options .token-size{grid-template-columns:54px minmax(0,1fr)}

    /* Icon + text stay together without narrowing each service to a few words. */
    .store-benefits{padding:4px 14px}
    .store-benefits .benefits-grid,.product-services .store-benefits .benefits-grid{width:100%;max-width:none;padding:0;grid-template-columns:minmax(0,1fr);gap:0}
    .store-benefits .benefit-item{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:14px;text-align:right;padding:16px 0;min-width:0;border:0}
    .store-benefits .benefit-item+.benefit-item{border-top:1px solid #e6e9ee}
    .benefit-item .benefit-icon{width:42px;height:42px;min-width:0;flex:none}
    .benefit-item .benefit-icon .icon{width:27px;height:27px}
    .benefit-item .benefit-copy{min-width:0}
    .store-benefits .benefit-copy strong{display:block;font-size:15px;line-height:1.9}
    .store-benefits .benefit-copy small{display:block;font-size:13px;line-height:1.9;margin-top:3px}

    .faq-list summary{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;column-gap:12px;min-width:0;overflow-wrap:anywhere}
    .faq-list summary>.icon,.faq-list summary>span{width:26px;height:26px;flex:none;margin:0;box-sizing:border-box}
    .faq-list summary>.icon{width:24px;height:24px;justify-self:center}
    .product-faq .faq-list summary{gap:12px;line-height:1.9}
    .store-hero-visual{overflow:hidden}
    .store-masthead>.container{column-gap:10px;row-gap:14px}
    .store-masthead .allit-store-identity{gap:8px}
    .store-masthead .store-logo{width:auto;max-width:106px;height:29px;object-fit:contain}
    .store-masthead .store-country{padding-inline-start:8px}
    .store-link-shortcut{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin-inline-start:0}
    .store-hero-actions{flex-direction:column;align-items:stretch;gap:8px}
    .store-hero-actions>.store-primary-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;gap:12px;padding:12px 16px;line-height:1.8}
    .store-hero-actions>a:last-child{display:flex;align-items:center;justify-content:center;min-height:44px}
    .store-local-nav{gap:6px 12px;line-height:1.9}
    .store-local-nav>a,.store-local-nav>details>summary{min-height:44px;display:inline-flex;align-items:center}
    .store-local-nav .allit-store-switcher .country-code{font-size:11px;line-height:1.7}
    .store-local-nav .allit-store-switcher .country-name{font-size:10px;line-height:1.7}
    .store-catalog-filters form{grid-template-columns:minmax(0,1fr);gap:12px}
    .store-catalog-filters .store-filter-check{display:flex;align-items:center;gap:9px;min-height:44px;font-size:14px;line-height:1.9}
    .store-catalog-filters .store-filter-check input{flex:none}
    .store-catalog-filters .store-primary-button{width:100%;min-height:48px;margin:0}
    .store-clear-filters{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:13px}
    .market-toolbar{align-items:center;gap:10px}
    .market-toolbar .market-sort{min-width:0;max-width:100%}
    .market-sort select{width:100%;max-width:100%;min-height:44px}
    .market-filter-form .filter-choice{min-height:44px}
    .market-filter-form .filter-choice input{flex:none}
    .market-filter-form .price-range-footer button{min-height:44px}
    .allit-link-helper summary{min-height:44px;display:flex;align-items:center}
    .allit-link-inputs :is(select,input){min-height:48px;font-size:16px}
    .search-dialog .search-form{min-width:0}
    .search-dialog .search-form input{min-width:0;font-size:16px}
    .search-dialog .search-form .button-primary{min-width:48px;min-height:48px;flex:none}
    .mobile-menu nav>a{min-height:48px}
    .site-footer .footer-grid>div>a{min-height:40px;align-content:center;line-height:1.9}

    /* Order items need a whole row for their name and selected options. */
    .commerce-page .woocommerce #order_review .woocommerce-checkout-review-order-table{display:block;width:100%}
    .commerce-page .woocommerce #order_review .woocommerce-checkout-review-order-table thead{display:none}
    .commerce-page .woocommerce #order_review .woocommerce-checkout-review-order-table tbody{display:block;width:100%}
    .commerce-page .woocommerce #order_review .woocommerce-checkout-review-order-table .cart_item{display:block;padding-block:16px;border-bottom:1px solid #e6e9ee}
    .commerce-page .woocommerce #order_review .cart_item :is(.product-name,.product-total){display:block;width:100%;padding:0;border:0;text-align:right}
    .commerce-page .woocommerce #order_review .cart_item .product-name{font-size:14px;line-height:1.9}
    .commerce-page .woocommerce #order_review .cart_item .product-total{padding-top:12px;font-size:15px;text-align:left}
    .commerce-page .woocommerce #order_review .woocommerce-checkout-review-order-table tfoot{display:table;width:100%;table-layout:fixed}
    .commerce-page .woocommerce #order_review .woocommerce-checkout-review-order-table tfoot :is(th,td){font-size:14px;line-height:1.9;padding:14px 0}
    .commerce-page .woocommerce #order_review .woocommerce-checkout-review-order-table tfoot td{text-align:left}
}

@media (min-width:600px) and (max-width:760px) {
    .store-benefits .benefits-grid,.product-services .store-benefits .benefits-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
    .store-benefits .benefit-item:nth-child(2){border-top:0}
}

@media (max-width:360px) {
    .header-inner .brand{width:116px}
    .market-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .market-toolbar{display:flex;flex-direction:column;align-items:stretch}
    .market-toolbar .market-sort{width:100%}
    .market-sort select{max-width:100%;width:100%}
    .offer-vendor-details .selection-token,.allit-selected-options .selection-token,.allit-selected-options .token-size{grid-template-columns:46px minmax(0,1fr)}
}

