/* E-commerce tab > Settings: three columns as in cloneQ (static/css/panel-settings.css): CONFIGURE groups | the list of
   settings | the open setting. Party Villa's light colours from style.css. */
.est { display: grid; grid-template-columns: 190px 320px minmax(0, 1fr); height: 100%; min-height: 0; background: var(--bg); }
.est svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* column 1: CONFIGURE */
.est-groups { background: #0f3330; padding: 18px 0; overflow-y: auto; }
.est-head { padding: 0 22px 14px; color: #8fb3ab; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.est-groups a { display: block; padding: 9px 22px; color: #cfe3de; font-weight: 600; font-size: .92rem; text-decoration: none; }
.est-groups a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.est-groups a.on { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 3px 0 0 #ffb066; }

/* column 2: the list of settings */
.est-list { background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; padding: 0 0 40vh; scroll-behavior: smooth; }
.est-gtitle { color: var(--brand-2); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 18px 20px 6px; }
.est-row { display: flex; gap: 14px; align-items: flex-start; margin: 0 10px; padding: 11px 10px; border-bottom: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.est-group .est-row:last-child { border-bottom: 0; }
.est-row:hover { background: var(--soft); }
.est-row.on { background: var(--soft); box-shadow: inset 3px 0 0 var(--brand-2); }
.est-row > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--brand); }
.est-txt { flex: 1; min-width: 0; }
.est-txt strong { display: block; font-size: .93rem; font-weight: 600; line-height: 1.3; }
.est-txt small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.est-logo { width: 24px; height: 24px; flex: none; border-radius: 5px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; overflow: hidden; }
.est-logo img { width: 100%; height: 100%; object-fit: cover; }

/* column 3: the open setting */
.est-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.est-pane-head { flex: none; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.est-pane-head h1 { font-size: 1.08rem; font-weight: 600; flex: 1; min-width: 0; }
.est-preview { display: inline-flex; align-items: center; gap: 6px; }
.est-preview[hidden] { display: none; }
.est-preview svg { width: 12px; height: 12px; fill: currentColor; }
.est-back { display: none; color: var(--brand-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.est-pane-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px 60px; }

/* text blocks */
.est-intro { color: var(--muted); margin: 0 0 14px; max-width: 760px; }
.est-note { background: #fffaf0; border: 1px solid #f0dfba; border-left: 3px solid var(--warn); border-radius: 6px; padding: 10px 14px; margin: 10px 0; max-width: 760px; }
.est-sec-title { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 8px; }
.est-sec-title:first-child { margin-top: 0; }
.est-block { margin-bottom: 18px; max-width: 900px; }
.est-form { max-width: 680px; }
.est-form-wide { max-width: 900px; }
.est-form textarea { resize: vertical; }
.est-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.est-sticky { position: sticky; bottom: 0; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.est-switch-row { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
.est-switch-row b { font-weight: 500; }
.est-radios { display: flex; flex-direction: column; gap: 4px; margin: 4px 0; }
.est-radios label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.est-radios input, .est-checklist input { width: auto; min-height: 0; }
.est-checklist { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: var(--panel); columns: 2; column-gap: 20px; margin-top: 4px; }
.est-checklist label { display: flex; gap: 8px; align-items: center; padding: 3px 0; break-inside: avoid; cursor: pointer; }
.est-steps { padding-left: 20px; margin: 0; color: var(--muted); display: grid; gap: 6px; }
.est code { background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .82rem; }
.est-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.est-toolbar .est-intro { margin: 0; flex: 1 1 320px; }
.est-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.est-tabs .btn { text-decoration: none; color: var(--ink); }
.est-tabs .btn.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.est-back-link { display: inline-block; margin-bottom: 12px; color: var(--brand-2); font-weight: 600; text-decoration: none; }
.est-empty { max-width: 460px; margin: 30px auto; text-align: center; color: var(--muted); }

/* cards: the rows of a list (cloneQ .st-card) */
.est-cards { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.est-sub { margin: 8px 0 0 26px; gap: 6px; }
.est-card { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 10px 10px 12px; min-height: 56px; }
.est-card-col { flex-direction: column; align-items: stretch; }
.est-card-sub { background: #fafbfa; min-height: 46px; }
.est-card.is-off { opacity: .6; }
.est-card-main { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; display: block; }
.est-card-main strong { display: block; font-size: .95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-card-main small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-card-main small svg { width: 14px; height: 14px; flex: none; }
a.est-card-main:hover strong { color: var(--brand-2); }
.est-card .ecom-handle svg { width: 18px; height: 18px; }
.est-card .ecom-ic { flex: none; }
.est-card select { width: auto; max-width: 180px; }
.est-del:hover { color: var(--bad); }
.est-card-wrap.open > .est-card { border-color: var(--brand-2); border-radius: 6px 6px 0 0; }
.est-editor { background: #f8faf9; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; padding: 14px 14px 12px; }
.est-card-wrap > .est-sub { margin-top: 6px; }
.est-addbox { margin-top: 14px; padding: 14px; border: 1px dashed #b9c3be; border-radius: 6px; max-width: 900px; }
.est-addbox .est-editor { background: none; border: 0; padding: 0; }
.est-addrow { margin-top: 14px; padding: 12px; border: 1px dashed #b9c3be; border-radius: 6px; max-width: 900px; align-items: flex-end; }
.est-chip { flex: none; padding: 3px 11px; font-size: .78rem; font-weight: 600; border-radius: 999px; background: #eef1ef; border: 1px solid transparent; color: var(--muted); cursor: pointer; }
.est-chip.on { background: var(--soft); border-color: var(--brand-2); color: var(--brand-2); }
.est-req { color: var(--bad); }
.est-own { color: var(--warn); margin: -4px 0 6px; }
.est-warn { color: var(--warn); font-weight: 600; }
.est-focus { outline: 2px solid var(--brand-2); outline-offset: 6px; border-radius: 4px; }
.est-state { font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; background: #eef1ef; }
.est-state.live { background: var(--soft); color: var(--ok); }
.est-state.link { background: #fdf0d9; color: var(--warn); }
.est-state.closed { background: #fbe6e4; color: var(--bad); }
.est-circle-pv { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #eef1ef; border: 1px solid var(--line); display: inline-block; }

/* coupons */
.est-coupon { position: relative; padding-left: 20px; overflow: hidden; }
.est-cp-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cp); }
.est-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; background: var(--soft); padding: 1px 7px; border-radius: 4px; }
.est-color-row input[type=color], .est-color input[type=color] { width: 56px; height: 34px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }

/* store design */
.est-theme { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(260px, 340px); gap: 28px; max-width: 1100px; align-items: start; }
.est-theme-right { position: sticky; top: 0; }
.est-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.est-preset { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: inherit; cursor: pointer; text-align: left; }
.est-preset:hover { border-color: #9fb0aa; }
.est-preset.on { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2); }
.est-preset small { color: var(--brand-2); font-size: .7rem; font-weight: 700; }
.est-swatch { display: block; width: 100%; height: 32px; border-radius: 4px; position: relative; border: 1px solid var(--line); }
.est-swatch i { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 12px; border-radius: 3px; }
.est-colors { display: flex; gap: 16px 22px; flex-wrap: wrap; margin: 8px 0; }
.est-color { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .85rem; min-width: 110px; }
.est-color code { align-self: flex-start; font-weight: 400; }
.est-color.is-default input { opacity: .55; }
.est-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.est-font { position: relative; display: flex; flex-direction: column; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; cursor: pointer; }
.est-font input { position: absolute; top: 10px; right: 10px; width: auto; min-height: 0; }
.est-font.on { border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand-2); }
.est-font-sample { font-size: 1.1rem; font-weight: 600; padding-right: 22px; }
.est-font small { color: var(--muted); }
.est input[type=range] { padding: 0; min-height: 0; }

/* the live preview: a sketch of the shop, drawn with the chosen colours */
.est-pv { background: var(--pv-page); color: var(--pv-text); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.est-pv-ann { background: var(--pv-ann); color: var(--pv-anntx); text-align: center; font-size: 11px; padding: 4px; }
.est-pv-strip { background: var(--pv-dark); color: #fff; font-size: 11px; padding: 4px 10px; }
.est-pv-top { display: flex; align-items: center; gap: 8px; background: var(--pv-head); color: var(--pv-headtx); padding: 9px 10px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.est-pv-logo { width: 24px; height: 24px; border-radius: 50%; background: var(--pv-btn); color: var(--pv-btntx); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.est-pv-title { font-family: var(--pv-font); font-weight: 700; font-size: 16px; padding: 10px 10px 6px; }
.est-pv-grid { display: grid; gap: 8px; padding: 0 10px 10px; }
.est-pv-card { background: var(--pv-card); border-radius: var(--pv-r); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(0, 0, 0, .05); }
.est-pv-card.shadow { box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .08); }
.est-pv-img { position: relative; aspect-ratio: 1; background: linear-gradient(135deg, #f6d6e2, #d9ecf7); }
.est-pv-oos { position: absolute; left: 6px; top: 6px; background: var(--pv-oos); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 999px; }
.est-pv-body { padding: 6px 8px; flex: 1; }
.est-pv-name { font-weight: 600; line-height: 1.25; }
.est-pv-price { color: var(--pv-price); font-weight: 700; margin-top: 3px; }
.est-pv-price s { opacity: .55; font-weight: 400; font-size: 11px; }
.est-pv-btn { background: var(--pv-btn); color: var(--pv-btntx); text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 7px; }
.est-pv-foot { background: var(--pv-dark); color: #fff; font-size: 11px; padding: 8px 10px; }

/* share message example, privacy numbers, reports */
.est-wa { white-space: pre-wrap; background: #e7f7e3; border: 1px solid #c7e6bf; border-radius: 10px 10px 10px 2px; padding: 10px 12px; max-width: 420px; word-break: break-word; }
.est-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: 10px; }
.est-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; }
.est-stats b { font-size: 1.5rem; font-weight: 600; }
.est-stats span { color: var(--muted); font-size: .8rem; }
.est-report { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; max-width: 760px; }
.est-report h2 { margin-bottom: 4px; }
.est-report .est-addrow { border: 0; padding: 0; }

@media (max-width: 1180px) {
  .est { grid-template-columns: 150px 270px minmax(0, 1fr); }
  .est-groups a, .est-head { padding-left: 16px; padding-right: 10px; }
  .est-theme { grid-template-columns: 1fr; }
  .est-theme-right { position: static; max-width: 360px; }
}
/* Phone and small tablet: the groups are a row of chips; the list OR the open setting shows, with "All settings" back. */
@media (max-width: 900px) {
  .est { display: block; height: auto; }
  .est-groups { display: flex; gap: 4px; overflow-x: auto; padding: 8px; }
  .est-head { display: none; }
  .est-groups a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; }
  .est-groups a.on { box-shadow: none; background: rgba(255, 255, 255, .16); }
  .est-list { padding-bottom: 20px; border-right: 0; overflow: visible; }
  .est.has-pane .est-list { display: none; }
  .est:not(.has-pane) .est-pane { display: none; }
  .est-back { display: inline-block; }
  .est-pane-head { padding: 8px 12px; }
  .est-pane-body { padding: 14px 12px 40px; overflow: visible; }
  .est-checklist { columns: 1; }
  .est-stats { grid-template-columns: repeat(2, 1fr); }
  .est-sub { margin-left: 10px; }
  .est-card { flex-wrap: wrap; }
  .est-card-main { flex-basis: 150px; }
  .est-card select { max-width: 100%; }
  .est-sticky { bottom: 0; }
}
/* Store design > Wordings: a closed box until opened (44 short texts). */
.est-words > summary { cursor: pointer; }
.est-words > summary .est-sec-title { display: inline; }
