.m3-actions {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.m3-actions-copy {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.m3-actions-copy b { font-size: 15px; }
.m3-actions-copy span { color: #666; font-size: 12px; line-height: 1.35; }

.m3-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.m3-confirm,
.m3-edit {
  min-height: 50px;
  border-radius: 14px;
  font-weight: 900;
}

.m3-confirm {
  background: #111;
  color: #fff;
}

.m3-confirm.saved {
  background: #dcfce7;
  color: #166534;
}

.m3-edit {
  background: #e5e7eb;
  color: #111;
}

.m3-actions-footer {
  margin-top: 9px;
  color: #777;
  font-size: 11px;
  line-height: 1.35;
}

.m3-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .48);
  backdrop-filter: blur(5px);
}

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

.m3-modal-card {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.m3-modal-card h2 {
  margin: 4px 0 8px;
  font-size: 25px;
}

.m3-modal-card p:not(.eyebrow) {
  margin: 0 0 16px;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.m3-price-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 2px solid #111;
  border-radius: 15px;
}

.m3-price-input-wrap span {
  font-size: 24px;
  font-weight: 900;
}

#m3PriceInput {
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  outline: 0;
  font-size: 30px;
  font-weight: 900;
  background: transparent;
}

.m3-price-error {
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
}

.m3-price-error.hidden { display: none; }

.m3-modal-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 14px;
}

.m3-modal-actions button {
  min-height: 48px;
}

.m3-cancel { background: #e5e7eb; color: #111; }
.m3-save { background: #111; color: #fff; }

.m3-toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 10000;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 18px);
  padding: 11px 15px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

.m3-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.m3-toast.success { background: #166534; }
.m3-toast.error { background: #991b1b; }
.m3-toast.working { background: #1f2937; }

@media (max-width: 420px) {
  .m3-actions-row { grid-template-columns: 1fr; }
  .m3-edit { width: 100%; }
}
