/**
 * My Account pages and the guest purchase restriction.
 *
 * Part of the WooCommerce stylesheet set - enqueued in order by
 * sync_rc_woocommerce_styles() in inc/shop/shop-setup.php. Order matters.
 */

/* ============================================
   MY ACCOUNT PAGE
   ============================================ */

.woocommerce-account .woocommerce {
  display: grid !important;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
  padding-bottom: var(--space-16);
}

/* Override WooCommerce default floats & widths */
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none !important;
  width: auto !important;
  grid-column: 1;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  grid-column: 2;
}

/* ---- Navigation Sidebar ---- */

.woocommerce-MyAccount-navigation {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
}

.woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.woocommerce-MyAccount-navigation li a:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
}

.woocommerce-MyAccount-navigation li.is-active a {
  background: rgba(1, 94, 124, 0.06);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  font-weight: var(--font-semibold);
}

/* Nav icons via ::before pseudo-elements */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
  content: '\F3FF';
  font-family: 'bootstrap-icons';
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.woocommerce-MyAccount-navigation-link--orders a::before {
  content: '\F12C';
  font-family: 'bootstrap-icons';
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.woocommerce-MyAccount-navigation-link--downloads a::before {
  content: '\F128';
  font-family: 'bootstrap-icons';
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
  content: '\F3AB';
  font-family: 'bootstrap-icons';
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
  content: '\F4DA';
  font-family: 'bootstrap-icons';
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.woocommerce-MyAccount-navigation-link--preferences a::before {
  content: '\F528';
  font-family: 'bootstrap-icons';
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  content: '\F1C3';
  font-family: 'bootstrap-icons';
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: 1px solid var(--color-gray-100);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: var(--color-danger);
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #FEF2F2;
  color: var(--color-danger);
}

/* ---- Content Area ---- */

.woocommerce-MyAccount-content {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
  min-height: 300px;
}

.woocommerce-MyAccount-content > p:first-of-type {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

.woocommerce-MyAccount-content > p a {
  color: var(--color-primary);
  font-weight: var(--font-medium);
  text-decoration: none;
}

.woocommerce-MyAccount-content > p a:hover {
  text-decoration: underline;
}

.woocommerce-MyAccount-content > p strong {
  color: var(--color-secondary-dark);
}

/* ---- Orders Table ---- */

.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  font-size: var(--text-sm);
}

.woocommerce-MyAccount-content .woocommerce-orders-table thead th,
.woocommerce-MyAccount-content table.shop_table thead th {
  background: var(--color-gray-50);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-gray-500);
  font-weight: var(--font-semibold);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.woocommerce-MyAccount-content .woocommerce-orders-table td,
.woocommerce-MyAccount-content table.shop_table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-gray-100);
  vertical-align: middle;
  color: var(--color-secondary);
}

.woocommerce-MyAccount-content .woocommerce-orders-table tr:last-child td,
.woocommerce-MyAccount-content table.shop_table tr:last-child td {
  border-bottom: none;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button,
.woocommerce-MyAccount-content table.shop_table .woocommerce-button,
.woocommerce-MyAccount-content .woocommerce-orders-table .button,
.woocommerce-MyAccount-content table.shop_table .button {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  background: rgba(1, 94, 124, 0.06);
  border: 1px solid rgba(1, 94, 124, 0.15);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button:hover,
.woocommerce-MyAccount-content table.shop_table .woocommerce-button:hover,
.woocommerce-MyAccount-content .woocommerce-orders-table .button:hover,
.woocommerce-MyAccount-content table.shop_table .button:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* My Account notices — override toast styles */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
  position: static !important;
  max-width: none !important;
  width: auto !important;
  animation: none !important;
  cursor: default !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) !important;
  background: rgba(1, 94, 124, 0.05) !important;
  border: 1px solid rgba(1, 94, 124, 0.15) !important;
  border-left: 4px solid var(--color-primary) !important;
  border-radius: var(--border-radius-md) !important;
  color: var(--color-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4) !important;
}

.woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-error::before {
  display: inline-block !important;
  content: '\F431' !important;
  font-family: 'bootstrap-icons' !important;
  font-size: 18px;
  color: var(--color-primary);
}

.woocommerce-MyAccount-content .woocommerce-error {
  background: #FEF2F2 !important;
  border-color: #FECACA !important;
  border-left-color: var(--color-danger) !important;
}

.woocommerce-MyAccount-content .woocommerce-error::before {
  content: '\F33B' !important;
  color: var(--color-danger);
}

.woocommerce-MyAccount-content .woocommerce-message a.button,
.woocommerce-MyAccount-content .woocommerce-info a.button {
  margin-left: auto;
}

/* ---- Addresses ---- */

.woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-MyAccount-content .woocommerce-Addresses .col-1,
.woocommerce-MyAccount-content .woocommerce-Addresses .col-2 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  clear: none !important;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.woocommerce-MyAccount-content .woocommerce-Addresses .col-1 {
  grid-column: 1;
  grid-row: 1;
}

.woocommerce-MyAccount-content .woocommerce-Addresses .col-2 {
  grid-column: 2;
  grid-row: 1;
}

.woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-MyAccount-content .woocommerce-Address header.woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--border-color);
}

.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary-dark);
  margin: 0;
}

.woocommerce-MyAccount-content .woocommerce-Address-title a {
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-medium);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.woocommerce-MyAccount-content .woocommerce-Address-title a:hover {
  background: rgba(1, 94, 124, 0.06);
}

.woocommerce-MyAccount-content .woocommerce-Address address {
  padding: var(--space-4) var(--space-5);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

/* ---- Edit Account Form ---- */

.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .edit-account {
  max-width: 600px;
}

.woocommerce-MyAccount-content fieldset {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}

.woocommerce-MyAccount-content fieldset legend {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary-dark);
  padding: 0 var(--space-2);
}

.woocommerce-MyAccount-content .woocommerce-form-row,
.woocommerce-MyAccount-content .form-row {
  margin-bottom: var(--space-5);
}

.woocommerce-MyAccount-content .woocommerce-form-row label,
.woocommerce-MyAccount-content .form-row label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.woocommerce-MyAccount-content .woocommerce-form-row label .required,
.woocommerce-MyAccount-content .form-row label .required {
  color: var(--color-danger);
}

.woocommerce-MyAccount-content .woocommerce-Input,
.woocommerce-MyAccount-content .input-text,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--color-secondary-dark);
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--border-radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.woocommerce-MyAccount-content .woocommerce-Input:focus,
.woocommerce-MyAccount-content .input-text:focus,
.woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-MyAccount-content input[type="password"]:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 94, 124, 0.1);
}

/* Save button */
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  font-family: var(--font-primary);
  color: var(--color-white);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: var(--space-2);
}

.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}

/* ---- My Account Responsive ---- */

@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 1;
  }

  .woocommerce-MyAccount-navigation {
    position: static;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  .woocommerce-MyAccount-navigation li a {
    white-space: nowrap;
    padding: var(--space-3) var(--space-4);
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: var(--text-xs);
  }

  .woocommerce-MyAccount-navigation li.is-active a {
    border-left-color: transparent;
    border-bottom-color: var(--color-primary);
  }

  .woocommerce-MyAccount-navigation li a::before {
    display: none;
  }

  .woocommerce-MyAccount-navigation-link--customer-logout {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }

  .woocommerce-MyAccount-content {
    padding: var(--space-5);
  }

  .woocommerce-MyAccount-content .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   GUEST PURCHASE RESTRICTION
   ============================================ */

/* Hide cart form for guests */
.sync-guest-hide-cart {
  display: none;
}

/* Login prompt on single product page */
.sync-login-to-buy {
  text-align: center;
  padding: var(--space-6) var(--space-5);
  border: 2px dashed var(--color-border, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  background: var(--color-surface-alt, #f8fafc);
  margin-bottom: var(--space-4);
}

.sync-login-to-buy .bi-lock {
  font-size: 2rem;
  color: var(--color-text-muted, #64748b);
  display: block;
  margin-bottom: var(--space-3);
}

.sync-login-to-buy__message {
  font-size: var(--text-base, 1rem);
  color: var(--color-text-secondary, #475569);
  margin: 0 0 var(--space-4);
  font-weight: 500;
}

.sync-login-to-buy__buttons {
  display: flex;
  gap: var(--space-3, 12px);
  justify-content: center;
  flex-wrap: wrap;
}

.sync-login-to-buy__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2-5, 10px) var(--space-5, 20px);
  border-radius: var(--radius-md, 8px);
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 140px;
}

.sync-login-to-buy__btn--primary {
  background: var(--color-primary, #2563eb);
  color: #fff !important;
  border: 2px solid var(--color-primary, #2563eb);
}

.sync-login-to-buy__btn--primary:hover {
  background: var(--color-primary-dark, #1d4ed8);
  border-color: var(--color-primary-dark, #1d4ed8);
  color: #fff !important;
  transform: translateY(-1px);
}

.sync-login-to-buy__btn--secondary {
  background: transparent;
  color: var(--color-primary, #2563eb) !important;
  border: 2px solid var(--color-primary, #2563eb);
}

.sync-login-to-buy__btn--secondary:hover {
  background: var(--color-primary, #2563eb);
  color: #fff !important;
  transform: translateY(-1px);
}

/* "Sign in to Buy" link on shop/archive loop */
.sync-login-to-buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent !important;
  color: var(--color-primary, #2563eb) !important;
  border: 2px solid var(--color-primary, #2563eb) !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sync-login-to-buy-link:hover {
  background: var(--color-primary, #2563eb) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 480px) {
  .sync-login-to-buy__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .sync-login-to-buy__btn {
    min-width: unset;
  }
}

/* When product is on sale, restyle the price display */
.woocommerce ul.products li.product .price del {
  display: none;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: var(--color-primary);
}


/* ==========================================================================
   Logged-out account screens: lost password, and setting the new one
   --------------------------------------------------------------------------
   Everything above is scoped to .woocommerce-MyAccount-content, which WooCommerce
   only renders for a logged-in user — so the one account screen you reach
   *without* an account in hand had no styling at all: a wrapped label, a 120px
   input and the browser's grey button.

   Not the split-panel treatment the /login/ page gets. That template is
   standalone; this renders inside the normal site layout under the "Mi Cuenta"
   hero, so it is a card in that column rather than a takeover.
   ========================================================================== */

/* The account page is a 260px sidebar + content grid. That grid is for the
   logged-in screens, and it is the reason this looked broken before there was
   any card here at all: with no navigation to fill it, whatever WooCommerce
   renders lands in the 260px column and is squeezed to a third of its width.
   These screens are the ones you reach *without* being logged in, so the grid
   is switched off for them. !important because the rule it overrides carries
   one too; this wins on specificity. */
.woocommerce-account:not(.logged-in) .woocommerce {
  display: block !important;
}

.sync-account-form {
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--space-4) var(--space-16);
}

.sync-account-form__card {
  width: 100%;
  max-width: 460px;
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.sync-account-form__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.5rem;
}

.sync-account-form__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-800);
}

.sync-account-form__lead {
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-gray-600);
}

/* Left-aligned inside a centred card: a form reads badly centred, and the
   label has to sit over the field it names. */
.sync-account-form__form {
  text-align: left;
}

/* The templates deliberately omit WooCommerce's form-row-first / form-row-last,
   which float a row left at 47% to build its two-column layout. Dropping the
   classes is why nothing here has to out-specify them. */
.sync-account-form__row {
  margin: 0 0 var(--space-4);
  float: none;
  width: 100%;
}

.sync-account-form__row label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
}

.sync-account-form__row label .required {
  color: var(--color-danger);
  text-decoration: none;
  border: 0;
}

.woocommerce .sync-account-form__row input.input-text,
.sync-account-form__row .input-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-gray-800);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius-md);
  transition: border-color .15s, box-shadow .15s;
}

.sync-account-form__row .input-text:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 94, 124, .15);
}

.sync-account-form__actions {
  margin: var(--space-6) 0 0;
  float: none;
  width: 100%;
}

/* Out-specifies `.woocommerce button.button` (0,2,1), which is what was leaving
   this the browser's grey. The element selector on the end is load-bearing —
   a class-only chain of the same length loses the tie. */
.woocommerce .sync-account-form button.sync-account-form__submit,
.woocommerce-page .sync-account-form button.sync-account-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 13px var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.2;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}

.woocommerce .sync-account-form button.sync-account-form__submit:hover,
.woocommerce-page .sync-account-form button.sync-account-form__submit:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.sync-account-form__foot {
  margin: var(--space-6) 0 0;
  font-size: var(--text-sm);
}

.sync-account-form__foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gray-600);
  text-decoration: none;
  font-weight: var(--font-medium);
}

.sync-account-form__foot a:hover {
  color: var(--color-primary);
}

/* The sign-in form on /my-account/ while logged out.
   The theme's real front door is /login/, a standalone branded template, but
   WooCommerce's own form is still reachable — the "lost your password?" link
   comes from it — so it has to be presentable. Switching the grid off above
   freed it from the 260px sidebar column; left alone it would then stretch to
   the full 1168, which is no better. Same card width as the reset screens so
   the three read as one set. */
.woocommerce-account:not(.logged-in) .woocommerce > h2 {
  max-width: 520px;
  margin: var(--space-8) auto var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-800);
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login {
  max-width: 520px;
  margin: 0 auto var(--space-16);
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login .input-text {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  font-size: var(--text-base);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius-md);
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login .input-text:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 94, 124, .15);
}

/* Same specificity problem the reset button had: `.woocommerce button.button`
   was leaving this the browser's grey. */
.woocommerce .woocommerce-form-login button.woocommerce-form-login__submit {
  padding: 12px var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background .15s;
}

.woocommerce .woocommerce-form-login button.woocommerce-form-login__submit:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login .lost_password a {
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

/* The "check your email" confirmation and any error land above the card, and
   were unstyled for the same reason it was. */
.woocommerce-account:not(.logged-in) .woocommerce-message,
.woocommerce-account:not(.logged-in) .woocommerce-error,
.woocommerce-account:not(.logged-in) .woocommerce-info {
  max-width: 460px;
  margin: var(--space-8) auto 0;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-gray-200);
  border-left: 4px solid var(--color-primary);
  background: var(--color-gray-50);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  list-style: none;
}

.woocommerce-account:not(.logged-in) .woocommerce-message {
  border-left-color: var(--color-success);
}

.woocommerce-account:not(.logged-in) .woocommerce-error {
  border-left-color: var(--color-danger);
}

@media (max-width: 480px) {
  .sync-account-form {
    padding: var(--space-5) var(--space-3) var(--space-10);
  }

  .sync-account-form__card {
    padding: var(--space-6) var(--space-5);
  }
}
