
.btn[data-invalid="true"] {
  box-shadow: inset 0 0 0 1px rgba(123, 61, 61, 0.18);
}

.btn[data-invalid="true"]:not(:disabled) {
  opacity: 0.92;
}


.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: var(--text-main);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.16); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, rgba(127, 149, 103, 0.52), rgba(96, 118, 76, 0.58));
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 10px 22px rgba(68, 86, 53, 0.12);
}
.btn-ghost {
  background: rgba(255,255,255,0.10);
}
.btn-small {
  padding: 9px 14px;
  font-size: 13px;
}
.btn-block { width: 100%; }
.price-badge {
  border-radius: var(--radius-pill);
  padding: 9px 13px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 700;
}
.variant-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.variant-pill {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: 160ms ease;
}
.variant-pill:hover { background: rgba(255,255,255,0.14); }
.variant-pill.is-active {
  background: rgba(119, 144, 93, 0.28);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 8px 18px rgba(68, 86, 53, 0.12);
}
.variant-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 8px;
  opacity: 0.7;
}
.preview-status {
  font-size: 12px;
  color: var(--text-soft);
}
.preview-substatus {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.82;
}
.purchase-box {
  margin-top: 4px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  gap: 10px;
  position: static;
}
.purchase-note {
  margin: 0 0 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.empty-state {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.22);
  color: var(--text-soft);
}
.helper-note {
  line-height: 1.4;
}

@media (max-width: 760px) {
  .price-badge,
  #payButton {
    display: none;
  }

  .preview-substatus,
  .helper-note,
  #previewStatus {
    display: none;
  }

  .purchase-box {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
    padding: 12px;
    background: rgba(246, 241, 231, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.24);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    gap: 8px;
  }

  .purchase-box .btn-primary {
    min-height: 52px;
    font-weight: 700;
  }
}


@media (max-width: 760px) {
  .variant-selector {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    gap: 8px;
    scrollbar-width: none;
  }

  .variant-selector::-webkit-scrollbar {
    display: none;
  }

  .variant-pill {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .price-badge,
  #payButton {
    display: none;
  }

  #resetFormButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

#mobilePriceBadge {
  display: none;
}

@media (max-width: 760px) {
  #mobilePriceBadge {
    display: inline-flex;
    justify-self: start;
    align-items: center;
  }
}
