.product-variants {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #e5e7ec;
    border-radius: 4px;
    color: #2c2f36;
    font-size: 14px;
}
.product-variants .pv-row { display: flex; gap: 16px; margin-top: 14px; }
.product-variants > .pv-row:first-child { margin-top: 0; }
.pv-row-heading { flex: 0 0 145px; padding-top: 10px; }
.pv-row-label { display: block; font-weight: 700; }
.pv-series { display: block; margin-top: 4px; color: #748094; font-size: 13px; }
.pv-row-content { min-width: 0; flex: 1; }
.pv-options { display: flex; flex-wrap: wrap; gap: 8px; }
.product-variants .pv-option, .pv-modal .pv-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 54px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #dce0e6;
    border-radius: 4px;
    background: #fff;
    color: #2c2f36;
    font: inherit;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    overflow-wrap: anywhere;
}
a.pv-option, button.pv-option { cursor: pointer; }
.product-variants .pv-option.is-current, .pv-modal .pv-option.is-current { border-color: #f0291a; box-shadow: inset 0 0 0 1px #f0291a; }
.product-variants .pv-option.is-unavailable { opacity: .6; }
.product-variants a.pv-option:hover, .pv-modal button.pv-option:hover { border-color: #f0291a; color: #f0291a; }
.product-variants .pv-option:focus-visible, .pv-modal :focus-visible, .product-variants .pv-all:focus-visible { outline: 2px solid #f0291a; outline-offset: 3px; }
.product-variants .pv-all { display: inline-block; margin-top: 10px; color: #f0291a; text-decoration: underline; font-size: 14px; line-height: 1.5; }
.product-variants > .pv-all { margin-top: 0; }
body .pv-blocker.blocker { z-index: 100003; padding: 24px; background: rgba(0, 0, 0, .55); }
.pv-blocker .pv-modal {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(980px, 100%);
    max-width: 980px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: 0 auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, .2);
    color: #2c2f36;
    font-size: 14px;
    overflow: hidden;
}
/* The modal plugin supplies inline display:inline-block; keep a single flex scroll area. */
.pv-blocker .pv-modal[style] { display: inline-flex !important; flex-direction: column; vertical-align: middle; }
.pv-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-shrink: 0; padding: 22px 26px 16px; }
.pv-modal .pv-modal-header h2 { margin: 0; padding: 0; border: 0; text-transform: none; font-size: 24px; line-height: 1.25; font-weight: 700; }
.pv-modal .pv-modal-header h2::before { display: none; content: none; }
.pv-modal .pv-modal-brand { font: inherit; color: inherit; text-transform: uppercase; }
.pv-modal-header p { margin: 7px 0 0; font-size: 14px; color: #748094; }
.pv-close { flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; background: none; font-size: 32px; line-height: 1; color: #748094; cursor: pointer; }
.pv-modal-series { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 26px; }
.pv-modal-group { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid #e5e7ec; }
.pv-modal-group-heading { flex: 0 0 145px; }
.pv-modal-group h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.4; font-weight: 700; }
.pv-modal-group-heading > span { color: #748094; font-size: 13px; }
.pv-modal-group .pv-options { flex: 1; align-content: flex-start; min-width: 0; }
.pv-modal .pv-option { flex: 0 1 auto; flex-wrap: wrap; column-gap: 4px; min-width: 70px; min-height: 44px; max-width: 100%; }
.pv-modal .pv-option-main { font: inherit; color: inherit; white-space: nowrap; }
.pv-modal .pv-option-details { color: #8993a3; font-size: 12px; }
.pv-selected-product { display: flex; flex-shrink: 0; align-items: center; gap: 20px; padding: 14px 26px; border-top: 1px solid #e5e7ec; background: #fafbfc; }
.pv-selected-product[hidden], .pv-modal [hidden], .pv-tooltip[hidden] { display: none !important; }
.pv-selected-product > img { width: 110px; height: 90px; object-fit: contain; flex-shrink: 0; }
.pv-selected-details { min-width: 0; }
.pv-product-name { margin-bottom: 9px; font-size: 15px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.pv-prices { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 24px; }
.pv-prices strong { display: block; font-size: 23px; line-height: 1.25; white-space: nowrap; }
.pv-prices span { display: block; margin-top: 2px; font-size: 12px; }
.pv-exchange { color: #f0291a; }
.pv-regular { color: #2c2f36; }
.pv-modal-footer { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 26px; border-top: 1px solid #e5e7ec; }
.pv-selection { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.pv-selection > span { color: #f0291a; }
.pv-modal-actions { display: flex; gap: 10px; flex-shrink: 0; }
.pv-cancel, .pv-modal .pv-go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 10px 20px; border: 1px solid #dce0e6; border-radius: 4px; background: #fff; font: inherit; font-size: 14px; line-height: 1.3; text-decoration: none; color: #748094; cursor: pointer; }
.pv-modal .pv-go { border-color: #00ae3c; background: #00ae3c; color: #fff; font-weight: 700; }
.pv-modal .pv-go:hover { background: #009e36; }
.pv-modal .pv-go[aria-disabled="true"] { opacity: .45; cursor: default; }
.pv-tooltip { position: fixed; z-index: 100005; box-sizing: border-box; width: 236px; padding: 14px; border: 1px solid #e5e7ec; border-radius: 6px; background: #fff; box-shadow: 0 5px 25px rgba(0, 0, 0, .18); pointer-events: none; }
.pv-tooltip > img { display: block; width: 180px; height: 140px; margin: 0 auto 10px; object-fit: contain; }
.pv-tooltip .pv-prices { flex-wrap: nowrap; gap: 10px; }
.pv-tooltip .pv-prices strong { font-size: 16px; }
@media (max-width: 1000px) and (min-width: 769px) {
    .product-variants .pv-row { display: block; }
    .pv-row-heading { padding-top: 0; margin-bottom: 8px; }
    .pv-series { display: inline; margin-left: 8px; }
    .pv-row-label { display: inline; }
}
@media (max-width: 768px) {
    .product-desktop-batteries-links { display: none; }
    .product-variants { padding: 14px 0; border: 0; border-top: 1px solid #e5e7ec; border-bottom: 1px solid #e5e7ec; margin: 0 0 16px; }
    .product-variants .pv-row { display: block; margin-top: 12px; }
    .pv-row-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 0; margin-bottom: 7px; }
    .pv-series { margin-top: 0; text-align: right; }
    .pv-row-content .pv-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pv-row:not(.pv-row-capacity) .pv-options { display: flex; }
    .pv-row:not(.pv-row-capacity) .pv-option { flex: 1 1 auto; }
    .product-variants .pv-option { padding: 8px; min-width: 0; }
    body .pv-blocker.blocker { padding: 20px 0 0; display: flex; align-items: flex-end; }
    .pv-blocker.blocker::before { display: none; }
    .pv-blocker .pv-modal { width: 100%; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 14px 14px 0 0; margin: 0; }
    .pv-modal-header { padding: 20px 16px 16px; }
    .pv-modal .pv-modal-header h2 { font-size: 21px; }
    .pv-modal-series { padding: 0 16px; }
    .pv-modal-group { display: block; padding: 16px 0; }
    .pv-modal-group-heading { margin-bottom: 10px; }
    .pv-modal-group .pv-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pv-modal .pv-option { min-width: 0; padding: 8px 5px; font-size: 13px; }
    .pv-modal .pv-option-details { font-size: 11px; }
    .pv-selected-product { gap: 12px; padding: 12px 16px; }
    .pv-selected-product > img { width: 78px; height: 76px; }
    .pv-product-name { font-size: 12px; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .pv-prices { gap: 5px 14px; }
    .pv-prices strong { font-size: 18px; }
    .pv-prices span { font-size: 11px; }
    .pv-modal-footer { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .pv-selection { font-size: 12px; }
    .pv-modal-actions { gap: 8px; }
    .pv-modal .pv-go { flex: 1; }
    .pv-cancel, .pv-modal .pv-go { padding: 10px 14px; }
}
@media (max-width: 380px) {
    .pv-modal-group .pv-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pv-selected-product > img { width: 65px; }
    .pv-prices strong { font-size: 16px; }
}
