/* Figma purchase-widget variant. Shared by the two existing product templates. */
.pcd-buy--widget{--widget-blue:#0866ff;--widget-ink:#102631;--widget-line:#ededf0;--widget-muted:#687276;--widget-soft:#f6f6f8;gap:20px;min-width:0}
body.productview .pcd-buy--widget .pcd-price-card{background:#fff;border:1px solid var(--widget-line);border-radius:24px;overflow:hidden;gap:0}
body.productview .pcd-buy--widget .pcd-price-top{padding:26px 26px 22px;border:0;border-radius:0;background:transparent;gap:16px}
.pcd-buy--widget .pcd-price{font-size:34px;line-height:1.12;display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:8px}
.pcd-buy--widget .pcd-price .pcd-price-old{font-size:17px;margin-left:auto;color:var(--widget-ink);font-weight:600}
body.productview .pcd-buy--widget .pcd-stock{display:inline-flex;max-width:100%;box-sizing:border-box;padding:5px 10px;margin-top:14px;gap:7px;border-radius:24px;background:#e7fff2;font-family:Onest,Arial,sans-serif}
body.productview .pcd-buy--widget .pcd-stock .in,body.productview .pcd-buy--widget .pcd-stock .low{font-size:12px;line-height:1.4;white-space:normal}
.pcd-buy--widget .pcd-stock-ic{width:17px;height:17px;align-self:flex-start}
.pcd-buy--widget .pcd-stock:not(.pcd-stock--in){background:var(--widget-soft)}
.pcd-buy--widget .pcd-stock .low{color:#af3828}
.pcd-buy--widget .pcd-credit-row{margin:0;min-width:0}
body.productview .pcd-buy--widget button.pcd-credit{display:flex;flex-direction:column;gap:2px;width:100%;min-height:54px;padding:9px 12px;border-radius:8px;background:#eef7ff;color:var(--widget-blue);font-size:14px;line-height:1.3;white-space:normal;box-shadow:none}
.pcd-buy--widget .pcd-widget-credit-title{font-weight:650}
.pcd-buy--widget .pcd-widget-credit-payment{font-weight:400}
.pcd-buy--widget button.pcd-credit:hover{background:#e1efff;border-color:#9ac3ff}
.pcd-buy--widget .pcd-buy-row__default,.pcd-buy--widget .pcd-buy-row__incart{gap:12px}
body.productview .pcd-buy--widget .pcd-buy-row .pcd-btn--primary{height:54px;min-height:54px;border-radius:9px;background:var(--widget-blue);color:#fff;box-shadow:none;font-size:16px}
body.productview .pcd-buy--widget .pcd-cart-btn{height:54px;width:70px;flex:0 0 70px;border:1px solid var(--widget-blue);border-radius:9px;color:var(--widget-blue)}
.pcd-buy--widget .pcd-cart-btn:hover{background:#eef7ff}
body.productview .pcd-buy--widget .pcd-consult{margin:0 26px;padding:22px 0 24px;gap:16px;border-top:1px solid var(--widget-line);border-radius:0;background:transparent;flex-direction:row;align-items:center}
.pcd-buy--widget .pcd-consult-text b{font-size:16px;white-space:normal;line-height:1.3}
.pcd-buy--widget .pcd-consult-text span{font-size:12px;line-height:1.4}
body.productview .pcd-buy--widget .pcd-consult .pcd-btn--call{width:auto;max-width:50%;flex:0 0 auto;min-height:44px;height:auto;padding:12px 16px;background:linear-gradient(105deg,#9beef5,#b6ffc6);color:var(--widget-ink);border:0;border-radius:7px;font-size:14px;white-space:normal;line-height:1.3}
.pcd-buy--widget .pcd-btn--call:hover{filter:brightness(.97)}
.pcd-widget-delivery{border:1px solid var(--widget-line);border-radius:24px;padding:23px 24px;background:#fff}
.pcd-widget-delivery__head{display:flex;align-items:flex-start;gap:14px}
.pcd-widget-delivery__head b{font-size:16px;line-height:1.35;color:var(--widget-ink)}
.pcd-widget-delivery__head p{font-size:13px;line-height:1.45;margin:5px 0 0;color:#41494d}
.pcd-widget-delivery__icon{display:grid;place-items:center;background:var(--widget-soft);border-radius:8px;flex:0 0 44px;height:44px}
.pcd-widget-delivery__icon img{object-fit:contain;opacity:.7}
.pcd-widget-delivery__action{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:17px 0 0;padding:15px 0 0;border:0;border-top:1px solid var(--widget-line);color:var(--widget-blue);background:transparent;text-align:left;font:600 13px/1.4 Onest,Arial,sans-serif;cursor:pointer}
.pcd-widget-delivery__action span{font-size:24px;line-height:1}
.pcd-buy--widget .pcd-widget-marketplaces{background:var(--widget-soft);padding:20px 24px;border-radius:18px;gap:12px;align-items:center;flex-direction:row;flex-wrap:nowrap}
.pcd-widget-marketplaces__text{flex:1;min-width:0;color:var(--widget-ink)}
.pcd-widget-marketplaces__text b,.pcd-widget-marketplaces__text span{display:block}
.pcd-widget-marketplaces__text b{font-size:15px;line-height:1.3}
.pcd-widget-marketplaces__text span{font-size:12px;margin-top:5px}
.pcd-buy--widget .pcd-widget-marketplaces .pcd-mp{padding:0;height:44px;border:0;border-radius:6px;background:transparent;flex:0 0 44px}
.pcd-widget-marketplaces .pcd-mp>span{display:none}
.pcd-buy--widget .pcd-widget-marketplaces img{width:44px;height:44px;border-radius:5px}
.pcd-widget-trust{display:flex;align-items:center;gap:16px;padding:22px 20px;border-radius:18px;background:var(--widget-soft);color:var(--widget-ink)}
.pcd-widget-trust__shield{flex:0 0 42px}
.pcd-widget-trust>div{min-width:0}
.pcd-widget-trust b{display:block;font-size:23px;font-weight:800;line-height:1.1;white-space:nowrap}
.pcd-widget-trust span:not(.pcd-widget-trust__shield){display:block;font-size:11px;line-height:1.35;margin-top:5px}
.pcd-widget-trust__warranty{border-left:1px solid #d7dade;padding-left:16px;flex:1}
.pcd-widget-trust__warranty b{font-size:20px}
.pcd-widget-trust__warranty strong{display:inline-block;background:#ffe484;color:#142b35;font-size:11px;line-height:1.2;margin-top:5px;font-weight:650}
.pcd-buy--widget :is(button,a,input):focus-visible,.pcd-widget-dock button:focus-visible{outline:3px solid var(--widget-blue,#0866ff);outline-offset:3px}
.pcd-buy--widget .pcd-cart-btn:focus-within{outline:3px solid var(--widget-blue);outline-offset:3px}
.pcd-widget-credit-calc[hidden],.pcd-widget-dock[hidden]{display:none!important}
.pcd-widget-credit-calc{color:var(--widget-ink);margin:0}
.pcd-widget-credit-calc__summary{display:flex;justify-content:space-between;gap:12px;font-size:12px;align-items:baseline}
.pcd-widget-credit-calc__summary b{color:var(--widget-blue);font-size:17px}
.pcd-widget-credit-calc__summary output{color:var(--widget-muted)}
.pcd-widget-credit-calc input[type=range]{appearance:none;width:100%;height:5px;border-radius:4px;background:linear-gradient(to right,var(--widget-blue) 0 var(--widget-range-fill),#e5e7e9 var(--widget-range-fill) 100%);margin:20px 0 11px;cursor:pointer}
body.productview .pcd-buy--widget .pcd-widget-credit-calc input[type=range]{min-height:5px;height:5px;border:0;padding:0;box-sizing:border-box}
.pcd-widget-credit-calc input::-webkit-slider-thumb{appearance:none;border:0;border-radius:50%;height:20px;width:20px;background:var(--widget-blue);box-shadow:none}
.pcd-widget-credit-calc input::-moz-range-thumb{border:0;border-radius:50%;height:20px;width:20px;background:var(--widget-blue)}
.pcd-widget-credit-calc__bounds{display:flex;justify-content:space-between;font-size:11px;color:#777}
.pcd-widget-credit-calc__note{font-size:11px;line-height:1.4;color:var(--widget-muted);margin:10px 0 0}
.pcd-widget-credit-error{margin:0;font-size:13px;line-height:1.4;color:#af3828}
.pcd-buy--widget button.pcd-credit:disabled{opacity:.65;cursor:wait}
.pcd-widget-dock{display:none}
@media(max-width:767px){
 body.productview .pcd-buy--widget{gap:16px}
 body.productview .pcd-buy--widget .pcd-price-top{padding:22px 20px 20px;gap:16px}
 body.productview .pcd-buy--widget .pcd-price{font-size:30px}
 body.productview .pcd-buy--widget .pcd-price-old{font-size:15px}
 body.productview .pcd-buy--widget .pcd-consult{margin:0 20px;padding:20px 0;gap:10px}
 body.productview .pcd-buy--widget .pcd-consult-text b{font-size:14px}
 body.productview .pcd-buy--widget .pcd-consult-text span{font-size:11px}
 body.productview .pcd-buy--widget .pcd-btn--call{font-size:13px;padding:11px 13px;min-height:44px}
 .pcd-widget-delivery{padding:22px 20px}
 .pcd-widget-trust{gap:10px;padding:20px 14px}
 .pcd-widget-trust__shield{flex-basis:32px}.pcd-widget-trust__shield img,.pcd-widget-trust__shield svg{width:32px;height:40px}
 .pcd-widget-trust b{font-size:22px}.pcd-widget-trust__warranty{padding-left:12px}.pcd-widget-trust__warranty b{font-size:18px}
 .pcd-buy--widget .pcd-widget-marketplaces{padding:20px;gap:10px}
 .pcd-widget-marketplaces__text b{font-size:14px}.pcd-widget-marketplaces__text span{font-size:11px}
 body.pcd-widget-enabled{padding-bottom:94px}
 .pcd-widget-dock{position:fixed;bottom:0;left:0;right:0;z-index:150;display:flex;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -4px 18px #10263114;border-top:1px solid #ededf0}
 .pcd-widget-dock button{border:1px solid #0866ff;border-radius:8px;min-height:48px;cursor:pointer;font:600 15px Onest,Arial,sans-serif}
 .pcd-widget-dock__buy{flex:1;background:#0866ff;color:#fff}
 .pcd-widget-dock__cart{flex:0 0 56px;background:#fff;color:#0866ff;display:grid;place-items:center}
 body.pcd-widget-dock-visible #mob-tabbar{visibility:hidden;pointer-events:none}
}
@media(prefers-reduced-motion:reduce){.pcd-buy--widget *{transition:none!important;animation:none!important}}

/* Price amounts stay together at every widget width. */
body.productview .pcd-buy--widget .pcd-price-card{container-type:inline-size}
body.productview .pcd-buy--widget .pcd-price{display:flex;flex-wrap:nowrap;align-items:baseline;gap:12px;font-size:clamp(24px,8cqw,40px)}
body.productview .pcd-buy--widget .pcd-price-current{display:inline-flex;align-items:baseline;gap:3px;white-space:nowrap;min-width:0;font:inherit;flex:0 1 auto}
body.productview .pcd-buy--widget .pcd-price-current .price{font:inherit;letter-spacing:inherit;white-space:nowrap}
body.productview .pcd-buy--widget .pcd-price-current .currency-sign{font-size:.86em}
body.productview .pcd-buy--widget .pcd-price .pcd-price-old{flex:0 0 auto;white-space:nowrap;margin-left:auto;font-size:clamp(12px,3.8cqw,18px);line-height:1.2}

/* Desktop payment/term composition from the supplied Figma reference. */
.pcd-buy--widget .pcd-widget-credit-calc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);align-items:start;gap:18px}
.pcd-widget-credit-calc__payment{min-width:0}
.pcd-widget-credit-calc__label{display:block;font-size:clamp(11px,3cqw,18px);line-height:1.4;color:#444;margin-bottom:8px;white-space:nowrap}
.pcd-widget-credit-calc__amount{display:flex;align-items:baseline;white-space:nowrap;font-size:clamp(12px,3.8cqw,24px);line-height:1.25;color:#444}
.pcd-widget-credit-calc__amount b{color:var(--widget-blue);font-size:clamp(20px,5.1cqw,34px);font-weight:700}
.pcd-widget-credit-calc__term{min-width:0}
.pcd-widget-credit-calc__term output{display:block;text-align:right;color:#444;font-size:clamp(12px,3cqw,18px);line-height:1.4;margin-bottom:14px}
body.productview .pcd-buy--widget .pcd-widget-credit-calc input[type=range]{display:block;margin:0 0 12px}
.pcd-widget-credit-calc__bounds{font-size:clamp(11px,3cqw,18px);line-height:1.3;color:#999}
@media(max-width:767px){
 .pcd-buy--widget .pcd-widget-credit-calc{grid-template-columns:1fr 1fr;gap:0 12px}
 .pcd-widget-credit-calc__label{display:none}
 .pcd-widget-credit-calc__amount{font-size:12px}.pcd-widget-credit-calc__amount b{font-size:17px}
 .pcd-widget-credit-calc__term{display:contents}
 .pcd-widget-credit-calc__term output{grid-column:2;grid-row:1;font-size:12px;margin:0;align-self:baseline}
 body.productview .pcd-buy--widget .pcd-widget-credit-calc input[type=range]{grid-column:1/-1;grid-row:2;margin:20px 0 12px}
 .pcd-widget-credit-calc__bounds{grid-column:1/-1;grid-row:3;font-size:11px}
}

/* Delivery card follows the supplied reference, including the inline arrow. */
.pcd-buy--widget .pcd-widget-delivery{padding:24px;border-radius:24px}
.pcd-buy--widget .pcd-widget-delivery__head{gap:20px}
.pcd-buy--widget .pcd-widget-delivery__head>div{min-width:0}
.pcd-buy--widget .pcd-widget-delivery__head b{font-size:clamp(16px,4cqw,20px);font-weight:650;line-height:1.3}
.pcd-buy--widget .pcd-widget-delivery__head p{font-size:14px;line-height:1.4;margin-top:7px;color:#444}
.pcd-buy--widget .pcd-widget-delivery__icon{flex-basis:48px;height:48px;border-radius:10px}
.pcd-buy--widget .pcd-widget-delivery__icon img{width:26px;height:26px;opacity:.7}
body.productview .pcd-buy--widget button.pcd-widget-delivery__action{justify-content:flex-start;gap:20px;margin-top:22px;padding:18px 0 0;border-top:1px solid #e7e7e9;font-size:15px;font-weight:650;line-height:1.4}
.pcd-widget-delivery__action svg{flex:0 0 16px;width:16px;height:16px}
@media(max-width:767px){
 .pcd-buy--widget .pcd-widget-delivery{padding:22px 20px}
 .pcd-buy--widget .pcd-widget-delivery__head{gap:16px}
 .pcd-buy--widget .pcd-widget-delivery__head b{font-size:16px}
 .pcd-buy--widget .pcd-widget-delivery__head p{font-size:13px}
 body.productview .pcd-buy--widget button.pcd-widget-delivery__action{font-size:12px;gap:16px}
}

/* Use the storefront button primitive to avoid the legacy unclassified-button reset. */
body.productview .pcd-buy--widget button.pcd-widget-delivery__action{height:auto;min-height:0;border-radius:0;background:transparent;color:var(--widget-blue);box-shadow:none}
@media(min-width:768px){.pcd-buy--widget .pcd-widget-delivery__head b{font-size:18px}}

/* Service and warranty card from the supplied reference. */
.pcd-buy--widget .pcd-widget-trust{display:grid;grid-template-columns:48px minmax(0,1fr) minmax(0,1.65fr);align-items:center;gap:16px;padding:24px;border-radius:24px;background:#f6f6f9}
.pcd-buy--widget .pcd-widget-trust__shield{display:block;line-height:0}
.pcd-buy--widget .pcd-widget-trust__shield svg{width:48px;height:56px;max-width:100%}
.pcd-buy--widget .pcd-widget-trust>div>b{font-size:26px;font-weight:800;line-height:1.12;letter-spacing:-.4px}
.pcd-buy--widget .pcd-widget-trust>div>span{font-size:12px;line-height:1.4;margin-top:8px;color:#444}
.pcd-buy--widget .pcd-widget-trust__warranty{align-self:stretch;display:flex;flex-direction:column;justify-content:center;border-left:1px solid #bfc1c3;padding-left:16px}
.pcd-buy--widget .pcd-widget-trust__warranty>b{font-size:25px}
.pcd-buy--widget .pcd-widget-trust__warranty>b small{font-size:.69em;font-weight:650;letter-spacing:0}
.pcd-buy--widget .pcd-widget-trust__warranty>strong{align-self:flex-start;display:inline-block;margin-top:5px;padding:2px 8px;border-radius:999px;background:#ffda60;color:#102631;font-size:12px;line-height:1.15;font-weight:650;white-space:nowrap}
.pcd-buy--widget .pcd-widget-trust__warranty>span{margin-top:5px}
@media(max-width:767px){
 .pcd-buy--widget .pcd-widget-trust{grid-template-columns:32px minmax(74px,.9fr) minmax(0,1.3fr);gap:10px;padding:20px 14px;border-radius:20px}
 .pcd-buy--widget .pcd-widget-trust__shield svg{width:32px;height:40px}
 .pcd-buy--widget .pcd-widget-trust>div>b{font-size:23px}
 .pcd-buy--widget .pcd-widget-trust>div>span{font-size:11px;margin-top:6px}
 .pcd-buy--widget .pcd-widget-trust__warranty{padding-left:12px}
 .pcd-buy--widget .pcd-widget-trust__warranty>b{font-size:20px}
 .pcd-buy--widget .pcd-widget-trust__warranty>strong{font-size:10px;padding:2px 6px}
}

/* Scale warranty label to its own card, including narrow desktop columns. */
.pcd-buy--widget .pcd-widget-trust{container-type:inline-size}
.pcd-buy--widget .pcd-widget-trust__warranty>b{font-size:clamp(18px,6.6cqw,25px)}
.pcd-buy--widget .pcd-widget-trust__warranty>strong{font-size:clamp(10px,3.2cqw,12px)}
@media(max-width:767px){
 .pcd-buy--widget .pcd-widget-trust{grid-template-columns:32px minmax(0,.8fr) minmax(0,1.5fr);gap:8px}
 .pcd-buy--widget .pcd-widget-trust__warranty{padding-left:10px}
}

/* Marketplace card matches the supplied reference. */
.pcd-buy--widget .pcd-widget-marketplaces{container-type:inline-size;display:flex;align-items:center;flex-wrap:nowrap;gap:16px;padding:24px;border-radius:24px;background:#f6f6f9}
.pcd-buy--widget .pcd-widget-marketplaces__text{flex:1 1 auto;min-width:0}
.pcd-buy--widget .pcd-widget-marketplaces__text b{font-size:clamp(12px,4.8cqw,18px);font-weight:650;line-height:1.3;color:#102631}
.pcd-buy--widget .pcd-widget-marketplaces__text span{font-size:clamp(11px,3.8cqw,14px);line-height:1.4;margin-top:6px;color:#444}
.pcd-buy--widget .pcd-widget-marketplaces .pcd-mp{flex:0 0 48px;width:48px;height:48px;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none}
.pcd-buy--widget .pcd-widget-marketplaces .pcd-mp img{display:block;width:48px;height:48px;max-width:100%;border-radius:6px;object-fit:contain}
.pcd-buy--widget .pcd-widget-marketplaces .pcd-mp:hover{opacity:.85}
@media(max-width:767px){
 .pcd-buy--widget .pcd-widget-marketplaces{padding:20px;gap:12px;border-radius:20px}
 .pcd-buy--widget .pcd-widget-marketplaces .pcd-mp{flex-basis:40px;width:40px;height:40px}
 .pcd-buy--widget .pcd-widget-marketplaces .pcd-mp img{width:40px;height:40px}
}
