.sapb-card{box-sizing:border-box;width:100%;max-width:980px;margin:20px auto;padding:24px;border:1px solid #dce9e7;border-radius:18px;background:#f7fbfa;color:#172d31;box-shadow:0 8px 30px #163c3410}.sapb-card *{box-sizing:border-box}.sapb-card h3{margin:0 0 20px;color:#087b79;font-size:25px}.sapb-field{margin:0 0 16px}.sapb-field label{display:block;margin-bottom:6px;font-weight:650}.sapb-field input:not([type=checkbox]),.sapb-field select,.sapb-field textarea{display:block;width:100%;min-height:45px;border:1px solid #c8d8d7;border-radius:8px;padding:10px;background:#fff;color:#172d31}.sapb-field input:focus,.sapb-field select:focus,.sapb-field textarea:focus{outline:2px solid #168e8a;outline-offset:2px}.sapb-field input[type=checkbox]{width:18px;height:18px;vertical-align:middle}.sapb-actions{display:flex;gap:12px;flex-wrap:wrap}.sapb-actions button{border:0;border-radius:8px;background:#087f7c;color:#fff;padding:13px 21px;font-weight:750;cursor:pointer}.sapb-note{font-size:14px;line-height:1.55;color:#496064}.sapb-live{font-size:21px;font-weight:750;color:#076c6b;min-height:30px}.sapb-audio-scroll{max-width:100%;overflow:auto;margin:15px 0}.sapb-audio{border-collapse:collapse;min-width:850px}.sapb-audio th,.sapb-audio td{padding:7px;border:1px solid #d6e5e2;text-align:center}.sapb-audio input{width:65px;padding:7px;border:1px solid #bbcfc9;border-radius:5px}.sapb-base{font-weight:750;font-size:22px}.sapb-card [hidden]{display:none!important}@media(max-width:600px){.sapb-card{padding:16px;border-radius:12px}.sapb-actions{display:grid}.sapb-actions button{width:100%}.sapb-card h3{font-size:22px}}

/* Match the original delivery module; the remaining forms retain their own styles. */
.portalsluchu-kasa-box.sapb-checkout{margin-top:20px;padding:15px;border:1px solid #ddd;box-sizing:border-box;max-width:100%;background:transparent;border-radius:0;box-shadow:none}
.sapb-checkout h3{margin:0 0 14px}.sapb-checkout p{margin:0 0 12px}.sapb-checkout label{display:block}.sapb-checkout input[type=radio]{display:inline-block;float:none;width:16px;height:16px;margin:0 7px 0 0;padding:0;vertical-align:middle;appearance:auto;accent-color:#168e8a}
.sapb-checkout [data-sapb-delivery-panel]{margin-left:15px;margin-bottom:10px}.sapb-checkout [hidden]{display:none!important}.sapb-checkout select[name=portalsluchu_delivery_salon]{display:block;box-sizing:border-box;max-width:320px;width:100%;min-height:45px;padding:10px;border:1px solid #ccd0d4;border-radius:2px;background:#fff;color:inherit;font:inherit}
.sapb-checkout .sapb-delivery-notice{color:#d63638;font-size:.9em;line-height:1.5;margin-top:5px}.sapb-checkout .sapb-delivery-description{color:#555;font-size:.9em;line-height:1.5;margin-top:5px}.sapb-checkout hr{margin:14px 0}.sapb-checkout .sapb-warranty{border:0;margin:0;padding:0;min-width:0}.sapb-checkout .sapb-warranty legend{padding:0;margin:0 0 8px;font-weight:600}

/* Aparatus seller form: visual compatibility with original Portalsluchu layout.
   All decisions and prices remain in the private, signed Hub API. */
.sapb-legacy-seller{--ps-brand:#0ea5a8;--ps-brand-dark:#0f766e;--ps-text:#0f172a;--ps-muted:rgba(15,23,42,.62);--ps-border:rgba(15,23,42,.12);--ps-radius:16px;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ps-text)}
.sapb-legacy-seller *{box-sizing:border-box}
.sapb-legacy-seller .ps-sell-layout{max-width:980px;margin:0 auto;display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}
.sapb-legacy-seller .ps-sidecard,.sapb-legacy-seller .ps-card{border:1px solid var(--ps-border);border-radius:var(--ps-radius);background:linear-gradient(180deg,#f8fafc 0%,#fff 100%);box-shadow:0 10px 24px rgba(0,0,0,.04);padding:14px 16px;min-width:0}
.sapb-legacy-seller .ps-card-title{font-weight:950;font-size:16px;letter-spacing:.2px;margin:0 0 10px}
.sapb-legacy-seller .ps-muted{color:var(--ps-muted);font-size:13px;line-height:1.45;margin:0}
.sapb-legacy-seller .ps-card-intro{margin-bottom:14px}
.sapb-legacy-seller .ps-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sapb-legacy-seller .ps-full{grid-column:1/-1}
.sapb-legacy-seller .ps-field{min-width:0;margin:0 0 12px}
.sapb-legacy-seller .ps-field label{display:block;font-weight:850;font-size:13px;margin:0 0 6px;color:rgba(15,23,42,.88)}
.sapb-legacy-seller .ps-field input:not([type="checkbox"]):not([type="file"]),.sapb-legacy-seller .ps-field select,.sapb-legacy-seller .ps-field textarea{width:100%;min-width:0;padding:12px;border-radius:12px;border:1px solid rgba(15,23,42,.18);background:#fff;font:inherit;font-size:15px;min-height:45px;outline:none;transition:box-shadow .15s,border-color .15s;color:var(--ps-text)}
.sapb-legacy-seller .ps-field textarea{min-height:140px;resize:vertical}
.sapb-legacy-seller .ps-field input:focus,.sapb-legacy-seller .ps-field select:focus,.sapb-legacy-seller .ps-field textarea:focus{border-color:rgba(14,165,168,.55);box-shadow:0 0 0 4px rgba(14,165,168,.14)}
.sapb-legacy-seller .ps-code-label{color:#ec8700!important}
.sapb-legacy-seller .ps-code-hint{margin-top:6px!important}
.sapb-legacy-seller .ps-promo{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px;min-height:128px;padding:18px 15px;border-radius:8px;background:#0085ad;box-shadow:0 4px 6px rgba(0,0,0,.10);color:#fff;font-size:14px;line-height:1.5}
.sapb-legacy-seller .ps-promo strong{font-size:16px;color:#fff}
.sapb-legacy-seller .ps-separator{margin:14px 0;border:0;border-top:1px solid rgba(15,23,42,.10)}
.sapb-legacy-seller .ps-attachments{margin-top:14px}
.sapb-legacy-seller .ps-attachments>.ps-muted{margin-bottom:10px}
.sapb-legacy-seller .ps-file-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px;align-items:center;padding:10px 0;border-bottom:1px dashed rgba(15,23,42,.12)}
.sapb-legacy-seller .ps-file-row:last-child{border:0}
.sapb-legacy-seller .ps-file-row>label{font-size:13px;font-weight:800}
.sapb-legacy-seller .ps-file-input{display:flex;align-items:center;gap:10px;flex-wrap:wrap;position:relative}
.sapb-legacy-seller .ps-file-native{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.sapb-legacy-seller .ps-file-name{font-size:13px;color:rgba(15,23,42,.62);font-weight:700;overflow-wrap:anywhere}
.sapb-legacy-seller .ps-actions,.sapb-legacy-seller .ps-contact-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:14px}
.sapb-legacy-seller .ps-btn{appearance:none;border:0;border-radius:999px;padding:14px 22px;min-height:52px;font-size:16px;font-weight:900;letter-spacing:.2px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;line-height:1.25}
.sapb-legacy-seller .ps-btn-primary{color:#fff;background:linear-gradient(180deg,var(--ps-brand),var(--ps-brand-dark));box-shadow:0 12px 22px rgba(14,165,168,.22)}
.sapb-legacy-seller .ps-btn-primary:hover{filter:brightness(1.04);transform:translateY(-1px)}
.sapb-legacy-seller .ps-btn-ghost{background:rgba(14,165,168,.10);color:rgba(15,23,42,.92);border:1px solid rgba(14,165,168,.35)}
.sapb-legacy-seller .ps-btn:focus-visible{outline:3px solid rgba(14,165,168,.4);outline-offset:2px}
.sapb-legacy-seller .ps-required{color:#b91c1c;font-weight:900}
.sapb-legacy-seller .ps-alert{margin:12px 0;padding:10px 12px;border:1px solid rgba(220,38,38,.35);border-radius:12px;font-size:13px;line-height:1.4}
.sapb-legacy-seller .ps-alert-danger{background:#fef2f2;color:#991b1b}
.sapb-legacy-seller [hidden]{display:none!important}
.sapb-legacy-seller .ps-contact-card{max-width:1100px;margin:18px auto;padding:16px 18px;border:1px solid rgba(14,165,168,.30);border-radius:16px;background:linear-gradient(180deg,#f0fdfa,#fff);box-shadow:0 10px 24px rgba(0,0,0,.06)}
.sapb-legacy-seller .ps-contact-title{font-size:18px;font-weight:900;margin:0 0 6px}
.sapb-legacy-seller .ps-contact-desc{margin:0 0 14px;color:var(--ps-muted);font-size:14px;line-height:1.45}
.sapb-legacy-seller .ps-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sapb-legacy-seller .ps-hint{font-size:12px;color:rgba(15,23,42,.55)}
@media(max-width:900px){.sapb-legacy-seller .ps-sell-layout{grid-template-columns:1fr}}
@media(max-width:720px){.sapb-legacy-seller .ps-grid,.sapb-legacy-seller .ps-file-row{grid-template-columns:1fr}.sapb-legacy-seller .ps-full{grid-column:auto}.sapb-legacy-seller .ps-btn{width:100%}.sapb-legacy-seller .ps-actions{display:grid}}
@media(max-width:680px){.sapb-legacy-seller .ps-contact-grid{grid-template-columns:1fr}}

/* Buyer presentation rebuilt from the original portalsluchu buyer plugin; visual layout only. */
.ps-modern-ui{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f8fafc;padding:22px;border-radius:18px;color:#0f172a;width:100%;max-width:860px;min-width:0;margin:0 auto;box-sizing:border-box;overflow:visible}
        .ps-modern-ui *{box-sizing:border-box}
        .ps-modern-ui h3{color:#0f766e;font-size:24px;font-weight:850;margin:28px 0 14px;border:0;padding:0;letter-spacing:-.5px}
        .ps-header-card{background:#fff;border-radius:18px;padding:24px;box-shadow:0 8px 30px rgba(15,23,42,.07);border:1px solid #eef2f7;margin-bottom:24px}
        .ps-header-card h2{margin:0 0 18px;color:#0f766e;font-size:27px;line-height:1.12;font-weight:850;letter-spacing:-.5px}
        .ps-price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px;margin-bottom:18px;width:100%;min-width:0}
        .ps-price-box{border-radius:14px;padding:16px 18px;background:linear-gradient(135deg,#f8fafc 0%,#eef6f8 100%);min-height:108px;display:flex;flex-direction:column;justify-content:center}
        .ps-price-box.ps-two-box{background:linear-gradient(135deg,#eefbf9 0%,#e3f4f2 100%);color:#0f766e}
        .ps-price-label{font-size:14px;color:#64748b;font-weight:650;margin-bottom:6px}
        .ps-price-main{font-size:30px;line-height:1.05;font-weight:900;color:#0f172a;letter-spacing:-.7px}
        .ps-two-title{font-size:16px;font-weight:800;margin-bottom:2px}
        .ps-two-price{font-size:24px;font-weight:900;line-height:1.1}
        .ps-two-math{font-size:14px;margin-top:3px;font-weight:700;opacity:.86}
        .ps-quantity-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:14px;align-items:end;width:100%;min-width:0}
        .ps-qty-label{font-size:16px;color:#334155;font-weight:700;margin-bottom:9px}
        .ps-stepper{display:flex;align-items:center;gap:9px}
        .ps-qty-btn{width:58px;height:50px;border:0;border-radius:11px;background:#0ea5a8;color:#fff;font-size:30px;line-height:1;cursor:pointer;font-weight:500;transition:.18s ease;display:flex;align-items:center;justify-content:center}
        .ps-qty-btn:hover{background:#0b8f91;transform:translateY(-1px)}
        .ps-qty-btn:disabled{opacity:.38;cursor:not-allowed;transform:none}
        .ps-qty-input{width:92px;height:50px;border:1px solid #dbe4ea;border-radius:11px;background:#fff;text-align:center;font-size:20px;font-weight:750;color:#0f172a;outline:0;-moz-appearance:textfield}
        .ps-qty-input::-webkit-inner-spin-button,.ps-qty-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
        .ps-sum-box{background:linear-gradient(135deg,#f8fafc 0%,#edf4f7 100%);border-radius:14px;padding:14px 17px;min-height:92px}
        .ps-sum-label{font-size:14px;color:#64748b;font-weight:650}
        .ps-sum-value{font-size:28px;font-weight:900;line-height:1.05;color:#0f172a;margin-top:4px;letter-spacing:-.6px}
        .ps-sum-math{font-size:13px;color:#64748b;font-weight:650;margin-top:5px}
        .ps-stock-line{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:12px;font-size:14px;color:#159447;font-weight:800}
        .ps-stock-dot{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#4cc86c;color:#fff;font-size:12px}
        .ps-error{margin:0 0 16px;padding:13px 15px;border-radius:12px;background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;font-weight:750}
        .ps-option-card{background:#fff;border-radius:15px;padding:17px 18px;margin-bottom:12px;box-shadow:0 4px 16px rgba(15,23,42,.045);border:1px solid #edf2f7;transition:.2s ease}
        .ps-option-card:hover{box-shadow:0 7px 20px rgba(15,23,42,.07)}
        .ps-toggle-wrapper,.ps-radio-wrapper{display:flex;align-items:flex-start;cursor:pointer;width:100%;user-select:none}
        .ps-hidden-input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
        .ps-switch{width:48px;height:26px;background:#cbd5e1;border-radius:999px;position:relative;transition:.25s ease;margin-right:15px;flex-shrink:0;margin-top:1px}
        .ps-switch:after{content:"";position:absolute;top:2px;left:2px;width:22px;height:22px;background:#fff;border-radius:50%;transition:.25s ease;box-shadow:0 1px 3px rgba(0,0,0,.2)}
        .ps-hidden-input:checked + .ps-switch{background:#0ea5a8}
        .ps-hidden-input:checked + .ps-switch:after{transform:translateX(22px)}
        .ps-radio-circle{width:22px;height:22px;border:2px solid #cbd5e1;border-radius:50%;margin-right:15px;position:relative;flex-shrink:0;transition:.2s;margin-top:1px}
        .ps-radio-circle:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);width:12px;height:12px;background:#0ea5a8;border-radius:50%;transition:.2s ease}
        .ps-hidden-input:checked + .ps-radio-circle{border-color:#0ea5a8}
        .ps-hidden-input:checked + .ps-radio-circle:after{transform:translate(-50%,-50%) scale(1)}
        .ps-option-body{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 12px;flex:1;min-width:0;width:100%}
        .ps-option-text{font-size:15px;color:#1e293b;line-height:1.35;min-width:0;overflow-wrap:anywhere;flex:1 1 190px}
        .ps-option-title{font-weight:650}
        .ps-option-sub{display:block;color:#94a3b8;font-size:12px;margin-top:4px;font-weight:600}
        .ps-option-right{display:flex!important;flex:0 0 118px!important;flex-direction:column!important;align-items:flex-end!important;justify-content:flex-start!important;gap:3px!important;width:118px!important;min-width:118px!important;max-width:118px!important;text-align:right!important;position:static!important;float:none!important;overflow:visible!important;margin-left:auto!important}
        .ps-option-price{display:block!important;position:static!important;float:none!important;width:100%!important;margin:0!important;padding:0!important;font-size:15px!important;line-height:1.25!important;font-weight:850!important;color:#0f766e!important;white-space:nowrap!important;font-variant-numeric:tabular-nums;text-align:right!important;order:1!important}
        .ps-qty-breakdown{display:block!important;position:static!important;float:none!important;width:100%!important;margin:0!important;padding:0!important;font-size:11px!important;line-height:1.25!important;color:#64748b!important;font-weight:650!important;white-space:nowrap!important;font-variant-numeric:tabular-nums;text-align:right!important;order:2!important}
        .ps-details-container{margin-left:63px;margin-top:9px}
        .ps-details-container-warranty{margin-left:0;margin-top:14px}
        .ps-toggle-trigger{font-size:13px;color:#0ea5a8;font-weight:750;cursor:pointer;display:inline-flex;align-items:center;user-select:none}
        .ps-trigger-icon{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;background:#0ea5a8;color:#fff;border-radius:4px;margin-right:7px;font-size:9px;transition:.25s ease}
        .ps-toggle-trigger.open .ps-trigger-icon{transform:rotate(90deg)}
        .ps-toggle-content{display:none;margin-top:10px;font-size:13px;color:#475569;line-height:1.6;background:#f1f5f9;padding:13px;border-radius:9px;border-left:4px solid #0ea5a8}
        .ps-submit-actions{display:flex;flex-direction:column;gap:11px;margin-top:30px}
        .ps-submit-btn{background:linear-gradient(135deg,#38bdf8 0%,#0ea5a8 100%);color:#fff;border:0;border-radius:999px;padding:17px 28px;font-size:17px;font-weight:800;cursor:pointer;width:100%;box-shadow:0 8px 16px rgba(14,165,168,.22);transition:.2s ease}
        .ps-submit-btn:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(14,165,168,.33)}
        .ps-continue-btn{background:#fff;color:#0ea5a8;border:2px solid #0ea5a8;border-radius:999px;padding:15px 28px;font-size:15px;font-weight:800;cursor:pointer;width:100%;transition:.2s ease}
        .ps-continue-btn:hover{background:#f0fdfa}
        .ps-unavailable{background:#fff;border-radius:14px;padding:18px;border:1px solid #fee2e2;color:#991b1b;font-weight:750}
        @media(max-width:680px){
            .ps-modern-ui{padding:14px;border-radius:14px}.ps-header-card{padding:18px}.ps-header-card h2{font-size:23px}
            .ps-price-main{font-size:27px}.ps-sum-box{min-height:auto}.ps-stock-line{justify-content:flex-start}
            .ps-option-text{font-size:14px;flex-basis:155px}.ps-option-price{font-size:14px!important}
            .ps-option-right{flex-basis:112px!important;width:112px!important;min-width:112px!important;max-width:112px!important}
            .ps-details-container{margin-left:0;padding-left:63px}
        }
        @media(max-width:430px){
            .ps-modern-ui{padding:10px}.ps-header-card{padding:15px}.ps-price-grid{gap:9px}.ps-price-box{min-height:94px;padding:14px}
            .ps-stepper{justify-content:space-between}.ps-qty-input{flex:1;max-width:120px}.ps-option-card{padding:15px 14px}
            .ps-switch{margin-right:11px}.ps-radio-circle{margin-right:11px}.ps-details-container{padding-left:59px}
            .ps-option-body{gap:7px 9px}.ps-option-text{flex-basis:145px}.ps-option-right{flex-basis:106px!important;width:106px!important;min-width:106px!important;max-width:106px!important}
            .ps-qty-breakdown{font-size:10px!important}
        }
        @media(max-width:360px){
            .ps-option-body{display:block}
            .ps-option-right{width:100%!important;min-width:0!important;max-width:none!important;align-items:flex-start!important;text-align:left!important;margin:8px 0 0!important}
            .ps-option-price,.ps-qty-breakdown{text-align:left!important}
            .ps-details-container{padding-left:0;margin-left:59px}
        }
.sapb-legacy-buyer .sapb-buyer-details{margin:10px 0 0 64px;color:#0ea5a8;font-size:13px;font-weight:750}
.sapb-legacy-buyer .sapb-buyer-details summary{cursor:pointer;list-style:disclosure-closed}
.sapb-legacy-buyer .sapb-buyer-details[open] summary{list-style:disclosure-open}
.sapb-legacy-buyer .sapb-buyer-details div{margin-top:8px;background:#f1f5f9;padding:12px;border-radius:9px;color:#475569;font-weight:400;line-height:1.5}
.sapb-legacy-buyer .sapb-buyer-summary{margin-top:26px}
.sapb-legacy-buyer .sapb-live{font-size:13px;min-height:0;color:#4b6470;font-weight:500}
.sapb-legacy-buyer .ps-qty-label{display:block}
.sapb-legacy-buyer .ps-submit-btn:disabled,.sapb-legacy-buyer .ps-continue-btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.sapb-legacy-buyer input:focus-visible + .ps-switch,.sapb-legacy-buyer input:focus-visible + .ps-radio-circle{outline:3px solid #065e61;outline-offset:3px}
@media(max-width:600px){.sapb-legacy-buyer .sapb-buyer-details{margin-left:0}}
