/* Dynamips Auth checkout integration. Loaded only on checkout. */

/* Dynamips Auth is the only checkout login UI. FunnelKit/WooCommerce may
 * re-inject their login blocks dynamically, so these selectors are deliberately
 * scoped to login-related checkout nodes and reinforced by checkout.js. */
html body [data-dynauth-legacy-login-hidden="1"],
html body .woocommerce-form-login-toggle,
html body .woocommerce-form-login,
html body .wfacp-login-wrapper,
html body [class*="wfacp"][class*="login"],
html body [id*="wfacp"][id*="login"] {
  display: none !important;
}

.dynauth-checkout-returning {
  margin: 0 0 16px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.dynauth-checkout-returning a {
  color: #e85b0c !important;
  text-decoration: none !important;
}

.dynauth-checkout-returning a:hover,
.dynauth-checkout-returning a:focus-visible {
  text-decoration: underline !important;
}

/* Compact, shadcn-like account notice. */
.dynauth-checkout-account {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 10px 0 16px !important;
  padding: 12px 14px !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 8px !important;
  background: #fafafa !important;
  color: #18181b !important;
  font-family: inherit !important;
}

.dynauth-checkout-account[hidden] {
  display: none !important;
}

.dynauth-checkout-account__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  color: #71717a !important;
}

.dynauth-checkout-account__icon svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
}

.dynauth-checkout-account__text {
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  color: #27272a !important;
}

.dynauth-checkout-account__button {
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #18181b !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04) !important;
  cursor: pointer !important;
}

.dynauth-checkout-account__button:hover,
.dynauth-checkout-account__button:focus-visible {
  background: #f4f4f5 !important;
}

.dynauth-checkout-account__button:focus-visible {
  outline: 2px solid #18181b !important;
  outline-offset: 2px !important;
}

@media (max-width: 640px) {
  .dynauth-checkout-account {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 8px 10px !important;
    padding: 12px !important;
  }

  .dynauth-checkout-account__button {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}
