/* TPW FlexiTicket front-end styles
   Note: Uses TPW Core button and utility classes. Do not add new colors. */

.tpw-flexiticket-form {
  max-width: 560px;
}

.tpw-flexiticket-form .tpw-form-row {
  margin-bottom: 12px;
}

.tpw-flexiticket-form .tpw-form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.tpw-flexiticket-total {
  font-weight: 700;
  margin-top: 8px;
}

.tpw-flexiticket-messages .tpw-error {
  color: #b32d2e; /* Using WP default error color reference; not introducing a new palette. */
}

.tpw-flexiticket-messages .tpw-success {
  color: #1d2327; /* Neutral text for success message; avoids new palette. */
}

.tpw-flexiticket-form .tpw-flexiticket-submit.is-disabled,
.tpw-flexiticket-form .tpw-flexiticket-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tpw-flexiticket-form .tpw-flexiticket-submit.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.tpw-flexiticket-form .tpw-flexiticket-branding-footer,
.tpw-flexiticket-thankyou .tpw-flexiticket-branding-footer,
.tpw-admin-wrapper .tpw-flexiticket-branding-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e8edf2;
  color: #50575e;
  text-align: center;
}

.tpw-flexiticket-form .tpw-flexiticket-branding-mark,
.tpw-flexiticket-thankyou .tpw-flexiticket-branding-mark,
.tpw-admin-wrapper .tpw-flexiticket-branding-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tpw-flexiticket-form .tpw-flexiticket-branding-logo,
.tpw-flexiticket-thankyou .tpw-flexiticket-branding-logo,
.tpw-admin-wrapper .tpw-flexiticket-branding-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 32px;
}

.tpw-flexiticket-form .tpw-flexiticket-branding-text,
.tpw-flexiticket-thankyou .tpw-flexiticket-branding-text,
.tpw-admin-wrapper .tpw-flexiticket-branding-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: start;
}

.tpw-flexiticket-form .tpw-flexiticket-branding-link,
.tpw-flexiticket-thankyou .tpw-flexiticket-branding-link,
.tpw-admin-wrapper .tpw-flexiticket-branding-link {
  color: #1d2327;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.tpw-flexiticket-form .tpw-flexiticket-branding-link:hover,
.tpw-flexiticket-form .tpw-flexiticket-branding-link:focus,
.tpw-flexiticket-thankyou .tpw-flexiticket-branding-link:hover,
.tpw-flexiticket-thankyou .tpw-flexiticket-branding-link:focus,
.tpw-admin-wrapper .tpw-flexiticket-branding-link:hover,
.tpw-admin-wrapper .tpw-flexiticket-branding-link:focus {
  text-decoration: underline;
}

.tpw-flexiticket-form .tpw-flexiticket-branding-meta,
.tpw-flexiticket-thankyou .tpw-flexiticket-branding-meta,
.tpw-admin-wrapper .tpw-flexiticket-branding-meta {
  font-size: 0.78rem;
  color: #7a7f87;
}
