/* Manual review: in-field labels, newsletter-family accounts, quieter footer and cart typography. */
.ewr-field { position: relative; min-width: 0; }
form .ewr-field > .ewr-infield-label {
  position: absolute; z-index: 1; top: 16px; left: 16px; right: 16px;
  display: block; margin: 0; padding: 0; width: auto;
  color: var(--ew-paper, #e8e8ea); font-family: var(--ew-font-body, Inter, sans-serif);
  font-size: 14px; font-weight: 400; line-height: 20px; text-transform: none; letter-spacing: 0;
  pointer-events: none; transition: top .12s, font-size .12s;
}
form .ewr-field .ewr-field-control {
  box-sizing: border-box; display: block; width: 100%; max-width: 100%; min-height: 56px;
  margin: 0; padding: 23px 16px 9px; border: 1px solid var(--ew-steel, #3a3a40); border-radius: 0;
  background: var(--ew-black, #0a0a0b); color: var(--ew-paper, #e8e8ea);
  font-family: var(--ew-font-body, Inter, sans-serif); font-size: 16px; line-height: 1.5;
}
form .ewr-field textarea.ewr-field-control { min-height: 140px; resize: vertical; }
form .ewr-field .ewr-field-control::placeholder { color: transparent; font-style: normal; opacity: 1; }
form .ewr-field:focus-within > .ewr-infield-label,
form .ewr-field.ewr-has-value > .ewr-infield-label,
form .ewr-field.ewr-field-persistent > .ewr-infield-label,
form .ewr-field:has(input:autofill) > .ewr-infield-label,
form .ewr-field:has(input:not(:placeholder-shown), textarea:not(:placeholder-shown)) > .ewr-infield-label {
  top: 5px; font-size: 11px; line-height: 16px; color: #b7b7bf;
}
form .ewr-field:focus-within .ewr-field-control::placeholder,
form .ewr-field-persistent .ewr-field-control::placeholder { color: #a4a4ae; }
form .ewr-field .ewr-field-control:focus-visible { outline: 2px solid var(--accent, #c2ff00); outline-offset: 2px; }
form .ewr-field .ewr-field-control:disabled { opacity: 1; cursor: not-allowed; }
form .ewr-field .required, form .ewr-field .ew-required { color: inherit; }
form[data-ew-newsletter] fieldset > label.ewr-field { display: block; }

/* Use the same graphite panel, chartreuse rule, dark fields and paper buttons as signup. */
.woocommerce-account .woocommerce form:is(.login, .register, .lost_reset_password) {
  box-sizing: border-box; padding: 24px; margin: 24px 0 0;
  border: 1px solid var(--ew-steel, #3a3a40); border-top: 3px solid var(--accent, #c2ff00);
  border-radius: 0; background: var(--ew-graphite, #161618); color: var(--ew-paper, #e8e8ea);
}
.woocommerce-account #customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.woocommerce-account #customer_login::before, .woocommerce-account #customer_login::after { display: none; }
.woocommerce-account #customer_login > :is(.u-column1, .u-column2) { float: none; width: auto; min-width: 0; }
.woocommerce-account #customer_login h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.woocommerce-account .woocommerce form .form-row.ewr-field { padding: 0; margin: 0 0 20px; }
.woocommerce-account .woocommerce .password-input { width: 100%; }
.woocommerce-account .woocommerce .password-input input { padding-right: 52px; }
.woocommerce-account .woocommerce form .show-password-input { color: var(--ew-paper, #e8e8ea); top: 8px; right: 8px; width: 40px; height: 40px; padding: 0; }
.woocommerce-account .woocommerce form .show-password-input::after { margin: 0; }
.woocommerce-account .woocommerce form:is(.login, .register, .lost_reset_password) button[type=submit] {
  float: none; display: block; box-sizing: border-box; min-height: 44px; width: 100%; padding: 12px 24px; margin: 16px 0 0;
  border: 1px solid var(--ew-paper, #e8e8ea); border-radius: 2px; background: var(--ew-paper, #e8e8ea); color: var(--ew-black, #0a0a0b);
  font-family: var(--ew-font-body, Inter, sans-serif); font-size: 16px; line-height: 1.5; font-weight: 500;
}
.woocommerce-account .woocommerce form:is(.login, .register, .lost_reset_password) button[type=submit]:hover { background: #fff; border-color: #fff; }
.woocommerce-account .woocommerce form:is(.login, .register, .lost_reset_password) :focus-visible { outline: 2px solid var(--accent, #c2ff00); outline-offset: 3px; }
.woocommerce-account .woocommerce form .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.woocommerce-account .woocommerce form input[type=checkbox] { accent-color: var(--accent, #c2ff00); width: 18px; height: 18px; }
.woocommerce-account .woocommerce .woocommerce-privacy-policy-text,
.woocommerce-account .woocommerce .lost_password { font-size: 14px; line-height: 1.6; }
.woocommerce-account .woocommerce .woocommerce-privacy-policy-text p { margin: 0 0 16px; }
.woocommerce-account .woocommerce .lost_password { margin: 16px 0 0; }

/* Match neighboring footer links while retaining a generous keyboard/touch target. */
.ew-footer button.ew-footer__privacy-choices {
  border: 0; background: transparent; padding: 10px 0; min-height: 44px;
  font-family: var(--ew-font-body, Inter, sans-serif); font-size: 12px; line-height: 1.5;
  font-weight: 400; color: #a4a4ae; box-shadow: none; text-transform: none;
}
.ew-footer button.ew-footer__privacy-choices:hover { color: var(--ew-paper, #e8e8ea); text-decoration: underline; }
.ew-footer button.ew-footer__privacy-choices:focus-visible { outline: 2px solid var(--accent, #c2ff00); outline-offset: 3px; }

/* Cart body uses the site sans; prices and small section labels use its instrument mono. */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals { font-family: var(--ew-font-body, Inter, sans-serif); font-size: 16px; color: var(--ew-paper, #e8e8ea); }
body.woocommerce-cart :is(.wc-block-cart, .woocommerce-cart-form, .cart-collaterals) :is(input, select, textarea, button) { font-family: var(--ew-font-body, Inter, sans-serif); }
body.woocommerce-cart .wc-block-cart-items__header,
body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wc-block-components-totals-item__label { font-family: var(--ew-font-mono, monospace); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
body.woocommerce-cart .wc-block-components-product-name { font-family: var(--ew-font-body, Inter, sans-serif); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ew-paper, #e8e8ea); }
body.woocommerce-cart :is(.wc-block-components-product-price, .wc-block-components-totals-item__value, .wc-block-cart-item__total-price-and-sale-badge-wrapper) { font-family: var(--ew-font-mono, monospace); font-variant-numeric: tabular-nums; }
body.woocommerce-cart .wc-block-components-product-metadata { font-family: var(--ew-font-body, Inter, sans-serif); font-size: 13px; line-height: 1.6; color: #b7b7bf; }
body.woocommerce-cart .wc-block-cart-item__remove-link { font-family: var(--ew-font-body, Inter, sans-serif); font-size: 12px; color: #b7b7bf; }
body.woocommerce-cart .wc-block-cart__sidebar { border-top: 3px solid var(--accent, #c2ff00); }
body.woocommerce-cart .wc-block-cart__submit-button { font-family: var(--ew-font-body, Inter, sans-serif); font-size: 16px; line-height: 1.5; font-weight: 600; border-radius: 2px; }
body.woocommerce-cart .wc-block-components-quantity-selector { border-color: var(--ew-steel, #3a3a40); border-radius: 0; background: var(--ew-black, #0a0a0b); }
body.woocommerce-cart .wc-block-components-quantity-selector :is(input, button) { color: var(--ew-paper, #e8e8ea); }
@media (max-width: 767px) {
  .woocommerce-account #customer_login { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .woocommerce-account .woocommerce form:is(.login, .register, .lost_reset_password) { padding: 16px; }
  form .ewr-field-persistent > .ewr-infield-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { form .ewr-field > .ewr-infield-label { transition: none; } }
/* Woo's form-row defaults are more specific than the shared field component. */
body.woocommerce-account .woocommerce form .ewr-field .ewr-field-control {
  background: var(--ew-black, #0a0a0b); color: var(--ew-paper, #e8e8ea);
  border: 1px solid var(--ew-steel, #3a3a40); border-radius: 0;
}
body.woocommerce-account .woocommerce form:is(.login, .register, .lost_reset_password) { border-top-color: var(--accent, #c2ff00); }
body.woocommerce-account .woocommerce form .show-password-input { background: transparent; color: var(--ew-paper, #e8e8ea); }
body.woocommerce-account .woocommerce form:is(.login, .register, .lost_reset_password) :focus-visible { outline-color: var(--accent, #c2ff00); }

body.woocommerce-account .woocommerce form .show-password-input {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  top: 6px; right: 6px; transform: none;
}
body.woocommerce-account .woocommerce form .show-password-input::before { filter: invert(1); }
body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
  font-family: var(--ew-font-body, Inter, sans-serif); font-size: 16px; font-weight: 600; line-height: 1.5;
}

/* The home Phantom section already sits in a full-width main. On phone widths,
   100vw includes the scrollbar gutter and creates a 6px horizontal overhang. */
@media (max-width: 767px) {
  body.home .ew-phantom { width: 100%; margin-left: 0; margin-right: 0; }
}
