/* ── Coupon Validator Plugin Styles ─────────────────────── */

.cv-wrap {
  max-width: 540px;
  margin: 32px auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
}

/* Header */
.cv-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.cv-header__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #1D9E75;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cv-header__title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
}
.cv-header__sub {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* Cards */
.cv-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 22px 24px;
  margin-bottom: 14px;
}
.cv-card--confirm {
  background: #f8f8f8;
}
.cv-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cv-step-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

/* Input row */
.cv-input-row {
  display: flex;
  gap: 8px;
}
.cv-input-row input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.cv-input-row input[type="text"]:focus {
  border-color: #1D9E75;
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}

/* Buttons */
.cv-btn {
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.cv-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.cv-btn--primary {
  background: #1D9E75;
  color: #fff;
}
.cv-btn--primary:hover:not(:disabled) {
  background: #0F6E56;
}
.cv-btn--confirm {
  background: #1D9E75;
  color: #fff;
}
.cv-btn--confirm:hover:not(:disabled) {
  background: #0F6E56;
}
.cv-btn--cancel {
  background: transparent;
  color: #555;
  border: 1px solid #ddd;
}
.cv-btn--cancel:hover {
  background: #f3f3f3;
}
.cv-btn--reset {
  background: transparent;
  color: #1D9E75;
  border: 1px solid #1D9E75;
  margin-top: 16px;
}
.cv-btn--reset:hover {
  background: #E1F5EE;
}
.cv-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Confirm text */
.cv-confirm-text {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Result boxes */
.cv-result {
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 14px;
}
.cv-result--valid {
  background: #E1F5EE;
  border: 1px solid #5DCAA5;
}
.cv-result--error {
  background: #FCEBEB;
  border: 1px solid #F09595;
}
.cv-result--warning {
  background: #FAEEDA;
  border: 1px solid #EF9F27;
}
.cv-result__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cv-result--valid   .cv-result__title { color: #085041; }
.cv-result--error   .cv-result__title { color: #791F1F; }
.cv-result--warning .cv-result__title { color: #633806; }
.cv-result__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.cv-result__label { color: #666; }
.cv-result__value { font-weight: 600; color: #1a1a1a; }

/* Success banner */
.cv-success {
  background: #E1F5EE;
  border: 1px solid #5DCAA5;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.cv-success__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #1D9E75;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.cv-success__title {
  font-size: 16px;
  font-weight: 700;
  color: #085041;
  margin-bottom: 6px;
}
.cv-success__detail {
  font-size: 13px;
  color: #0F6E56;
  line-height: 1.5;
}

/* Inline error */
.cv-inline-error {
  font-size: 13px;
  color: #b32d2e;
  margin-top: 10px;
  padding: 8px 12px;
  background: #FCEBEB;
  border-radius: 6px;
}

/* Notice */
.cv-notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.cv-notice--error {
  background: #FCEBEB;
  border: 1px solid #F09595;
  color: #791F1F;
}
.cv-notice--error a {
  color: #791F1F;
  font-weight: 600;
}

/* Spinner */
.cv-spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: #555;
  animation: cv-spin 0.65s linear infinite;
}
.cv-spinner--light {
  border-color: rgba(255,255,255,0.35);
  border-top-color: #fff;
}
@keyframes cv-spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 480px) {
  .cv-input-row { flex-direction: column; }
  .cv-btn--primary { width: 100%; justify-content: center; }
  .cv-btn-row { flex-direction: column; }
  .cv-btn--confirm, .cv-btn--cancel { width: 100%; justify-content: center; }
}
