/* Checkout / Account UI (Scoped) */

/* ✅ Prefer enqueue Inter via wp_enqueue_style instead of @import.
   If you MUST keep it here — ok, but scoped styles below will prevent global overrides. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

/* ------------------------------------------------------------
   Scope wrapper: only inside your checkout/account container
   (does NOT repaint whole WP theme)
------------------------------------------------------------ */
.tfe-container,
.tfe-container * {
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.tfe-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Optional: if you need background only for checkout page,
   wrap the page content with <div class="tfe-checkout-page"> ... */
.tfe-checkout-page {
  background: #ebf3ff;
  min-height: 100vh;
  padding: 1px 0; /* keeps background visible */
}

/* Card */
.tfe-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tfe-title {
  font-weight: 900;
  font-size: 32px;
  color: #0f172a;
  margin: 0 0 30px 0;
  text-align: center;
}

/* Fields */
.tfe-field { margin-bottom: 20px; }

.tfe-field label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  color: #334155;
}

.tfe-field input,
.tfe-field select,
.tfe-field textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  transition: .2s;
}

.tfe-field input:focus,
.tfe-field select:focus,
.tfe-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

/* Button */
.tfe-btn {
  width: 100%;
  padding: 16px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.tfe-btn:hover { background: #2563eb; }
.tfe-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Total */
.tfe-total {
  background: #0f172a;
  color: #fff;
  padding: 25px;
  border-radius: 16px;
  margin-top: 30px;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Account */
.tfe-order {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tfe-status {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.st-pending { background: #ffedd5; color: #c2410c; }
.st-processing { background: #eff6ff; color: #1d4ed8; }
.st-completed { background: #dcfce7; color: #15803d; }

.tfe-dl {
  background: #22c55e;
  color: #fff;
  padding: 8px 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tfe-dl:hover { filter: brightness(0.95); }

/* ------------------------------------------------------------
   Country select visibility fix (less aggressive)
   ✅ Only force when the element exists
------------------------------------------------------------ */
.tfe-container .tfe-field.tf-country-wrap {
  display: block;
  visibility: visible;
  opacity: 1;
  margin-bottom: 20px;
}

.tfe-container .tfe-field.tf-country-wrap select {
  display: block;
  width: 100%;
}

/* Mobile */
@media (max-width: 640px) {
  .tfe-card { padding: 22px; border-radius: 18px; }
  .tfe-title { font-size: 24px; margin-bottom: 18px; }
  .tfe-total { font-size: 16px; padding: 16px; }
  .tfe-order { flex-direction: column; align-items: flex-start; }
}