/* Native checkout markup remains owned by Webasyst. */
.px-cart-sync{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-bottom:20px;border-color:var(--px-brand)}
.px-cart-sync>p{flex:1 1 240px;margin:0;font-size:14px}.px-cart-sync>.px-error{flex:1 0 100%;font-size:13px}
@media(max-width:639px){.px-cart-sync>.px-button{width:100%}}
/* Native .wa-button controls are not .px-button: style their real contract. */
#px-order-form .wa-button,#px-order-cart .wa-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:10px 16px;border:1px solid var(--px-line);border-radius:var(--px-radius);background:var(--px-soft);color:var(--px-primary);font:700 14px/1.4 var(--px-font);text-align:center;white-space:normal;vertical-align:middle;box-shadow:none}
#px-order-form .wa-submit-button{width:100%;background:var(--px-primary);border-color:var(--px-primary);color:#fff;min-height:48px;font-size:15px}
#px-order-form .wa-button:hover:not(:disabled),#px-order-cart .wa-button:hover:not(:disabled){filter:brightness(.96)}
#px-order-form .wa-button:disabled,#px-order-cart .wa-button:disabled{background:#e8eeef;border-color:#dce5e6;color:#7b8d91;filter:none;cursor:not-allowed}
#px-order-form .wa-button:focus-visible,#px-order-cart .wa-button:focus-visible{outline:3px solid var(--px-brand);outline-offset:3px}
#px-order-form .wa-step-section{min-width:0;border-bottom:1px solid var(--px-line);padding-bottom:20px;margin-bottom:20px}
#px-order-form .wa-step-section:last-child{border:0;padding-bottom:0;margin-bottom:0}
#px-order-form .wa-section-header{margin-bottom:14px;line-height:1.4}
#px-order-form .wa-section-header :is(h2,h3){font-size:20px;margin:0}
#px-order-form :is(.wa-field,.wa-value,.wa-fields-group,.wa-section-body){min-width:0;max-width:100%}
#px-order-form :is(.wa-name,.wa-label){font-size:13px;line-height:1.5;margin-bottom:6px;color:var(--px-muted)}
#px-order-form :is(input.wa-input,select.wa-select,textarea.wa-textarea){font-size:16px;line-height:1.4;min-height:44px;max-width:100%;border-radius:9px}
#px-order-form .wa-error-text{font-size:13px;color:var(--px-error);line-height:1.5;margin-top:5px}
#px-order-form .wa-error{border-color:var(--px-error)}
#px-order-cart :is(.js-product-quantity,.wa-sku){font-weight:800}
#px-order-cart :is(.s-minus-button,.s-plus-button){width:36px;min-width:36px;min-height:40px;padding:5px;border-radius:8px}
/* Keep the minus visible when native Quantity replaces its icon with a limit label. */
#px-order-cart .s-minus-button{position:relative}
#px-order-cart .s-minus-button::before{content:"\2212";display:block;font-size:24px;font-weight:600;line-height:1;pointer-events:none}
#px-order-cart .s-minus-button>.wa-icon-wrapper{display:none}
#px-order-cart .s-minus-button>.js-min-description{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#px-order-cart .s-minus-button.is-locked{color:#95a6aa;cursor:default}
#px-order-cart .wa-coupon-section .wa-button{font-size:13px;padding-inline:12px}
.px-order-address-menu.ui-autocomplete{z-index:1000;max-height:240px;overflow-y:auto;overflow-x:hidden;list-style:none;margin:4px 0;padding:5px;border:1px solid var(--px-line);border-radius:10px;background:var(--px-surface);box-shadow:0 8px 24px #203b411a;font:14px/1.5 var(--px-font);color:var(--px-text)}
.px-order-address-menu .ui-menu-item{margin:0;padding:9px 10px;cursor:pointer;overflow-wrap:anywhere}
.px-order-address-menu .ui-state-active,.px-order-address-menu .ui-state-focus{background:var(--px-soft);color:var(--px-primary);border-radius:6px}
@media(max-width:639px){
 #px-order-form .wa-section-header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px}
 #px-order-form .wa-section-header :is(h2,h3){font-size:19px}
 #px-order-form .wa-step-section{padding-bottom:18px;margin-bottom:18px}
 #px-order-form .wa-submit-button{min-height:48px;padding-inline:12px}
 #px-order-cart .wa-coupon-section :is(.wa-section-body,.wa-coupon-form){display:flex;align-items:start;flex-wrap:wrap;gap:8px}
 #px-order-cart .wa-coupon-section input{flex:1 1 130px;min-width:0}
 .wa-order-dialog .wa-dialog-body{max-width:calc(100vw - 24px)}
}
#px-order-cart .wa-details > .wa-sku { display: block; margin: 8px 0 5px; color: var(--px-ink, #163c4b); font-size: 16px; font-weight: 800; }
#px-order-cart button.js-edit-product { padding: 4px 0; border: 0; background: none; color: var(--px-primary, #138595); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#px-order-cart button.js-edit-product:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wa-order-dialog.px-cart-edit { font-family: var(--px-font, system-ui, sans-serif); color: var(--px-ink, #163c4b); }
.wa-order-dialog.px-cart-edit .wa-dialog-body { width: min(560px, calc(100vw - 24px)); max-width: calc(100vw - 24px); border-radius: 18px; background: #fff; box-shadow: 0 20px 80px #173c4b33; }
.wa-order-dialog.px-cart-edit .wa-dialog-body .wa-dialog-header { display: block; position: relative; padding: 24px 55px 16px 24px; }
.wa-order-dialog.px-cart-edit .wa-dialog-body .wa-dialog-header h2 { display: block; margin: 0; font-size: 22px; line-height: 1.25; }
.px-cart-edit__close { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: inherit; font-size: 30px; cursor: pointer; }
.wa-order-dialog.px-cart-edit .wa-dialog-body .wa-dialog-content { padding: 18px 24px; }
.px-cart-edit__name { margin: 0 0 20px; line-height: 1.5; overflow-wrap: anywhere; }
.px-cart-edit select { width: 100%; font-weight: 750; }
.px-cart-edit__price { margin: 14px 0; }
.px-cart-edit__quantity { margin: 12px 0; }
.px-cart-edit__notice, .px-cart-edit__error { padding: 12px; border-radius: 10px; background: #edf7f8; line-height: 1.5; overflow-wrap: anywhere; }
.px-cart-edit__notice:empty { display: none; }
.px-cart-edit__error { background: #fff0ed; color: #8d3425; }
.wa-order-dialog.px-cart-edit .wa-dialog-body.with-footer .wa-dialog-footer { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 24px; border-top: 1px solid #deeaec; }
.px-cart-edit .wa-dialog-footer .px-button { flex: 1 1 120px; }
.px-cart-edit [hidden] { display: none !important; }
@media (max-width: 480px) {
    .wa-order-dialog.px-cart-edit .wa-dialog-body .wa-dialog-header { padding-left: 18px; }
    .wa-order-dialog.px-cart-edit .wa-dialog-body .wa-dialog-content { padding: 16px 18px; }
    .wa-order-dialog.px-cart-edit .wa-dialog-body.with-footer .wa-dialog-footer { padding: 14px 18px; }
}

/* Shipping weight stays in core data/calculation; only its presentation is removed. */
#px-order-cart .wa-details>.wa-weight,#px-order-cart #wa-cart-weight{display:none!important}
#px-order-cart .wa-details>.wa-actions{display:flex!important;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-top:4px}
#px-order-cart .wa-details>.wa-actions>.js-edit-product{font-size:13px;line-height:1.4;white-space:normal;text-align:left;min-height:32px}
#px-order-cart .wa-quantity-actions .js-edit-product{display:none!important}

/* Native checkout controls, including short/long payment lists, retain their handlers. */
#px-order-form .wa-step-section>.wa-section-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px}
#px-order-form .wa-step-section>.wa-section-header>*{margin:0}
#px-order-form .wa-section-header .wa-login-link{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid var(--px-line);border-radius:8px;background:var(--px-soft);font-size:13px;line-height:1.4;font-weight:600;text-align:left;white-space:normal}
#px-order-form .wa-agreement-wrapper{margin-top:12px;color:var(--px-muted);font-size:12px;line-height:1.6}
#px-order-form .wa-agreement-wrapper a,#px-order-form .wa-terms-section a{text-decoration:underline;text-underline-offset:3px}
#px-order-form .wa-types-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
#px-order-form .wa-types-list .wa-type-wrapper{width:auto;margin:0;padding:14px 12px;border:1px solid var(--px-line);border-radius:10px;background:var(--px-surface);box-shadow:none;line-height:1.4}
#px-order-form .wa-types-list .wa-type-wrapper.is-active{border-color:var(--px-primary);background:var(--px-soft);box-shadow:inset 0 0 0 1px var(--px-primary)}
#px-order-form .wa-types-list .wa-type-wrapper .wa-name{font-size:15px;font-weight:700}
#px-order-form .wa-types-list .wa-type-wrapper .wa-date{font-size:12px;color:var(--px-muted)}
#px-order-form .wa-dropdown.full-line .wa-dropdown-toggle{min-height:44px;padding:10px 34px 10px 12px;border:1px solid var(--px-line);border-radius:9px;background:var(--px-surface);font-size:14px;line-height:1.5;white-space:normal}
#px-order-form .wa-dropdown .wa-dropdown-area{border:1px solid var(--px-line);border-radius:10px;background:var(--px-surface);box-shadow:0 8px 24px #203b411a;max-height:280px;overflow:auto}
#px-order-form .wa-dropdown .wa-dropdown-item{padding:10px 12px;font-size:14px;line-height:1.5}
#px-order-form .wa-dropdown .wa-dropdown-item:hover{background:var(--px-soft)}
#px-order-form .wa-methods-list{display:grid;gap:10px}
#px-order-form .wa-methods-list .wa-method-wrapper{margin:0;padding:14px;border:1px solid var(--px-line);border-radius:10px;background:var(--px-surface);box-shadow:none}
#px-order-form .wa-methods-list .wa-method-wrapper.is-active{border-color:var(--px-primary);background:var(--px-soft);box-shadow:inset 0 0 0 1px var(--px-primary)}
#px-order-form .wa-methods-list .wa-method{display:flex;align-items:flex-start;gap:12px}
#px-order-form .wa-methods-list .wa-method>*{display:block;min-width:0;padding:0}
#px-order-form .wa-methods-list .wa-checkbox-wrapper{flex:0 0 20px;width:20px;line-height:24px}
#px-order-form .wa-methods-list .wa-checkbox-wrapper input{margin:3px 0 0}
#px-order-form .wa-methods-list .wa-image-wrapper{flex:0 0 40px;width:40px;padding:0}
#px-order-form .wa-methods-list .wa-image-wrapper img{display:block;width:auto;max-width:40px;max-height:36px;object-fit:contain}
#px-order-form .wa-methods-list .wa-method-body{flex:1;min-width:0}
#px-order-form .wa-methods-list .wa-payment-name{font-size:15px;line-height:1.45;font-weight:700}
#px-order-form .wa-methods-list .wa-description{margin-top:8px;color:var(--px-muted);font-size:13px;line-height:1.55;overflow-wrap:anywhere}
#px-order-form .wa-methods-list .wa-description p{margin:8px 0 0}
#px-order-form .wa-terms-section label{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.6}
#px-order-form .wa-terms-section input{flex:none;margin-top:3px}
#px-order-cart .wa-column-image{width:64px}
#px-order-cart .wa-image-section{width:64px;text-align:center}
#px-order-cart .wa-image-section img{display:inline-block;width:auto;height:auto;max-width:64px;max-height:80px;object-fit:contain}

/* Size rows by the cart column, which can be narrow even on a wide screen. */
#px-order-cart{container-type:inline-size;container-name:px-cart}
#px-order-cart .wa-order-cart-wrapper .wa-products .wa-product .wa-product-body{display:grid;grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:"image details details" "quantity quantity price";gap:16px;align-items:start;width:100%}
#px-order-cart .wa-order-cart-wrapper .wa-products .wa-product .wa-product-body>*{display:block;min-width:0;width:auto;margin:0;padding:0}
#px-order-cart .wa-order-cart-wrapper .wa-product-body>.wa-column-image{grid-area:image}
#px-order-cart .wa-order-cart-wrapper .wa-product-body>.wa-column-details{grid-area:details}
#px-order-cart .wa-order-cart-wrapper .wa-products .wa-product .wa-product-body>.wa-column-quantity{grid-area:quantity;width:148px;text-align:left}
#px-order-cart .wa-order-cart-wrapper .wa-product-body>.wa-column-price{grid-area:price;text-align:right}
#px-order-cart .wa-product-body .wa-image-section{width:100%;max-width:64px}
#px-order-cart .wa-product-body .wa-image-section a{display:flex;justify-content:center;width:100%}
#px-order-cart .wa-product-body .wa-image-section img{max-width:100%;max-height:80px}
#px-order-cart .wa-product-body .wa-details-section .wa-details .wa-name{display:block;margin:0;font-size:15px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
#px-order-cart .wa-product-body .wa-details>.wa-sku{margin:6px 0 2px;font-size:14px}
#px-order-cart .wa-product-body .wa-price-section .wa-price-total{font-size:16px;font-weight:700;line-height:1.5;white-space:normal}
#px-order-cart .wa-product-body .wa-product-fractional-prices{margin-right:0;text-align:center}
@container px-cart (min-width:420px){
 #px-order-cart .wa-order-cart-wrapper .wa-products .wa-product .wa-product-body{grid-template-columns:64px minmax(0,1fr) 90px;grid-template-areas:"image details price" ". quantity .";gap:12px 16px}
}
@container px-cart (min-width:620px){
 #px-order-cart .wa-order-cart-wrapper .wa-products .wa-product .wa-product-body{grid-template-columns:64px minmax(0,1fr) 148px 90px;grid-template-areas:"image details quantity price";gap:16px}
}

/* Auth and delivery dialogs live next to the page, rather than inside its form. */
.px-page>.wa-order-dialog:not(.px-cart-edit){font-family:var(--px-font);color:var(--px-text)}
.px-page>.wa-order-dialog:not(.px-cart-edit) .wa-dialog-body{max-width:calc(100vw - 32px);border:1px solid var(--px-line);border-radius:16px;box-shadow:0 20px 70px #203b4133}
.px-page>.wa-order-dialog:not(.px-cart-edit) .wa-dialog-header{position:relative;padding:22px 60px 18px 24px;border-bottom-color:var(--px-line)}
.px-page>.wa-order-dialog:not(.px-cart-edit) .wa-dialog-header .wa-header{font-size:22px;line-height:1.3}
.px-page>.wa-order-dialog:not(.px-cart-edit) .wa-dialog-header .wa-close-wrapper{position:absolute;top:13px;right:12px;width:32px;height:32px;padding:0;display:grid;place-items:center;border-radius:8px;color:var(--px-muted)}
.px-page>.wa-order-dialog:not(.px-cart-edit) .wa-close-wrapper svg{width:12px;height:12px}
.px-page>.wa-order-dialog:not(.px-cart-edit) :is(.wa-button,.wa-login-submit,.wa-signup-submit,.wa-forgotpassword-submit){display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 18px;border:1px solid var(--px-line);border-radius:10px;background:var(--px-soft);color:var(--px-primary);font:700 14px/1.4 var(--px-font);white-space:normal;box-shadow:none;cursor:pointer}
.px-page>.wa-order-dialog.wa-auth-dialog-wrapper :is(.wa-login-submit,.wa-signup-submit,.wa-forgotpassword-submit){background:var(--px-primary);border-color:var(--px-primary);color:#fff}
.px-page>.wa-order-dialog:not(.px-cart-edit) :is(.wa-button,.wa-login-submit,.wa-signup-submit,.wa-forgotpassword-submit):disabled{background:#e8eeef;border-color:#dce5e6;color:#7b8d91;cursor:not-allowed}
@media(max-width:480px){
 #px-order-form .wa-methods-list .wa-method-wrapper{padding:12px}
 #px-order-form .wa-methods-list .wa-method{gap:8px}
 #px-order-form .wa-methods-list .wa-image-wrapper{flex-basis:30px;width:30px}
 #px-order-form .wa-methods-list .wa-image-wrapper img{max-width:30px}
}

/* Native confirmation dialogs are appended to body, outside #px-order-cart. */
.px-page>.wa-order-dialog.wa-confirm-dialog{font-family:var(--px-font);color:var(--px-text)}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-body{width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 32px);border:1px solid var(--px-line);border-radius:16px;box-shadow:0 20px 70px #203b4133}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-body .wa-dialog-header{display:block;position:relative;padding:22px 60px 18px 24px;border-bottom:1px solid var(--px-line)}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-header .wa-header{display:block;font-size:22px;line-height:1.3;overflow-wrap:anywhere}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-header .wa-close-wrapper{display:block;position:absolute;top:13px;right:12px;width:32px;height:32px;padding:0;border-radius:8px;color:var(--px-muted);line-height:1}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-close-wrapper .wa-icon{display:none}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-close-wrapper::before,.px-page>.wa-order-dialog.wa-confirm-dialog .wa-close-wrapper::after{content:"";position:absolute;top:15px;left:9px;width:14px;height:2px;background:currentColor;border-radius:1px;transform:rotate(45deg);pointer-events:none}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-close-wrapper::after{transform:rotate(-45deg)}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-header .wa-close-wrapper:hover{background:var(--px-soft);color:var(--px-text)}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-body .wa-dialog-content{padding:20px 24px;line-height:1.6;overflow-wrap:anywhere}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-content p{margin:0}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-body .wa-dialog-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding:16px 24px 22px;border-top:1px solid var(--px-line)}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-footer .wa-button{display:inline-flex;align-items:center;justify-content:center;min-width:120px;min-height:44px;max-width:100%;margin:0;padding:10px 18px;border:1px solid var(--px-line);border-radius:10px;background:var(--px-surface);color:var(--px-text);font:700 14px/1.4 var(--px-font);white-space:normal;text-align:center;box-shadow:none;cursor:pointer}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-footer .js-confirm{background:var(--px-error);border-color:var(--px-error);color:#fff}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-footer .wa-button:hover:not(:disabled){filter:brightness(.96)}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-footer .wa-button:disabled{background:#e8eeef;border-color:#dce5e6;color:#7b8d91;cursor:not-allowed;filter:none}
.px-page>.wa-order-dialog.wa-confirm-dialog .wa-button:focus-visible{outline:3px solid var(--px-brand);outline-offset:3px}
@media(max-width:480px){
 .px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-body .wa-dialog-header{padding:20px 54px 16px 18px}
 .px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-header .wa-header{font-size:20px}
 .px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-body .wa-dialog-content{padding:18px}
 .px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-body .wa-dialog-footer{padding:16px 18px 18px}
 .px-page>.wa-order-dialog.wa-confirm-dialog .wa-dialog-footer .wa-button{flex:1 1 120px}
}
