/* WrapZilla v1.74 — admin-only Yoco R2 diagnostic */
.wz-yoco-test-modal {
  max-width: 980px;
}

.wz-yoco-test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.wz-yoco-test-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  background: rgba(255, 255, 255, 0.52);
}

.wz-yoco-test-card.is-live {
  border-color: rgba(176, 48, 32, 0.38);
  background: rgba(255, 244, 240, 0.78);
}

.wz-yoco-test-card h3,
.wz-yoco-test-card p {
  margin: 0;
}

.wz-yoco-test-card .button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.wz-yoco-key-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.wz-yoco-key-state strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.wz-yoco-key-state .is-ready { color: #397a18; }
.wz-yoco-key-state .is-blocked { color: #a42d22; }
.wz-yoco-key-state small { color: var(--muted); overflow-wrap: anywhere; text-align: right; }

.wz-yoco-live-ack {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
  font-weight: 700;
}

.wz-yoco-live-ack input {
  margin-top: 3px;
}

.wz-yoco-result {
  margin-top: 18px;
}

.wz-yoco-result .button {
  margin-top: 12px;
}

.wz-yoco-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.wz-yoco-status-grid span {
  padding: 10px 12px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  background: rgba(183, 240, 0, 0.1);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wz-yoco-static-status {
  padding: 14px 16px;
  border: 1px dashed rgba(21, 21, 21, 0.28);
  background: rgba(183, 240, 0, 0.08);
  margin: 14px 0 0;
}

.wz-yoco-static-status.is-error {
  border-color: rgba(176, 48, 32, 0.4);
  background: rgba(176, 48, 32, 0.08);
}

.wz-yoco-card-input {
  display: grid;
  gap: 7px;
}

.wz-yoco-card-input span {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  .wz-yoco-test-grid,
  .wz-yoco-status-grid {
    grid-template-columns: 1fr;
  }

  .wz-yoco-key-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .wz-yoco-key-state small { text-align: left; }
}
