/* STOCKDIVAR_STORE_STUDIO_V818 */

body[data-store-studio-v818="true"] .sd-store-studio-v817 {
  min-width: 0;
  --studio-line: var(--line, #e5e7eb);
  --studio-text: var(--text, #172033);
  --studio-muted: var(--muted, #667085);
  --studio-surface: var(--surface, #fff);
  --studio-soft: var(--surface-2, #f7f8fa);
}

.sd-store-slug-field-v818 {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: 13px;
  background: var(--studio-surface);
  direction: ltr;
}

.sd-store-slug-field-v818:focus-within {
  border-color: #b51f2e;
  box-shadow: 0 0 0 3px rgb(181 31 46 / 12%);
}

.sd-store-slug-field-v818 > b {
  display: flex;
  align-items: center;
  padding-inline: 12px;
  color: var(--studio-muted);
  background: var(--studio-soft);
  border-inline-end: 1px solid var(--studio-line);
  font-size: 12px;
  white-space: nowrap;
}

.sd-store-slug-field-v818 > input {
  min-width: 0;
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  direction: ltr;
}

.sd-store-studio-head-v817 {
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}

.sd-store-studio-head-v817::after {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 7px;
  content: "";
  background: linear-gradient(180deg, #a71928, #64101a);
}

.sd-store-studio-head-v817 h1 {
  margin-block: 5px 7px;
}

.sd-store-studio-head-v817 p {
  max-width: 720px;
  margin: 0;
  color: var(--studio-muted);
  line-height: 1.9;
}

.sd-store-head-actions-v817 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.sd-store-head-actions-v817 .store-form-status {
  min-width: 220px;
}

.store-form-status[data-status="approved"] {
  border-color: rgb(16 185 129 / 25%);
  background: #ecfdf5;
}

.store-form-status[data-status="approved"] .status-dot {
  background: #10b981;
  box-shadow: 0 0 0 5px rgb(16 185 129 / 12%);
}

.store-form-status[data-status="rejected"],
.store-form-status[data-status="blocked"] {
  border-color: rgb(220 38 38 / 22%);
  background: #fef2f2;
}

.store-form-status[data-status="rejected"] .status-dot,
.store-form-status[data-status="blocked"] .status-dot {
  background: #dc2626;
  box-shadow: 0 0 0 5px rgb(220 38 38 / 12%);
}

.sd-store-studio-layout-v817 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  align-items: start;
  gap: 20px;
}

.sd-store-editor-v817,
.sd-store-form-v817 {
  min-width: 0;
  display: grid;
  gap: 17px;
}

.sd-store-section-v817 {
  padding: clamp(20px, 3vw, 30px);
}

.sd-store-section-head-v817 {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}

.sd-store-section-head-v817 > span {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #b31f2e, #68101a);
  box-shadow: 0 10px 24px rgb(167 25 40 / 20%);
  font-size: 18px;
  font-weight: 950;
}

.sd-store-section-head-v817 small {
  color: #a71928;
  font-size: 12px;
  font-weight: 900;
}

.sd-store-section-head-v817 h2 {
  margin: 2px 0 4px;
  color: var(--studio-text);
  font-size: clamp(20px, 3vw, 27px);
}

.sd-store-section-head-v817 p {
  margin: 0;
  color: var(--studio-muted);
  line-height: 1.8;
}

.sd-branding-grid-v817 {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(300px, 1.45fr);
  gap: 16px;
}

.sd-brand-upload-v817 {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--studio-line);
  border-radius: 18px;
  background: var(--studio-soft);
}

.sd-brand-upload-v817 > small {
  width: 100%;
  color: var(--studio-muted);
  font-size: 11px;
}

.sd-brand-preview-v817 {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #c7cdd7;
  border-radius: 15px;
  color: #7b8494;
  background:
    linear-gradient(135deg, rgb(167 25 40 / 8%), transparent 55%),
    #fff;
}

.sd-brand-preview-v817.is-logo {
  max-width: 170px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.sd-brand-preview-v817.is-cover {
  aspect-ratio: 5 / 2;
}

.sd-brand-preview-v817 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sd-link-button-v817 {
  border: 0;
  padding: 7px 3px;
  color: #b4232f;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sd-color-row-v817 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: var(--studio-soft);
}

.sd-color-row-v817 > label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.sd-color-row-v817 input[type="color"] {
  width: 52px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: var(--studio-surface);
  cursor: pointer;
}

.sd-color-swatches-v817 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sd-color-swatches-v817 button {
  width: 28px;
  height: 28px;
  border: 3px solid var(--studio-surface);
  border-radius: 50%;
  outline: 1px solid var(--studio-line);
  background: var(--swatch);
  box-shadow: 0 4px 12px rgb(15 23 42 / 12%);
  cursor: pointer;
}

.sd-switch-row-v817 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--studio-line);
  border-radius: 15px;
  background: var(--studio-soft);
  cursor: pointer;
}

.sd-switch-row-v817 input {
  width: 22px;
  height: 22px;
  accent-color: #a71928;
}

.sd-switch-row-v817 span,
.sd-switch-row-v817 strong,
.sd-switch-row-v817 small {
  display: block;
}

.sd-switch-row-v817 small {
  margin-top: 3px;
  color: var(--studio-muted);
  line-height: 1.7;
}

.sd-store-savebar-v817 {
  position: sticky;
  z-index: 20;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-color: rgb(167 25 40 / 16%);
  box-shadow: 0 18px 45px rgb(15 23 42 / 14%);
  backdrop-filter: blur(14px);
}

.sd-store-savebar-v817 > div:last-child {
  display: flex;
  gap: 9px;
}

.sd-store-savebar-v817 strong,
.sd-store-savebar-v817 span {
  display: block;
}

.sd-store-savebar-v817 > div:first-child span {
  margin-top: 3px;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.7;
}

.sd-store-listings-panel-v817 {
  padding: 22px;
}

.sd-store-listings-panel-v817 > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.sd-store-listings-panel-v817 h2 {
  margin: 3px 0 4px;
}

.sd-store-listings-panel-v817 p {
  margin: 0;
  color: var(--studio-muted);
}

.sd-store-listing-stats-v817 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}

.sd-store-listing-stats-v817 > span,
.sd-store-listing-stats-v817 > div {
  padding: 13px;
  border-radius: 14px;
  background: var(--studio-soft);
  color: var(--studio-muted);
}

.sd-store-listing-stats-v817 strong,
.sd-store-listing-stats-v817 small {
  display: block;
}

.sd-store-listing-stats-v817 strong {
  margin-top: 4px;
  color: var(--studio-text);
  font-size: 21px;
}

.sd-store-listing-mini-v817 {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sd-store-listing-mini-v817 a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid var(--studio-line);
  border-radius: 13px;
  color: inherit;
  text-decoration: none;
}

.sd-store-listing-mini-v817 img,
.sd-store-listing-mini-v817 .sd-mini-placeholder-v817 {
  width: 54px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--studio-soft);
  object-fit: cover;
}

.sd-store-listing-mini-v817 strong,
.sd-store-listing-mini-v817 small {
  display: block;
}

.sd-store-listing-mini-v817 small {
  margin-top: 3px;
  color: var(--studio-muted);
}

.sd-store-preview-column-v817 {
  position: sticky;
  top: 18px;
  min-width: 0;
}

.sd-store-preview-label-v817 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  padding-inline: 4px;
}

.sd-store-preview-label-v817 span {
  color: var(--studio-muted);
  font-size: 11px;
}

.sd-store-phone-preview-v817 {
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: 30px;
  background: var(--studio-surface);
  box-shadow: 0 24px 55px rgb(15 23 42 / 15%);
}

.sd-preview-cover-v817 {
  position: relative;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgb(255 255 255 / 74%);
  background:
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 22%), transparent 32%),
    linear-gradient(135deg, var(--store-accent), #171b27);
}

.sd-preview-cover-v817 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-preview-profile-v817 {
  padding: 0 20px 18px;
  text-align: center;
}

.sd-preview-logo-v817 {
  position: relative;
  width: 88px;
  height: 88px;
  margin: -44px auto 9px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid var(--studio-surface);
  border-radius: 27px;
  color: #fff;
  background: var(--store-accent);
  box-shadow: 0 10px 24px rgb(15 23 42 / 18%);
  font-size: 34px;
  font-weight: 950;
}

.sd-preview-logo-v817 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-preview-verified-v817 {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-size: 10px;
  font-weight: 900;
}

.sd-preview-profile-v817 h2 {
  margin: 0;
  font-size: 23px;
}

.sd-preview-profile-v817 p {
  margin: 5px 0 0;
  color: var(--studio-muted);
  line-height: 1.7;
}

.sd-preview-links-v817 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 16px;
}

.sd-preview-links-v817 span {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 12px;
  color: var(--studio-muted);
  background: var(--studio-soft);
  text-align: center;
  font-size: 11px;
}

.sd-preview-links-v817 b {
  padding: 9px 6px;
  border: 1px solid color-mix(in srgb, var(--store-accent) 28%, transparent);
  border-radius: 11px;
  color: var(--store-accent);
  background: color-mix(in srgb, var(--store-accent) 7%, transparent);
  text-align: center;
  font-size: 11px;
}

.sd-preview-about-v817 {
  margin: 0 16px 16px;
  padding: 14px;
  border-radius: 15px;
  background: var(--studio-soft);
}

.sd-preview-about-v817 p {
  margin: 5px 0 0;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.8;
}

.sd-preview-products-v817 {
  padding: 0 16px 20px;
}

.sd-preview-products-v817 > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.sd-preview-products-v817 > div span {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 55%) 48%, transparent 62%),
    var(--studio-soft);
  background-size: 220% 100%;
  animation: sd-store-preview-shimmer-v817 2s linear infinite;
}

@keyframes sd-store-preview-shimmer-v817 {
  to { background-position: -220% 0; }
}

body.dark-mode .store-form-status[data-status="approved"] {
  background: rgb(16 185 129 / 10%);
}

body.dark-mode .store-form-status[data-status="rejected"],
body.dark-mode .store-form-status[data-status="blocked"] {
  background: rgb(220 38 38 / 10%);
}

body.dark-mode .sd-brand-preview-v817 {
  background: #191d24;
  border-color: #3b4350;
}

@media (max-width: 1180px) {
  .sd-store-studio-layout-v817 {
    grid-template-columns: minmax(0, 1fr);
  }

  .sd-store-preview-column-v817 {
    position: static;
    width: min(420px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .sd-store-studio-head-v817,
  .sd-store-listings-panel-v817 > header,
  .sd-store-savebar-v817 {
    align-items: stretch;
    flex-direction: column;
  }

  .sd-store-head-actions-v817 {
    justify-content: stretch;
  }

  .sd-store-head-actions-v817 > * {
    flex: 1 1 auto;
  }

  .sd-store-head-actions-v817 .store-form-status {
    width: 100%;
  }

  .sd-branding-grid-v817 {
    grid-template-columns: 1fr;
  }

  .sd-brand-preview-v817.is-logo {
    max-width: 150px;
  }

  .sd-store-savebar-v817 {
    position: static;
  }

  .sd-store-savebar-v817 > div:last-child,
  .sd-store-listings-panel-v817 > header > a {
    width: 100%;
  }

  .sd-store-savebar-v817 button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .sd-store-section-v817,
  .sd-store-listings-panel-v817 {
    padding: 17px;
  }

  .sd-store-section-head-v817 > span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .sd-color-row-v817 {
    align-items: flex-start;
    flex-direction: column;
  }

  .sd-store-listing-stats-v817 {
    grid-template-columns: 1fr;
  }

  .sd-store-listing-mini-v817 a {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .sd-store-listing-mini-v817 a > small:last-child {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-preview-products-v817 > div span {
    animation: none;
  }
}

/* STOCKDIVAR_STORE_MOBILE_REFINEMENT_V820
   Mobile document picker and message layering. The server-side document limit
   remains 2 MB; large phone photos are prepared by the V820 owner runtime. */
body[data-store-studio-v820="true"] .sd-license-upload-v820 {
  position: relative;
  gap: 12px;
}

body[data-store-studio-v820="true"] .sd-license-picker-v820 {
  position: relative;
  display: grid;
  min-height: 94px;
  overflow: hidden;
  place-items: center;
  border: 1.5px solid rgba(167, 25, 40, .3);
  border-radius: 16px;
  background: rgba(167, 25, 40, .045);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  isolation: isolate;
}

body[data-store-studio-v820="true"] .sd-license-picker-v820:focus-within {
  border-color: #a71928;
  box-shadow: 0 0 0 4px rgba(167, 25, 40, .12);
}

body[data-store-studio-v820="true"] .sd-license-picker-v820 > input[type="file"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: .001;
  cursor: pointer;
  touch-action: manipulation;
}

body[data-store-studio-v820="true"] .sd-license-picker-face-v820 {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 100%;
  padding: 14px 18px;
  place-items: center;
  pointer-events: none;
  text-align: center;
}

body[data-store-studio-v820="true"] .sd-license-picker-face-v820 > b {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 17px;
  border-radius: 12px;
  background: #a71928;
  color: #fff;
  box-shadow: 0 8px 20px rgba(167, 25, 40, .2);
}

body[data-store-studio-v820="true"] .sd-license-picker-face-v820 > small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--studio-muted, #667085);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-store-studio-v820="true"] .sd-license-upload-v820.is-preparing .sd-license-picker-v820 {
  border-color: #d97706;
  background: rgba(245, 158, 11, .08);
}

body[data-store-studio-v820="true"] .sd-license-upload-v820.is-ready .sd-license-picker-v820 {
  border-color: #059669;
  background: rgba(16, 185, 129, .07);
}

body[data-store-studio-v820="true"] .sd-license-upload-v820.is-error .sd-license-picker-v820 {
  border-color: #dc2626;
  background: rgba(220, 38, 38, .06);
}

body[data-store-studio-v820="true"] .sd-license-browser-fallback-v820 {
  width: fit-content;
  color: #8f1723;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.9;
  text-underline-offset: 3px;
}

/* Runtime notices are appended to body after the mobile footer. Keep them in
   the visual viewport and above the application bottom navigation. */
body[data-store-studio-v820="true"] #apiRuntimeToast.api-toast,
body[data-store-studio-v820="true"] #storeToast.store-toast {
  position: fixed !important;
  z-index: 2147483000 !important;
  top: auto !important;
  right: auto !important;
  bottom: 28px !important;
  left: 50% !important;
  width: max-content !important;
  min-width: min(320px, calc(100vw - 24px)) !important;
  max-width: min(520px, calc(100vw - 24px)) !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
}

body[data-store-studio-v820="true"] #apiRuntimeToast[hidden],
body[data-store-studio-v820="true"] #storeToast[hidden],
body[data-store-studio-v820="true"] #apiStatusBanner[hidden] {
  display: none !important;
}

body[data-store-studio-v820="true"] #apiStatusBanner.api-status-banner {
  position: fixed !important;
  z-index: 2147482999 !important;
  right: 12px !important;
  bottom: 28px !important;
  left: 12px !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

@media (max-width: 820px) {
  body[data-store-studio-v820="true"] #apiRuntimeToast.api-toast,
  body[data-store-studio-v820="true"] #storeToast.store-toast,
  body[data-store-studio-v820="true"] #apiStatusBanner.api-status-banner {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body[data-store-studio-v820="true"] .sd-license-picker-v820 {
    min-height: 108px;
  }

  body[data-store-studio-v820="true"] .sd-license-picker-face-v820 {
    width: 100%;
    box-sizing: border-box;
  }

  body[data-store-studio-v820="true"] .sd-license-browser-fallback-v820 {
    width: 100%;
    text-align: center;
  }
}
