/* ========================================
   SWC Account Dashboard
   Scoped to SWC account page only
   ======================================== */

.swc-account-app {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;


}

@media (max-width: 767px) {
  .swc-account-app {
    margin: 0 10px 28px;
    padding: 16px;
    border-radius: 12px;
  }
}

@media (min-width: 900px) {
  .swc-account-app {
    padding: 28px 30px 32px;
  }
}

.swc-account-title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: #0b3a6e;
}

.swc-account-intro,
.swc-account-panel > p:first-of-type,
.swc-account-panel h2 + p,
.swc-account-panel h3 + p {
  margin: 0 0 20px;
  max-width: 720px;
  color: #52606d;
  font-size: 15px;
  line-height: 1.6;
}

/* =========================
   TOP NAV
   ========================= */

.swc-account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d9e2ec;
}

.swc-account-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #d7e3f4;
  border-radius: 999px;
  background: #ffffff;
  color: #0b5cab;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.swc-account-tab:hover,
.swc-account-tab:focus {
  background: #eef6ff;
  border-color: #0b5cab;
  color: #0b3a6e;
  text-decoration: none;
}

.swc-account-tab.is-active,
.swc-account-tab[aria-current="page"] {
  background: #0b5cab;
  border-color: #0b5cab;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 92, 171, 0.18);
}

/* =========================
   PANELS / HEADINGS
   ========================= */

.swc-account-panel {
  padding-top: 4px;
}

.swc-account-panel h2,
.swc-account-panel h3 {
  margin: 0 0 14px;
  color: #102a43;
  line-height: 1.25;
}

.swc-account-panel h2 {
  font-size: 24px;
  font-weight: 700;
}

.swc-account-panel h3 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
}

.swc-account-panel hr {
  display: none;
}

/* =========================
   FORMS
   ========================= */

.swc-account-form,
.swc-account-panel form {
  display: block;
  margin-top: 14px;
}

.swc-account-field,
.swc-account-panel form p,
.swc-account-panel > p {
  margin: 0 0 18px;
}

.swc-account-panel label {
  display: block;
  margin-bottom: 7px;
  color: #102a43;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.swc-account-panel input[type="text"],
.swc-account-panel input[type="email"],
.swc-account-panel input[type="password"],
.swc-account-panel input[type="tel"],
.swc-account-panel input[type="url"],
.swc-account-panel input[type="number"],
.swc-account-panel select,
.swc-account-panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: #ffffff;
  color: #102a43;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  box-sizing: border-box;
}

.swc-account-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.swc-account-panel input::placeholder,
.swc-account-panel textarea::placeholder {
  color: #829ab1;
}

.swc-account-panel input:focus,
.swc-account-panel select:focus,
.swc-account-panel textarea:focus {
  outline: none;
  border-color: #0b5cab;
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.10);
}

.swc-account-panel .description,
.swc-account-panel small {
  display: block;
  margin-top: 6px;
  color: #61758a;
  font-size: 13px;
  line-height: 1.5;
}

.swc-account-panel .submit,
.swc-account-panel p.submit,
.swc-account-actions {
  margin-top: 22px;
  padding-top: 8px;
}

.swc-account-panel button,
.swc-account-panel input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #0b5cab;
  border-radius: 8px;
  background: #0b5cab;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.swc-account-panel button:hover,
.swc-account-panel input[type="submit"]:hover {
  background: #094b8a;
  border-color: #094b8a;
  color: #ffffff;
}

.swc-account-required-note {
  margin: 8px 0 18px;
  color: #61758a;
  font-size: 13px;
}

.swc-account-panel .swc-form-section {
  margin-bottom: 26px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

/* =========================
   TABLES
   ========================= */

.swc-account-panel table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 14px;
}

.swc-account-panel table th {
  padding: 10px 8px;
  color: #243b53;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid #d9e2ec;
}

.swc-account-panel table td {
  padding: 12px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #e4e7eb;
}

.swc-account-panel table tr:nth-child(even) {
  background: #f8fafc;
}

.swc-account-panel td:last-child {
  white-space: nowrap;
}

.swc-account-panel p strong {
  display: inline-block;
  margin-bottom: 6px;
}

/* =========================
   STATUS BADGES
   ========================= */

.swc-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
  white-space: nowrap;
}

.swc-status-completed {
  background: #e8f7ee;
  color: #166534;
  border-color: #b7e4c7;
}

.swc-status-processing {
  background: #e8f1fb;
  color: #0b5cab;
  border-color: #bfd7f2;
}

.swc-status-pending-payment {
  background: #fff7e6;
  color: #92400e;
  border-color: #f6d9a6;
}

.swc-status-canceled,
.swc-status-cancelled {
  background: #f5f5f5;
  color: #4b5563;
  border-color: #d1d5db;
}

.swc-status-failed {
  background: #fff1f2;
  color: #b42318;
  border-color: #f5c2c7;
}

.swc-status-ready {
  background: #ecfdf3;
  color: #027a48;
  border-color: #abefc6;
}

/* =========================
   ACTION BUTTONS
   ========================= */

.swc-account-panel .swc-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 36px;
  margin-right: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
}

.swc-account-panel .swc-action-button:last-child {
  margin-right: 0;
}

.swc-account-panel .swc-action-button-primary {
  background: #0b5cab;
  color: #ffffff;
  border-color: #0b5cab;
}

.swc-account-panel .swc-action-button-primary:hover,
.swc-account-panel .swc-action-button-primary:focus {
  background: #094b8a;
  color: #ffffff;
  border-color: #094b8a;
  text-decoration: none;
}

.swc-account-panel .swc-action-button-secondary {
  background: #ffffff;
  color: #0b5cab;
  border-color: #bfd7f2;
}

.swc-account-panel .swc-action-button-secondary:hover,
.swc-account-panel .swc-action-button-secondary:focus {
  background: #eef6ff;
  color: #0b3a6e;
  border-color: #0b5cab;
  text-decoration: none;
}

/* =========================
   MESSAGES
   ========================= */

.swc-account-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f8fafc;
  color: #243b53;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
}

.swc-account-message.is-success {
  background: #ecfdf3;
  color: #027a48;
  border-color: #abefc6;
}

.swc-account-message.is-error {
  background: #fef3f2;
  color: #b42318;
  border-color: #fecdca;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 767px) {
  .swc-account-app {
    padding: 14px 10px 28px;
  }

  .swc-account-card {
    padding: 16px;
    border-radius: 12px;
  }

  .swc-account-title {
    font-size: 26px;
  }

  .swc-account-tabs {
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .swc-account-tab {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .swc-account-panel h2 {
    font-size: 22px;
  }

  .swc-account-panel h3 {
    font-size: 17px;
  }

  .swc-account-panel form p {
    margin-bottom: 16px;
  }

  .swc-account-panel input[type="text"],
  .swc-account-panel input[type="email"],
  .swc-account-panel input[type="password"],
  .swc-account-panel input[type="tel"],
  .swc-account-panel input[type="url"],
  .swc-account-panel input[type="number"],
  .swc-account-panel select,
  .swc-account-panel textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .swc-account-panel table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .swc-account-panel table th,
  .swc-account-panel table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .swc-account-panel .swc-action-button {
    min-width: 76px;
    min-height: 34px;
    margin-right: 6px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .swc-account-panel .submit button,
  .swc-account-panel .submit input[type="submit"],
  .swc-account-actions button,
  .swc-account-actions input[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 900px) {
  .swc-account-card {
    padding: 28px 30px 32px;
  }

  .swc-account-tabs {
    gap: 12px;
  }

  .swc-account-tab {
    padding: 10px 16px;
  }
}