/* =========================================================================
   ACCOUNT — account-ds.css
   Login/register card + My Account portal.
   ========================================================================= */

/* -------------------------------------------------------------------------
   WooCommerce form wrapper — neutralize any leftover WC chrome
   ------------------------------------------------------------------------- */
.sh-auth-card .woocommerce-form,
.sh-auth-card .woocommerce-form-login,
.sh-auth-card .woocommerce-form-register {
  display: block;
  padding: 0;
  background: none;
  width: 100%;
}

/* Field rows (our class — no WC classes on these elements) */
.sh-field {
  display: block;
  margin: 0 0 14px;
}

.sh-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sh-ink-600);
  margin-bottom: 5px;
  font-family: var(--sh-font-sans);
}

.sh-field input[type="text"],
.sh-field input[type="email"],
.sh-field input[type="password"] {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--sh-ink-200);
  border-radius: var(--sh-r-sm);
  font-family: var(--sh-font-sans);
  font-size: 14px;
  color: var(--sh-ink-950);
  box-shadow: none;
  outline: none;
  margin: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.sh-field input[type="text"]:focus,
.sh-field input[type="email"]:focus,
.sh-field input[type="password"]:focus {
  border-color: var(--sh-teal-500);
  box-shadow: 0 0 0 3px rgba(26,156,156,0.10);
}

/* Submit buttons */
.sh-auth-card button[type="submit"] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0;
  background: var(--sh-teal-600);
  color: #fff;
  border: none;
  border-radius: var(--sh-r-sm);
  font-family: var(--sh-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin: 4px 0 16px;
  transition: background 0.15s;
  text-transform: none;
  line-height: 1;
  box-shadow: none;
}
.sh-auth-card button[type="submit"]:hover {
  background: var(--sh-teal-700);
}

/* Required star */
.sh-auth-card .required { color: var(--sh-teal-600); margin-left: 1px; }

/* -------------------------------------------------------------------------
   LOGIN PAGE — centered card
   ------------------------------------------------------------------------- */
.sh-login-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: var(--sh-paper);
}

.sh-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--sh-paper);
  border: 1px solid var(--sh-ink-150);
  border-radius: var(--sh-r-lg);
  box-shadow: 0 4px 24px rgba(11,16,18,0.07);
  overflow: hidden;
}

/* Card header */
.sh-auth-card-head {
  padding: 28px 32px 0;
  text-align: center;
  background: var(--sh-paper);
}

.sh-auth-card-eyebrow {
  display: inline-block;
  font-family: var(--sh-font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sh-teal-600);
  background: rgba(26,156,156,0.08);
  border: 1px solid rgba(26,156,156,0.2);
  padding: 3px 10px;
  border-radius: var(--sh-r-xs);
  margin-bottom: 16px;
}

/* Tabs */
.sh-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--sh-ink-150);
  margin: 0 32px;
}

.sh-auth-tab {
  flex: 1;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--sh-ink-400);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  font-family: var(--sh-font-sans);
}
.sh-auth-tab.is-active {
  color: var(--sh-ink-900);
  border-bottom-color: var(--sh-teal-600);
  font-weight: 600;
}
.sh-auth-tab:hover:not(.is-active) { color: var(--sh-ink-700); }

/* Form panels */
.sh-auth-panels { position: relative; }

.sh-auth-panel {
  padding: 24px 32px 28px;
}
.sh-auth-panel[hidden] { display: none; }

/* Utility row inside form */
.sh-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}

.sh-auth-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sh-ink-600);
  cursor: pointer;
}
.sh-auth-check input { accent-color: var(--sh-teal-600); cursor: pointer; }

.sh-auth-link {
  font-size: 12px;
  color: var(--sh-teal-600);
  text-decoration: none;
}
.sh-auth-link:hover { text-decoration: underline; color: var(--sh-teal-700); }

/* Password wrapper */
.sh-auth-pw { position: relative; }
.sh-auth-pw input { padding-right: 40px; }
.sh-pw-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sh-ink-400);
  padding: 4px;
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  font-size: inherit;
}
.sh-pw-btn:hover { color: var(--sh-ink-700); background: none; }

/* Footer note */
.sh-auth-note {
  font-size: 11px;
  color: var(--sh-ink-400);
  text-align: center;
  padding: 0 32px 24px;
  line-height: 1.5;
}

/* Login-wall notice */
.sh-login-wall-notice {
  background: rgba(26,156,156,0.07);
  border-left: 3px solid var(--sh-teal-500);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--sh-teal-800, #0D5F5F);
  border-radius: 0 var(--sh-r-xs) var(--sh-r-xs) 0;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* WC notices */
.sh-auth-panel .woocommerce-error,
.sh-auth-panel .woocommerce-message,
.sh-auth-panel .woocommerce-info {
  font-size: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--sh-r-sm);
  list-style: none;
}

/* -------------------------------------------------------------------------
   MY ACCOUNT — portal
   ------------------------------------------------------------------------- */
.sh-account-page {
  min-height: calc(100vh - 160px);
  background: var(--sh-paper);
  padding: 36px 0 80px;
}

/* Slim header strip */
.sh-account-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--sh-ink-150);
  margin-bottom: 28px;
}

.sh-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26,156,156,0.12);
  border: 1px solid rgba(26,156,156,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sh-font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--sh-teal-600);
  flex-shrink: 0;
}

.sh-account-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sh-font-sans);
  color: var(--sh-ink-900);
}

.sh-account-name span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  font-family: var(--sh-font-mono);
  color: var(--sh-ink-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1px;
}

.sh-account-logout-link {
  font-size: 12px;
  color: var(--sh-ink-400);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}
.sh-account-logout-link:hover { color: var(--sh-ink-700); text-decoration: none; }

/* Body grid */
.sh-account-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.sh-account-nav {
  background: var(--sh-white);
  border: 1px solid var(--sh-ink-150);
  border-radius: var(--sh-r-md);
  overflow: hidden;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--sh-font-sans);
}

.sh-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sh-account-nav a,
.sh-account-nav .woocommerce-MyAccount-navigation-link a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--sh-font-sans);
  font-weight: 400;
  color: var(--sh-ink-500);
  text-decoration: none;
  border-radius: var(--sh-r-sm);
  transition: background 0.12s, color 0.12s;
  letter-spacing: 0;
}
.sh-account-nav a:hover,
.sh-account-nav .woocommerce-MyAccount-navigation-link a:hover {
  background: var(--sh-ink-75);
  color: var(--sh-ink-800);
  text-decoration: none;
}
.sh-account-nav .is-active a,
.sh-account-nav .woocommerce-MyAccount-navigation-link.is-active a {
  background: rgba(26,156,156,0.07);
  color: var(--sh-teal-700);
  font-weight: 500;
}

.sh-account-nav-divider {
  height: 1px;
  background: var(--sh-ink-100);
  margin: 4px 2px;
}

/* Content area */
.sh-account-content {
  background: var(--sh-white);
  border: 1px solid var(--sh-ink-150);
  border-radius: var(--sh-r-md);
  padding: 28px;
  min-height: 320px;
  font-family: var(--sh-font-sans);
}

/* Dashboard tiles */
.sh-dashboard-greeting {
  font-size: 13px;
  color: var(--sh-ink-600);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sh-ink-100);
}
.sh-dashboard-greeting strong { color: var(--sh-ink-900); }

.sh-account-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sh-account-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--sh-paper);
  border: 1px solid var(--sh-ink-150);
  border-radius: var(--sh-r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.sh-account-tile:hover {
  border-color: var(--sh-teal-400);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.sh-account-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--sh-r-sm);
  background: rgba(26,156,156,0.08);
  color: var(--sh-teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.sh-account-tile-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sh-ink-900);
}

.sh-account-tile-sub {
  font-size: 11px;
  color: var(--sh-ink-500);
  line-height: 1.4;
}

/* WC content normalization */
.sh-account-content h2,
.sh-account-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--sh-ink-900);
  margin-bottom: 16px;
}

.sh-account-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sh-account-content table th {
  text-align: left;
  font-size: 10px;
  font-family: var(--sh-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sh-ink-500);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--sh-ink-150);
}
.sh-account-content table td {
  padding: 10px;
  border-bottom: 1px solid var(--sh-ink-100);
  vertical-align: middle;
}
.sh-account-content table tr:last-child td { border-bottom: none; }

.sh-account-content .woocommerce-Button,
.sh-account-content .button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--sh-teal-600);
  color: #fff;
  border: none;
  border-radius: var(--sh-r-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.sh-account-content .woocommerce-Button:hover,
.sh-account-content .button:hover {
  background: var(--sh-teal-700);
  color: #fff;
  text-decoration: none;
}

/* Account edit form */
.sh-account-content .woocommerce-form-row { margin-bottom: 14px; }
.sh-account-content .woocommerce-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sh-ink-600);
  margin-bottom: 4px;
}
.sh-account-content .woocommerce-Input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 11px;
  background: var(--sh-ink-75);
  border: 1px solid var(--sh-ink-200);
  border-radius: var(--sh-r-sm);
  font-size: 13px;
  outline: none;
}
.sh-account-content .woocommerce-Input:focus {
  border-color: var(--sh-teal-500);
  box-shadow: 0 0 0 3px rgba(26,156,156,0.12);
}

/* -------------------------------------------------------------------------
   EDIT ACCOUNT — sectioned two-panel layout
   ------------------------------------------------------------------------- */
.sh-edit-account {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sh-edit-account-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Each section = a horizontal row: left meta / right fields */
.sh-edit-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--sh-ink-100);
}
.sh-edit-section:last-of-type { border-bottom: none; }

.sh-edit-section-head { padding-top: 2px; }

.sh-edit-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-ink-900);
  margin: 0 0 5px;
}

.sh-edit-section-desc {
  font-size: 12px;
  color: var(--sh-ink-500);
  line-height: 1.5;
  margin: 0;
}

.sh-edit-section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Two-column row inside a section */
.sh-edit-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Field */
.sh-edit-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sh-edit-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--sh-ink-600);
  display: block;
}

.sh-required { color: var(--sh-teal-600); margin-left: 1px; }

.sh-edit-field input[type="text"],
.sh-edit-field input[type="email"],
.sh-edit-field input[type="password"] {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid var(--sh-ink-200);
  border-radius: var(--sh-r-sm);
  font-family: var(--sh-font-sans);
  font-size: 13px;
  color: var(--sh-ink-950);
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sh-edit-field input:focus {
  border-color: var(--sh-teal-500);
  box-shadow: 0 0 0 3px rgba(26,156,156,0.10);
}

.sh-edit-hint {
  font-size: 11px;
  color: var(--sh-ink-400);
  line-height: 1.4;
}

/* Password toggle */
.sh-edit-pw { position: relative; }
.sh-edit-pw input { padding-right: 38px; }
.sh-edit-pw-btn {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--sh-ink-400);
  display: flex;
  align-items: center;
  line-height: 1;
}
.sh-edit-pw-btn:hover { color: var(--sh-ink-700); }

/* Save row */
.sh-edit-actions {
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sh-edit-save-btn {
  height: 40px;
  padding: 0 24px;
  background: var(--sh-teal-600);
  color: #fff;
  border: none;
  border-radius: var(--sh-r-sm);
  font-family: var(--sh-font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.sh-edit-save-btn:hover { background: var(--sh-teal-700); }

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .sh-account-body { grid-template-columns: 1fr; }
  .sh-account-nav { flex-direction: row; flex-wrap: wrap; }
  .sh-account-tiles { grid-template-columns: 1fr 1fr; }
  .sh-edit-section { grid-template-columns: 1fr; gap: 12px; }
  .sh-edit-row--2col { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .sh-auth-card-head, .sh-auth-tabs, .sh-auth-panel, .sh-auth-note { padding-left: 20px; padding-right: 20px; }
  .sh-account-tiles { grid-template-columns: 1fr; }
  .sh-account-content { padding: 18px; }
}
