/* Broodweb Commerce: tablet and phone refinements. Loaded after the other store styles. */

/* Shop filters fold behind a button on phones only. */
.bwce-filter-summary { display: none; }
@media (max-width: 767px) {
	.bwce-filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 16px; margin: 12px 0 4px; border: 1px solid #c4c8bd; border-radius: 4px; background: #fffdfa; color: #182b25; font: 600 14px/1 Arial, sans-serif; cursor: pointer; list-style: none; }
	.bwce-filter-summary::-webkit-details-marker { display: none; }
	.bwce-filter-summary::after { content: "+"; font-size: 20px; font-weight: 400; }
	.bwce-filter-disclosure[open] > .bwce-filter-summary::after { content: "−"; }
	.bwce-filter-disclosure[open] > .bwce-filter-summary { margin-bottom: 16px; }
	.bwce-filter-count { margin-right: auto; color: #53626b; font-weight: 400; }
}

@media (max-width: 1024px) {
	/* Header: tablets use the same drawer menu as phones; the inline menu no longer fits beside the logo and icons. */
	.bwce-header-action.bwce-mobile-trigger { display: inline-flex !important; }
	.bwce-mobile-ready .bwce-mobile-menu-column { display: none !important; }
	.bwce-mobile-ready.bwce-mobile-row { flex-wrap: nowrap !important; }

	/* Touch targets: at least 40px for controls customers tap often. */
	.bwce-location-footer .bw-header-menu { gap: 0; }
	.bwce-location-footer .bw-header-menu a { display: inline-flex; align-items: center; min-height: 40px; }
	.bwce-collection-tabs { gap: 4px 20px; }
	.bwce-collection-tabs button { min-height: 44px; font-size: 13px; }
	.bwce-collection-tools a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
	.bwce-collection-tools button { width: 44px; height: 44px; }
	.bwce-card-details { padding-right: 50px; }
	.bwce-cards-framed .bwce-card-details { padding-right: 60px; }
	.bwce-cards-minimal .bwce-card-details { padding-right: 0; }
	.bwce-card-action,
	.bwce-product-card .bwce-card-action { width: 40px; height: 40px; bottom: 14px; }
	.bwce-cards-minimal .bwce-card-action { width: 40px; height: 40px; }

	/* Shop filters and sorting. */
	.bwce-shop-grid .bwce-view-controls button { width: 40px; height: 40px; }
	.bwce-range-track input[type=range]::-webkit-slider-thumb { width: 22px; height: 22px; }
	.bwce-range-track input[type=range]::-moz-range-thumb { width: 22px; height: 22px; }
	.bwce-shop-filters select, .woocommerce-ordering select, .bwce-shop-grid .bwce-toolbar select { min-height: 44px; }
	.bwce-filter-form > a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; }
	.bwce-shop-filters output { font-size: 13px; }
	.woocommerce table.cart a.remove, .woocommerce-cart-form a.remove { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; }

	/* Account dashboard links ("Log out", "View all", "Edit"). */
	.bwce-account-greeting a, .bwce-account-panel-heading a, .bwce-account-empty a, .bwce-account-help a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; }

	/* Small labels stay readable on handheld screens. */
	.bwce-collection-heading p { font-size: 12px; }
	.bwce-product-match .bwce-collection-label { font-size: 12px; }
	.bwce-product-card .bwce-card-name { padding: 5px 0; }
	.bwce-product-card button.bwce-quick-trigger { min-height: 34px !important; padding: 9px 13px !important; font-size: 12px !important; }
	.bwce-card-badge, .bwce-product-card .bwce-card-badge { font-size: 11px; }
	.bwce-product-tabs .woocommerce-tabs ul.tabs li a,
	.bwce-tabs-editorial .woocommerce-tabs ul.tabs li a { display: inline-block; padding-top: 12px !important; padding-bottom: 12px !important; }
	.elementor-accordion .elementor-tab-title { padding-top: 16px; padding-bottom: 16px; }
	.elementor-button.elementor-size-xs,
	.elementor-button.elementor-size-sm { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
	.woocommerce-LostPassword a, .show-password-input { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	/* With the inline menu hidden, keep the logo left and the icons right. */
	.bwce-mobile-ready.bwce-mobile-row { justify-content: space-between !important; }
	.bwce-mobile-ready .bwce-mobile-brand { flex: 1 1 auto !important; align-items: flex-start; }
	.bwce-mobile-ready .bwce-mobile-actions-column { flex: 0 0 auto !important; align-items: flex-end; }
	.bwce-mobile-ready .bwce-mobile-actions-column .bwce-header-actions { justify-content: flex-end; }
}

@media (max-width: 767px) {
	/* 16px form text stops iOS from zooming into fields at checkout, account and contact forms. */
	.woocommerce form input.input-text,
	.woocommerce form select,
	.woocommerce form textarea,
	.woocommerce .quantity input.qty,
	.bwce-contact input,
	.bwce-contact textarea { font-size: 16px; }

	/* Cart coupon box: inner spacing and a full-height field. */
	.woocommerce-cart-form td.actions { padding: 20px 16px !important; }
	.woocommerce-cart-form td.actions #coupon_code { min-height: 44px; padding: 10px 12px; }

	/* The compact phone header shrank its wordmark subtitle to an unreadable 9px. */
	.bwce-mobile-ready .elementor-widget-text-editor { font-size: 11px !important; }

	/* Collection filters scroll sideways instead of wrapping into an uneven block. */
	.bwce-collection-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; padding-left: 2px; }
	.bwce-collection-tabs::-webkit-scrollbar { display: none; }
	.bwce-collection-tabs button { flex: 0 0 auto; }
}

/* Containers around the header icon group grow to fit it instead of letting it spill past the screen edge. */
.bwce-location-header .e-con:has(> .elementor-widget-bwc-header-actions),
.bwce-location-header .e-con:has(> .e-con > .elementor-widget-bwc-header-actions) { min-width: max-content; flex-shrink: 0; }
/* On narrower desktops the menu keeps its single line; plain text columns (like a tagline) give up the space instead. */
@media (min-width: 1025px) {
	.bwce-location-header .e-con:has(.elementor-widget-bw-nav-menu):not(:has(.elementor-widget-bwc-header-actions)) { flex-shrink: 0; }
	.bwce-location-header .e-con:has(> .elementor-widget-text-editor):not(:has(.elementor-widget-bw-nav-menu, .elementor-widget-bwc-header-actions, .elementor-widget-heading)) { flex-shrink: 8; min-width: 0; }
}
