/* Product price editor: the same restrained hierarchy used in /diseno. */
.modal.product-pricing-workspace{width:min(860px,calc(100vw - 32px));max-width:860px;font-family:var(--lococo-font-sans)}
.product-pricing-workspace .own-price-editor{display:flex;flex-direction:column;gap:24px;color:var(--lococo-ink)}
.product-pricing-workspace .pricing-workspace-intro{margin:0;color:var(--lococo-muted);font-size:14px;line-height:1.5}
.product-pricing-workspace .own-price-form-grid{display:block;margin:0}
.product-pricing-workspace .pricing-base-calculation{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:20px;align-items:start;padding:20px;background:var(--lococo-soft);border:1px solid var(--lococo-line);border-radius:12px}
.product-pricing-workspace .pricing-cost-reference{display:flex;flex-direction:column;gap:8px}
.product-pricing-workspace .pricing-cost-reference>span,.product-pricing-workspace label{font-size:12px;font-weight:600}
.product-pricing-workspace .pricing-cost-reference>strong{font-size:24px;line-height:40px;font-variant-numeric:tabular-nums}
.product-pricing-workspace .form-field{margin:0;min-width:0;display:flex;flex-direction:column;gap:8px}
.product-pricing-workspace input:not([type=checkbox]){width:100%;min-width:0;height:44px;border:1px solid var(--lococo-field-line);border-radius:8px;background:#fff;font-size:16px;font-variant-numeric:tabular-nums;padding:10px 12px}
.product-pricing-workspace input:focus-visible,.product-pricing-workspace summary:focus-visible{outline:2px solid var(--lococo-focus);outline-offset:2px}
.product-pricing-workspace .pricing-base-result input{font-size:22px;font-weight:700;border-color:var(--lococo-ink)}
.product-pricing-workspace small{font-size:12px;line-height:1.5;color:var(--lococo-muted)}
.product-pricing-workspace .pricing-section-heading h3{font-size:18px;margin:0 0 4px}
.product-pricing-workspace .pricing-section-heading p{font-size:13px;color:var(--lococo-muted);margin:0}
.product-pricing-workspace .pricing-resolved-base{font-size:12px;color:var(--lococo-muted);margin:12px 0}
.product-pricing-workspace .pricing-level-table-scroll{overflow-x:auto}
.product-pricing-workspace .pricing-level-table{border-collapse:collapse;width:100%;font-size:14px}
.product-pricing-workspace .pricing-level-table th,.product-pricing-workspace .pricing-level-table td{padding:12px 8px;text-align:left;border-bottom:1px solid var(--lococo-line)}
.product-pricing-workspace .pricing-level-table thead th{font-size:11px;font-weight:600;color:var(--lococo-muted)}
.product-pricing-workspace .pricing-level-table :is(th,td):last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.product-pricing-workspace #ownConfigureLevels{margin-top:16px;min-height:40px}
.product-pricing-workspace .pricing-level-scope{display:block;margin-top:8px}
.product-pricing-workspace .pricing-secondary-controls{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--lococo-line)}
.product-pricing-workspace details{padding:0;border:0;background:none;box-shadow:none}
.product-pricing-workspace details>summary{padding:14px 0;cursor:pointer;font-size:13px;font-weight:600}
.product-pricing-workspace details>p{font-size:12px;color:var(--lococo-muted);margin:0 0 12px;line-height:1.5}
.product-pricing-workspace .own-price-tier-editor{display:grid;grid-template-columns:100px 1fr 1fr;gap:16px;align-items:start;border:0;padding:12px 0;background:none}
.product-pricing-workspace .pricing-exchange-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:0 0 16px}
.product-pricing-workspace .own-price-cost-note{font-size:12px;line-height:1.6;color:var(--lococo-muted)}
.product-pricing-workspace .pricing-source-details{margin-top:-16px}
.product-pricing-workspace .own-price-risk-panel{margin:0;font-size:13px}
.product-pricing-workspace .own-price-risk-ack{font-size:12px;line-height:1.5}
@media(max-width:600px){.modal.product-pricing-workspace{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.product-pricing-workspace .modal-body{padding:16px}.product-pricing-workspace .own-price-editor{gap:20px}.product-pricing-workspace .pricing-base-calculation{grid-template-columns:1fr 1fr;gap:16px;padding:16px}.product-pricing-workspace .pricing-base-result{grid-column:1/-1}.product-pricing-workspace .pricing-cost-reference>strong{font-size:22px}.product-pricing-workspace .own-price-tier-editor{grid-template-columns:1fr 1fr;gap:12px}.product-pricing-workspace .own-price-tier-editor>strong{grid-column:1/-1}.product-pricing-workspace .pricing-exchange-grid{grid-template-columns:1fr}.product-pricing-workspace button,.product-pricing-workspace details>summary{min-height:44px}.product-pricing-workspace .pricing-level-table{font-size:12px}.product-pricing-workspace .pricing-level-table :is(th,td){padding:12px 4px}}

#ownInlineLevels .price-level-editor-grid{display:grid;grid-template-columns:1fr;gap:10px}#ownInlineLevels .price-level-editor-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;border:1px solid #d7e1ed;border-radius:8px}#ownInlineLevels label{min-width:0}#ownInlineLevels input,#ownInlineLevels select{width:100%;min-width:0}#ownInlineLevels .inline-level-footer{display:flex;gap:8px;padding:12px 0;position:sticky;bottom:0;background:white}.pricing-membership{padding:12px 0}.pricing-membership label{display:grid;gap:8px;margin:8px 0}.pricing-cost-reference input{width:100%;min-width:0}.pricing-membership summary{cursor:pointer;font-weight:600}

.inline-level-accordion{border-bottom:1px solid #d7e1ed}.inline-level-accordion>summary{cursor:pointer;font-weight:650;padding:12px 4px}#ownInlineLevels .price-level-editor-row{border:0;padding:8px 0}.pricing-membership select{max-width:100%}
/* A single compact workspace: visible price controls, optional policy detail. */
@keyframes pricing-slide-in{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}
.modal.product-pricing-workspace{animation:pricing-slide-in .22s cubic-bezier(.2,.8,.2,1)}
.product-pricing-workspace .own-price-editor{gap:16px}
.product-pricing-workspace .pricing-workspace-intro{display:none}
.product-pricing-workspace .pricing-base-calculation{padding:14px;gap:12px}
.product-pricing-workspace .pricing-base-calculation small{font-size:11px;line-height:1.35}
.product-pricing-workspace .pricing-level-table :is(th,td){padding:9px 8px}
#ownInlineLevels.compact-levels .price-level-editor-intro{padding:0 0 10px;background:none;border:0;display:flex;flex-wrap:wrap;gap:6px;font-size:12px}
#ownInlineLevels.compact-levels .price-level-editor-intro>span{width:100%;font-size:11px}
#ownInlineLevels.compact-levels .price-level-editor-intro button{padding:6px 10px;min-height:32px;font-size:11px}
#ownInlineLevels.compact-levels .price-level-editor-row{display:grid;grid-template-columns:70px minmax(0,1fr) 84px;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--lococo-line)}
#ownInlineLevels.compact-levels .compact-level-name{font-size:12px}
#ownInlineLevels.compact-levels label{display:flex;flex-direction:column;gap:4px;font-size:10px;margin:0}
#ownInlineLevels.compact-levels :is(input:not([type=checkbox]),select){height:34px;padding:5px 7px;font-size:13px}
#ownInlineLevels.compact-levels output{grid-column:2/4;font-size:12px;font-weight:650;color:var(--lococo-ink)}
#ownInlineLevels.compact-levels .compact-level-options{grid-column:1/-1}
#ownInlineLevels.compact-levels summary{padding:3px 0;min-height:28px;font-size:11px}
#ownInlineLevels.compact-levels .compact-level-options[open]{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#ownInlineLevels.compact-levels .compact-level-options>summary{grid-column:1/-1}
#ownInlineLevels.compact-levels [data-portal-status]{margin:0;grid-column:1/-1;font-size:11px}
#ownInlineLevels.compact-levels .inline-level-footer{padding:8px 0;position:static}
#ownInlineLevels.compact-levels .price-level-editor-grid{gap:0}
@media(prefers-reduced-motion:reduce){.modal.product-pricing-workspace{animation:none}}
@media(max-width:600px){#ownInlineLevels.compact-levels .price-level-editor-row{grid-template-columns:60px minmax(0,1fr) 72px}#ownInlineLevels.compact-levels input:not([type=checkbox]){font-size:16px;height:40px}.product-pricing-workspace .own-price-editor{gap:12px}}
#ownInlineLevels.compact-levels .price-level-editor-row{grid-template-columns:72px 90px minmax(0,1fr) 66px;min-height:0;gap:8px;padding:9px 0;border-radius:0}
#ownInlineLevels.compact-levels output{grid-column:auto;margin:0;align-self:center}
#ownInlineLevels.compact-levels .compact-level-options{grid-column:auto;align-self:center}
#ownInlineLevels.compact-levels .compact-level-options[open]{grid-column:1/-1}
#ownInlineLevels.compact-levels .price-level-editor-intro{margin:0}
#ownInlineLevels.compact-levels .price-level-editor-intro [data-level-error]:empty{display:none}
#ownInlineLevels.compact-levels .price-level-editor-row>label{font-size:10px}
@media(max-width:600px){#ownInlineLevels.compact-levels .price-level-editor-row{grid-template-columns:52px 70px minmax(0,1fr) 48px;gap:5px}#ownInlineLevels.compact-levels output{font-size:11px}#ownInlineLevels.compact-levels summary{font-size:10px}.product-pricing-workspace .pricing-base-calculation small{display:none}}

.modal.product-pricing-workspace{position:fixed;inset:0 0 0 auto;margin:0;width:min(720px,100vw);max-width:720px;height:100dvh;max-height:100dvh;border-radius:12px 0 0 12px}
@media(max-width:600px){.modal.product-pricing-workspace{width:100vw;border-radius:0}}
.product-pricing-workspace:has(#ownInlineLevels:not([hidden])) :is(#ownConfigureLevels,.pricing-level-scope){display:none}

.pricing-stock-policy .inline-toggle{display:flex;align-items:center;gap:8px;margin-bottom:16px}.pricing-stock-policy .pricing-exchange-grid label{display:grid;gap:8px;min-width:0}.pricing-stock-policy select{width:100%;min-width:0;min-height:44px;border:1px solid var(--lococo-field-line);border-radius:8px;background:white;padding:8px}.pricing-stock-policy{border-top:1px solid var(--lococo-line)!important}
