/* Bulk IBC Totes V19 – WordPress / WooCommerce integration styles. */
body.wibd { margin: 0; }
body.wibd.admin-bar .v9-header { top: 0; }

/* Header cart + account */
.wibd .v9-header-action { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.wibd-cart, .wibd-account { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 1px solid #dce4e8; border-radius: 5px; background: #fff; color: #123f5a; text-decoration: none; font-weight: 700; font-size: 14px; }
.wibd-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wibd-cart b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #0c7b75; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.wibd-cart:hover, .wibd-account:hover { border-color: #123f5a; }
@media (max-width: 760px) { .wibd-account { display: none; } .wibd-cart span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Commerce panel additions */
.wibd-locs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.wibd-locs button { min-height: 34px; padding: 4px 12px; border: 1px solid #c9d6dc; border-radius: 999px; background: #fff; color: #123f5a; font-size: 13px; font-weight: 700; }
.wibd-locs button[aria-pressed="true"] { background: #123f5a; border-color: #123f5a; color: #fff; }
.wibd-panel .buy-tiers[hidden] { display: none !important; }
.wibd-panel .v18-stock-status.wibd-in-stock { color: #176b3a; font-weight: 800; }
.wibd-row-cart { display: flex; gap: 8px; align-items: flex-end; margin: 10px 0 0; }
.wibd-row-cart label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: #4b5b66; }
.wibd-row-cart input.qty { width: 84px; min-height: 44px; padding: 6px 10px; border: 1px solid #c9d6dc; border-radius: 5px; }
.wibd-row-cart .btn, .wibd-add { flex: 1; background: #0c7b75; border-color: #0c7b75; }

/* WooCommerce add-to-cart form inside the design */
.wibd-buy form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 14px 0 6px; }
.wibd-buy form.cart .quantity input.qty { width: 92px; min-height: 48px; padding: 8px 10px; border: 1px solid #c9d6dc; border-radius: 5px; font-size: 16px; text-align: center; }
.wibd-buy form.cart button[type=submit], .wibd .single_add_to_cart_button { flex: 1; min-height: 48px; padding: 12px 22px; border: 1px solid #0c7b75; border-radius: 5px; background: #0c7b75; color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.wibd-buy form.cart button[type=submit]:hover { filter: brightness(.95); }
.wibd-buy .stock { display: none; }
.wibd-buy table, .wibd-buy .tpt__tiered-pricing { width: 100%; margin: 8px 0; font-size: 14px; }

/* Notices */
.wibd-notices { margin-top: 16px; }
.wibd .woocommerce-message, .wibd .woocommerce-info, .wibd .woocommerce-error, .wibd .wc-block-components-notice-banner { list-style: none; margin: 0 0 14px; padding: 14px 18px; border: 1px solid #c8dfd9; border-left: 4px solid #0c7b75; border-radius: 6px; background: #fff; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.wibd .woocommerce-error { border-left-color: #b42318; }
.wibd .woocommerce-message .button, .wibd .woocommerce-info .button { order: 2; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 5px; background: #123f5a; color: #fff; text-decoration: none; font-weight: 700; }

/* Generic WordPress pages (about, contact, cart, checkout, account…) */
.wibd-page .v18-editorial { padding-top: 34px; padding-bottom: 70px; }
.wibd-page h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -1px; color: #123f5a; margin: 12px 0 22px; }
.wibd-crumbs { display: block; min-height: 0; font-size: 13px; color: #4b5b66; }
.wibd-crumbs a { color: #123f5a; }
.wibd-content { max-width: 100%; }
.wibd-content > * { max-width: 860px; }
.wibd-woo .wibd-content > * { max-width: none; }
.wibd-content img { max-width: 100%; height: auto; }
.wibd-content table { border-collapse: collapse; width: 100%; }
.wibd-content th, .wibd-content td { padding: 10px 12px; border-bottom: 1px solid #dce4e8; text-align: left; }
/* The design's global "nav { display:flex; min-height:92px }" must not reach WordPress/Woo nav elements. */
.wibd main nav:not(.v9-nav-inner):not([class^="v9"]) { display: block; min-height: 0; gap: 0; }
.wibd main nav.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.wibd main nav.woocommerce-MyAccount-navigation a { display: inline-flex; padding: 8px 14px; border: 1px solid #dce4e8; border-radius: 5px; background: #fff; text-decoration: none; font-weight: 700; color: #123f5a; }
.wibd main nav.woocommerce-MyAccount-navigation .is-active a { background: #123f5a; color: #fff; border-color: #123f5a; }
.wibd-woo input[type=text], .wibd-woo input[type=email], .wibd-woo input[type=tel], .wibd-woo input[type=password], .wibd-woo input[type=number], .wibd-woo select, .wibd-woo textarea { border: 1px solid #c9d6dc; border-radius: 5px; padding: 8px 12px; background: #fff; }
.wibd-woo .button, .wibd-woo button[type=submit], .wibd-woo .checkout-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1px solid #123f5a; border-radius: 5px; background: #123f5a; color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.wibd-woo .checkout-button, .wibd-woo #place_order { background: #0c7b75; border-color: #0c7b75; }
.wibd-woo table.shop_table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dce4e8; border-radius: 6px; }
.wibd-woo table.shop_table th, .wibd-woo table.shop_table td { padding: 12px; border-bottom: 1px solid #e7edf0; text-align: left; vertical-align: middle; }
.wibd-woo table.shop_table img { width: 64px; height: auto; }

/* Generic product + archive */
.wibd-generic-product .v18-detail-photo img { width: 100%; height: auto; border-radius: 8px; }
.wibd-short p { margin: 0 0 12px; color: #33434e; }
.wibd-generic-product h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; color: #123f5a; margin: 0 0 14px; }
.wibd-archive .v18-product-image img { width: 100%; height: auto; }
.wibd-empty { padding: 28px; background: #fff; border: 1px solid #dce4e8; border-radius: 8px; }

/* Quote forms from WI Storefront Utilities inside the V19 quote layout */
.wibd-quote .wisu-lead-section { margin: 24px 0 0; }
.wibd-quote .wisu-lead-form button[type=submit] { background: #0c7b75; border-color: #0c7b75; }
.wibd-contact { margin: 24px 0; }

/* WooCommerce block cart/checkout keep their own layout */
.wibd .wp-block-woocommerce-cart, .wibd .wp-block-woocommerce-checkout { max-width: none; }
.wibd .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Buy-online first: full-width add to cart, quote becomes the secondary action */
.wibd-buy form.cart { flex-wrap: nowrap; }
.wibd-buy form.cart .quantity { flex: 0 0 auto; margin: 0 !important; float: none !important; }
.wibd-buy form.cart button.single_add_to_cart_button { flex: 1 1 auto; width: auto; float: none !important; white-space: nowrap; }
.wibd-panel:has(.wibd-buy) ~ .buy-primary, .wibd-panel:has(.wibd-row-cart) ~ a.btn { background: #fff !important; color: #123f5a !important; border: 1px solid #123f5a !important; }
.wibd-row-cart .btn { white-space: nowrap; }

/* Quote page: one clean form column inside the design */
.wibd-quote .wisu-lead-section { grid-template-columns: 1fr; padding: 0; margin: 24px 0 0; background: none; border: 0; gap: 0; }
.wibd-quote .wisu-lead-intro { display: none; }
.wibd-quote .wisu-lead-form { padding: 28px; border-color: #dce4e8; border-radius: 8px; }
.wibd-quote .wisu-lead-form button[type=submit] { background: #123f5a; font-weight: 800; }
.wibd-sell .wisu-lead-section { margin-top: 10px; }

/* Mobile: cart moves from the masthead to the bottom action bar */
.wibd-mcart { display: none; }
@media (max-width: 760px) {
  .wibd .v9-header-action .wibd-cart, .wibd .v9-header-action .wibd-account { display: none; }
  .wibd .buy-mobile .wibd-mcart { display: inline-flex; align-items: center; justify-content: center; gap: 2px; position: relative; flex: 0 0 auto; padding: 0 6px; color: #123f5a; text-decoration: none; }
  .wibd-mcart svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .wibd-mcart b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #0c7b75; color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 760px) { .wibd .buy-mobile:has(.wibd-mcart) { grid-template-columns: auto 1fr 1fr 1.5fr; } }
.wibd-yards { margin: -4px 0 8px; font-size: 13px; color: #33434e; }
.wibd-yards b { color: #176b3a; }

/* Buyer-guide SEO content on category pages (1.3.1) */
.wibd-seo-intro p{margin:.4rem 0 0;max-width:62ch}
.wibd-seo{max-width:1100px}
.wibd-seo>h2{margin-top:2.2rem}
.wibd-seo>h2:first-child{margin-top:0}
.wibd-seo p,.wibd-seo li{line-height:1.65;max-width:78ch}
.wibd-seo ul,.wibd-seo ol{padding-left:1.25rem;margin:.6rem 0 1rem}
.wibd-seo li{margin:.3rem 0}
.wibd-seo table.wibd-spec{width:100%;border-collapse:collapse;margin:1rem 0 1.4rem;font-size:.95rem;display:block;overflow-x:auto}
.wibd-seo table.wibd-spec th,.wibd-seo table.wibd-spec td{border:1px solid #d9dee5;padding:.55rem .7rem;text-align:left;vertical-align:top}
.wibd-seo table.wibd-spec thead th{background:#f3f5f8;font-weight:700}
.wibd-seo .wibd-faq details{border-bottom:1px solid #e3e7ec;padding:.75rem 0}
.wibd-seo .wibd-faq summary{cursor:pointer;font-weight:700}
.wibd-seo .wibd-faq details p{margin:.5rem 0 0}
