/* Approved marketplace refinement. Scoped so the original home and admin keep their layout. */
body.endshopit-refined-marketplace {
  --rm-bg:#f5f8fe; --rm-surface:#fff; --rm-raised:#edf4ff; --rm-ink:#14243d;
  --rm-muted:#576981; --rm-line:#dce5f1; --rm-accent:#155eef; --rm-selected:#f1f6ff;
  --rm-ready-bg:#e7f5ee; --rm-ready:#18643b; --rm-wait-bg:#fff1d8; --rm-wait:#845107;
  background:var(--rm-bg)!important; color:var(--rm-ink)!important;
}
html[data-theme="dark"] body.endshopit-refined-marketplace {
  --rm-bg:#0d1729; --rm-surface:#18263c; --rm-raised:#22344f; --rm-ink:#edf3fd;
  --rm-muted:#b3c1d7; --rm-line:#374a65; --rm-accent:#93bdff; --rm-selected:#1c3354;
  --rm-ready-bg:#183e32; --rm-ready:#9ae3bb; --rm-wait-bg:#46371b; --rm-wait:#ffda92;
}
.rm-market {max-width:1180px; margin:30px auto 62px; padding:0 24px; color:var(--rm-ink);}
.rm-market *, .rm-market *::before, .rm-market *::after {box-sizing:border-box;}
.rm-market [hidden] {display:none!important;}
.rm-market h1,.rm-market h2,.rm-market h3,.rm-market p {margin:0; color:inherit;}
.rm-market a {text-decoration:none;}
.rm-market button,.rm-market input {font:inherit;}
.rm-market button:focus-visible,.rm-market a:focus-visible,.rm-market summary:focus-visible,.rm-market input:focus-visible {outline:3px solid var(--rm-accent); outline-offset:4px;}
.rm-hero {display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:28px; padding:32px 36px; border-radius:24px; background:radial-gradient(ellipse at 85% 0%,#254a86 0%,transparent 55%),linear-gradient(120deg,#0c2246,#12376b); color:#fff; overflow:hidden;}
.rm-kicker {color:#8dbdff; font:700 10px/1.5 Inter,sans-serif; letter-spacing:2.4px;}
.rm-hero h1 {font-size:30px; line-height:1.42; font-weight:800; margin:9px 0; letter-spacing:-.7px; color:#fff;}
.rm-hero h1 span {color:#83d7ff;}
.rm-hero-copy>p {font-size:13px; color:#c4d4eb;}
.rm-hero-meta {display:flex; flex-wrap:wrap; gap:18px; font-size:11px; color:#c4d4eb; margin-top:20px;}
.rm-hero-meta i {margin-right:5px;}
.rm-hero-note {align-self:center; border:1px solid #ffffff25; border-radius:17px; padding:19px 22px; background:#ffffff08;}
.rm-note-icon {display:inline-grid; width:30px; height:30px; place-items:center; color:#93caff; background:#93caff17; border-radius:9px; margin-right:9px;}
.rm-hero-note strong {font-size:15px;}
.rm-hero-note p {font-size:11px; line-height:1.85; color:#c4d4eb; margin:9px 0 10px;}
.rm-hero-note a {font-size:11px; color:#a5d5ff;}
.rm-hero-note a i {margin-left:6px;}
.rm-catalog {margin-top:30px;}
.rm-movie-launch{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--rm-line);background:var(--rm-surface);border-radius:14px;padding:17px 20px;margin-top:18px;color:var(--rm-ink)}
.rm-movie-launch>span{display:grid;grid-template-columns:28px 1fr;gap:3px 8px;align-items:center}.rm-movie-launch>span>i{grid-row:1/3;color:var(--rm-accent);font-size:20px}.rm-movie-launch b{font-size:13px}.rm-movie-launch small{color:var(--rm-muted);font-size:10px;line-height:1.7}.rm-movie-launch>strong{font-size:11px;color:var(--rm-accent);white-space:nowrap}.rm-movie-launch:hover{color:var(--rm-ink);border-color:var(--rm-accent)}
@media(max-width:480px){.rm-movie-launch{align-items:start;flex-direction:column;padding:15px}.rm-movie-launch>strong{margin-left:36px}}
.rm-section-heading {display:flex; align-items:end; justify-content:space-between; gap:15px; margin-bottom:17px;}
.rm-eyebrow {display:block; font-size:10px; font-weight:700; color:var(--rm-muted); letter-spacing:.8px; margin-bottom:5px;}
.rm-section-heading h2,.rm-comparison h2 {font-size:22px; line-height:1.5; font-weight:800; letter-spacing:-.4px;}
.rm-section-heading p {font-size:11px; color:var(--rm-muted);}
.rm-toolbar {display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:20px;}
.rm-categories {display:flex; flex:1; flex-wrap:wrap; gap:7px;}
.rm-categories a {padding:8px 12px; border:1px solid var(--rm-line); border-radius:25px; font-size:10px; color:var(--rm-muted); background:var(--rm-surface); white-space:nowrap; transition:background .15s,color .15s;}
.rm-categories a:hover {border-color:var(--rm-accent); color:var(--rm-accent);}
.rm-categories a.is-active {background:var(--rm-ink); color:var(--rm-surface); border-color:var(--rm-ink); font-weight:700;}
.rm-search {display:flex; align-items:center; gap:9px; margin:0; width:255px; padding:10px 13px; border:1px solid var(--rm-line); background:var(--rm-surface); color:var(--rm-muted); border-radius:12px; font-size:12px;}
.rm-search:focus-within {border-color:var(--rm-accent);}
.rm-search input {width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--rm-ink); font-size:11px;}
.rm-search input::placeholder {color:var(--rm-muted); opacity:1;}
.rm-product-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px;}
.rm-product {display:flex; flex-direction:column; min-width:0; padding:20px; border:1px solid var(--rm-line); background:var(--rm-surface); border-radius:20px; box-shadow:0 5px 20px #14243d04; transition:border-color .18s,box-shadow .18s,transform .18s;}
.rm-product:hover {transform:translateY(-2px); box-shadow:0 8px 22px #14243d0b;}
.rm-product.is-selected {border-color:var(--rm-accent); box-shadow:0 0 0 1px var(--rm-accent);}
.rm-product-top {display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:15px;}
.rm-product-icon {width:44px; height:44px; object-fit:contain; padding:5px; background:#fff; border:1px solid #e0e7f1; border-radius:12px;}
.rm-status {display:inline-flex; align-items:center; padding:4px 9px; font-size:10px; line-height:1.5; font-weight:600; border-radius:20px; background:var(--rm-raised); color:var(--rm-muted); white-space:nowrap;}
.rm-status.ready {background:var(--rm-ready-bg); color:var(--rm-ready);}
.rm-status.preorder {background:var(--rm-wait-bg); color:var(--rm-wait);}
.rm-product-category {font-size:9px; color:var(--rm-muted); letter-spacing:.5px; margin-bottom:3px;}
.rm-product h3 {font-size:19px; font-weight:800; line-height:1.45; overflow-wrap:anywhere;}
.rm-product-description {font-size:11px; line-height:1.75; color:var(--rm-muted)!important; margin:6px 0 17px!important; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:38px;}
.rm-product-price {display:flex; align-items:end; justify-content:space-between; gap:12px; padding-top:15px; border-top:1px solid var(--rm-line); margin-top:auto; margin-bottom:16px;}
.rm-product-price small {font-size:10px; color:var(--rm-muted); display:block;}
.rm-product-price strong {font:800 25px/1.4 Inter,"Noto Sans Thai",sans-serif; letter-spacing:-1px;}
.rm-product-price>span {font-size:10px; color:var(--rm-muted); margin-bottom:5px;}
.rm-button {display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:42px; padding:10px 17px; border:1px solid var(--rm-line); border-radius:12px; background:var(--rm-surface); color:var(--rm-ink); font-size:12px!important; font-weight:700; cursor:pointer; transition:background .15s,border-color .15s;}
.rm-button:hover {border-color:var(--rm-accent); color:var(--rm-accent);}
.rm-product-select {width:100%; justify-content:space-between;}
.rm-product.is-selected .rm-product-select,.rm-button-primary {color:#fff!important; background:#155eef!important; border-color:#155eef!important;}
.rm-button-primary:hover,.rm-product.is-selected .rm-product-select:hover {background:#104dcc!important;}
.rm-button:disabled,.rm-button[aria-disabled="true"] {opacity:.55; cursor:not-allowed;}
.rm-button:disabled:hover {border-color:var(--rm-line); color:var(--rm-muted);}
.rm-comparison {margin-top:28px; border:1px solid var(--rm-line); border-radius:24px; padding:26px; background:var(--rm-surface); scroll-margin-top:95px;}
.rm-comparison-head {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; margin-bottom:23px;}
.rm-comparison-head p {font-size:11px; line-height:1.7; color:var(--rm-muted); margin-top:5px;}
.rm-comparison-head h2:focus {outline:0;}
.rm-periods {display:flex; flex-wrap:wrap; gap:4px; padding:4px; background:var(--rm-raised); border:1px solid var(--rm-line); border-radius:25px;}
.rm-periods button {border:0; border-radius:20px; padding:8px 12px; background:transparent; font-size:10px; color:var(--rm-muted); cursor:pointer;}
.rm-periods button[aria-pressed="true"] {color:var(--rm-ink); background:var(--rm-surface); box-shadow:0 2px 6px #00000008; font-weight:700;}
.rm-plans {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; align-items:stretch;}
.rm-plans[data-visible-count="1"] {grid-template-columns:minmax(0,1fr); max-width:540px;}
.rm-plans[data-visible-count="2"] {grid-template-columns:repeat(2,minmax(0,1fr));}
.rm-plan {display:flex; flex-direction:column; min-width:0; padding:22px; border:1px solid var(--rm-line); background:var(--rm-surface); border-radius:18px;}
.rm-plan.is-selected {border-color:var(--rm-accent); box-shadow:0 0 0 1px var(--rm-accent); background:var(--rm-selected);}
.rm-plan-top {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; min-height:24px; margin-bottom:13px;}
.rm-discount {font-size:10px; font-weight:700; color:var(--rm-accent);}
.rm-plan h3 {font-size:17px; font-weight:800; line-height:1.5; overflow-wrap:anywhere;}
.rm-duration {font-size:11px; color:var(--rm-muted)!important; margin-top:4px!important;}
.rm-plan-price {margin:17px 0 19px; display:flex; flex-wrap:wrap; align-items:baseline; gap:7px;}
.rm-plan-price strong {font:800 30px/1.4 Inter,"Noto Sans Thai",sans-serif; letter-spacing:-1px; color:var(--rm-ink);}
.rm-plan-price del {font-size:12px; color:var(--rm-muted);}
.rm-plan-price small {width:100%; color:var(--rm-muted); font-size:10px; margin-top:-2px;}
.rm-plan-facts {list-style:none; padding:16px 0 0; margin:0 0 14px; border-top:1px solid var(--rm-line);}
.rm-plan-facts li {display:flex; gap:9px; align-items:baseline; font-size:11px; line-height:1.6; margin-bottom:9px;}
.rm-plan-facts i {color:var(--rm-accent); width:14px; flex-shrink:0;}
.rm-plan-description {font-size:11px; line-height:1.8; color:var(--rm-muted)!important; overflow-wrap:anywhere; margin-bottom:12px!important;}
.rm-details {font-size:11px; margin-bottom:17px; color:var(--rm-muted);}
.rm-details summary {cursor:pointer; color:var(--rm-accent); padding:3px 0;}
.rm-details>div {margin-top:9px; border-top:1px solid var(--rm-line); padding-top:10px; overflow-wrap:anywhere; line-height:1.85;}
.rm-details p {margin-bottom:9px!important;}
.rm-plan-select {width:100%; margin-top:auto; color:var(--rm-muted);}
.rm-plan.is-selected .rm-plan-select {border-color:var(--rm-accent); background:var(--rm-raised); color:var(--rm-accent);}
.rm-plan-select:disabled {background:var(--rm-raised);}
.rm-purchase-summary {display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:25px; align-items:center; padding:22px; margin-top:22px; border:1px solid var(--rm-line); border-radius:16px; background:var(--rm-raised);}
.rm-summary-copy h3 {font-size:15px; font-weight:800; overflow-wrap:anywhere;}
.rm-summary-copy p {font-size:10px; line-height:1.7; color:var(--rm-muted); margin-top:4px;}
.rm-summary-total {text-align:right;}
.rm-summary-total span {display:block; font-size:10px; color:var(--rm-muted); margin-bottom:4px;}
.rm-summary-total strong {font:800 23px/1.4 Inter,"Noto Sans Thai",sans-serif; white-space:nowrap;}
.rm-purchase-summary .rm-button {min-height:46px;}
.rm-purchase-note {color:var(--rm-muted)!important; font-size:10px; text-align:center; margin-top:14px!important; line-height:1.7;}
.rm-purchase-note i {margin-right:4px;}
.rm-empty {padding:45px 20px; text-align:center; background:var(--rm-surface); border:1px dashed var(--rm-line); border-radius:20px; color:var(--rm-muted);}
.rm-empty>i {font-size:28px; margin-bottom:16px; color:var(--rm-accent);}
.rm-empty h3 {color:var(--rm-ink); font-size:18px; margin-bottom:8px;}
.rm-empty p {font-size:12px; line-height:1.8; margin-bottom:17px;}
@media(min-width:1200px) {.endshopit-refined-marketplace .es-nav-shell {max-width:1180px; margin:auto; padding-left:24px; padding-right:24px;}}
@media(max-width:1050px) {.rm-toolbar {flex-direction:column; align-items:stretch;} .rm-search {width:100%;} .rm-plans {grid-template-columns:repeat(2,minmax(0,1fr));} .rm-purchase-summary {gap:18px;} }
@media(max-width:760px) {
  .rm-market {padding:0 16px; margin-top:20px;} .rm-hero {grid-template-columns:1fr; gap:20px; padding:26px;}
  .rm-hero h1 {font-size:26px;} .rm-hero-note {padding:14px 17px;} .rm-hero-note p {margin-bottom:6px;}
  .rm-product-grid {grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;} .rm-product {padding:16px;}
  .rm-comparison {padding:20px; border-radius:20px;} .rm-comparison-head h2 {font-size:20px;}
  .rm-purchase-summary {grid-template-columns:minmax(0,1fr) auto; padding:17px;} .rm-purchase-summary .rm-button {grid-column:1/-1;}
}
@media(max-width:480px) {
  .rm-hero {padding:23px; border-radius:20px;} .rm-hero h1 {font-size:24px;} .rm-hero-copy>p {font-size:12px;}
  .rm-product-grid,.rm-plans,.rm-plans[data-visible-count="2"] {grid-template-columns:1fr;}
  .rm-product {padding:20px;} .rm-product-description {min-height:0;} .rm-product h3 {font-size:20px;}
  .rm-categories {gap:6px;} .rm-categories a {padding:8px 10px; font-size:10px;}
  .rm-section-heading h2 {font-size:21px;} .rm-comparison {padding:16px;} .rm-plan {padding:20px;}
  .rm-purchase-summary {gap:12px;} .rm-summary-total strong {font-size:21px;} .rm-periods {border-radius:14px;}
}
@media(prefers-reduced-motion:reduce) {.rm-market * {scroll-behavior:auto!important; transition:none!important;} .rm-product:hover {transform:none;}}
