/* NFC list + create-card — W2 light shell. Visual only. */

.w2-app--live .w2-nfc-list,
.w2-app--live .w2-nfc-order {
  width: 100%;
  max-width: none;
  color: var(--color-text);
  font-family: inherit;
}

/* —— List —— */
.w2-app--live .w2-nfc-list .main_container,
.w2-app--live .w2-nfc-list .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.w2-app--live .w2-nfc-list .page-header {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-strong, var(--color-border)) !important;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.06);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.15rem;
}

.w2-app--live .w2-nfc-list .page-header::before {
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 70%);
}

.w2-app--live .w2-nfc-list .page-header h2,
.w2-app--live .w2-nfc-list .page-header p,
.w2-app--live .w2-nfc-list .section-title,
.w2-app--live .w2-nfc-list .empty-state h4 {
  color: var(--color-text) !important;
  font-family: inherit !important;
  text-align: left;
}

.w2-app--live .w2-nfc-list .page-header p,
.w2-app--live .w2-nfc-list .empty-state p,
.w2-app--live .w2-nfc-list .stat-label,
.w2-app--live .w2-nfc-list .template-name {
  color: var(--color-text-muted) !important;
}

.w2-app--live .w2-nfc-list .stat-item {
  background: var(--color-surface-alt) !important;
  border: 1px solid var(--color-border) !important;
}

.w2-app--live .w2-nfc-list .stat-value {
  color: var(--color-accent) !important;
}

.w2-app--live .w2-nfc-list .page-header .btn,
.w2-app--live .w2-nfc-list .empty-state .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 12px !important;
  border: 0 !important;
  background: var(--color-accent) !important;
  color: var(--color-on-primary, #042028) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.w2-app--live .w2-nfc-list .empty-state {
  background: var(--color-surface) !important;
  border: 1px dashed var(--color-border-strong, var(--color-border)) !important;
  border-radius: 20px;
  padding: 2.4rem 1.4rem 2rem;
  text-align: center;
}

.w2-app--live .w2-nfc-list .empty-state-icon {
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface)) !important;
  border: 1.5px dashed color-mix(in srgb, var(--color-accent) 45%, var(--color-border)) !important;
}

.w2-app--live .w2-nfc-list .w2-nfc-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 1.35rem;
  max-width: 36rem;
}

.w2-app--live .w2-nfc-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 600;
}

.w2-app--live .w2-nfc-list .nfc-card-item,
.w2-app--live .w2-nfc-list .template-card {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-strong, var(--color-border)) !important;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.06);
}

.w2-app--live .w2-nfc-list .nfc-card-item:hover,
.w2-app--live .w2-nfc-list .template-card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border)) !important;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
}

.w2-app--live .w2-nfc-list .card-preview {
  background: var(--color-surface-alt) !important;
}

.w2-app--live .w2-nfc-list .template-price,
.w2-app--live .w2-nfc-list .step-title {
  color: var(--color-text) !important;
}

/* —— Create / order —— */
.w2-app--live form.w2-nfc-order,
.w2-app--live .w2-nfc-order {
  max-width: 72rem !important;
  margin: 0 auto 2rem;
  padding: 0 0 1.5rem !important;
}

.w2-app--live .w2-nfc-order__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.w2-app--live .w2-nfc-order__back,
.w2-app--live .w2-nfc-order a.text-light {
  color: var(--color-accent) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.w2-app--live .w2-nfc-order__title,
.w2-app--live .w2-nfc-order h4.text-center {
  margin: 0.15rem 0 0;
  color: var(--color-text) !important;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: left !important;
}

.w2-app--live .w2-nfc-order__hint {
  margin: 0.2rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.w2-app--live .w2-nfc-order__stage {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-strong, var(--color-border)) !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.06);
  overflow: hidden;
}

.w2-app--live .w2-nfc-order .steps {
  background: var(--color-surface-alt) !important;
  border-bottom: 1px solid var(--color-border);
  padding: 1.15rem 1.25rem 2.1rem !important;
}

.w2-app--live .w2-nfc-order .steps__connector {
  background-color: var(--color-border) !important;
}

.w2-app--live .w2-nfc-order .steps__connector:before {
  background-color: var(--color-accent) !important;
}

.w2-app--live .w2-nfc-order .steps__step-number {
  background-color: var(--color-surface) !important;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border-strong, var(--color-border));
  font-weight: 800;
}

.w2-app--live .w2-nfc-order .steps__step--current .steps__step-number,
.w2-app--live .w2-nfc-order .steps__step--done .steps__step-number {
  background-color: var(--color-accent) !important;
  color: var(--color-on-primary, #042028) !important;
  border-color: transparent;
}

.w2-app--live .w2-nfc-order .steps__step-name {
  color: var(--color-text-muted) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.w2-app--live .w2-nfc-order .steps__step--current .steps__step-name,
.w2-app--live .w2-nfc-order .steps__step--done .steps__step-name {
  color: var(--color-text) !important;
}

.w2-app--live .w2-nfc-order .step-content {
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
}

.w2-app--live .w2-nfc-order .step-content > h6,
.w2-app--live .w2-nfc-order .step-content > h5 {
  color: var(--color-text) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

.w2-app--live .w2-nfc-order .category-card {
  background: var(--color-surface-alt) !important;
  border: 1px solid var(--color-border-strong, var(--color-border)) !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.w2-app--live .w2-nfc-order .category-card:hover,
.w2-app--live .w2-nfc-order .category-card.category-selected {
  border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border)) !important;
  box-shadow: 0 8px 22px rgba(26, 26, 26, 0.08);
}

.w2-app--live .w2-nfc-order .category-card .card-title,
.w2-app--live .w2-nfc-order .category-card h4 {
  color: var(--color-text) !important;
}

.w2-app--live .w2-nfc-order .category-card .card-text,
.w2-app--live .w2-nfc-order .category-card [style*="color: #a0a0a0"] {
  color: var(--color-text-muted) !important;
}

.w2-app--live .w2-nfc-order .card-pair {
  border: 2px solid var(--color-border) !important;
  border-radius: 16px !important;
  background: var(--color-surface-alt);
}

.w2-app--live .w2-nfc-order .card-pair.card-active {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent);
}

.w2-app--live .w2-nfc-order .form-label,
.w2-app--live .w2-nfc-order .form-label.text-light {
  color: var(--color-text) !important;
  font-weight: 650;
  font-size: 0.86rem;
}

.w2-app--live .w2-nfc-order .form-control,
.w2-app--live .w2-nfc-order input.form-control,
.w2-app--live .w2-nfc-order .input-group .form-control {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-strong, var(--color-border)) !important;
  color: var(--color-text) !important;
  border-radius: 12px !important;
  min-height: 46px;
  box-shadow: none !important;
}

.w2-app--live .w2-nfc-order .form-control::placeholder {
  color: var(--color-text-muted) !important;
}

.w2-app--live .w2-nfc-order .form-control:focus {
  border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 16%, transparent) !important;
}

.w2-app--live .w2-nfc-order input[type="file"].form-control {
  padding: 0.55rem 0.75rem;
}

.w2-app--live .w2-nfc-order .w2-nfc-preview-panel,
.w2-app--live .w2-nfc-order .selected-card-preview {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0.85rem;
  min-height: 220px;
}

.w2-app--live .w2-nfc-order .card-details {
  background: var(--color-surface-alt) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
}

.w2-app--live .w2-nfc-order .card-details h6,
.w2-app--live .w2-nfc-order .card-details p,
.w2-app--live .w2-nfc-order .card-details .text-light,
.w2-app--live .w2-nfc-order .card-price {
  color: var(--color-text) !important;
}

.w2-app--live .w2-nfc-order .card-details [style*="color: #a0a0a0"] {
  color: var(--color-text-muted) !important;
}

.w2-app--live .w2-nfc-order #coupon-message {
  color: var(--color-text-muted) !important;
}

.w2-app--live .w2-nfc-order .step_btn,
.w2-app--live .w2-nfc-order button[data-action="prev"],
.w2-app--live .w2-nfc-order button[data-action="next"] {
  min-width: 7.5rem;
  height: 44px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.w2-app--live .w2-nfc-order button[data-action="prev"] {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-strong, var(--color-border)) !important;
  color: var(--color-text) !important;
}

.w2-app--live .w2-nfc-order button[data-action="next"] {
  background: var(--color-accent) !important;
  border: 0 !important;
  color: var(--color-on-primary, #042028) !important;
}

.w2-app--live .w2-nfc-order .modal-content {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border-strong, var(--color-border)) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.16);
  overflow: hidden;
}

/* Facebook-style photo editor — not gated on .w2-app--live so buttons always style */
.w2-crop-modal .modal-dialog,
.w2-crop-modal .w2-crop-dialog {
  max-width: min(44rem, calc(100vw - 1.5rem));
  margin: 1rem auto;
}

.w2-crop-modal .modal-content {
  background: #fff !important;
  color: #1c1e21 !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.w2-crop-modal .modal-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #e4e6eb !important;
  text-align: left !important;
}

.w2-crop-modal .modal-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left !important;
}

.w2-crop-modal .modal-title {
  margin: 0;
  width: 100%;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #050505 !important;
  text-align: left !important;
}

.w2-crop-modal .w2-crop-sub,
.w2-crop-modal .w2-crop-hint {
  margin: 0.2rem 0 0;
  color: #65676b !important;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: left !important;
}

.w2-crop-modal .w2-crop-hint {
  margin: 0 0 0.75rem;
}

.w2-crop-modal .btn-close {
  filter: none;
  margin: 0.15rem 0 0;
  opacity: 0.65;
}

.w2-crop-modal .modal-body {
  position: relative;
  padding: 1rem 1.15rem 1.15rem !important;
}

.w2-crop-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem;
  gap: 1rem;
  align-items: start;
}

.w2-crop-stage {
  position: relative;
  width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  overflow: hidden;
  background: #18191a;
}

.w2-crop-stage video,
.w2-crop-stage #croppedImage {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.w2-crop-stage video {
  height: 280px;
  object-fit: cover;
}

.w2-crop-stage .cropper-bg {
  background-color: #18191a;
  background-image: none;
}

.w2-crop-stage .cropper-view-box {
  outline: 3px solid #fff;
}

.w2-crop-stage.is-circle .cropper-view-box,
.w2-crop-stage.is-circle .cropper-face {
  border-radius: 50%;
}

.w2-crop-stage .cropper-face {
  background-color: transparent;
  opacity: 1;
}

.w2-crop-stage .cropper-line,
.w2-crop-stage .cropper-point {
  background-color: #fff;
}

.w2-crop-stage .cropper-point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 1;
}

.w2-crop-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding-top: 0.15rem;
}

.w2-crop-preview-wrap {
  width: 7.25rem;
  height: 7.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: #18191a;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e4e6eb;
}

.w2-crop-preview-wrap img,
.w2-crop-preview-wrap .cropper-preview,
.w2-crop-preview-wrap > * {
  width: 100% !important;
  height: 100% !important;
}

.w2-crop-preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #65676b;
}

.w2-crop-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.35rem 0.15rem;
}

.w2-crop-zoom {
  flex: 1 1 auto;
  accent-color: #0866ff;
  height: 4px;
  cursor: pointer;
}

.w2-crop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f2f5;
  color: #050505;
  cursor: pointer;
}

.w2-crop-icon:hover {
  background: #e4e6eb;
}

.w2-crop-toolbar-sep {
  width: 1px;
  height: 22px;
  background: #e4e6eb;
  margin: 0 0.2rem;
}

.w2-crop-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e4e6eb;
}

.w2-crop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.w2-crop-btn--ghost {
  background: transparent !important;
  border: 0 !important;
  color: #0866ff !important;
}

.w2-crop-btn--ghost:hover {
  background: #e7f3ff !important;
}

.w2-crop-btn--primary {
  background: #0866ff !important;
  border: 0 !important;
  color: #fff !important;
  min-width: 7.5rem;
}

.w2-crop-btn--primary:hover {
  background: #0756d6 !important;
}

.w2-crop-btn i {
  font-size: 0.85em;
}

@media (max-width: 767.98px) {
  .w2-crop-workspace {
    grid-template-columns: 1fr;
  }

  .w2-crop-aside {
    flex-direction: row;
    justify-content: flex-start;
  }

  .w2-crop-preview-wrap {
    width: 4.5rem;
    height: 4.5rem;
  }

  .w2-crop-actions {
    justify-content: space-between;
  }
}

.w2-app--live .w2-nfc-order #create-ai-suggestions,
.w2-app--live .w2-nfc-order #validate_coupon {
  border-color: var(--color-border-strong, var(--color-border)) !important;
  color: var(--color-text) !important;
  background: var(--color-surface) !important;
}

html[data-theme="dark"] .w2-app--live .w2-nfc-list .page-header,
html[data-theme="dark"] .w2-app--live .w2-nfc-list .empty-state,
html[data-theme="dark"] .w2-app--live .w2-nfc-list .nfc-card-item,
html[data-theme="dark"] .w2-app--live .w2-nfc-order__stage {
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .w2-app--live .w2-nfc-order .steps__step-name {
    display: none;
  }
}
