/* WebBeans storefront. Takes its fonts and text colour from the theme; --wb-accent is the one colour of its own. */
.wb { --wb-accent: #1d4d3a; --wb-line: rgba(128, 128, 128, .3); --wb-soft: rgba(128, 128, 128, .1); --wb-warn: #a15c00; }
.wb *, .wb *::before, .wb *::after { box-sizing: border-box; }
.wb h3 { margin: 1.2em 0 .5em; font-size: 1.15em; }
.wb h4 { margin: 0 0 .3em; font-size: 1em; }
.wb-muted { opacity: .7; font-size: .9em; }
.wb-warn { color: var(--wb-warn); }
.wb-num { text-align: right; white-space: nowrap; }
.wb-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.wb-notice { padding: .7em 1em; margin: 0 0 1em; border-left: 4px solid var(--wb-accent, #1d4d3a); background: rgba(128, 128, 128, .1); }
.wb-notice-error { border-left-color: #b3261e; }

.wb-button, .wb button.wb-button { display: inline-block; padding: .55em 1.1em; border: 1px solid var(--wb-line); border-radius: 4px; background: transparent; color: inherit; font: inherit; line-height: 1.3; text-decoration: none; cursor: pointer; }
.wb-button:hover { background: var(--wb-soft); }
.wb-button.wb-primary, .wb button.wb-button.wb-primary { background: var(--wb-accent); border-color: var(--wb-accent); color: #fff; }
.wb-button.wb-primary:hover { filter: brightness(1.15); }
.wb-button[disabled] { opacity: .5; cursor: not-allowed; }
.wb button.wb-link { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.wb input[type=text], .wb input[type=email], .wb input[type=password], .wb input[type=search], .wb input[type=number], .wb select, .wb textarea {
	width: 100%; padding: .5em .6em; border: 1px solid var(--wb-line); border-radius: 4px; background: #fff; color: #111; font: inherit; font-size: 16px; line-height: 1.3; }
.wb input[type=number] { width: 5em; }
.wb-field { margin: 0 0 .8em; }
.wb-field label { display: block; margin-bottom: .2em; font-size: .9em; }
.wb-fields { display: flex; flex-wrap: wrap; gap: 0 1em; }
.wb-fields .wb-field { flex: 1 1 100%; min-width: 0; }
.wb-fields .wb-half { flex: 1 1 calc(50% - .5em); }
.wb-fields .wb-third { flex: 1 1 calc(33.33% - .67em); }

/* shop */
.wb-shop-bar { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: 1em; }
.wb-shop-bar .wb-filters { flex: 1 1 100%; margin: 0; }
.wb-shop-bar input[type=search] { flex: 1 1 12em; min-width: 0; }
.wb-shop-bar select { width: auto; flex: 0 1 auto; }
.wb-crumbs { margin-bottom: .8em; font-size: .95em; }
.wb-cats { display: flex; flex-wrap: wrap; gap: .5em; list-style: none; margin: 0 0 1em; padding: 0; }
.wb-cats a { display: block; padding: .3em .8em; border: 1px solid var(--wb-line); border-radius: 999px; text-decoration: none; font-size: .95em; }
.wb-cats a:hover { background: var(--wb-soft); }
.wb-catnav { margin: 0 0 1em; }
.wb-catnav summary { padding: .5em .8em; border: 1px solid var(--wb-line); border-radius: 4px; font-weight: 600; cursor: pointer; }
.wb-catnav-list, .wb-catnav-list ul { list-style: none; margin: 0; padding: 0; }
.wb-catnav-list { margin-top: .5em; }
.wb-catnav-list ul { margin: .15em 0 .15em .55em; padding-left: .55em; border-left: 1px solid var(--wb-line); }
.wb-catnav-list a { display: block; padding: .35em .55em; border-radius: 4px; text-decoration: none; color: inherit; line-height: 1.3; }
.wb-catnav-list a:hover { background: var(--wb-soft); }
.wb-catnav-list a[aria-current] { background: var(--wb-soft); font-weight: 700; }
.wb-catnav-list .wb-more:not(.wb-open) > a::after { content: " ›"; opacity: .6; }
@media (min-width: 900px) {
	.wb-has-catnav { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 2em; align-items: start; }
	.wb-has-catnav .wb-catnav { position: sticky; top: 1.5em; max-height: calc(100vh - 3em); overflow-y: auto; margin: 0; }
	.wb-has-catnav .wb-catnav summary { padding: 0 .55em; border: 0; list-style: none; pointer-events: none; }
	.wb-has-catnav .wb-catnav summary::-webkit-details-marker { display: none; }
	.wb-has-catnav .wb-catnav-here { display: none; }
	/* The list beside the products already offers the subcategories. */
	.wb-has-catnav .wb-cats { display: none; }
}
.wb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.2em; list-style: none; margin: 0; padding: 0; }
.wb-card a { display: flex; flex-direction: column; gap: .3em; height: 100%; text-decoration: none; color: inherit; position: relative; }
.wb-card-image { display: block; aspect-ratio: 1; background: var(--wb-soft); border-radius: 4px; overflow: hidden; }
.wb-card-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wb-card-name { font-weight: 600; line-height: 1.3; }
.wb-card a:hover .wb-card-name { text-decoration: underline; }
.wb-list-price { opacity: .6; }
.wb-level { font-size: .8em; padding: .1em .5em; border-radius: 999px; background: var(--wb-soft); }
.wb-badge { position: absolute; top: .5em; left: .5em; padding: .15em .6em; border-radius: 3px; background: #333; color: #fff; font-size: .8em; }
.wb-related { margin-top: 2.5em; }
.wb-related .wb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wb-order-actions { display: flex; flex-wrap: wrap; gap: 1em; align-items: center; margin-top: 1.5em; }
.wb-pager { display: flex; gap: .4em; justify-content: center; margin: 1.5em 0; }
.wb-pager a, .wb-pager span { padding: .3em .7em; border: 1px solid var(--wb-line); border-radius: 4px; text-decoration: none; }
.wb-pager span[aria-current] { background: var(--wb-accent); border-color: var(--wb-accent); color: #fff; }

/* product */
.wb-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2em; align-items: start; }
.wb-description { grid-column: 1 / -1; }
.wb-gallery-main { aspect-ratio: 1; background: var(--wb-soft); border-radius: 4px; overflow: hidden; }
.wb-gallery-main a { display: block; width: 100%; height: 100%; }
.wb-gallery-main a[hidden] { display: none; }
.wb-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wb-gallery-thumbs { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .5em; }
.wb-gallery-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: var(--wb-soft); overflow: hidden; cursor: pointer; }
.wb-gallery-thumbs button[aria-current] { border-color: var(--wb-accent); }
.wb-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-price { font-size: 1.6em; font-weight: 600; margin: 0 0 .3em; }
.wb-from { font-size: .6em; font-weight: 400; opacity: .7; }
.wb-stock { margin: .5em 0; font-weight: 600; min-height: 1.5em; }
.wb-stock.wb-out { color: #b3261e; }
.wb-stock.wb-backorder, .wb-backorder-note { color: var(--wb-warn); }
.wb-backorder-note { font-size: .9em; }
.wb-filters { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; margin-bottom: 1em; }
.wb-filters select { width: auto; max-width: 100%; }
.wb-add-row { display: flex; gap: .6em; align-items: stretch; margin: .8em 0; }
.wb-attributes { border-collapse: collapse; margin-top: 1em; }
.wb-attributes th, .wb-attributes td { padding: .35em 1em .35em 0; text-align: left; border-bottom: 1px solid var(--wb-line); vertical-align: top; }

/* tables: cart, orders */
.wb-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.wb-table th, .wb-table td { padding: .6em .5em; border-bottom: 1px solid var(--wb-line); text-align: left; vertical-align: top; }
.wb-table th.wb-num, .wb-table td.wb-num { text-align: right; }
.wb-table .wb-total td { font-weight: 700; font-size: 1.1em; border-bottom: 0; }
.wb-thumb { width: 64px; }
.wb-thumb img { width: 56px; height: 56px; object-fit: contain; display: block; }
.wb-cart-foot { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1em; }
.wb-subtotal { margin: 0; font-size: 1.1em; }
.wb-actions { margin: 0; display: flex; gap: .6em; }

/* checkout */
.wb-checkout-form { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5em; align-items: start; }
.wb-checkout-side { position: sticky; top: 1em; padding: 1.2em; border: 1px solid var(--wb-line); border-radius: 6px; }
.wb-checkout-side h3 { margin-top: 0; }
.wb-pay-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5em; align-items: start; }
.wb-pay-form { position: sticky; top: 1em; padding: 1.2em; border: 1px solid var(--wb-line); border-radius: 6px; }
.wb-pay-form h4 { margin: 1em 0 .4em; }
.wb-pay-shop { margin-top: 2em; }
.wb-notify { margin: 1em 0; }
.wb-notify summary { cursor: pointer; }
.wb-notify-form { display: flex; flex-wrap: wrap; gap: .5em; margin: .6em 0 .3em; }
.wb-notify-form input[type=email] { flex: 1 1 14em; min-width: 0; }
.wb-returning { margin-bottom: 1.5em; padding: .8em 1em; border: 1px solid var(--wb-line); border-radius: 6px; }
.wb-returning summary { cursor: pointer; }
.wb-inline-form { display: flex; flex-wrap: wrap; gap: 0 1em; margin-top: .8em; }
.wb-inline-form .wb-half { flex: 1 1 calc(50% - .5em); min-width: 0; }
.wb-inline-form > p:last-child { flex: 1 1 100%; margin: 0; }
.wb fieldset { border: 0; margin: 0 0 1em; padding: 0; min-width: 0; }
.wb legend { font-weight: 600; padding: 0; margin-bottom: .4em; }
.wb-methods label { display: flex; gap: .5em; align-items: baseline; padding: .25em 0; }
.wb-methods label .wb-num { margin-left: auto; }
.wb-gateway { padding: .4em 0; }
.wb-gateway-fields { margin: .3em 0 0 1.6em; }
.wb-gateway-fields p { margin: 0 0 .5em; }
.wb-place { width: 100%; font-size: 1.1em; padding: .8em; }
.wb-summary[aria-busy=true] { opacity: .5; }

/* account */
.wb-tabs { display: flex; flex-wrap: wrap; gap: .3em 1.2em; margin-bottom: 1.5em; padding-bottom: .5em; border-bottom: 1px solid var(--wb-line); }
.wb-tabs a { text-decoration: none; padding: .2em 0; }
.wb-tabs a[aria-current] { font-weight: 700; border-bottom: 2px solid var(--wb-accent); }
.wb-two, .wb-login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2em; }
.wb-panel { padding: 1.2em; border: 1px solid var(--wb-line); border-radius: 6px; margin: 0; }
.wb-panel h3 { margin-top: 0; }

.wb-cart-pill { position: fixed; right: 16px; bottom: 16px; z-index: 999; padding: .6em 1.1em; border-radius: 999px; background: #1d4d3a; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.wb-cart-pill span { display: inline-block; min-width: 1.5em; margin-left: .3em; padding: 0 .4em; border-radius: 999px; background: #fff; color: #1d4d3a; text-align: center; }

/* The store as an app (App). The bar shows only when the store was opened from a phone's home screen;
   the offer only in a phone's browser, once it says the store can be installed. */
.wb-appbar, .wb-app-offer { display: none; }
@media (display-mode: standalone) and (max-width: 900px) {
	.wb-appbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; margin: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--wb-app-bg, #fff); border-top: 1px solid rgba(128, 128, 128, .28); box-shadow: 0 -2px 10px rgba(0, 0, 0, .07); font: 500 11px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
	.wb-appbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; color: var(--wb-app-ink, #5b6068); text-decoration: none; -webkit-tap-highlight-color: transparent; }
	.wb-appbar a[aria-current] { color: var(--wb-app-on, #1d4d3a); font-weight: 700; }
	.wb-appbar-icon { position: relative; display: block; line-height: 0; }
	.wb-appbar-count { position: absolute; top: -5px; left: 14px; min-width: 17px; padding: 2px 4px; border-radius: 999px; background: var(--wb-app, #1d4d3a); color: var(--wb-app-count, #fff); font-size: 10px; font-weight: 700; line-height: 13px; text-align: center; }
	.wb-appbar-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	body.wb-has-appbar { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
	body.wb-has-appbar .wb-cart-pill { display: none; }
}
@media (display-mode: browser) and (max-width: 900px) {
	.wb-app-offer:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 99991; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 10px; background: #1f2326; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
	.wb-app-offer span { flex: 1 1 auto; min-width: 0; }
	.wb-app-offer button { flex: 0 0 auto; border: 0; border-radius: 6px; font: inherit; cursor: pointer; }
	.wb-app-offer-yes { padding: 7px 14px; background: #fff; color: #1f2326; font-weight: 700; }
	.wb-app-offer-no { width: 34px; height: 34px; padding: 0; background: none; color: #fff; font-size: 22px; line-height: 1; opacity: .8; }
	/* The Cart button moves up out of the offer's way. */
	body:has(.wb-app-offer:not([hidden])) .wb-cart-pill { bottom: 78px; }
}

@media (max-width: 760px) {
	.wb-product, .wb-checkout-form, .wb-two, .wb-login, .wb-pay-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2em; }
	.wb-checkout-side, .wb-pay-form { position: static; }
	.wb-shop-bar { flex-wrap: wrap; }
	.wb-shop-bar input[type=search] { flex-basis: 100%; }
	.wb-grid, .wb-related .wb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9em; }
	.wb-fields .wb-third { flex-basis: 100%; }
	.wb-cart thead { display: none; }
	.wb-cart tr { display: grid; grid-template-columns: 64px 1fr auto; gap: 0 .6em; padding: .6em 0; border-bottom: 1px solid var(--wb-line); }
	.wb-cart td { border: 0; padding: .15em 0; }
	.wb-cart td.wb-thumb { grid-row: span 4; }
	.wb-cart td.wb-num { grid-column: 2 / -1; text-align: left; }
	.wb-cart td[data-label]::before { content: attr(data-label) ": "; opacity: .7; font-size: .9em; }
}

/* A return the shop agreed to (an RMA from the books), on the order's page. */
.wb-return { border: 1px solid var(--wb-border, #d8dde3); border-left: 4px solid #b7791f; border-radius: 6px; padding: .8em 1em; margin: 1em 0; }
.wb-return h4 { margin: 0 0 .3em; }
.wb-return-stage { margin: 0 0 .5em; font-weight: 600; }
.wb-return-items { margin: 0 0 .6em 1.2em; padding: 0; }
.wb-return-to { margin: .4em 0; }
.wb-return-received { border-left-color: #2b6cb0; }
.wb-return-credited, .wb-return-closed { border-left-color: #2f855a; }
.wb-return-open { color: #b7791f; font-weight: 600; }

/* The watch list: the product page's button, and My account's list. */
.wb-watch { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .8em; margin: .6em 0; }
.wb-watch-button { display: inline-flex; align-items: center; gap: .35em; padding: .45em .9em; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.wb-watch-button.wb-watching { background: #b7791f; border-color: #b7791f; color: #fff; }
.wb-watch-down { color: #2f855a; font-size: .9em; }
.wb-watch-actions { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; justify-content: flex-end; }
.wb-watch-actions form { margin: 0; }
.wb-link-button { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
@media (max-width: 600px) {
	.wb .wb-watch-table thead { display: none; }
	.wb .wb-watch-table, .wb .wb-watch-table tbody { display: block; width: 100%; }
	.wb .wb-watch-table tr { display: grid; grid-template-columns: auto 1fr; gap: .3em 1em; padding: .8em 0; border-bottom: 1px solid #ddd; }
	.wb .wb-watch-table td { display: block; border: 0; padding: 0; text-align: left; }
	.wb .wb-watch-table td:first-child, .wb .wb-watch-table td.wb-watch-actions { grid-column: 1 / -1; }
	.wb .wb-watch-actions { justify-content: flex-start; margin-top: .3em; }
}
