/* RobertsRX Product List — front end. Override the variables in your theme to restyle. */
:root {
	--rxpl-accent: #596b7f;
	--rxpl-accent-text: #fff;
	--rxpl-border: #e2e4e8;
	--rxpl-muted: #5f6672;
	--rxpl-soft: #f6f7f9;
	--rxpl-ok: #15803d;
	--rxpl-warn: #b45309;
	--rxpl-radius: 8px;
}

.rxpl-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Product options */
.rxpl-options { display: grid; gap: 1.25rem; }
.rxpl-strength-title { margin: 0 0 .5rem; }
.rxpl-variant { border: 1px solid var(--rxpl-border); border-radius: var(--rxpl-radius); overflow: hidden; margin-bottom: .75rem; }
.rxpl-variant-head { padding: .6rem .9rem; background: var(--rxpl-soft); border-bottom: 1px solid var(--rxpl-border); font-weight: 600; }
.rxpl-variant-name { display: block; }
.rxpl-variant-name .rxpl-label { font: inherit; }
.rxpl-ahfs { display: block; margin-top: .2rem; font-weight: 400; font-size: inherit; line-height: 1.4em; }
.rxpl-tiers { list-style: none; margin: 0; padding: 0; }
.rxpl-tier { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem .9rem; margin: 0; }
.rxpl-tier + .rxpl-tier { border-top: 1px solid var(--rxpl-border); }
.rxpl-tier-label { flex: 1 1 12rem; }
.rxpl-tier-price { font-weight: 600; min-width: 5.5rem; text-align: right; }
.rxpl-add { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; margin: 0; }
/* Fixed-width quantity box (beats theme rules that make inputs 100% wide). */
.rxpl-add input.rxpl-qty[type="number"], .rxpl-checkout input.rxpl-qty[type="number"] { box-sizing: border-box; width: 5.5em !important; max-width: 5.5em !important; min-width: 0; flex: 0 0 auto; margin: 0; padding: .4em .35em .4em .6em; border: 1px solid var(--rxpl-border); border-radius: 6px; font: inherit; text-align: center; }
.rxpl-add button.rxpl-add-btn { text-transform: uppercase; letter-spacing: .02em; padding: .45rem 1.2rem; border: 0; border-radius: 999px; background: var(--rxpl-accent); color: var(--rxpl-accent-text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rxpl-add button.rxpl-add-btn:hover, .rxpl-add button.rxpl-add-btn:focus-visible { background: #4a5a6c; }
.rxpl-add button.rxpl-add-btn.is-added { background: var(--rxpl-ok); }
.rxpl-toast { margin: 0; min-height: 1.5em; color: var(--rxpl-ok); font-weight: 700; }
.rxpl-toast:focus { outline: none; }
.rxpl-toast:not(.is-visible) { visibility: hidden; }
.rxpl-none { color: var(--rxpl-muted); }

/* Dropdown picker */
.rxpl-picker { display: grid; gap: .9rem; max-width: 34rem; }
.rxpl-picker [hidden] { display: none !important; }
.rxpl-field { display: grid; gap: .3rem; margin: 0; }
.rxpl-field-label { font-weight: 600; }
.rxpl-picker select.rxpl-select { box-sizing: border-box; width: 100%; max-width: 100%; margin: 0; padding: .55em 2.2em .55em .75em; border: 1px solid var(--rxpl-border); border-radius: 6px; background-color: #fff; font: inherit; color: inherit; }
.rxpl-picker select.rxpl-select:disabled { opacity: .6; cursor: not-allowed; }
.rxpl-details { margin: 0; }
.rxpl-details p { margin: 0; font-family: inherit; font-weight: 400; font-size: 15px; line-height: 1.4em; }
.rxpl-buy { flex-wrap: wrap; gap: .6rem .75rem; padding-top: .9rem; border-top: 1px solid var(--rxpl-border); }
.rxpl-buy-price { font-weight: 700; font-size: 1.6em; line-height: 1.1; min-width: 5.5rem; }
.rxpl-picker .rxpl-toast { min-height: 0; }
.rxpl-picker .rxpl-toast:not(.is-visible) { display: none; }

/* Product search */
.rxpl-search { position: relative; z-index: 50; width: 100%; margin: 0; }
.rxpl-search-box { position: relative; }
.rxpl-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #8a8f98; pointer-events: none; font-size: 18px; line-height: 1; }
.rxpl-search--no-icon input.rxpl-search-input[type="search"] { padding-left: 18px; }
.rxpl-search input.rxpl-search-input[type="search"] { box-sizing: border-box; display: block; width: 100%; max-width: 100%; height: 55px; margin: 0; padding: 0 18px 0 48px; border: 1px solid #DDD; border-radius: 10px; background: #FFF; color: inherit; font: inherit; font-size: 16px; line-height: 55px; box-shadow: none; -webkit-appearance: none; appearance: none; }
.rxpl-search input.rxpl-search-input[type="search"]:focus { outline: 2px solid var(--rxpl-accent); outline-offset: 1px; }
.rxpl-search input.rxpl-search-input::-webkit-search-decoration { -webkit-appearance: none; }
.rxpl-suggest { box-sizing: border-box; position: absolute; z-index: 9999; left: 0; right: 0; top: calc(100% + 6px); max-height: 400px; overflow-y: auto; border: 1px solid #DDD; border-radius: 10px; background: #FFF; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.rxpl-suggest-item, .rxpl-suggest-all { display: block; padding: 10px 16px; color: inherit; text-decoration: none; border-bottom: 1px solid #f0f0f0; }
.rxpl-suggest-item:last-child { border-bottom: 0; }
.rxpl-suggest-item:hover, .rxpl-suggest-item.is-active, .rxpl-suggest-all:hover, .rxpl-suggest-all.is-active { background: var(--rxpl-soft); }
.rxpl-suggest-title { display: block; font-weight: 600; }
.rxpl-suggest-reason { display: block; font-size: .85em; color: var(--rxpl-muted); }
.rxpl-suggest mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.rxpl-suggest-all { font-weight: 600; color: var(--rxpl-accent); border-bottom: 0; border-top: 1px solid #DDD; position: sticky; bottom: 0; background: #FFF; }
.rxpl-suggest-empty { padding: 14px 16px; color: var(--rxpl-muted); }

/* A–Z filter (plain text links; inherits your theme's link color) */
.rxpl-az { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .1rem; line-height: 1.8; }
.rxpl-az-link { padding: 0 .3em; }
.rxpl-az a.rxpl-az-link { text-decoration: none; }
.rxpl-az a.rxpl-az-link:hover, .rxpl-az a.rxpl-az-link:focus-visible { text-decoration: underline; }
.rxpl-az-link.is-current { font-weight: 700; }
.rxpl-az-link.is-empty { opacity: .35; cursor: default; }
.rxpl-az-sep { opacity: .35; }
.rxpl-az-results { scroll-margin-top: var(--rxpl-scroll-offset, 120px); transition: opacity .15s ease; }
.rxpl-az-results.is-loading { opacity: .45; pointer-events: none; }
.rxpl-az-results:focus { outline: none; }

/* Header link */
.rxpl-order-link { display: inline-flex; align-items: center; gap: .4rem; }
.rxpl-order-count { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--rxpl-accent); color: var(--rxpl-accent-text); font-size: .8em; line-height: 1.5; text-align: center; }
.rxpl-order-count.is-empty { opacity: .45; }
.rxpl-order-link--icon { position: relative; display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.rxpl-order-icon-wrap { position: relative; display: inline-flex; align-items: center; }
.rxpl-order-icon { font-size: 1.25em; line-height: 1; }
.rxpl-order-link--icon .rxpl-order-count { position: absolute; top: -.7em; right: -.85em; min-width: 1.5em; padding: 0 .35em; font-size: .7em; font-weight: 700; line-height: 1.5; }
.rxpl-order-link--icon .rxpl-order-count.is-empty { opacity: 1; }
.rxpl-order-count.rxpl-hide-empty.is-empty { display: none; }
/* Badge beside an icon with the class "rxpl-cart-icon" (3px gap). Adjust with --rxpl-badge-gap. */
.rxpl-cart-badge { position: static; margin: 0 0 0 var(--rxpl-badge-gap, 3px); vertical-align: middle; font-size: 11px; font-weight: 700; line-height: 18px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; cursor: pointer; }
.rxpl-cart-icon > .rxpl-cart-badge { display: inline-block; }
.rxpl-cart-badge.is-empty { opacity: 1; }

/* Checkout list */
.rxpl-checkout { margin-bottom: 2rem; }
.rxpl-cart { width: 100%; border-collapse: collapse; }
.rxpl-cart th, .rxpl-cart td { padding: .65rem .5rem; border-bottom: 1px solid var(--rxpl-border); text-align: left; vertical-align: top; }
.rxpl-cart thead th { font-size: .85em; color: var(--rxpl-muted); font-weight: 600; }
.rxpl-cart .rxpl-num { text-align: right; white-space: nowrap; }
.rxpl-cart .rxpl-c-total, .rxpl-cart .rxpl-c-grand { font-weight: 600; }
.rxpl-checkout input.rxpl-qty[type="number"] { width: 4.25em !important; max-width: 4.25em !important; padding-left: .45em; padding-right: .2em; }
.rxpl-svg { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; }
.rxpl-cart tfoot th { text-align: right; }
.rxpl-desc { display: block; color: var(--rxpl-muted); font-size: .9em; }
.rxpl-warn { display: block; color: var(--rxpl-warn); font-size: .9em; }
.rxpl-cart tr.is-unavailable td { background: #fffbeb; }
.rxpl-remove { background: none; border: 0; padding: 0; color: var(--rxpl-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; }
.rxpl-remove:hover { color: #b91c1c; }
.rxpl-empty { padding: 1.5rem; border: 1px dashed var(--rxpl-border); border-radius: var(--rxpl-radius); text-align: center; }
.rxpl-gf-error p { margin: .5rem 0 0; font-weight: 600; }

/* Order list: compact layout when its own column is narrow (container query), with a
   screen-width fallback for older browsers. */
.rxpl-checkout { container-type: inline-size; container-name: rxpl-cart; }
@container rxpl-cart (max-width: 560px) {
	.rxpl-cart td.rxpl-c-qty, .rxpl-cart td.rxpl-c-total { display: inline-flex; align-items: center; gap: .35em; width: auto; vertical-align: middle; }
	.rxpl-cart td.rxpl-c-total { margin-left: 1.25rem; }
	.rxpl-cart thead { display: none; }
	.rxpl-cart, .rxpl-cart tbody, .rxpl-cart tr, .rxpl-cart td { display: block; width: 100%; }
	.rxpl-cart tr { border-bottom: 1px solid var(--rxpl-border); padding: .45rem 0; }
	.rxpl-cart td { border: 0; padding: .05rem 0; text-align: left !important; }
	.rxpl-cart td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--rxpl-muted); font-size: .85em; font-weight: 400; }
	.rxpl-cart tfoot { display: block; }
	.rxpl-cart tfoot tr { display: flex; justify-content: space-between; align-items: baseline; width: 100%; }
	.rxpl-cart tfoot th, .rxpl-cart tfoot td { display: block; width: auto; border: 0; padding: .45rem 0; }
	.rxpl-cart tfoot td:empty { display: none; }
	.rxpl-cart { font-size: .9em; line-height: 1.3; }
	.rxpl-cart td.rxpl-c-qty, .rxpl-cart td.rxpl-c-total { margin-top: .15rem; }
	.rxpl-cart .rxpl-remove { font-size: .85em; }
	.rxpl-cart .rxpl-warn { font-size: .85em; }
	.rxpl-checkout .rxpl-cart input.rxpl-qty[type="number"] { height: 1.9em !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.9em; font-size: .95em; }
}
@supports not (container-type: inline-size) {
	@media (max-width: 640px) {
		.rxpl-cart td.rxpl-c-qty, .rxpl-cart td.rxpl-c-total { display: inline-flex; align-items: center; gap: .35em; width: auto; vertical-align: middle; }
		.rxpl-cart td.rxpl-c-total { margin-left: 1.25rem; }
		.rxpl-cart thead { display: none; }
		.rxpl-cart, .rxpl-cart tbody, .rxpl-cart tr, .rxpl-cart td { display: block; width: 100%; }
		.rxpl-cart tr { border-bottom: 1px solid var(--rxpl-border); padding: .45rem 0; }
		.rxpl-cart td { border: 0; padding: .05rem 0; text-align: left !important; }
		.rxpl-cart td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--rxpl-muted); font-size: .85em; font-weight: 400; }
		.rxpl-cart tfoot { display: block; }
		.rxpl-cart tfoot tr { display: flex; justify-content: space-between; align-items: baseline; width: 100%; }
		.rxpl-cart tfoot th, .rxpl-cart tfoot td { display: block; width: auto; border: 0; padding: .45rem 0; }
		.rxpl-cart tfoot td:empty { display: none; }
		.rxpl-cart { font-size: .9em; line-height: 1.3; }
		.rxpl-cart td.rxpl-c-qty, .rxpl-cart td.rxpl-c-total { margin-top: .15rem; }
		.rxpl-cart .rxpl-remove { font-size: .85em; }
		.rxpl-cart .rxpl-warn { font-size: .85em; }
		.rxpl-checkout .rxpl-cart input.rxpl-qty[type="number"] { height: 1.9em !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.9em; font-size: .95em; }
	}
}
@media (max-width: 640px) {
	.rxpl-tier-price { text-align: left; min-width: 0; }
}
