@import url("../../admin/vendor/fontawesome/css/all.min.css?v=20260911b");
@import url("smm-fonts.css?v=20260911b");
@import url("../../admin/css/icon-buttons.css?v=20260911b");
@import url("../../admin/css/credit-coin.css?v=20260916a");

/* Mobile-first SMM e-Wallet; desktop expands the phone shell */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  min-width: 0;
  min-height: 100dvh;
  font-family: "Prompt", sans-serif;
}

main, header, section, form, footer {
  min-width: 0;
  max-width: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

#profile-avatar-img,
img.profile-avatar-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.smm-google-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #5f6368;
  font-family: "Prompt", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.smm-home-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e4e2e1;
}

.smm-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.smm-logo-hero {
  width: 80px;
  height: 80px;
  border-radius: 12px;
}

/* Touch targets — never stretch checkboxes/radios to 44px tall */
button,
[type="button"],
[type="submit"],
[type="reset"],
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
select,
textarea {
  min-height: 44px;
}

input,
select,
textarea {
  font-size: 16px;
  max-width: 100%;
  min-width: 0;
}

nav a {
  min-height: 44px;
  min-width: 44px;
}

input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  margin: 0.2rem 0 0;
  padding: 0;
  accent-color: #af101a;
  background-image: none;
}

.pw-toggle,
button[data-smm-pw-toggle] {
  z-index: 2;
  pointer-events: auto;
}

.relative:has(.pw-toggle) > input[type="password"],
.relative:has(.pw-toggle) > input[type="text"],
.pw-field > input[type="password"],
.pw-field > input[type="text"] {
  position: relative;
  z-index: 1;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: 2px solid #af101a;
  outline-offset: 2px;
  box-shadow: none !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
}

#smm-consent-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(27, 28, 28, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.smm-consent-card {
  background: #fbf9f8;
  color: #1b1c1c;
  font-family: "Prompt", sans-serif;
  border-radius: 1rem 1rem 0 0;
  padding: 1.25rem;
  max-width: 32rem;
  width: 100%;
  min-width: 0;
  max-height: min(90dvh, 100%);
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.smm-consent-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #af101a;
  margin: 0.5rem 0;
  overflow-wrap: anywhere;
}

.smm-consent-card p {
  overflow-wrap: anywhere;
  margin: 0.5rem 0;
}

.smm-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.5rem 0;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
}

.smm-check input[type="checkbox"] {
  flex: 0 0 1.25rem;
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
  max-width: 1.25rem !important;
  max-height: 1.25rem !important;
  align-self: flex-start;
}

.smm-check span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
  padding-top: 0.05rem;
}

/* Modal / header action clusters — always one horizontal row (save + close, slip pair, etc.) */
.smm-consent-actions,
.smm-header-actions,
header .smm-ib-group,
.smm-modal-card .smm-ib-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  min-width: 0;
}

.smm-consent-actions > button,
.smm-consent-actions > .smm-ib,
.smm-consent-actions > a.smm-btn-primary,
.smm-consent-actions > a.smm-btn-ghost,
.smm-header-actions > button,
.smm-header-actions > .smm-ib {
  width: auto;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
}

/* Full-width primary CTAs (consent accept, pay-now bar) stay on their own row when grouped with icon actions */
.smm-consent-actions > .smm-btn-primary:not(.smm-ib),
.smm-consent-actions > button.w-full,
.smm-consent-actions > #smm-service-pay,
.smm-consent-actions > #smm-accept-needed {
  flex: 1 1 100%;
  width: 100%;
}

.smm-btn-primary,
.smm-btn-ghost {
  min-height: 44px;
  border-radius: 0.5rem;
  font-family: "Prompt", sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.smm-btn-primary {
  background: #af101a;
  color: #fff;
  border: 0;
}

.smm-btn-ghost {
  background: #fff;
  border: 1px solid #e4beba;
  color: #af101a;
}

.smm-links a {
  color: #af101a;
  min-height: 0;
  display: inline;
}

@media (min-width: 768px) {
  #smm-consent-gate {
    align-items: center;
  }
  .smm-consent-card {
    border-radius: 1rem;
    max-height: min(85dvh, 40rem);
  }
  .smm-consent-actions > .smm-btn-primary:not(.smm-ib),
  .smm-consent-actions > #smm-accept-needed {
    flex: 1 1 12rem;
    width: auto;
  }
  .smm-consent-actions > .smm-btn-ghost:not(.smm-ib) {
    flex: 1 1 12rem;
    width: auto;
  }
  body > .w-full.max-w-md,
  body .max-w-md {
    max-width: 48rem !important;
  }
}

img.bank-logo {
  width: 48px;
  height: 48px !important;
  max-width: 48px;
  object-fit: cover;
  display: block;
}

.bank-logo-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.bank-fallback {
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: "Prompt", sans-serif;
}

.smm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(27, 28, 28, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  overflow: auto;
}

.smm-modal.hidden { display: none; }

.smm-modal-card {
  background: #fbf9f8;
  width: 100%;
  max-width: 28rem;
  max-height: min(90dvh, 40rem);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 1rem 1rem 0 0;
  padding: 1.25rem;
  font-family: "Prompt", sans-serif;
}

#smm-buy-confirm,
#smm-withdraw-confirm {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
#smm-buy-confirm .smm-modal-card,
#smm-withdraw-confirm .smm-modal-card {
  overflow-x: hidden;
  overflow-y: auto;
  max-width: min(100%, 28rem);
  min-width: 0;
  width: 100%;
}
.smm-buy-due {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.75rem 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.smm-buy-due span {
  font-size: 0.875rem;
  color: #5d5f5f;
  font-family: "Prompt", sans-serif;
}
.smm-buy-due strong {
  font-size: 1.5rem;
  line-height: 1.2;
  color: #af101a;
  font-family: "Prompt", sans-serif;
}
#smm-buy-confirm .smm-btn-primary,
#smm-buy-confirm .smm-btn-ghost,
#smm-buy-confirm a.smm-btn-primary,
#smm-withdraw-confirm .smm-btn-primary,
#smm-withdraw-confirm .smm-btn-ghost,
#smm-withdraw-confirm a.smm-btn-primary {
  min-height: 44px;
}

.smm-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}
.smm-qty-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #e4beba;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  color: #af101a;
  font-family: "Prompt", sans-serif;
}
.smm-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.smm-qty-val {
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
  font-family: "Prompt", sans-serif;
}

.smm-modal-card h2 { color: #af101a; margin: 0 0 0.75rem; font-size: 1.125rem; }
.smm-modal-card label { display: block; margin: 0.75rem 0; font-size: 0.9rem; }
.smm-modal-card input:not([type="checkbox"]),
.smm-modal-card textarea,
.smm-modal-card select {
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  border: 1px solid #e4beba;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-family: "Prompt", sans-serif;
  font-size: 16px;
}

.smm-bank-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.smm-bank-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  border: 1px solid #e4beba;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.35rem 0.5rem;
  font-family: "Prompt", sans-serif;
  text-align: left;
}

.smm-bank-opt.is-on { border-color: #af101a; box-shadow: 0 0 0 2px rgba(175, 16, 26, 0.15); }

.smm-switch {
  width: 44px;
  min-width: 44px;
  height: 24px;
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  background: #e4e2e1;
  position: relative;
  padding: 0;
  cursor: pointer;
}

.smm-switch::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 999px;
  top: 3px;
  left: 3px;
  transition: left 0.15s ease;
}

.smm-switch.on { background: #af101a; }
.smm-switch.on::after { left: 23px; }

.smm-qr-img {
  width: min(72vw, 280px);
  min-width: 200px;
  min-height: 200px;
  height: auto;
  aspect-ratio: 1;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  image-rendering: pixelated;
}

.smm-rail-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid #e4beba;
  border-radius: 0.75rem;
  background: #fff;
  font-family: "Prompt", sans-serif;
  font-weight: 600;
  text-align: left;
}

.smm-rail-btn:focus,
.smm-rail-btn:hover { border-color: #af101a; }

.smm-rail-logo {
  width: 40px;
  height: auto;
  max-height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.smm-thaiqr-badge {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.smm-hist-chip.is-on {
  background: #d32f2f;
  color: #fff2f0;
}

.smm-hist-tab.is-on {
  background: #d32f2f;
  color: #fff2f0;
}

.smm-hist-tab:not(.is-on) {
  background: #e4e2e1;
  color: #5b403d;
}

.smm-rail-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0eded;
  color: #5d5f5f;
}

.smm-product-scroll {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Horizontal swipe rail — cards peek the next item; page itself stays overflow-x hidden */
.smm-card-rail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  max-width: 100%;
  padding-bottom: 0.5rem;
}

.smm-card-rail::-webkit-scrollbar {
  height: 4px;
}

.smm-card-rail::-webkit-scrollbar-track {
  background: transparent;
}

.smm-card-rail::-webkit-scrollbar-thumb {
  background: #e4beba;
  border-radius: 999px;
}

.smm-card-rail > article,
.smm-card-rail > .smm-product-card,
.smm-card-rail > .smm-venue-card {
  flex: 0 0 auto;
  width: min(78vw, 280px);
  max-width: min(78vw, 280px);
  min-width: min(78vw, 280px);
  scroll-snap-align: start;
}

.smm-card-rail > p {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  scroll-snap-align: none;
}

.smm-product-card {
  min-width: 160px;
  max-width: 160px;
  flex-shrink: 0;
}

.smm-card-rail .smm-product-card {
  min-width: min(78vw, 280px);
  max-width: min(78vw, 280px);
}

.smm-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  min-width: 0;
}

.smm-bar-label {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smm-bar-track {
  height: 10px;
  background: #f0eded;
  border-radius: 999px;
  overflow: hidden;
}

.smm-bar-fill {
  display: block;
  height: 100%;
  background: #af101a;
  border-radius: 999px;
}

.smm-bar-val {
  font-size: 11px;
  color: #5d5f5f;
}

#agri-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#agri-price-table th,
#agri-price-table td {
  border-bottom: 1px solid #e4beba;
  padding: 0.5rem;
  text-align: left;
  word-break: break-word;
}

#agri-stale-banner:not(.hidden) {
  background: #ffdad6;
  color: #93000a;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.smm-news-hero {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #8b0c15;
}

.smm-news-hero__img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.smm-news-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 28, 28, 0.05) 20%, rgba(139, 12, 21, 0.82) 100%);
  pointer-events: none;
}

.smm-news-hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 1.15rem;
  color: #fff2f0;
}

.smm-news-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  opacity: 0.9;
}

.smm-news-hero__title {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
}

.smm-news-hero__meta {
  font-size: 12px;
  margin: 0 0 0.75rem;
  opacity: 0.9;
}

.smm-news-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: #af101a;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.smm-news-read--block {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: "Prompt", sans-serif;
}

.smm-news-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.75rem;
  background: #ffffff;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(27, 28, 28, 0.06);
  border: 1px solid #e4beba;
}

.smm-news-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.smm-news-card__body {
  padding: 0.65rem 0.75rem 0.75rem 0;
  min-width: 0;
}

.smm-news-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.2rem;
  color: #1b1c1c;
}

.smm-news-card .smm-news-meta {
  font-size: 11px;
  color: #5d5f5f;
  margin: 0 0 0.35rem;
}

.smm-news-card .smm-news-excerpt {
  font-size: 12px;
  color: #5d5f5f;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.smm-origin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f0eded;
  color: #5d5f5f;
  flex-shrink: 0;
}

.smm-origin-pill.is-live {
  background: #e8f5e9;
  color: #2e7d32;
}

.smm-origin-pill.is-cache,
.smm-origin-pill.is-sample {
  background: #fff4e5;
  color: #9a5b00;
}

.smm-price-chip-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  max-width: 100%;
}

.smm-price-chip {
  scroll-snap-align: start;
  flex: 0 0 148px;
  background: #ffffff;
  border: 1px solid #e4beba;
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(27, 28, 28, 0.05);
  min-width: 148px;
}

.smm-price-chip img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.smm-price-chip__name {
  font-size: 13px;
  font-weight: 600;
  margin: 0.45rem 0 0.15rem;
  color: #1b1c1c;
  overflow-wrap: anywhere;
}

.smm-price-chip__price {
  font-size: 16px;
  font-weight: 700;
  color: #af101a;
  margin: 0;
}

.smm-price-chip__chg {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 0.25rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0eded;
  color: #5d5f5f;
}

.smm-price-chip__chg.is-up {
  background: #e8f5e9;
  color: #2e7d32;
}

.smm-price-chip__chg.is-down {
  background: #ffdad6;
  color: #93000a;
}

.smm-dash-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 2px 10px rgba(27, 28, 28, 0.06);
  border: 1px solid #e4beba;
  min-width: 0;
}

.smm-dash-card__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #1b1c1c;
}

.smm-dash-canvas {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
}

.smm-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e4beba;
  overflow: hidden;
}

.smm-source-list li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0eded;
  font-size: 13px;
  color: #5d5f5f;
  overflow-wrap: anywhere;
}

.smm-source-list li:last-child {
  border-bottom: 0;
}

.smm-source-list a {
  color: #af101a;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 768px) {
  .smm-news-hero__img { height: 320px; }
  .smm-news-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .smm-news-card img {
    width: 140px;
    height: 120px;
  }
  .smm-price-chip-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .smm-price-chip {
    flex: none;
    min-width: 0;
    width: auto;
  }
}

.smm-drawer-link,
.smm-modal-card a.smm-rail-btn {
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .smm-modal { align-items: center; }
  .smm-modal-card { border-radius: 1rem; }
}

@media (min-width: 1024px) {
  body {
    background: #f0eded;
  }
  body > .w-full.max-w-md,
  body .max-w-md {
    max-width: 72rem !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  }
}

.smm-tab-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.smm-tab-bar button {
  flex: 1 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e4beba;
  background: #ffffff;
  color: #5d5f5f;
  font-family: Prompt, sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.smm-tab-bar button.is-on,
.smm-chip.is-on {
  background: #af101a;
  color: #ffffff;
  border-color: #af101a;
}

.smm-venue-card,
.smm-job-card {
  background: #ffffff;
  border: 1px solid #e4beba;
  border-radius: 0.75rem;
  overflow: hidden;
  min-width: 0;
}

.smm-venue-card img,
.smm-job-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.smm-quote-box {
  background: #fff2f0;
  border: 1px solid #e4beba;
  border-radius: 0.75rem;
  padding: 1rem;
  min-width: 0;
}

.smm-quote-box strong {
  color: #af101a;
  font-size: 1.25rem;
}

#smm-market-grid,
#smm-shop-sku-grid,
#smm-venue-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

#smm-market-grid > article,
#smm-shop-sku-grid > article,
#smm-venue-grid > article {
  flex: 0 0 auto;
  width: min(78vw, 280px);
  scroll-snap-align: start;
}

#smm-cart-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  #smm-cart-jobs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.smm-carrier-help {
  display: block;
  font-size: 0.75rem;
  color: #5d5f5f;
  font-weight: 400;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

#shop-carrier-box {
  max-width: 100%;
}

.smm-sku-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e4beba;
  min-width: 0;
}

.smm-sku-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.smm-sku-row .smm-sku-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.smm-sku-row .smm-sku-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.smm-shop-carriers {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.smm-shop-carrier {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #e4beba;
  border-radius: 0.75rem;
}

.smm-carrier-logo {
  width: 56px;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  border-radius: 0.35rem;
  background: #fff;
  padding: 2px;
}

.smm-shop-carrier-mark {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: #af101a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#sku-photo-preview {
  max-width: 100%;
}

.smm-dropzone {
  border: 2px dashed #e4beba;
  border-radius: 12px;
  background: #fff;
  min-height: 7rem;
  padding: 0.85rem;
}
.smm-dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 6rem;
  text-align: center;
  cursor: pointer;
  color: #5d5f5f;
  position: relative;
}
.smm-dropzone-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.smm-dropzone.is-dragover {
  border-color: #af101a;
  background: #fdecee;
}
.smm-ad-badge,
.smm-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}
.smm-ad-badge { background: #fdecee; color: #af101a; }
.smm-featured-badge { background: #fff3e0; color: #9a3412; }
.smm-public-box input { margin-top: 0.25rem; flex-shrink: 0; }

.smm-ereceive-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #af101a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.smm-ereceive-note {
  font-size: 12px;
  line-height: 1.45;
  color: #5d5f5f;
}
.smm-ereceive-card {
  border: 1px solid #e4beba;
}

html body i.fa-solid[class*="fa-"],
html body i.fas[class*="fa-"],
html body i.far[class*="fa-"],
html body i.fab[class*="fa-"],
html body i.fa-regular[class*="fa-"],
html body i.fa-brands[class*="fa-"],
html body i.fa[class*="fa-"],
html body .smm-ib i[class*="fa-"] {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
}
html body i.fa-brands[class*="fa-"],
html body i.fab[class*="fa-"] {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

.seller-hours {
  border: 1px solid #e4beba;
  border-radius: 12px;
  padding: .75rem;
  min-width: 0;
}

.seller-hours-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.seller-hours input[type="time"] {
  width: 100%;
  max-width: none;
  min-height: 44px;
}

.seller-hours-allday {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-top: .5rem;
}

@media (max-width: 767px) {
  .seller-hours-row { grid-template-columns: 1fr; }
}

