/* Interaction refinements for composable modules. */
.mpv-custom-button {
  font-size: var(--mpv-button-font, 12px);
}

.mpv-free-container[style*="row"] > .mpv-child {
  flex: 1;
}

.mpv-notice-window {
  min-width: 0;
  height: 24px;
  flex: 1;
  overflow: hidden;
}

.mpv-notice-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.mpv-notice-track button {
  height: 24px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 24px;
  border: 0;
  background: transparent;
  color: var(--mpv-ink);
  font-size: 9px;
}

.mpv-notice-track button span {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpv-notice-moving.mpv-notice-up .mpv-notice-track,
.mpv-notice-moving.mpv-notice-down .mpv-notice-track {
  animation: mpv-notice-vertical var(--mpv-notice-duration) steps(var(--mpv-notice-count), end) infinite;
}
.mpv-notice-moving.mpv-notice-down .mpv-notice-track { animation-direction: reverse; }
.mpv-notice-left .mpv-notice-track,
.mpv-notice-right .mpv-notice-track { width: max-content; flex-direction: row; }
.mpv-notice-moving.mpv-notice-left .mpv-notice-track,
.mpv-notice-moving.mpv-notice-right .mpv-notice-track {
  animation: mpv-notice-horizontal var(--mpv-notice-duration) linear infinite;
}
.mpv-notice-moving.mpv-notice-right .mpv-notice-track { animation-direction: reverse; }
.mpv-notice-left .mpv-notice-track button,
.mpv-notice-right .mpv-notice-track button { width: 220px; flex: 0 0 220px; }
.mpv-notice-section:hover .mpv-notice-track,
.mpv-notice-section:focus-within .mpv-notice-track { animation-play-state: paused; }
@keyframes mpv-notice-vertical { to { transform: translateY(var(--mpv-notice-distance)); } }
@keyframes mpv-notice-horizontal { to { transform: translateX(-50%); } }

.mpv-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.mpv-heading h2,
.mpv-heading p {
  margin: 0;
}

.mpv-heading h2 {
  color: #17243b;
  font-size: 18px;
}

.mpv-heading p {
  margin-top: 4px;
  color: #8994a4;
  font-size: 11px;
}

.mpv-heading>button {
  border: 0;
  background: transparent;
  color: var(--mpv-accent);
  font-size: 11px;
}

.mpv-heading-accent {
  border-left: 4px solid var(--mpv-accent);
}

.mpv-heading-center {
  justify-content: center;
  text-align: center;
}

.mpv-page-nav-grid {
  display: grid;
  grid-template-columns: repeat(var(--mpv-page-nav-cols), minmax(0, 1fr));
  gap: 10px;
}

.mpv-page-nav-grid>button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 6px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fff;
  color: #536176;
}

.mpv-page-nav-grid>button>i,
.mpv-page-nav-grid>button>img {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff0eb;
  color: var(--mpv-accent);
  font-size: 20px;
  object-fit: cover;
}

.mpv-page-nav-grid b,
.mpv-page-nav-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpv-page-nav-grid b {
  font-size: 11px;
}

.mpv-page-nav-grid small {
  margin-top: 3px;
  color: #9aa3b0;
  font-size: 8px;
}

.mpv-page-nav-list {
  grid-template-columns: 1fr;
}

.mpv-page-nav-list>button {
  flex-direction: row;
  text-align: left;
}

.mpv-page-nav-list>button>span {
  min-width: 0;
  flex: 1;
}

.mpv-component-search>div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
}

.mpv-component-search input,
.mpv-component-search>div>button {
  height: 40px;
  border: 0;
}

.mpv-component-search input {
  min-width: 0;
  padding: 0 14px;
  border-radius: 12px 0 0 12px;
  background: #f2f4f7;
}

.mpv-component-search>div>button {
  border-radius: 0 12px 12px 0;
  background: var(--mpv-accent);
  color: #fff;
}

.mpv-component-search nav {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  overflow: auto;
}

.mpv-component-search nav button {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: #f5f6f8;
  color: #7d8899;
  font-size: 9px;
}

.mpv-benefit-entry {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 22px;
  background: #fff0e8;
}

.mpv-benefit-entry>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
}

.mpv-benefit-entry>div {
  position: relative;
  z-index: 1;
  max-width: 75%;
}

.mpv-benefit-entry small,
.mpv-benefit-entry h2,
.mpv-benefit-entry p {
  display: block;
  margin: 0;
}

.mpv-benefit-entry small {
  color: var(--mpv-accent);
  font-size: 9px;
  font-weight: 700;
}

.mpv-benefit-entry h2 {
  margin-top: 7px;
  color: #1d2b43;
  font-size: 20px;
}

.mpv-benefit-entry p {
  margin-top: 7px;
  color: #69758a;
  font-size: 11px;
}

.mpv-benefit-entry button,
.mpv-countdown>button {
  margin-top: 14px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--mpv-accent);
  color: #fff;
  font-size: 10px;
}

.mpv-benefit-dark {
  background: #17243b;
}

.mpv-benefit-dark h2,
.mpv-benefit-dark p {
  color: #fff;
}

.mpv-benefit-light {
  border: 1px solid #e8ecf1;
  background: #fff;
}

.mpv-countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff8ee;
}

.mpv-countdown small,
.mpv-countdown h2,
.mpv-countdown p {
  display: block;
  margin: 0;
}

.mpv-countdown small {
  color: var(--mpv-accent);
  font-size: 9px;
}

.mpv-countdown h2 {
  margin-top: 4px;
  color: #24324a;
  font-size: 16px;
}

.mpv-countdown p {
  margin-top: 4px;
  color: #8c97a6;
  font-size: 9px;
}

.mpv-countdown-time {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.mpv-countdown-time b {
  min-width: 28px;
  padding: 7px 5px;
  border-radius: 8px;
  background: #24324a;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.mpv-countdown-time span {
  color: #8c97a6;
  font-size: 8px;
}

.mpv-countdown>button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0;
}

.mpv-video-section video,
.mpv-video-empty {
  width: 100%;
  min-height: 180px;
  border: 0;
  border-radius: 12px;
  background: #17243b;
}

.mpv-video-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: #fff;
}

.mpv-video-empty i {
  font-size: 30px;
}

.mpv-video-empty small {
  color: rgba(255, 255, 255, .65);
  font-size: 9px;
}

.mpv-video-link {
  display: block;
  margin: 10px 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--mpv-accent);
  font-size: 10px;
}

.mpv-category-media {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 6px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff1eb;
  color: var(--mpv-accent);
}

.mpv-category-media i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 18px;
}

.mpv-category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpv-category-sidebar .mpv-category-media,
.mpv-category-tabs .mpv-category-media {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 11px;
}

.mpv-bundle-section .mpv-products{grid-template-columns:1fr;gap:7px}
.mpv-bundle-product{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;border:1px solid #eceff3;border-radius:11px;background:#fff}
.mpv-bundle-product.selected{border-color:#ffc2ae;background:#fffaf8}
.mpv-bundle-check{position:absolute;top:7px;left:7px;z-index:1;width:23px;height:23px;display:grid;place-items:center;border:0;border-radius:50%;background:#fff;color:#b6bec9;padding:0;box-shadow:0 2px 8px rgba(24,37,58,.12)}
.mpv-bundle-product.selected .mpv-bundle-check{color:var(--mpv-accent)}
.mpv-bundle-main{min-width:0;display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:9px;border:0;background:transparent;color:var(--mpv-ink);padding:0;text-align:left}
.mpv-bundle-main>img,.mpv-bundle-main>.mpv-product-fallback{width:62px;height:62px;border-radius:9px;object-fit:cover}
.mpv-bundle-main b,.mpv-bundle-main strong{display:block}.mpv-bundle-main b{overflow:hidden;font-size:10px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.mpv-bundle-main strong{margin-top:7px;color:var(--mpv-accent);font-size:13px}.mpv-bundle-main strong small{font-size:7px}
.mpv-bundle-qty{display:flex;align-items:center;border:1px solid #e6e9ee;border-radius:8px;overflow:hidden}.mpv-bundle-qty button{width:24px;height:25px;border:0;background:#f7f8fa;color:#536177;padding:0}.mpv-bundle-qty span{min-width:24px;color:#303d52;font-size:9px;text-align:center}
.mpv-bundle-bar{grid-column:1/-1;position:static;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:3px;padding:10px 11px;border-radius:12px;background:#17243b;color:#fff;box-shadow:0 8px 22px rgba(20,35,61,.18)}
.mpv-bundle-bar span{font-size:8px}.mpv-bundle-bar span b,.mpv-bundle-bar span strong{color:#ffb49b}.mpv-bundle-bar button{flex:0 0 auto;border:0;border-radius:15px;background:var(--mpv-accent);color:#fff;padding:8px 12px;font-size:9px;font-weight:700}.mpv-bundle-bar button:disabled{background:#6e7888;color:#cfd4dc}
.mpv-flash-section{border-color:#ffd0c0}.mpv-flash-section>.mpv-section-head{background:#fff8f1}.mpv-flash-section>.mpv-section-head b{color:#d94f2c}.mpv-flash-products{display:grid;gap:7px;padding:0 10px 10px}.mpv-flash-product{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px;border:1px solid #f0e8e3;border-radius:10px;background:#fff}.mpv-flash-product>button:first-child{min-width:0;display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:9px;border:0;background:transparent;padding:0;text-align:left}.mpv-flash-product img,.mpv-flash-product .mpv-product-fallback{width:64px;height:64px;border-radius:8px;object-fit:cover}.mpv-flash-product span b,.mpv-flash-product span small,.mpv-flash-product span strong{display:block}.mpv-flash-product span b{overflow:hidden;color:var(--mpv-ink);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.mpv-flash-product span small{margin-top:5px;color:var(--mpv-muted);font-size:7px}.mpv-flash-product span strong{margin-top:6px;color:#f04f2b;font-size:14px}.mpv-flash-product span strong em{font-size:7px;font-style:normal}.mpv-flash-product span strong del{margin-left:4px;color:#a7afb9;font-size:8px;font-weight:400}.mpv-flash-buy{border:0;border-radius:15px;background:#f45f35;color:#fff;padding:8px 10px;font-size:9px;font-weight:700}.mpv-package-body{padding:0 10px 10px}.mpv-package-products{display:flex;align-items:center;gap:6px;overflow:auto;padding:8px;border:1px solid #edf0f3;border-radius:11px;background:#fafbfc}.mpv-package-products>i{flex:0 0 auto;color:#b2bac5}.mpv-package-products button{min-width:74px;flex:1;border:0;background:transparent;color:var(--mpv-ink);padding:0}.mpv-package-products img,.mpv-package-products .mpv-product-fallback{width:64px;height:58px;margin:auto;border-radius:8px;object-fit:cover}.mpv-package-products span{display:block;overflow:hidden;margin-top:5px;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.mpv-package-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;padding:10px;border-radius:11px;background:#17243b;color:#fff}.mpv-package-summary>span{font-size:8px}.mpv-package-summary b{color:#ff9b78;font-size:15px}.mpv-package-summary small{display:block;margin-top:3px;color:#bfc9d7;font-size:7px}.mpv-package-summary button{border:0;border-radius:15px;background:var(--mpv-accent);color:#fff;padding:8px 11px;font-size:9px;font-weight:700}.mpv-package-summary button:disabled{background:#6f7989;color:#d4d8df}

/* Shelf variants keep their identity in both saved content and editor payloads. */
.mpv-products-grid { grid-template-columns: repeat(var(--mpv-product-columns, 2), minmax(0, 1fr)); }
.mpv-products-horizontal { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
.mpv-products-horizontal > .mpv-product { flex: 0 0 156px; scroll-snap-align: start; }
.mpv-products-horizontal > .mpv-empty { min-width: 100%; }
.mpv-products-ranking { grid-template-columns: 1fr; }
.mpv-products-ranking .mpv-product { display: grid; grid-template-columns: 28px 88px minmax(0, 1fr); align-items: center; }
.mpv-product-rank { color: var(--mpv-accent); text-align: center; font-size: 18px; font-weight: 700; }
.mpv-product { cursor: pointer; }
.mpv-product-info b { -webkit-line-clamp: var(--mpv-title-lines, 2); }
.mpv-buy { border-color: var(--mpv-buy-color, var(--mpv-accent)); color: var(--mpv-buy-color, var(--mpv-accent)); background: transparent; cursor: pointer; }
.mpv-buy-style-solid { background: var(--mpv-buy-color, var(--mpv-accent)); color: #fff; }
.mpv-buy-position-bottom { flex-wrap: wrap; }
.mpv-buy-position-bottom .mpv-buy { width: 100%; }
.mpv-carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.mpv-carousel-dots button.active { width: 18px; border-radius: 4px; background: #fff; }
.mpv-countdown-time { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mpv-bundle-bar button:disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .mpv-notice-track { animation: none !important; } }

.mpv-tab-center { justify-content: center; }
.mpv-tab-right { justify-content: flex-end; }

.mpv-category-section .mpv-section-head{align-items:center;gap:8px;padding:12px 12px 4px}
.mpv-category-section .mpv-section-head button{flex:none;min-height:36px;padding:0 2px;color:var(--mpv-accent);font-size:12px}
.mpv-category-icons .mpv-categories{grid-template-columns:repeat(var(--mpv-category-cols,4),minmax(0,1fr));gap:4px 5px;padding:3px 10px 12px}
.mpv-category-icons .mpv-category{min-width:0;min-height:66px;padding:3px 1px;font-size:12px;font-weight:500;line-height:1.4}
.mpv-category-icons .mpv-category>span:last-child{overflow-wrap:anywhere}
.mpv-category-icons .mpv-category-media{width:36px;height:36px;margin-bottom:4px;border-radius:12px}
.mpv-category-icons .mpv-category-media i{margin:0;background:transparent}
.mpv-directory-head{padding:5px 10px 9px}
.mpv-directory-head button{font-size:22px;line-height:1}
.mpv-directory{display:grid;grid-template-columns:clamp(72px,22vw,104px) minmax(0,1fr);align-items:start;gap:8px;padding:0 10px 12px}
.mpv-directory-nav{position:sticky;top:8px;display:grid;max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--mpv-line);border-radius:12px;background:var(--mpv-bg)}
.mpv-directory-nav button{min-width:0;min-height:44px;padding:8px 5px;border:0;border-inline-start:3px solid transparent;background:transparent;color:var(--mpv-muted);font-size:12px;line-height:1.4;overflow-wrap:anywhere;cursor:pointer}
.mpv-directory-nav [aria-current]{border-inline-start-color:var(--mpv-accent);background:#fff;color:var(--mpv-ink);font-weight:700}
.mpv-directory-results{display:grid;min-width:0;gap:8px}
.mpv-directory-selection{min-width:0;padding:4px 8px;background:#fff;border:1px solid var(--mpv-line);border-radius:12px}
.mpv-directory-level{display:flex;align-items:center;gap:7px;min-width:0}
.mpv-directory-level+.mpv-directory-level{border-top:1px solid var(--mpv-line)}
.mpv-directory-level>span{flex:none;color:var(--mpv-muted);font-size:11px}
.mpv-directory-choices{display:flex;flex:1;min-width:0;gap:4px;padding:3px 1px;overflow-x:auto;scrollbar-width:none}
.mpv-directory-choices button{flex:none;min-height:38px;padding:0 9px;border:0;border-radius:8px;background:transparent;color:var(--mpv-ink);font-size:12px;white-space:nowrap;cursor:pointer}
.mpv-directory-choices [aria-pressed="true"]{background:#fff0e8;color:#b54425;font-weight:700}
.mpv-directory-result-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:4px 2px 0}
.mpv-directory-result-head h3{margin:0;color:var(--mpv-ink);font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.mpv-directory-result-head .mh-search-count{flex:none;color:var(--mpv-muted);font-size:11px;white-space:nowrap}
.mpv-directory-results .mh-search-pages{gap:8px}
.mpv-directory :is(button,.mpv-product):focus-visible,.mpv-category-section button:focus-visible{outline:2px solid var(--mpv-accent);outline-offset:-2px}
.mpv-directory-results .mpv-product-section{padding-top:6px}
.mpv-directory-results .mpv-empty button{border:0;background:transparent;color:var(--mpv-accent);cursor:pointer}
.mpv-directory-results .mpv-products{gap:6px;padding:0 6px 8px}
.mpv-directory-results .mpv-product-info{padding:6px}

.mpv-category-panel { min-width: 0; }
.mpv-category-sidebar .mpv-category-layout { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; }
.mpv-category-sidebar .mpv-categories { display: flex; flex-direction: column; padding: 0 6px; }
.mpv-category-sidebar .mpv-category { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 3px; padding: 9px 4px; }
.mpv-category-sidebar .mpv-category small { margin-left: 0; }
.mpv-category-sidebar .mpv-category-panel .mpv-products { grid-template-columns: 1fr; }
.mpv-category .active, .mpv-category.active { color: var(--mpv-accent); background: var(--mpv-bg); }
.mpv-category-children { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
.mpv-category-children button { padding: 5px 8px; border: 1px solid var(--mpv-line); border-radius: 8px; background: #fff; color: var(--mpv-ink); font-size: 10px; }
.mpv-category-children small { color: var(--mpv-muted); }
.mpv-category-children .mpv-category-children { padding: 5px 0; }
.mpv-category-more { display: block; margin: 0 auto 12px; padding: 6px 10px; border: 0; background: transparent; color: var(--mpv-accent); font-size: 10px; }

.mpv-category-sidebar .mpv-category-panel,
.mpv-category-tabs .mpv-category-panel { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.mpv-category-ad.configured { display: block; height: auto; width: calc(100% - 24px); padding: 0; overflow: hidden; border: 0; cursor: pointer; }
.mpv-category-ad.configured img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: cover; }

.mpv-offer-action { border: 0; border-radius: 14px; padding: 7px 11px; background: var(--mpv-accent); color: #fff; cursor: pointer; font-size: 10px; }
.mpv-offer-action:disabled { opacity: .55; cursor: not-allowed; }

.mpv-page-nav-cards>button{align-items:stretch;text-align:left;padding:12px;gap:10px}
.mpv-page-nav-cards>button>img{width:100%;height:90px;border-radius:8px;object-fit:contain;background:#faf8f5}
.mpv-page-nav-cards b{font-size:14px}.mpv-page-nav-cards small{font-size:11px;white-space:normal;line-height:1.5}
.mpv-page-nav-icons b{font-size:12px}.mpv-page-nav-grid>button:focus-visible{outline:2px solid var(--mpv-accent);outline-offset:2px}
