/**
 * Store plugin — bio widget + checkout scoped styles (public pages / bio embeds).
 * Dashboard/admin UIs rely on theme Tailwind classes.
 */

.store-submit-spinner {
  display: inline-block;
  flex-shrink: 0;
  animation: store-spin 0.7s linear infinite;
}

button.is-loading,
input.is-loading {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

@keyframes store-spin {
  to { transform: rotate(360deg); }
}

html.store-modal-open,
html.store-modal-open body {
  overflow: hidden;
}

.store-plugin-root,
.store-plugin-widget,
#store-plugin {
  color: var(--store-fg);
  font-size: 15px;
  line-height: 1.45;
}

/* —— Bio widget grid —— */
.store-plugin-widget .store-widget-heading {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.store-plugin-widget .store-widget-grid {
  display: grid;
  gap: 0.85rem;
}

.store-plugin-widget.store-cols-1 .store-widget-grid { grid-template-columns: 1fr; }
.store-plugin-widget.store-cols-2 .store-widget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store-plugin-widget.store-cols-3 .store-widget-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.store-plugin-widget.store-cols-4 .store-widget-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.store-plugin-widget.store-plugin-list .store-widget-grid { grid-template-columns: 1fr; }

@media (max-width: 640px) {
  .store-plugin-widget.store-cols-2 .store-widget-grid,
  .store-plugin-widget.store-cols-3 .store-widget-grid,
  .store-plugin-widget.store-cols-4 .store-widget-grid {
    grid-template-columns: 1fr;
  }
}

.store-plugin-root .store-bio-product-card,
.store-plugin-widget .store-bio-product-card,
.store-bio-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  overflow: clip !important;
  text-align: start;
  text-decoration: none;
  padding: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
  isolation: isolate;
}

.store-plugin-root .store-bio-product-card.btn-custom,
.store-plugin-widget .store-bio-product-card.btn-custom,
.store-bio-product-card.btn-custom {
  /* Let bio theme (.btn-custom) own colors / radius / shadow */
  border-style: solid;
  padding: 0 !important;
  overflow: hidden !important;
  overflow: clip !important;
}

.store-bio-product-card > .store-bio-link {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  line-height: 0;
}

.store-bio-product-media {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.store-bio-product-media > .store-bio-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.store-bio-product-media-empty {
  min-height: 2.5rem;
}

.store-plugin-list .store-bio-product-card > .store-bio-product-media {
  width: 120px;
  flex: 0 0 120px;
  align-self: stretch;
}

.store-plugin-list .store-bio-product-media .store-bio-product-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
}

.store-bio-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.store-bio-product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
}

.store-plugin-list .store-bio-product-card {
  flex-direction: row;
  align-items: stretch;
}

.store-plugin-list .store-bio-product-body {
  min-width: 0;
  flex: 1;
}

.store-plugin-list .store-bio-product-card > .store-bio-link {
  width: 120px;
  flex: 0 0 120px;
  align-self: stretch;
}

.store-plugin-list .store-bio-product-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
}

.store-bio-product-image {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 0;
}

.store-bio-product-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: inherit !important;
}

.store-bio-link {
  color: inherit !important;
  text-decoration: none;
}

.store-bio-product-desc {
  margin: 0;
  opacity: 0.75;
  font-size: 0.82rem;
  color: inherit !important;
}

.store-bio-product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  color: inherit !important;
}

.store-bio-compare {
  opacity: 0.65;
  text-decoration: line-through;
  font-size: 0.85rem;
  color: inherit !important;
}

.store-bio-price {
  font-weight: 700;
  color: inherit !important;
}

.store-bio-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.9;
  font-size: 0.8rem;
  color: inherit !important;
  line-height: 1;
}

.store-bio-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.store-bio-stars .sco-star {
  font-size: 0.82rem;
  line-height: 1;
  color: color-mix(in srgb, currentColor 28%, transparent) !important;
}

.store-bio-stars .sco-star.is-on {
  color: #f5a524 !important;
}

.store-bio-rating-score {
  font-size: 0.78rem;
  font-weight: 650;
  opacity: 0.85;
}

.store-bio-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.store-bio-badge-overlay {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.store-bio-badge-muted {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.store-bio-badge-warn {
  background: rgba(255, 247, 237, 0.92);
  color: #9a3412;
}

.store-bio-badge-overlay.store-bio-badge-warn {
  background: rgba(255, 247, 237, 0.92);
  color: #9a3412;
}

.store-bio-badge-overlay.store-bio-badge-muted {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.store-plugin-root a.store-bio-buy,
.store-plugin-widget a.store-bio-buy,
a.store-bio-buy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: auto 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  border-top: 1px solid transparent;
  border-radius: 0;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  /* Beat bio .btn-custom solid fills */
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--bio-button-text, inherit) !important;
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    filter 0.15s ease,
    backdrop-filter 0.15s ease,
    box-shadow 0.15s ease;
}

.store-bio-product-card > .store-bio-product-body > a.store-bio-buy,
.store-bio-product-body > a.store-bio-buy {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.store-plugin-root a.store-bio-buy::before,
.store-plugin-widget a.store-bio-buy::before,
a.store-bio-buy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-color: var(--bio-button, currentColor);
  opacity: 0.68;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 100%);
}

.store-plugin-root a.store-bio-buy::after,
.store-plugin-widget a.store-bio-buy::after,
a.store-bio-buy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 100%);
}

.store-plugin-root a.store-bio-buy:hover,
.store-plugin-widget a.store-bio-buy:hover,
a.store-bio-buy:hover {
  opacity: 1;
  color: var(--bio-button-text, inherit) !important;
  background: transparent !important;
  background-color: transparent !important;
  filter: brightness(1.05);
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.store-plugin-root a.store-bio-buy:hover::before,
.store-plugin-widget a.store-bio-buy:hover::before,
a.store-bio-buy:hover::before {
  opacity: 0.8;
}

.store-plugin-root a.store-bio-buy:active,
.store-plugin-widget a.store-bio-buy:active,
a.store-bio-buy:active {
  filter: brightness(0.98);
}

.store-bio-checkout-loading,
.store-bio-checkout-placeholder {
  padding: 1.5rem;
  text-align: center;
  color: var(--store-muted);
}

.store-alert {
  margin: 0.75rem;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
}

.store-alert-danger {
  background: rgba(185, 28, 28, 0.1);
  color: var(--store-danger);
}

/* —— Stripe Payment Link–style checkout —— */

.sco {
  color: var(--bio-text, #30313d);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sco-checkout-page {
  display: block;
  min-height: 100vh;
}

.sco-stripe .sco-split {
  display: grid;
  min-height: 100vh;
  width: 100%;
}

@media (min-width: 980px) {
  .sco-stripe .sco-split {
    grid-template-columns: minmax(0, 0.88fr) minmax(400px, 1.12fr);
  }
}

/* —— Left summary —— */
.sco-product-panel {
  color: var(--bio-text, #30313d);
  padding: 1.5rem 1.25rem 2rem;
  background: color-mix(in srgb, var(--bio-text, #1a1a1a) 3.5%, #f7f8f9);
}

@media (min-width: 980px) {
  .sco-product-panel {
    padding: 2.75rem clamp(1.75rem, 5vw, 5rem) 3.25rem 2rem;
    display: flex;
    justify-content: flex-end;
  }
}

.sco-product-panel-inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 980px) {
  .sco-product-panel-inner {
    margin: 0;
    margin-left: auto;
  }
}

.sco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sco-store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-decoration: none !important;
  color: inherit;
  margin: 0;
}

.sco-store:hover {
  opacity: 0.85;
}

.sco-back {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.sco-back:hover {
  opacity: 1;
}

.sco-back svg {
  flex-shrink: 0;
}

.sco-back-mobile {
  display: inline-flex;
  margin: 0 0 1.25rem;
  color: #30313d;
  opacity: 0.7;
}

@media (min-width: 980px) {
  .sco-back-mobile {
    display: none;
  }
}

.sco-store-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sco-store-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: var(--bio-button, #000);
  flex-shrink: 0;
}

.sco-store-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sco-amount-card {
  display: flex;
  align-items: center;
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bio-text, #000) 4%, #fff);
  border: 1px solid color-mix(in srgb, var(--bio-text, #000) 10%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--bio-text, #000) 4%, transparent);
}

.sco-amount-value {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--bio-text, #30313d);
}

.sco-hero-media {
  margin: 0 0 1.25rem;
}

.sco-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bio-text, #000) 6%, transparent);
}

.sco-hero-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.sco-hero-thumb {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.sco-hero-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sco-hero-thumb:hover,
.sco-hero-thumb.is-active {
  opacity: 1;
  border-color: var(--bio-button, #635bff);
}

.sco-line-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.sco-line-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: color-mix(in srgb, var(--bio-text, #000) 8%, transparent);
}

.sco-line-thumb-empty {
  display: block;
  background: color-mix(in srgb, var(--bio-text, #000) 10%, transparent);
}

.sco-line-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sco-line-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--bio-text, #30313d);
}

.sco-line-price {
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--bio-text, #30313d);
}

.sco-line-desc {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--bio-text, #30313d) 62%, transparent);
}

.sco-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
}

.sco-rating-lg {
  margin-top: 0.55rem;
}

.sco-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  line-height: 1;
}

.sco-star {
  font-size: 0.9rem;
  line-height: 1;
  color: color-mix(in srgb, var(--bio-text, #30313d) 22%, transparent) !important;
}

.sco-star.is-on {
  color: #f5a524 !important;
}

.sco-stars .sco-star,
.store-bio-stars .sco-star {
  width: auto;
  font-style: normal;
}

.sco-stars-sm .sco-star {
  font-size: 0.72rem;
}

.sco-rating-score {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--bio-text, #30313d);
}

.sco-rating-count {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--bio-text, #30313d) 58%, transparent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.sco-rating-count:hover {
  color: var(--bio-text, #30313d);
}

.sco-reviews {
  margin: 1.35rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid color-mix(in srgb, var(--bio-text, #30313d) 10%, transparent);
}

.sco-reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sco-reviews-head-main {
  min-width: 0;
  flex: 1;
}

.sco-reviews-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bio-text, #30313d);
}

.sco-reviews-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sco-reviews-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bio-text, #30313d) 14%, transparent);
  background: color-mix(in srgb, var(--bio-text, #30313d) 4%, transparent);
  color: var(--bio-text, #30313d);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.sco-reviews-arrow:hover:not(:disabled) {
  background: color-mix(in srgb, var(--bio-text, #30313d) 8%, transparent);
  border-color: color-mix(in srgb, var(--bio-text, #30313d) 22%, transparent);
}

.sco-reviews-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.sco-reviews-viewport {
  --sco-reviews-bleed: 1.25rem;
  position: relative;
  margin-right: calc(-1 * var(--sco-reviews-bleed));
  width: calc(100% + var(--sco-reviews-bleed));
}

@media (min-width: 980px) {
  .sco-reviews-viewport {
    --sco-reviews-bleed: clamp(1.75rem, 5vw, 5rem);
  }
}

.sco-reviews-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.75rem;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to right,
    transparent 0%,
    color-mix(in srgb, var(--bio-text, #1a1a1a) 3.5%, #f7f8f9) 72%
  );
  box-shadow: inset -18px 0 22px -10px color-mix(in srgb, var(--bio-text, #1a1a1a) 18%, transparent);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.sco-reviews-viewport.is-at-end::after {
  opacity: 0;
}

.sco-reviews-list {
  list-style: none;
  margin: 0;
  padding: 0.15rem var(--sco-reviews-bleed) 0.15rem 0;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sco-reviews-list::-webkit-scrollbar {
  display: none;
}

.sco-review {
  flex: 0 0 min(100%, 17.5rem);
  max-width: min(100%, 17.5rem);
  scroll-snap-align: start;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--bio-text, #30313d) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--bio-text, #30313d) 8%, transparent);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 8.5rem;
}

.sco-review-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.35rem;
}

.sco-review-author {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--bio-text, #30313d);
}

.sco-review-date {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--bio-text, #30313d) 50%, transparent);
  margin-left: auto;
}

.sco-review-title {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--bio-text, #30313d);
}

.sco-review-body {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--bio-text, #30313d) 72%, transparent);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.sco-review-reply {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px dashed color-mix(in srgb, var(--bio-text, #30313d) 12%, transparent);
}

.sco-review-reply-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bio-text, #30313d) 55%, transparent);
}

.sco-review-reply p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--bio-text, #30313d) 70%, transparent);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.sco-product-options {
  margin: 0 0 1.25rem;
}

.sco-product-options-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bio-text, #30313d) 55%, transparent);
}

.sco-product-options .sco-options {
  display: grid;
  gap: 0.5rem;
}

.sco-hero-body {
  margin: 0 0 1.35rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--bio-text, #30313d) 72%, transparent);
}

.sco-hero-body p {
  margin: 0 0 0.7rem;
  color: inherit !important;
}

.sco-hero-body p:last-child {
  margin-bottom: 0;
}

.sco-summary-totals {
  border-top: 1px solid color-mix(in srgb, var(--bio-text, #000) 12%, transparent);
  padding-top: 0.95rem;
}

.sco-summary-totals .sco-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--bio-text, #30313d) 72%, transparent);
}

.sco-summary-totals .sco-total-row-final {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--bio-text, #000) 12%, transparent);
  color: var(--bio-text, #30313d);
  font-size: 1rem;
  font-weight: 650;
}

.sco-summary-totals .sco-total-row-final strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bio-text, #30313d);
}

/* —— Right form —— */
.sco-checkout-panel {
  background: #fff;
  color: #30313d;
  border-top: 1px solid #e6e8eb;
}

@media (min-width: 980px) {
  .sco-checkout-panel {
    border-top: 0;
    border-left: 1px solid #e6e8eb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2.5rem 1.5rem;
    box-sizing: border-box;
  }
}

.sco-checkout-sticky {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.65rem 1.25rem 2.5rem;
  box-sizing: border-box;
}

@media (min-width: 980px) {
  .sco-checkout-sticky {
    margin: 0;
    padding: 0;
  }
}

.sco-mobile-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #e6e8eb;
}

@media (min-width: 980px) {
  .sco-mobile-product {
    display: none;
  }
}

.sco-mobile-product-img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 6px;
  object-fit: cover;
}

.sco-mobile-product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sco-mobile-product-name {
  font-size: 0.88rem;
  font-weight: 650;
  color: #30313d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sco-section {
  margin-bottom: 1.85rem;
}

.sco-form-title {
  margin: 0 0 0.95rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #30313d;
}

.sco-field {
  position: relative;
  margin-bottom: 0.55rem;
}

.sco-field-icon .sco-input {
  padding-left: 2.65rem;
}

.sco-field-ico {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: #8898aa;
  pointer-events: none;
  z-index: 1;
}

.sco-field-optional .sco-input {
  padding-right: 4.35rem;
}

.sco-field-hint {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: #8898aa;
  pointer-events: none;
}

.sco-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.85rem;
  border: 1px solid #d8dee6 !important;
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  background: #fff;
  color: #30313d;
  font: inherit;
  font-size: 0.95rem;
  outline: none !important;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sco-input::placeholder {
  color: #8898aa;
}

.sco-input:hover {
  border-color: #aeb7c2 !important;
  box-shadow: none;
}

.sco-input:focus,
.sco-input:focus-visible,
.sco-select:focus,
.sco-select:focus-visible,
.sco-search-select-input:focus,
.sco-search-select-input:focus-visible,
.sco-search-select.is-open .sco-search-select-input {
  outline: none !important;
  border-color: #4b5563 !important;
  box-shadow: 0 0 0 1px #4b5563 !important;
}

.sco-field:focus-within .sco-field-ico {
  color: #4b5563;
}

.sco-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238898aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.sco-search-select {
  position: relative;
}

.sco-search-select .sco-select.is-enhanced {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sco-search-select-input {
  width: 100%;
}

.sco-search-select-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  display: none;
}

.sco-search-select.is-open .sco-search-select-list {
  display: block;
}

.sco-search-select-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #30313d;
  text-align: left;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.sco-search-select-option:hover,
.sco-search-select-option.is-active {
  background: color-mix(in srgb, var(--bio-button, #635bff) 10%, #fff);
}

.sco-search-select-empty {
  padding: 0.65rem 0.7rem;
  color: #8898aa;
  font-size: 0.85rem;
}

.sco-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 560px) {
  .sco-row {
    grid-template-columns: 1fr 1fr;
  }
}

.sco-options {
  display: grid;
  gap: 0.45rem;
}

.sco-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--bio-text, #30313d) 12%, transparent);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  background: color-mix(in srgb, var(--bio-text, #000) 2.5%, #fff);
  color: var(--bio-text, #30313d);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sco-option:hover {
  border-color: color-mix(in srgb, var(--bio-text, #30313d) 22%, transparent);
  background: #fff;
}

.sco-option.selected {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
  background: rgba(0, 0, 0, 0.035);
}

.sco-option-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1;
}

.sco-option-radio {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  border: 1.5px solid color-mix(in srgb, var(--bio-text, #30313d) 28%, transparent);
  border-radius: 999px;
  background: #fff;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sco-option.selected .sco-option-radio {
  border-color: #000;
  background: #000;
}

.sco-option.selected .sco-option-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: #fff;
}

.sco-option-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sco-option-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
}

.sco-option-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bio-text, #30313d) 8%, transparent);
  color: color-mix(in srgb, var(--bio-text, #30313d) 72%, transparent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sco-option.is-original .sco-option-badge {
  background: color-mix(in srgb, var(--bio-button, #30313d) 12%, transparent);
  color: var(--bio-button, #30313d);
}

.sco-option-delta {
  font-size: 0.75rem;
  font-weight: 550;
  color: color-mix(in srgb, var(--bio-text, #30313d) 55%, transparent);
}

.sco-option-delta-muted {
  font-weight: 500;
}

.sco-option-price {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sco-promo-inline {
  margin-bottom: 0.85rem;
}

.sco-promo-field {
  display: flex;
  gap: 0.5rem;
}

.sco-promo-field .sco-input {
  flex: 1 1 auto;
  min-width: 0;
}

.sco-promo-apply {
  border: 1px solid #e0e3e8;
  border-radius: 6px;
  background: #f6f9fc;
  color: #30313d;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.sco-promo-apply:hover {
  background: #eef2f7;
}

.sco-promo-msg {
  display: block;
  margin-top: 0.35rem;
  color: #697386;
  font-size: 0.78rem;
}

.sco-pay-box {
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 0.55rem;
  background: #fff;
}

.sco-methods {
  display: grid;
  gap: 0.4rem;
}

.sco-method {
  display: block;
  cursor: pointer;
}

.sco-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sco-method-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  background: #f6f9fc;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.sco-method input:checked + .sco-method-card {
  background: #fff;
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}

.sco-method-icon {
  display: inline-flex;
  color: #30313d;
  flex-shrink: 0;
}

.sco-method-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.sco-method-title {
  font-size: 0.9rem;
  font-weight: 650;
  color: #30313d;
}

.sco-method-sub {
  font-size: 0.75rem;
  color: #697386;
}

.sco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.15rem;
  border-radius: 6px;
  border: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  padding: 0 1.25rem;
  transition: background-color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sco-btn-pay {
  width: 100%;
  margin-top: 0.65rem;
}

.sco-btn-primary {
  background: #000;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sco-btn-primary:hover {
  filter: none;
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sco-btn-primary:active {
  transform: translateY(1px);
  background: #000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sco-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Keep Pay CTA readable on the white panel even when bio button is light */
.sco-stripe .sco-btn-primary {
  background: #000 !important;
  color: #fff !important;
}

.sco-stripe .sco-btn-primary:hover {
  background: #1a1a1a !important;
  color: #fff !important;
}

.sco-legal {
  margin: 1.15rem 0 0;
  text-align: center;
  color: #8898aa;
  font-size: 0.75rem;
}

.sco-legal a {
  color: #697386;
  text-decoration: none !important;
}

.sco-legal a:hover {
  text-decoration: underline !important;
}

.sco-error {
  display: none;
  margin-top: 0.85rem;
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
  font-size: 0.875rem;
}

.sco-error.is-visible {
  display: block;
}

.store-alert {
  margin: 0.5rem 0;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
}

.store-alert-warn {
  background: #fff7ed;
  color: #9a3412;
}

/* Keep right pane readable against bio Gate CSS */
.sco-stripe .sco-checkout-panel,
.sco-stripe .sco-checkout-sticky {
  color: #30313d;
}


/* —— Checkout —— */
.store-checkout {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem;
}

.store-checkout-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .store-checkout-layout {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: start;
  }
}

.store-checkout-panel,
.store-checkout-summary {
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  background: var(--store-bg);
  padding: 1rem;
}

.store-checkout-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.store-form-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .store-form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.store-form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 650;
}

.store-form-input,
.store-form-select,
.store-form-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--store-border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

.store-form-input:focus,
.store-form-select:focus,
.store-form-textarea:focus {
  outline: none;
  border-color: #4b5563;
  box-shadow: 0 0 0 1px #4b5563;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}

.store-button-primary {
  border: 1px solid var(--store-accent);
  background: var(--store-accent);
  color: var(--store-accent-fg);
}

.store-button-secondary {
  border: 1px solid var(--store-border);
  background: #fff;
  color: var(--store-fg);
}

.store-variations:not(.sco-options) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-variation-item:not(.sco-option) {
  border: 1px solid var(--store-border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.store-variation-item:not(.sco-option).selected {
  border-color: var(--store-accent);
  background: var(--store-accent);
  color: var(--store-accent-fg);
}

.store-checkout [data-phase] {
  display: none;
}

.store-checkout [data-phase].is-active {
  display: block;
}

.store-phase-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.store-phase-indicators [data-phase-indicator] {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: var(--store-soft);
  color: var(--store-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.store-phase-indicators [data-phase-indicator].is-active,
.store-phase-indicators [data-phase-indicator].is-done {
  background: var(--store-accent);
  color: var(--store-accent-fg);
}

.store-phase-progress {
  height: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--store-soft);
}

.store-phase-progress-fill {
  height: 100%;
  width: 0;
  background: var(--store-accent);
  transition: width 0.2s ease;
}

.store-coupon-row {
  display: flex;
  gap: 0.5rem;
}

.store-coupon-row .store-form-input {
  flex: 1;
}

.store-coupon-message {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--store-muted);
}

.sco-stripe-fields {
  margin-top: 0.55rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  background: #fff;
}

.sco-payment-element,
.sco-card-element {
  min-height: 1.25rem;
}

.sco-card-errors {
  margin-top: 0.5rem;
  color: #b91c1c;
  font-size: 0.8rem;
}

#payment-element,
#card-element {
  border: 0;
  border-radius: 0;
  padding: 0.15rem 0;
  background: transparent;
}

#payment-errors,
#card-errors {
  margin-top: 0.35rem;
  color: #b91c1c;
  font-size: 0.8rem;
}

.store-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0;
  font-size: 0.9rem;
}

.store-summary-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--store-border);
  font-weight: 700;
}

/* Success page */
.store-success {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
  background: transparent;
  color: #111827;
}

.store-success-shell {
  width: 100%;
  max-width: 28rem;
}

.store-success-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 1rem;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.store-success-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}

.store-success-title {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #111827 !important;
}

.store-success-copy {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #6b7280 !important;
}

.store-success-summary {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.75rem;
  background: #f9fafb;
  text-align: left;
}

.store-success-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.86rem;
}

.store-success-row span {
  color: #6b7280 !important;
}

.store-success-row strong {
  color: #111827 !important;
  font-weight: 650;
  text-align: right;
}

.store-success-row-total {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.store-success-download {
  margin: 0 0 1.25rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(22, 163, 74, 0.25);
  background: #f0fdf4;
  text-align: left;
}

.store-success-download strong {
  display: block;
  color: #166534 !important;
  font-size: 0.9rem;
}

.store-success-download p {
  margin: 0.35rem 0 0.8rem;
  color: #15803d !important;
  font-size: 0.82rem;
  line-height: 1.45;
}

.store-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.store-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.65rem 1.05rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.store-success-btn-primary,
.store-success-btn-download {
  background: #111827 !important;
  color: #fff !important;
  border: 1px solid #111827 !important;
}

.store-success-btn-primary:hover,
.store-success-btn-download:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

.store-success-btn-secondary {
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid rgba(17, 24, 39, 0.14) !important;
}

.store-success-btn-secondary:hover {
  background: #f9fafb !important;
  color: #111827 !important;
}

.store-success-btn-download {
  width: 100%;
}

/* Public review form */
.store-review {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: transparent;
  color: #111827;
  box-sizing: border-box;
}

.store-review-shell {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

.store-review-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  padding: 1.5rem 1.35rem 1.75rem;
}

.store-review-product {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.store-review-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.65rem;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.store-review-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.45);
}

.store-review-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.3;
}

.store-review-copy {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.6);
}

.store-review-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-review-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .store-review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.store-review-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.store-review-label {
  font-size: 0.85rem;
  font-weight: 650;
}

.store-review-input {
  display: block;
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-review-input:focus {
  border-color: rgba(17, 24, 39, 0.35);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.store-review-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
}

.store-review-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.store-review-stars label {
  cursor: pointer;
  color: #d1d5db;
  font-size: 1.45rem;
  line-height: 1;
  transition: color 0.12s ease, transform 0.12s ease;
}

.store-review-stars label:hover,
.store-review-stars label:hover ~ label,
.store-review-stars input:checked ~ label {
  color: #f59e0b;
}

.store-review-stars label:hover {
  transform: scale(1.08);
}

.store-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.35rem;
}

.store-review-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111827;
  border-radius: 0.65rem;
  background: #111827;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

a.store-review-submit,
a.store-review-submit:visited,
a.store-review-submit:hover,
a.store-review-submit:focus,
button.store-review-submit {
  color: #fff !important;
}

.store-review-submit:hover {
  background: #1f2937;
  color: #fff !important;
}

.store-review-back {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.65);
  text-decoration: none;
}

.store-review-back:hover {
  color: #111827;
  text-decoration: underline;
}

/* Track order page */
.store-track {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
  background: transparent;
  color: #111827;
}

.store-track-shell {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.store-track-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 1rem;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.store-track-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

.store-track-icon.is-ok {
  background: #dbeafe;
  color: #1d4ed8;
}

.store-track-icon.is-muted {
  background: #fee2e2;
  color: #b91c1c;
}

.store-track-title {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #111827 !important;
}

.store-track-copy {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #6b7280 !important;
}

.store-track-order-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #f9fafb;
  font-size: 0.86rem;
  text-align: left;
}

.store-track-order-chip span {
  color: #6b7280 !important;
}

.store-track-order-chip strong {
  color: #111827 !important;
  font-weight: 650;
  word-break: break-all;
}

.store-track-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(185, 28, 28, 0.2);
  background: #fef2f2;
  color: #b91c1c !important;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
}

.store-track-form {
  text-align: left;
}

.store-track-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: #111827 !important;
}

.store-track-input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 0.65rem;
  background: #fff;
  color: #111827;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-track-input:focus {
  border-color: #4b5563;
  box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.12);
}

.store-track-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0 0 1.15rem;
}

.store-track-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.75rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.75rem;
  background: #f9fafb;
}

.store-track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  position: relative;
}

.store-track-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0.42rem;
  left: calc(50% + 0.45rem);
  width: calc(100% - 0.9rem);
  height: 2px;
  background: rgba(17, 24, 39, 0.12);
}

.store-track-step.is-done:not(:last-child)::after {
  background: #2563eb;
}

.store-track-step-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 39, 0.18);
  background: #fff;
  position: relative;
  z-index: 1;
}

.store-track-step.is-done .store-track-step-dot,
.store-track-step.is-current .store-track-step-dot {
  border-color: #2563eb;
  background: #2563eb;
}

.store-track-step-label {
  font-size: 0.62rem;
  line-height: 1.2;
  color: #9ca3af !important;
  text-align: center;
  word-break: break-word;
}

.store-track-step.is-done .store-track-step-label,
.store-track-step.is-current .store-track-step-label {
  color: #1f2937 !important;
  font-weight: 650;
}

.store-track-summary {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.75rem;
  background: #f9fafb;
  text-align: left;
}

.store-track-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.86rem;
}

.store-track-row span {
  color: #6b7280 !important;
}

.store-track-row strong {
  color: #111827 !important;
  font-weight: 650;
  text-align: right;
}

.store-track-row-total {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.store-track-shipping {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: #eff6ff;
  text-align: left;
}

.store-track-shipping strong {
  display: block;
  color: #1e40af !important;
  font-size: 0.9rem;
}

.store-track-shipping-carrier {
  margin: 0.3rem 0 0.55rem;
  color: #1d4ed8 !important;
  font-size: 0.82rem;
}

.store-track-shipping-code {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #111827 !important;
  font-size: 0.86rem;
  font-weight: 650;
  word-break: break-all;
}

.store-track-note {
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(17, 24, 39, 0.14);
  background: #f9fafb;
  color: #6b7280 !important;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
}

.store-track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.store-track-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.65rem 1.05rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.store-track-btn-primary {
  width: 100%;
  background: #111827 !important;
  color: #fff !important;
  border-color: #111827 !important;
}

.store-track-btn-primary:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

.store-track-btn-secondary {
  background: #fff !important;
  color: #111827 !important;
  border-color: rgba(17, 24, 39, 0.14) !important;
}

.store-track-btn-secondary:hover {
  background: #f9fafb !important;
  color: #111827 !important;
}

.store-track-actions .store-track-btn-primary,
.store-track-actions .store-track-btn-secondary {
  width: auto;
  flex: 1 1 auto;
}

@media (max-width: 420px) {
  .store-track-steps {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    text-align: left;
  }

  .store-track-step {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
  }

  .store-track-step:not(:last-child)::after {
    display: none;
  }

  .store-track-step-label {
    font-size: 0.78rem;
    text-align: left;
  }
}

/* Shipping rule country picker */
.store-country-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.store-country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.store-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.28rem 0.35rem 0.28rem 0.45rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #f4f5f6;
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.dark .store-country-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f4f6;
}

.store-country-chip-flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.store-country-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-country-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.store-country-chip-remove:hover {
  background: rgba(0, 0, 0, 0.16);
}

.dark .store-country-chip-remove {
  background: rgba(255, 255, 255, 0.12);
}

.store-country-suggest {
  position: relative;
}

.store-country-suggest-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.dark .store-country-suggest-list {
  border-color: rgba(255, 255, 255, 0.12);
  background: #171717;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.store-country-suggest-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.store-country-suggest-option:hover,
.store-country-suggest-option.is-active {
  background: rgba(75, 85, 99, 0.1);
}

.store-country-suggest-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 550;
}

.store-country-suggest-code {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.4);
}

.dark .store-country-suggest-code {
  color: rgba(255, 255, 255, 0.4);
}

.store-country-suggest-empty {
  padding: 0.7rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
}

.dark .store-country-suggest-empty {
  color: rgba(255, 255, 255, 0.45);
}

/* Product file / image uploaders */
#store-plugin .store-uploader {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#store-plugin .store-uploader-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#store-plugin .store-uploader-thumbs:empty {
  display: none;
}

#store-plugin .store-uploader-thumb {
  position: relative;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
  overflow: hidden;
  cursor: default;
  user-select: none;
}

.dark #store-plugin .store-uploader-thumb {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

#store-plugin .store-uploader-thumb[draggable="true"] {
  cursor: grab;
}

#store-plugin .store-uploader-thumb.is-dragging {
  opacity: 0.45;
}

#store-plugin .store-uploader-thumb.is-drop-target {
  outline: 2px solid rgba(0, 0, 0, 0.55);
  outline-offset: 1px;
}

.dark #store-plugin .store-uploader-thumb.is-drop-target {
  outline-color: rgba(255, 255, 255, 0.7);
}

#store-plugin .store-uploader-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#store-plugin .store-uploader-filemeta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 0.4rem;
  text-align: center;
  font-size: 0.65rem;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.65);
}

.dark #store-plugin .store-uploader-filemeta {
  color: rgba(255, 255, 255, 0.7);
}

#store-plugin .store-uploader-filemeta i {
  font-size: 1.1rem;
  opacity: 0.7;
}

#store-plugin .store-uploader-filemeta span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

#store-plugin .store-uploader-badge {
  position: absolute;
  left: 0.3rem;
  bottom: 0.3rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.dark #store-plugin .store-uploader-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

#store-plugin .store-uploader-remove {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#store-plugin .store-uploader-remove:hover {
  background: #b91c1c;
}

#store-plugin .store-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 8.5rem;
  padding: 1.25rem 1rem;
  border: 1.5px dashed rgba(0, 0, 0, 0.18);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.015);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dark #store-plugin .store-dropzone {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

#store-plugin .store-dropzone:hover,
#store-plugin .store-dropzone.is-dragover {
  border-color: rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.035);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.dark #store-plugin .store-dropzone:hover,
.dark #store-plugin .store-dropzone.is-dragover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#store-plugin .store-dropzone.is-full {
  display: none;
}

#store-plugin .store-dropzone-icon {
  font-size: 1.45rem;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 0.15rem;
}

.dark #store-plugin .store-dropzone-icon {
  color: rgba(255, 255, 255, 0.45);
}

#store-plugin .store-dropzone-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}

.dark #store-plugin .store-dropzone-title {
  color: rgba(255, 255, 255, 0.85);
}

#store-plugin .store-dropzone-hint {
  max-width: 28rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.45);
}

.dark #store-plugin .store-dropzone-hint {
  color: rgba(255, 255, 255, 0.45);
}

