/* Toura Passport STAGING 013L — Supplier listing edit clarity + mobile viewport ownership. */
.builder-title-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.builder-title-line h2{margin:4px 0}
.builder-state-pill{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:4px 8px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;background:#eef3f6;color:#536b79}
.builder-state-pill.live{background:#e9f7ef;color:#166a48}
.builder-state-pill.submitted{background:#eef3f8;color:#315671}
.builder-state-pill.changes{background:#fff5dd;color:#7d5c17}
.builder-state-pill.hold{background:#f8ecec;color:#87454a}

.product-options-panel{border:1px solid #dfe7eb;border-radius:11px;background:#fbfcfd;overflow:hidden}
.product-options-panel>summary{position:relative;list-style:none;cursor:pointer;padding:12px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#28485a}
.product-options-panel>summary::-webkit-details-marker{display:none}
.product-options-panel>summary:after{content:'+';width:24px;height:24px;display:grid;place-items:center;border:1px solid #d3dde2;border-radius:999px;background:#fff;font-size:16px;line-height:1;color:#4f6876;flex:0 0 auto}
.product-options-panel[open]>summary:after{content:'−'}
.product-options-panel>summary span{display:block;font-size:11px;font-weight:900}
.product-options-panel>summary small{display:block;margin-left:auto;color:#7b8c96;font-size:9px;font-weight:600;text-align:right}
.product-options-panel-body{padding:0 12px 12px;border-top:1px solid #e5ecef}
.product-options-panel .pricing-variant-head{margin-top:12px}
.points-financial-block{margin-top:13px;padding:13px;border:1px solid #dce7e1;border-radius:12px;background:#f8fbf9}
.points-financial-head{display:grid;gap:3px;margin-bottom:10px}
.points-financial-head b{font-size:12px;color:#244b3c}
.points-financial-head small{font-size:10px;line-height:1.45;color:#6c8076}
.mobile-commercial-preview-host:empty{display:none}
.market-card-commerce{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap}
.market-card-commerce #cardPrice{color:#17324a}
.market-card-commerce #cardPoints{color:#0d7f55}
.commercial-preview .commercial-after-points{background:#eef7f2;border:1px solid #d4e7dc;border-radius:9px}
.commercial-preview .commercial-after-points b{color:#1f6d4e}
.section-heading-line{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}

.builder-exit-guard{position:fixed;inset:0;z-index:6000;display:grid;place-items:center;padding:18px;background:rgba(8,28,39,.54)}
.builder-exit-card{width:min(430px,calc(100vw - 28px));box-sizing:border-box;padding:20px;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(8,28,39,.28)}
.builder-exit-card>small{font-size:8px;font-weight:900;letter-spacing:.13em;color:#6f8278}
.builder-exit-card h3{margin:5px 0 7px;font-size:20px;color:#173247}
.builder-exit-card p{margin:0;color:#6c7d87;font-size:11px;line-height:1.5}
.builder-exit-actions{display:grid;gap:8px;margin-top:16px}
.builder-exit-actions button{min-height:43px;border:0;border-radius:10px;background:#102d4b;color:#fff;font-weight:900;cursor:pointer}
.builder-exit-actions .secondary-action{border:1px solid #cfdbe1;background:#fff;color:#274359}
.builder-exit-actions .danger-secondary{border:1px solid #ead7d7;background:#fff;color:#8b4545}
.builder-exit-actions button:disabled{opacity:.42;cursor:not-allowed}
.builder-exit-card em{display:block;margin-top:8px;color:#8a6b2b;font-size:9px;line-height:1.4;font-style:normal}

@media(max-width:760px){
  /* Listing builder owns the whole viewport while open. Persistent app chrome stays behind it. */
  body.supplier-studio-page .product-modal{z-index:5000!important;inset:0!important;padding:0!important;align-items:stretch!important;background:#fff!important}
  body.supplier-studio-page .product-builder{width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:calc(15px + env(safe-area-inset-top)) 12px calc(22px + env(safe-area-inset-bottom))!important;border-radius:0!important;box-sizing:border-box!important;overflow:auto!important;overscroll-behavior:contain}
  body.supplier-studio-page .product-builder>.modal-x{position:absolute!important;top:calc(10px + env(safe-area-inset-top))!important;right:14px!important;z-index:4;width:38px;height:38px;display:grid;place-items:center;color:#0b73c9}
  body.supplier-studio-page .builder-head{padding:0 42px 13px 0!important;margin-bottom:13px!important}
  body.supplier-studio-page .builder-head>span{font-size:8px!important;letter-spacing:.13em!important}
  body.supplier-studio-page .builder-title-line{gap:7px}
  body.supplier-studio-page .builder-title-line h2{font-size:22px!important;line-height:1.08!important;margin:5px 0 1px!important}
  body.supplier-studio-page .builder-state-pill{min-height:20px;padding:3px 7px;font-size:7px}
  body.supplier-studio-page .builder-head p{margin-top:4px!important;font-size:10px!important;line-height:1.45!important}
  body.supplier-studio-page .submitted-review-banner{margin:0 0 12px!important}

  body.supplier-studio-page .product-options-panel>summary{padding:11px 10px;align-items:flex-start;flex-wrap:wrap}
  body.supplier-studio-page .product-options-panel>summary small{order:3;width:100%;margin:0;text-align:left;line-height:1.35}
  body.supplier-studio-page .product-options-panel>summary:after{position:absolute;right:22px}
  body.supplier-studio-page .product-options-panel-body{padding:0 10px 10px}
  body.supplier-studio-page .pricing-variant-head{align-items:stretch!important;flex-direction:column!important;gap:9px!important}
  body.supplier-studio-page .pricing-variant-head button{width:100%;min-height:40px}
  body.supplier-studio-page .product-option-builder{padding:11px!important;background:#f7faf8!important;border-color:#dce7e1!important}
  body.supplier-studio-page .product-option-builder-head b{color:#244b3c!important}
  body.supplier-studio-page .product-option-builder-head small,body.supplier-studio-page .product-option-builder-note{color:#6e8177!important}

  body.supplier-studio-page .commercial-price-entry{gap:9px}
  body.supplier-studio-page .commercial-fee-card{min-height:0!important;padding:11px 12px!important;background:#f4f8f6!important;border-color:#dce7e1!important}
  body.supplier-studio-page .commercial-fee-card span,body.supplier-studio-page .commercial-fee-card small{color:#668073!important}
  body.supplier-studio-page .commercial-fee-card strong{font-size:22px!important;color:#1d6649!important}
  body.supplier-studio-page .points-financial-block{padding:11px!important}
  body.supplier-studio-page .mobile-commercial-preview-host{margin-top:12px}
  body.supplier-studio-page .mobile-commercial-preview-host .commercial-preview{margin:0!important;padding:11px!important;border:1px solid #dfe7eb!important;background:#f8fafb!important;border-radius:12px!important}
  body.supplier-studio-page .mobile-commercial-preview-host .commercial-preview>span{display:block;margin-bottom:3px}
  body.supplier-studio-page .mobile-commercial-preview-host .commercial-preview>div{padding:7px 6px!important}
  body.supplier-studio-page .mobile-commercial-preview-host .commercial-preview small{font-size:9px!important}
  body.supplier-studio-page .mobile-commercial-preview-host .commercial-preview b{font-size:11px!important;text-align:right}
  body.supplier-studio-page .mobile-commercial-preview-host .commercial-preview #previewCustomerTotal,body.supplier-studio-page .mobile-commercial-preview-host .commercial-preview #previewSettlement{font-size:13px!important}
  body.supplier-studio-page .mobile-commercial-preview-host .commercial-preview .points-preview b{font-size:16px!important}

  /* Touch tooltips render above the full-screen editor instead of behind persistent chrome. */
  body.supplier-studio-page .product-builder .info-popover{z-index:5900!important;position:fixed!important;left:14px!important;right:14px!important;bottom:18px!important;top:auto!important;width:auto!important;max-height:min(52dvh,420px);overflow:auto;padding:12px 13px!important;border-radius:13px!important;box-shadow:0 18px 50px rgba(15,49,67,.22)!important}
  body.supplier-studio-page .product-builder .info-popover ul{padding-left:17px}

  body.supplier-studio-page .market-card-commerce{gap:8px!important}
  body.supplier-studio-page .market-card-commerce #cardPrice{font-size:12px}
  body.supplier-studio-page .market-card-commerce #cardPoints{font-size:12px}
  .builder-exit-guard{padding:12px}
  .builder-exit-card{padding:17px;border-radius:16px}
}
