.ats-repair-lookup-form,
.ats-repair-result {
  color: #ffffff;
}

.ats-repair-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.ats-repair-field {
  display: grid;
  gap: 8px;
}

.ats-repair-field > span {
  color: #d8e8ea;
  font-size: 13px;
  font-weight: 800;
}

.ats-repair-field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid rgba(193, 228, 230, 0.25);
  border-radius: 11px;
  outline: none;
  background: rgba(2, 11, 15, 0.7);
  color: #ffffff;
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ats-repair-field input::placeholder {
  color: #748f94;
}

.ats-repair-field input:hover {
  border-color: rgba(24, 228, 208, 0.45);
}

.ats-repair-field input:focus {
  border-color: #18e4d0;
  background: #07171c;
  box-shadow: 0 0 0 3px rgba(24, 228, 208, 0.13);
}

.ats-repair-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 17px;
  padding: 13px 18px;
  border: 1px solid #18e4d0;
  border-radius: 11px;
  background: linear-gradient(135deg, #18e4d0, #11bbaa);
  color: #031114;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(24, 228, 208, 0.13);
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.ats-repair-submit:hover,
.ats-repair-submit:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(24, 228, 208, 0.2);
}

.ats-repair-submit:disabled {
  cursor: wait;
  filter: saturate(0.45);
  opacity: 0.75;
  transform: none;
}

.ats-repair-privacy {
  margin: 12px 0 0;
  color: #8fa5a9;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.ats-repair-result {
  padding: 20px;
  border: 1px solid rgba(24, 228, 208, 0.3);
  border-radius: 14px;
  background: rgba(24, 228, 208, 0.07);
}

.ats-repair-result[hidden] {
  display: none;
}

.ats-repair-result.is-error {
  border-color: rgba(255, 139, 139, 0.38);
  background: rgba(255, 100, 100, 0.07);
}

.ats-repair-result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ats-repair-result-label {
  color: #18e4d0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ats-repair-result h3 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: clamp(22px, 4vw, 29px);
}

.ats-repair-result.is-error h3 {
  color: #ffd5d5;
}

.ats-repair-ticket-number {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(24, 228, 208, 0.24);
  border-radius: 999px;
  color: #dffffa;
  font-size: 11px;
  font-weight: 800;
}

.ats-repair-result-message {
  margin: 10px 0 0;
  color: #b7c9cc;
  line-height: 1.6;
}

.ats-repair-items {
  display: grid;
  gap: 11px;
  margin-top: 17px;
}

.ats-repair-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(1, 9, 12, 0.45);
}

.ats-repair-item-name,
.ats-repair-item-meta {
  display: block;
}

.ats-repair-item-name {
  color: #ffffff;
  font-weight: 800;
}

.ats-repair-item-meta {
  margin-top: 4px;
  color: #91a8ac;
  font-size: 12px;
}

.ats-repair-status-pill {
  max-width: 190px;
  padding: 7px 10px;
  border: 1px solid rgba(24, 228, 208, 0.3);
  border-radius: 999px;
  background: rgba(24, 228, 208, 0.09);
  color: #cafff9;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.ats-repair-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ats-repair-result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(24, 228, 208, 0.38);
  border-radius: 9px;
  color: #18e4d0;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.ats-repair-result-button:hover,
.ats-repair-result-button:focus-visible {
  background: rgba(24, 228, 208, 0.09);
}

@media (max-width: 620px) {
  .ats-repair-fields {
    grid-template-columns: 1fr;
  }

  .ats-repair-result-heading,
  .ats-repair-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .ats-repair-result-heading {
    flex-direction: column;
  }

  .ats-repair-status-pill {
    max-width: none;
    width: fit-content;
  }

  .ats-repair-result-actions,
  .ats-repair-result-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ats-repair-field input,
  .ats-repair-submit {
    transition: none;
  }
}

/* Full website ticket portal: RepairDesk details, approvals and Clover payment. */
.ats-repair-result {
  display: grid;
  gap: 18px;
}

.ats-repair-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.ats-repair-overview-card,
.ats-repair-money-card {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(1, 9, 12, 0.52);
}

.ats-repair-overview-card span,
.ats-repair-money-card span {
  display: block;
  color: #8fa7ab;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ats-repair-overview-card strong,
.ats-repair-money-card strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 18px;
}

.ats-repair-section {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.ats-repair-section-heading {
  margin-bottom: 12px;
}

.ats-repair-section-heading h4 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 20px;
}

.ats-repair-notes {
  display: grid;
  gap: 10px;
}

.ats-repair-note {
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(1, 9, 12, 0.42);
}

.ats-repair-note time {
  display: block;
  margin-bottom: 5px;
  color: #18e4d0;
  font-size: 11px;
  font-weight: 850;
}

.ats-repair-note p {
  margin: 0;
  color: #d8e5e7;
  line-height: 1.55;
}

.ats-repair-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ats-repair-payment-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(24, 228, 208, 0.2);
  border-radius: 12px;
  background: rgba(24, 228, 208, 0.045);
}

.ats-repair-payment-state p,
.ats-repair-payment-note {
  margin: 0;
  color: #b9cacc;
  line-height: 1.55;
}

.ats-repair-payment-note {
  color: #80969a;
  font-size: 11px;
}

.ats-repair-authorization {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 190, 74, 0.34);
  border-radius: 13px;
  background: rgba(255, 179, 47, 0.08);
}

.ats-repair-authorization.ats-auth-approved,
.ats-repair-authorization.ats-auth-paid {
  border-color: rgba(24, 228, 208, 0.3);
  background: rgba(24, 228, 208, 0.065);
}

.ats-repair-authorization.ats-auth-declined {
  border-color: rgba(255, 117, 117, 0.32);
  background: rgba(255, 89, 89, 0.07);
}

.ats-repair-auth-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.ats-repair-auth-title,
.ats-repair-auth-description {
  display: block;
}

.ats-repair-auth-title {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.ats-repair-auth-description {
  max-width: 650px;
  margin-top: 5px;
  color: #c0d0d2;
  font-size: 13px;
  line-height: 1.5;
}

.ats-repair-auth-amount {
  flex: 0 0 auto;
  color: #ffe4aa;
  font-size: 22px;
}

.ats-auth-approved .ats-repair-auth-amount,
.ats-auth-paid .ats-repair-auth-amount {
  color: #a7fff6;
}

.ats-repair-auth-status {
  margin: 0;
  color: #d9e5e7;
  font-size: 13px;
  line-height: 1.5;
}

.ats-repair-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ats-repair-action-button,
button.ats-repair-result-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(24, 228, 208, 0.38);
  border-radius: 9px;
  background: transparent;
  color: #18e4d0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.ats-repair-action-button.primary {
  border-color: #18e4d0;
  background: linear-gradient(135deg, #18e4d0, #11bbaa);
  color: #031114;
}

.ats-repair-action-button.danger {
  border-color: rgba(255, 117, 117, 0.48);
  color: #ffc1c1;
}

.ats-repair-action-button:disabled,
button.ats-repair-result-button:disabled {
  cursor: wait;
  opacity: .65;
}

.ats-repair-inline-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(24, 228, 208, 0.22);
  border-radius: 9px;
  color: #c9fffa;
  font-size: 12px;
  line-height: 1.5;
}

.ats-repair-inline-message.is-error {
  border-color: rgba(255, 117, 117, 0.35);
  color: #ffd1d1;
}

.ats-repair-payment-return {
  display: grid;
  gap: 3px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(24, 228, 208, 0.28);
  border-radius: 11px;
  background: rgba(24, 228, 208, 0.065);
  color: #dffdfa;
}

.ats-repair-payment-return.is-failed {
  border-color: rgba(255, 163, 95, 0.35);
  background: rgba(255, 145, 62, 0.06);
}

.ats-repair-payment-return strong {
  color: #fff;
}

.ats-repair-payment-return span {
  color: #aebfc2;
  font-size: 12px;
  line-height: 1.45;
}

.repair-status-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.repair-status-step {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.repair-status-step strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.repair-status-step span {
  color: #9fb2b5;
  font-size: 13px;
  line-height: 1.55;
}

.repair-status-faq {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.repair-status-faq details {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  padding: 0 16px;
}

.repair-status-faq summary {
  padding: 15px 0;
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.repair-status-faq p {
  margin: 0;
  padding: 0 0 16px;
  color: #a9bbbe;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .ats-repair-overview,
  .ats-repair-money-grid,
  .repair-status-steps {
    grid-template-columns: 1fr;
  }

  .ats-repair-auth-top {
    flex-direction: column;
  }

  .ats-repair-auth-actions,
  .ats-repair-auth-actions .ats-repair-action-button,
  .ats-repair-payment-state .ats-repair-action-button {
    width: 100%;
  }
}

/* RepairDesk ticket entry — app-style T- segment with original form alignment. */
.ats-repair-fields {
  align-items: start;
}

.ats-repair-field {
  align-content: start;
}

.ats-ticket-number-input {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 52px;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(193, 228, 230, 0.25);
  border-radius: 11px;
  background: rgba(2, 11, 15, 0.7);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ats-ticket-number-input:hover {
  border-color: rgba(24, 228, 208, 0.45);
}

.ats-ticket-number-input:focus-within {
  border-color: #18e4d0;
  background: #07171c;
  box-shadow: 0 0 0 3px rgba(24, 228, 208, 0.13);
}

.ats-ticket-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  width: 62px;
  height: 50px;
  padding: 0 12px;
  border-right: 1px solid rgba(24, 228, 208, 0.55);
  background: linear-gradient(180deg, rgba(24, 228, 208, 0.20), rgba(24, 228, 208, 0.09));
  color: #78f8ec;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .04em;
  line-height: 1;
  user-select: none;
}

.ats-repair-field .ats-ticket-number-input input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  margin: 0;
  padding: 13px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
}

.ats-repair-field .ats-ticket-number-input input:hover,
.ats-repair-field .ats-ticket-number-input input:focus {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ats-ticket-help {
  display: block;
  margin: 8px 0 0 2px;
  color: #8ea5a9;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .ats-ticket-prefix {
    flex-basis: 56px;
    width: 56px;
    padding-inline: 10px;
  }

  .ats-ticket-help {
    margin-top: 7px;
  }
}

/* High-visibility Clover payment CTA */
.ats-repair-payment-state .ats-repair-action-button.pay {
  width: 100%;
  min-height: 64px;
  margin-top: 6px;
  padding: 16px 24px;
  border: 1px solid #18e4d0;
  border-radius: 13px;
  background: linear-gradient(135deg, #18e4d0, #11bbaa);
  box-shadow:
    0 12px 30px rgba(24, 228, 208, .16),
    0 0 0 1px rgba(255, 255, 255, .04) inset;
  color: #021014;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: .01em;
  text-align: center;
}

.ats-repair-payment-state .ats-repair-action-button.pay:hover {
  transform: translateY(-1px);
  box-shadow:
    0 15px 34px rgba(24, 228, 208, .22),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
}

.ats-repair-payment-state .ats-repair-action-button.pay:focus-visible {
  outline: 3px solid rgba(127, 249, 237, .42);
  outline-offset: 3px;
}

.ats-repair-payment-state .ats-repair-action-button.pay:disabled {
  transform: none;
  opacity: .72;
}

.ats-repair-clover-label {
  display: block;
  width: 100%;
  margin-top: 2px;
  color: #a7fff6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
  text-align: center;
}

.ats-repair-payment-state .ats-repair-payment-note {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 700px) {
  .ats-repair-payment-state .ats-repair-action-button.pay {
    min-height: 60px;
    padding: 15px 18px;
    font-size: 17px;
  }
}
