/* Purchase by volume: front-end styles. Was a 33 KB inline <style> in wp_head on every page;
   a file caches in the browser once instead of shipping inside every page's HTML. */
.pbv-price-volume-note {
            color: #666;
            font-style: italic;
        }
        .pbv-volume-details {
            margin-top: 10px;
            max-width: 420px;
        }
        .pbv-volume-details summary.pbv-volume-toggle {
            list-style: none;
            list-style-type: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            width: 100%;
            padding: 10px 12px;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 0.88rem;
            font-weight: 600;
            color: #334155;
            text-decoration: none;
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
        }
        .pbv-volume-details summary.pbv-volume-toggle::-webkit-details-marker {
            display: none !important;
        }
        .pbv-volume-details summary.pbv-volume-toggle::marker {
            display: none !important;
            content: "" !important;
            font-size: 0 !important;
        }
        .pbv-volume-details summary.pbv-volume-toggle:hover {
            background: #e2e8f0;
            border-color: #cbd5e1;
            color: #1f2937;
        }
        .pbv-volume-toggle-text {
            flex: 1 1 auto;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* Hidden unit select — only JS uses this; UI shows the cycle button instead */
        .pbv-unit-select-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
            overflow: hidden;
        }
        /* Unit cycle button — sits to the right of the quantity input inside the open panel */
        .pbv-unit-cycle-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 12px;
            background: #e2e8f0;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s ease, border-color 0.15s ease;
            flex: 0 0 auto;
        }
        .pbv-unit-cycle-btn::after {
            content: "›";
            font-size: 1.1em;
            line-height: 1;
            opacity: 0.6;
        }
        .pbv-unit-cycle-btn:hover {
            background: #cbd5e1;
            border-color: #94a3b8;
            color: #1e293b;
        }
        .pbv-volume-toggle-caret {
            width: 10px;
            height: 10px;
            flex: 0 0 auto;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(45deg) translateY(-1px);
            transition: transform 0.2s ease;
        }
        .pbv-volume-details[open] .pbv-volume-toggle-caret {
            transform: rotate(225deg) translateY(1px);
        }
        .pbv-volume-details-panel {
            padding-top: 8px;
        }
        .pbv-volume-asterisk {
            font-size: 0.85em;
            color: #64748b;
            text-decoration: none;
            margin-left: 2px;
        }
        .pbv-volume-asterisk:hover {
            text-decoration: underline;
        }
        .pbv-custom-amount-details {
            margin-top: 10px;
        }
        .pbv-custom-amount-details summary.pbv-custom-amount-toggle {
            list-style: none;
            list-style-type: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            padding: 6px 0;
            font-size: 0.8rem;
            color: #475569;
            text-decoration: none;
            transition: color 0.15s ease;
        }
        .pbv-custom-amount-details summary.pbv-custom-amount-toggle::-webkit-details-marker {
            display: none !important;
        }
        .pbv-custom-amount-details summary.pbv-custom-amount-toggle::marker {
            display: none !important;
            content: "" !important;
            font-size: 0 !important;
        }
        .pbv-custom-amount-details summary.pbv-custom-amount-toggle::before {
            content: "";
            display: inline-block;
            margin-right: 6px;
            border-top: 4px solid transparent;
            border-bottom: 4px solid transparent;
            border-left: 5px solid currentColor;
            vertical-align: middle;
            transition: transform 0.2s ease;
        }
        .pbv-custom-amount-details[open] summary.pbv-custom-amount-toggle::before {
            transform: rotate(90deg);
        }
        .pbv-custom-amount-details summary.pbv-custom-amount-toggle:hover {
            color: #334155;
        }
        .purchase-mode-toggle {
            display: flex;
            gap: 24px;
            margin-bottom: 18px;
            font-family: "Brandon Grotesque", var(--font-handwriting, inherit);
            font-weight: 500;
            font-size: 1.15em;
            align-items: center;
        }
        .purchase-mode-toggle label {
            cursor: pointer;
            padding: 6px 12px;
            background: hsla(76, 16%, 87%, 0.3);
            border: 1px solid #ccd;
            border-radius: 1.5rem;
            transition: background 0.3s ease;
        }
        .purchase-mode-toggle input[type="radio"] {
            margin-right: 6px;
        }
        .pbv-archive-jar-notes {
            margin-bottom: 8px;
            padding: 10px 12px;
            background: #f0f4f3;
            border: 1px solid #c5d0ce;
            border-radius: 8px;
            font-size: 0.9rem;
        }
        .pbv-archive-jar-notes-text {
            margin: 0;
            color: #334155;
        }
        .pbv-archive-jar-notes .pbv-archive-jar-link {
            color: #0d9488;
            text-decoration: none;
        }
        .pbv-archive-jar-notes .pbv-archive-jar-link:hover {
            text-decoration: underline;
        }
        .pbv-archive-toggle-wrapper {
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 0.35rem;
        }
        .pbv-archive-toggle-label {
            font-size: 11px;
            font-weight: 500;
            color: #94a3b8;
            font-family: brandon-grotesque, sans-serif;
            white-space: nowrap;
        }
        .pbv-archive-toggle-group {
            display: inline-flex;
            gap: 0;
        }
        .pbv-archive-toggle-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.4rem 0.6rem;
            font-size: 13px;
            font-weight: 500;
            font-family: brandon-grotesque, sans-serif;
            color: #2c5e54;
            background: #f5f9f6;
            border: 1.5px solid #a5ccbc;
            cursor: pointer;
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
            user-select: none;
            line-height: 1.3;
        }
        .pbv-archive-toggle-btn:first-child {
            border-radius: 8px 0 0 8px;
            border-right: none;
        }
        .pbv-archive-toggle-btn:last-child {
            border-radius: 0 8px 8px 0;
        }
        .pbv-archive-toggle-btn input[type="radio"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
            width: 0;
            height: 0;
        }
        .pbv-archive-toggle-btn--active {
            background: #bfe2dc;
            color: #0f4c3a;
            border-color: #2c5e54;
            font-weight: 600;
        }
        .pbv-archive-toggle-btn:hover:not(.pbv-archive-toggle-btn--active) {
            background: rgba(44, 94, 84, 0.08);
            border-color: #2c5e54;
        }
        .pbv-archive-volume-tooltip {
            font-size: 10px;
            color: #64748b;
            background: transparent;
            border: none;
            padding: 0;
            max-width: 320px;
            line-height: 1.35;
            font-style: italic;
            flex-basis: 100%;
            margin-top: 0.15rem;
        }
        .pbv-archive-volume-tooltip[hidden] {
            display: none !important;
        }
        .pbv-volume-ack-modal {
            position: fixed;
            inset: 0;
            z-index: 100000;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }
        .pbv-volume-ack-modal[hidden] {
            display: none !important;
        }
        .pbv-volume-ack-modal.pbv-modal-open {
            opacity: 1;
            visibility: visible;
        }
        .pbv-volume-ack-modal.pbv-modal-open[hidden] {
            display: flex !important;
        }
        .pbv-volume-ack-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            cursor: pointer;
        }
        .pbv-volume-ack-modal-content {
            position: absolute;
            max-width: 340px;
            width: calc(100% - 40px);
            padding: 16px 20px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            font-family: brandon-grotesque, sans-serif;
            /* Default center fallback - JS overrides with trigger-relative position */
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }
        .pbv-volume-ack-modal-title {
            margin: 0 0 6px;
            font-size: 1rem;
            font-weight: 600;
            color: #1f1f1f;
        }
        .pbv-volume-ack-modal-body {
            margin: 0 0 14px;
            font-size: 0.9rem;
            line-height: 1.45;
            color: #555;
        }
        .pbv-volume-ack-modal-btn {
            display: block;
            width: 100%;
            padding: 10px 16px;
            margin-top: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.03em;
            text-transform: uppercase;
            background: linear-gradient(135deg, #e8f5f3 0%, #dce8e4 50%, #e0eef0 100%);
            color: #1f1f1f;
            border: 1.5px solid #a5ccbc;
            border-radius: 8px;
            cursor: pointer;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .pbv-volume-ack-modal-btn:hover {
            border-color: #2c5e54;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        #pbv-container-ack-modal .pbv-volume-ack-modal-content {
            max-width: 280px;
            padding: 14px 16px;
            border-radius: 10px;
            border: 1.5px solid #d6dde0;
        }
        #pbv-container-ack-modal .pbv-volume-ack-modal-title {
            font-size: 0.88rem;
            margin: 0 0 4px;
        }
        #pbv-container-ack-modal .pbv-volume-ack-modal-body {
            font-size: 0.82rem;
            margin: 0 0 10px;
        }
        #pbv-container-ack-modal .pbv-volume-ack-modal-btn {
            padding: 8px 14px;
            font-size: 0.82rem;
        }
        /* Jar info (i) trigger button - sits inline right of jar buttons */
        .pbv-loop-jar-buttons {
            position: relative;
        }
        .pbv-jar-info-trigger {
            position: absolute;
            top: 0;
            right: 0;
            transform: translate(50%, -50%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            padding: 0;
            border: 1px solid #d6dde0;
            border-radius: 50%;
            background: #fff;
            color: #94a3b8;
            cursor: pointer;
            transition: color 0.15s ease, border-color 0.15s ease;
            z-index: 2;
        }
        .pbv-jar-info-trigger:hover {
            color: #2c5e54;
            border-color: #a5ccbc;
        }
        .pbv-jar-info-trigger svg {
            display: block;
        }
        @media (max-width: 480px) {
            .pbv-jar-info-trigger {
                width: 14px;
                height: 14px;
            }
            .pbv-jar-info-trigger svg {
                width: 10px;
                height: 10px;
            }
        }
        /* Jar info modal */
        #pbv-jar-info-modal .pbv-jar-info-modal-content {
            max-width: 320px;
            padding: 16px 20px;
            border-radius: 10px;
            border: 1.5px solid #d6dde0;
        }
        #pbv-jar-info-modal .pbv-volume-ack-modal-title {
            font-size: 0.92rem;
            margin: 0 0 4px;
        }
        #pbv-jar-info-modal .pbv-jar-info-desc {
            font-size: 0.82rem;
            color: #555;
            margin: 0 0 12px;
            line-height: 1.4;
        }
        .pbv-jar-info-options {
            display: flex;
            gap: 12px;
            margin-bottom: 14px;
        }
        .pbv-jar-info-option {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 10px 8px;
            border: 1.5px solid #e2e8f0;
            border-radius: 8px;
            background: #f8faf9;
            text-align: center;
        }
        .pbv-jar-info-option img {
            width: 48px;
            height: 48px;
            object-fit: contain;
        }
        .pbv-jar-info-option .pbv-jar-info-name {
            font-weight: 600;
            font-size: 0.8rem;
            color: #334155;
            text-transform: uppercase;
            letter-spacing: 0.01em;
        }
        .pbv-jar-info-option .pbv-jar-info-vol {
            font-size: 0.78rem;
            color: #2c5e54;
            font-weight: 500;
        }
        .pbv-jar-info-option .pbv-jar-info-price {
            font-size: 0.75rem;
            color: #64748b;
            font-style: italic;
        }
        /* Jar info modal inherits the shared .pbv-volume-ack-modal-btn style */
        .pbv-archive-weight-note {
            font-size: 0.82rem;
            color: #666;
            margin-top: 8px;
            width: 100%;
            font-style: italic;
        }
        .pbv-volume-disclaimer {
            font-size: 0.8em;
            font-style: italic;
            color: #666;
            margin-top: 6px;
        }
        .pbv-loop-estimate {
            display: inline;
            font-size: 0.88em;
            font-style: italic;
            color: #4b5563;
            white-space: nowrap;
        }
        .pbv-loop-estimate-note {
            display: inline;
            font-size: 0.8em;
            font-style: italic;
            color: #6b7280;
            margin-left: 4px;
        }
        .pbv-single-estimate {
            display: inline;
            font-size: 0.86em;
            font-style: italic;
            color: #4b5563;
            white-space: nowrap;
            margin-left: 6px;
        }
        .product-density-inputs input {
            background-color: hsla(76, 16%, 87%, 0.25);
            border: 1px solid #ccc;
            padding: 6px 10px;
            border-radius: 0.5rem;
            font-size: 0.9rem;
        }
        .pbv-unit-select-wrapper {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 5.75rem;
            min-height: 40px;
            padding: 8px 28px 8px 12px;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 0.5rem;
            font-size: 0.85rem;
            font-weight: 500;
            color: #334155;
            cursor: pointer;
        }
        .pbv-unit-select-wrapper .pbv-unit-display {
            display: block;
            pointer-events: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .pbv-unit-select-wrapper::after {
            content: "";
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-35%);
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 5px solid currentColor;
            opacity: 0.7;
            pointer-events: none;
        }
        .pbv-unit-select-wrapper .pbv-volume-unit-select {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            font-size: 0.85rem;
            background: transparent;
            border: none;
            min-width: 0;
        }
        .pbv-volume-controls {
            margin-top: 6px;
            max-width: 100%;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .pbv-amount-inline {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .pbv-amount-fields {
            display: flex;
            align-items: center;
            min-width: 0;
        }
        .pbv-amount-fields .volume-row {
            display: none;
            align-items: center;
            gap: 6px;
            margin: 0;
        }
        .pbv-amount-fields .volume-row.pbv-volume-row-visible {
            display: flex !important;
        }
        .product-density-inputs .pbv-amount-fields .volume-row.pbv-volume-row-visible {
            display: flex !important;
        }
        .pbv-amount-fields .volume-row .pbv-unit-label {
            font-size: 0.85rem;
            color: #555;
            margin: 0;
            display: none;
            white-space: nowrap;
            flex-shrink: 0;
        }
        /* Unit label is always hidden — the cycle button serves as the unit indicator */
        .pbv-amount-fields .volume-row input {
            width: 72px;
            min-width: 72px;
        }
        .pbv-jar-zone {
            margin-top: 10px;
            padding: 12px 14px;
            background: #f0f4f3;
            border: 1px solid #c5d0ce;
            border-radius: 8px;
            font-size: 0.85rem;
            overflow: visible;
        }
        .pbv-jar-zone-note {
            margin: 0 0 10px 0;
            color: #555;
            font-style: italic;
            font-size: 0.8rem;
        }
        .pbv-jar-zone-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        .pbv-jar-select-btn,
        .pbv-bottle-select-btn {
            position: relative;
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            background: #fff;
            border: 1.5px solid #d6dde0;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
            font-size: 0.78rem;
            color: #334155;
            min-width: 130px;
            flex: 1;
            max-width: 220px;
            text-align: left;
        }
        .pbv-jar-select-btn:hover,
        .pbv-bottle-select-btn:hover {
            background: #f0f9f6;
            border-color: #a5ccbc;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .pbv-jar-select-btn .pbv-jar-icon,
        .pbv-bottle-select-btn .pbv-jar-icon {
            display: block;
            width: 48px;
            height: 48px;
            object-fit: contain;
            flex-shrink: 0;
        }
        .pbv-jar-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .pbv-jar-select-btn .pbv-jar-label,
        .pbv-bottle-select-btn .pbv-jar-label {
            font-weight: 600;
            font-size: 0.8rem;
            color: #334155;
            line-height: 1.2;
        }
        .pbv-jar-volume {
            font-size: 0.75rem;
            color: #475569;
        }
        .pbv-jar-select-btn .pbv-jar-price,
        .pbv-bottle-select-btn .pbv-jar-price {
            font-size: 0.75rem;
            color: #64748b;
            font-style: italic;
        }
        .pbv-container-row {
            margin-top: 6px;
            border: 1px solid #d6dde0;
            border-radius: 8px;
            padding: 6px 8px;
            background: #f7faf9;
            display: grid;
            gap: 2px;
            transition: opacity 0.2s ease;
        }
        .pbv-container-row.pbv-container-loading {
            opacity: 0.65;
        }
        .pbv-container-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 0;
            font-size: 0.84rem;
            color: #334155;
            cursor: pointer;
        }
        .pbv-container-selected {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 6px;
            font-size: 0.82rem;
        }
        .pbv-container-name {
            color: #1f2937;
            font-weight: 500;
        }
        .pbv-container-price {
            color: #0f766e;
            font-style: italic;
            white-space: nowrap;
        }
        .pbv-container-note {
            font-size: 0.76rem;
            color: #64748b;
            line-height: 1.35;
        }
        .volume-note {
            margin-bottom: 0;
            font-size: 0.92em;
            font-family: var(--font-handwriting, inherit);
            color: #444;
        }
        .pbv-archive-jar-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
        }
        .pbv-archive-jar-btn {
            position: relative;
            padding: 4px 10px;
            font-size: 0.8rem;
            color: #475569;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .pbv-archive-jar-btn:hover {
            background: #e2e8f0;
            border-color: #cbd5e1;
        }
        .pbv-archive-jar-btn.pbv-archive-bottle-btn {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
        }
        .pbv-archive-jar-btn .pbv-archive-bottle-icon {
            display: block;
            width: 40px;
            height: 40px;
            object-fit: contain;
        }
        .pbv-archive-jar-btn .pbv-archive-bottle-price {
            font-size: 0.75em;
            color: #64748b;
        }
        .pbv-archive-jar-btn.pbv-jar-selected,
        .pbv-jar-select-btn.pbv-jar-selected,
        .pbv-bottle-select-btn.pbv-jar-selected,
        .pbv-loop-jar-btn.pbv-jar-selected {
            background: #d5e5df;
            border-color: #0f4c3a;
            border-width: 2px;
            color: #0f4c3a;
            box-shadow: 0 0 0 2px rgba(15,76,58,0.12);
        }
        .pbv-jar-select-btn.pbv-jar-selected::after,
        .pbv-bottle-select-btn.pbv-jar-selected::after {
            content: "✓";
            position: absolute;
            top: -6px;
            right: -6px;
            width: 20px;
            height: 20px;
            background: #0f4c3a;
            color: #fff;
            border-radius: 50%;
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        .pbv-archive-jar-btn.pbv-jar-selected::after,
        .pbv-loop-jar-btn.pbv-jar-selected::after {
            content: "✓";
            position: absolute;
            top: -5px;
            right: -5px;
            width: 16px;
            height: 16px;
            background: #0f4c3a;
            color: #fff;
            border-radius: 50%;
            font-size: 10px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        /* Loop jar icon buttons (herbs & spices product cards) */
        .pbv-match-volume-wrap.pbv-match-volume-saving {
            opacity: 0.6;
        }
        .pbv-match-volume-error {
            display: block;
            margin-top: 4px;
            font-size: 0.8rem;
            color: #9b2c2c;
        }
        .pbv-loop-jar-buttons {
            display: flex;
            flex-wrap: wrap; /* narrow cards (3-column laptops, phones) stack the jars instead of wrapping letters */
            gap: 8px;
            margin: 6px 0 4px;
        }
        .pbv-loop-jar-btn {
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1 1 120px;
            min-width: 120px;
            padding: 8px 10px;
            background: #fff;
            border: 1.5px solid #d6dde0;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
            font-size: 0.7rem;
            color: #334155;
            flex: 1;
            text-align: left;
            line-height: 1.3;
        }
        .pbv-loop-jar-btn:hover {
            background: #f0f9f6;
            border-color: #a5ccbc;
            box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        }
        .pbv-loop-jar-btn .pbv-loop-jar-icon {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            object-fit: contain;
        }
        .pbv-loop-jar-btn .pbv-loop-jar-text {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }
        .pbv-loop-jar-btn .pbv-loop-jar-label {
            font-weight: 600;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.01em;
            color: #334155;
            white-space: nowrap;
        }
        .pbv-loop-jar-btn .pbv-loop-jar-price {
            font-size: 0.65rem;
            color: #64748b;
            font-style: italic;
        }
        .pbv-loop-jar-btn .pbv-loop-jar-volume {
            font-size: 0.6rem;
            color: #64748b;
            font-weight: 400;
        }
        /* Mobile 2-col: compact stacked jar buttons */
        @media (max-width: 480px) {
            .pbv-loop-jar-buttons {
                gap: 4px;
            }
            .pbv-loop-jar-btn {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 4px;
                padding: 6px 6px;
                min-width: 100px;
                font-size: 0.6rem;
            }
            .pbv-loop-jar-btn .pbv-loop-jar-icon {
                display: none;
            }
            .pbv-loop-jar-btn .pbv-loop-jar-label {
                font-size: 0.6rem;
            }
            .pbv-loop-jar-btn .pbv-loop-jar-price {
                font-size: 0.55rem;
            }
            .pbv-loop-jar-btn .pbv-loop-jar-volume {
                display: none;
            }
        }
        .volume-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 0;
        }
        .pbv-archive-volume .volume-row {
            gap: 6px;
            margin-bottom: 4px;
        }
        .pbv-archive-volume .volume-row:last-child {
            margin-bottom: 0;
        }
        .pbv-archive-volume .pbv-archive-unit {
            font-size: 0.9em;
            color: #444;
            font-weight: normal;
        }
        .pbv-archive-volume-single {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .pbv-archive-volume-single .pbv-volume-value {
            width: 92px;
            min-width: 92px;
            padding: 0 4px !important;
            text-align: center;
            font-variant-numeric: tabular-nums;
            appearance: textfield;
            -webkit-appearance: none;
            -moz-appearance: textfield;
        }
        .pbv-archive-volume-single .pbv-volume-value::-webkit-inner-spin-button,
        .pbv-archive-volume-single .pbv-volume-value::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
            display: none;
        }
        .pbv-archive-unit-toggle {
            margin: 0;
            padding: 2px 6px;
            font-size: 0.9em;
            color: #0f766e;
            background: transparent;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            cursor: pointer;
            white-space: nowrap;
            text-transform: none;
        }
        .pbv-archive-unit-toggle:hover {
            background: #f1f5f9;
            border-color: #0f766e;
        }
        .volume-row label {
            font-weight: normal;
            color: #444;
            min-width: 78px;
        }
        .density-disclaimer,
        .cart-volume-disclaimer {
            font-style: italic;
            font-size: 0.9em;
            color: #666;
            margin-top: 15px;
            padding-left: 10px;
        }
        .pbv-inline-disclaimer {
            margin: 10px 0 8px;
            padding-left: 0;
        }
        .cart-volume-disclaimer--inline {
            margin-top: 0;
            margin-left: 12px;
            padding-left: 0;
            display: inline-block;
            vertical-align: middle;
        }
        .pbv-cart-container-reminder {
            font-size: 0.9em;
            color: #555;
            margin: 8px 0 0 0;
            font-style: italic;
        }
        .eg-cart-row-has-volume {
            background-color: #fef9e7;
        }
        .eg-cart-row-has-volume td {
            background-color: inherit;
        }
        .eg-cart-volume-edit-wrap {
            margin-top: 4px;
        }
        .eg-cart-change-volume-btn {
            margin: 0;
            padding: 2px 8px;
            font-size: 11px;
            border: 1px solid #e5e7eb;
            border-radius: 3px;
            background: #fafafa;
            color: #6b7280;
            cursor: pointer;
            font-weight: 400;
        }
        .eg-cart-change-volume-btn:hover {
            background: #f3f4f6;
            color: #4b5563;
            border-color: #d1d5db;
        }
        .pbv-edit-volume-modal-fields { margin: 0.75rem 0; }
        .pbv-edit-volume-modal-desc { font-size: 0.82em; color: #777; margin: 0.25rem 0 0; }
        .pbv-edit-volume-label { display: block; font-weight: 600; margin-bottom: 3px; font-size: 0.85rem; }
        .pbv-edit-volume-row { display: flex; gap: 6px; align-items: center; }
        .pbv-edit-volume-input { width: 90px; padding: 5px 8px; border: 1px solid #d3d6da; border-radius: 6px; font-size: 0.9rem; }
        .pbv-edit-volume-unit { padding: 5px 8px; min-width: 70px; border: 1px solid #d3d6da; border-radius: 6px; font-size: 0.9rem; }
        .pbv-edit-volume-modal-actions { margin-top: 0.75rem; display: flex; gap: 6px; }
        .pbv-edit-volume-modal-actions .button { margin: 0; padding: 6px 14px; font-size: 0.85rem; border-radius: 6px; }
        .density-disclaimer .volume-info {
            color: #999;
            cursor: help;
            font-size: 0.9em;
            margin-left: 2px;
        }
        /* "learn more" link inside the PBV toggle summary */
        .pbv-volume-learn-more {
            font-size: 0.78rem;
            font-weight: 400;
            color: #64748b;
            text-decoration: underline;
            text-decoration-style: dotted;
            white-space: nowrap;
            flex: 0 0 auto;
        }
        .pbv-volume-learn-more:hover {
            color: #334155;
        }
        /* "container separate" tip link */
        .pbv-tip-trigger {
            color: inherit;
            text-decoration: underline;
            text-decoration-style: dotted;
            cursor: pointer;
        }
        .pbv-tip-trigger:hover {
            text-decoration-style: solid;
        }
        /* Tooltip popover */
        #pbv-tip-popover {
            display: none;
            position: fixed;
            z-index: 99999;
            max-width: 280px;
            padding: 10px 14px;
            background: #1e293b;
            color: #f1f5f9;
            font-size: 0.82rem;
            line-height: 1.5;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.25);
            pointer-events: none;
        }
        #pbv-tip-popover.pbv-tip-visible {
            display: block;
        }
        .pbv-match-volume-wrap {
            margin-top: 6px;
            font-size: 12px;
        }
        .pbv-match-volume-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            color: #555;
        }
        .pbv-match-volume-wrap input[type="checkbox"] {
            margin: 0;
        }
