@layer utilities {
  .st-auth .mb-3,
  .register-form .mb-3,
  .page-content--customer .mb-3 { margin-bottom: var(--wh-space-mid, 2rem) !important; }
}

.st-auth {
  max-width: 48rem;
  margin: 0 auto;
  padding: var(--wh-space-lg, 3.2rem) 0 var(--wh-space-xl, 6.4rem);
}
.st-auth__title {
  font-size: var(--wh-font-size-h2, 3.2rem);
  text-align: center;
  margin: 0 0 var(--wh-space-lg, 3.2rem);
}
.st-auth__lead {
  font-size: var(--wh-font-size-body, 1.4rem);
  color: var(--wh-color-text-muted, #908981);
  line-height: 1.6;
  text-align: center;
  margin: 0 0 var(--wh-space-lg, 3.2rem);
}
.st-auth__form-wrapper { margin-bottom: var(--wh-space-lg, 3.2rem); }

.st-auth .form-label,
.register-form .form-label,
.page-content--customer .form-label {
  font-size: var(--wh-font-size-body, 1.4rem);
  font-weight: var(--wh-font-weight-medium, 500);
  color: var(--wh-color-text-primary, #40362e);
  margin-bottom: 0.6rem;
}
.st-auth .required::after,
.register-form .required::after,
.page-content--customer .required::after,
.st-auth .form-check-label.required::before,
.register-form .form-check-label.required::before,
.page-content--customer .form-check-label.required::before { color: var(--wh-color-accent, #9e8264); }

.st-auth .form-control,
.st-auth .form-select,
.register-form .form-control,
.register-form .form-select,
.page-content--customer .form-control,
.page-content--customer .form-select {
  border: 1.5px solid var(--wh-color-border-subtle, #e4e0da);
  border-radius: var(--wh-radius-md, 0.8rem);
  padding: 1.2rem var(--wh-space-md, 1.6rem);
  font-size: var(--wh-font-size-body, 1.4rem);
  color: var(--wh-color-text-primary, #40362e);
  background-color: var(--wh-color-bg-base, #fff);
  box-shadow: none;
  height: auto;
}
.st-auth .form-control::placeholder,
.register-form .form-control::placeholder,
.page-content--customer .form-control::placeholder { color: var(--wh-color-text-muted, #908981); opacity: 1; }
.st-auth .form-control:focus,
.st-auth .form-select:focus,
.register-form .form-control:focus,
.register-form .form-select:focus,
.page-content--customer .form-control:focus,
.page-content--customer .form-select:focus {
  border-color: var(--wh-color-accent, #9e8264);
  box-shadow: none;
  outline: none;
}
.st-auth .form-text,
.register-form .form-text,
.page-content--customer .form-text {
  font-size: var(--wh-font-size-small, 1.2rem);
  color: var(--wh-color-text-muted, #908981);
}

/* Podpowiedzi polityki hasel przy rejestracji ("Wpisz haslo od 8 do 72 znakow",
   "Minimalny wynik musi wynosic: Silne").
   ⚠️ Znaczniki wstrzykuje JavaScript RDZENIA PrestaShopa — nie ma ich w HTML-u
   serwera, wiec nie znajdziesz ich grepem po szablonach.
   ⚠️ Bez tej reguly wpadaja w domyslke Bootstrapa `0.875rem`, a nasz korzen ma
   `font-size: 62.5%` (1rem = 10px) — czyli 8,75 px przy 12 px sasiedniego
   `.form-text` i 14 px etykiety. Zmierzone na dev 2026-08-24.
   Ta sama regula jest w skeletonie bazy (themes/_child_template) — tutaj powtorzona,
   bo branza wozi WLASNY _customer.css, wiec sama baza by tu nie dojechala. */
.st-auth .password-requirements__length,
.st-auth .password-requirements__score,
.register-form .password-requirements__length,
.register-form .password-requirements__score,
.page-content--customer .password-requirements__length,
.page-content--customer .password-requirements__score {
  font-size: var(--wh-font-size-small, 1.2rem);
  line-height: var(--wh-line-height-body, 1.5);
  color: var(--wh-color-text-muted, #908981);
}

.st-auth .password-requirements__icon,
.register-form .password-requirements__icon,
.page-content--customer .password-requirements__icon {
  font-size: var(--wh-font-size-small, 1.2rem);
  line-height: var(--wh-line-height-body, 1.5);
}

.register-form .form-check-input,
.page-content--customer .form-check-input {
  border: 1.5px solid var(--wh-color-border-strong, #9ca3af);
  box-shadow: none;
}
.register-form .form-check-input:checked,
.page-content--customer .form-check-input:checked {
  background-color: var(--wh-color-accent, #9e8264);
  border-color: var(--wh-color-accent, #9e8264);
}
.register-form .form-check-input:focus,
.page-content--customer .form-check-input:focus {
  border-color: var(--wh-color-accent, #9e8264);
  box-shadow: none;
}
.register-form .form-check-label,
.page-content--customer .form-check-label { font-size: var(--wh-font-size-body, 1.4rem); }

.st-auth .input-group .form-control,
.register-form .input-group .form-control,
.page-content--customer .input-group .form-control {
  border-inline-end: 0;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.st-auth .input-group .btn,
.register-form .input-group .btn,
.page-content--customer .input-group .btn {
  background: var(--wh-color-bg-base, #fff);
  border: 1.5px solid var(--wh-color-border-subtle, #e4e0da);
  border-inline-start: 0;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: var(--wh-radius-md, 0.8rem);
  border-end-end-radius: var(--wh-radius-md, 0.8rem);
  color: var(--wh-color-text-muted, #908981);
  padding: 0 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.st-auth .input-group .btn:hover,
.st-auth .input-group .btn:focus-visible,
.register-form .input-group .btn:hover,
.register-form .input-group .btn:focus-visible,
.page-content--customer .input-group .btn:hover,
.page-content--customer .input-group .btn:focus-visible {
  background: var(--wh-color-bg-base, #fff);
  color: var(--wh-color-accent, #9e8264);
}
.st-auth .input-group:focus-within .form-control,
.st-auth .input-group:focus-within .btn,
.register-form .input-group:focus-within .form-control,
.register-form .input-group:focus-within .btn,
.page-content--customer .input-group:focus-within .form-control,
.page-content--customer .input-group:focus-within .btn { border-color: var(--wh-color-accent, #9e8264); }
.st-auth .input-group .btn .material-icons,
.register-form .input-group .btn .material-icons,
.page-content--customer .input-group .btn .material-icons { font-size: 2rem; }

.st-auth .st-auth__submit,
.register-form .btn-primary.form-control-submit,
.page-content--customer .btn-primary.form-control-submit {
  background: var(--wh-color-accent, #9e8264);
  border: 2px solid var(--wh-color-accent, #9e8264);
  color: var(--wh-color-text-inverse, #fff);
  border-radius: var(--wh-radius-md, 0.8rem);
  padding: 1.4rem 2.5rem;
  font-size: var(--wh-font-size-body, 1.4rem);
  font-weight: var(--wh-font-weight-medium, 500);
}
.st-auth .st-auth__submit:hover,
.st-auth .st-auth__submit:focus-visible,
.register-form .btn-primary.form-control-submit:hover,
.register-form .btn-primary.form-control-submit:focus-visible,
.page-content--customer .btn-primary.form-control-submit:hover,
.page-content--customer .btn-primary.form-control-submit:focus-visible {
  background: var(--wh-color-primary, #40362e);
  border-color: var(--wh-color-primary, #40362e);
  color: var(--wh-color-text-inverse, #fff);
}
.st-auth .st-auth__submit { width: 100%; }

.st-auth__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wh-space-mid, 2rem);
  margin-top: var(--wh-space-lg, 3.2rem);
}
.st-auth__forgot {
  font-size: var(--wh-font-size-body, 1.4rem);
  color: var(--wh-color-text-muted, #908981);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.st-auth__forgot:hover,
.st-auth__forgot:focus-visible { color: var(--wh-color-accent, #9e8264); }

.st-auth__register-prompt {
  text-align: center;
  border-top: 1px solid var(--wh-color-border-subtle, #e4e0da);
  padding-top: var(--wh-space-lg, 3.2rem);
}
.st-auth__register-title {
  font-size: var(--wh-font-size-base, 1.6rem);
  margin: 0 0 var(--wh-space-mid, 2rem);
}
.st-auth .st-auth__register-btn {
  /* Bez tego przycisk spada do bootstrapowego --bs-btn-font-size: 1rem, a przy
     html { font-size: 62.5% } to 10px, gdy reszta formularza ma 14px.
     Zgloszenie Olafa: "ujednolicic font size" na ekranie logowania. */
  font-size: var(--wh-font-size-body, 1.4rem);
  width: 100%;
  border-radius: var(--wh-radius-md, 0.8rem);
}

#authentication .page-footer,
#password .page-footer { padding: unset; }

#registration .page-title-section { text-align: center; }
#registration .register-form { max-width: 64rem; margin: 0 auto var(--wh-space-xl, 6.4rem); }
.register-form__login-prompt {
  text-align: center;
  font-size: var(--wh-font-size-body, 1.4rem);
  color: var(--wh-color-text-muted, #908981);
}
.register-form__login-prompt a {
  color: var(--wh-color-accent, #9e8264);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.register-form hr { border-color: var(--wh-color-border-subtle, #e4e0da); opacity: 1; }

.order-history__header {
  font-size: var(--wh-font-size-body, 1.4rem);
  font-weight: var(--wh-font-weight-semibold, 600);
  color: var(--wh-color-text-primary, #40362e);
  border-block-end-color: var(--wh-color-border-subtle, #e4e0da);
}
.order-history__row { border-color: var(--wh-color-border-subtle, #e4e0da); }
.order-history__cell { font-size: var(--wh-font-size-body, 1.4rem); padding-block: 1.2rem; }
.order-history__cell--reference { font-weight: var(--wh-font-weight-semibold, 600); color: var(--wh-color-text-primary, #40362e); }
.order-history__cell--date,
.order-history__cell--payment { color: var(--wh-color-text-muted, #908981); }
.order-history__status.badge {
  border-radius: var(--wh-radius-pill, 99.9rem);
  font-size: var(--wh-font-size-small, 1.2rem);
  font-weight: var(--wh-font-weight-medium, 500);
  padding: 0.5rem 1.2rem;
}

.grid-table__header {
  font-size: var(--wh-font-size-body, 1.4rem);
  font-weight: var(--wh-font-weight-semibold, 600);
  color: var(--wh-color-text-primary, #40362e);
  border-block-end-color: var(--wh-color-border-subtle, #e4e0da);
}
.grid-table__row { border-color: var(--wh-color-border-subtle, #e4e0da); }
.grid-table__cell { font-size: var(--wh-font-size-body, 1.4rem); }

.address-card {
  border: 1.5px solid var(--wh-color-border-subtle, #e4e0da);
  border-radius: var(--wh-radius-md, 0.8rem);
  background: var(--wh-color-bg-base, #fff);
}
.address-card:hover { border-color: var(--wh-color-accent, #9e8264); }
.address-card__container { padding: var(--wh-space-mid, 2rem); }
.address-card__alias {
  font-size: var(--wh-font-size-base, 1.6rem);
  font-weight: var(--wh-font-weight-semibold, 600);
  color: var(--wh-color-text-primary, #40362e);
}
.address-card__content {
  font-size: var(--wh-font-size-body, 1.4rem);
  color: var(--wh-color-text-muted, #908981);
  line-height: 1.6;
}
.address-card__actions {
  gap: var(--wh-space-md, 1.6rem);
  border-top: 1px solid var(--wh-color-border-subtle, #e4e0da);
  padding-top: var(--wh-space-small, 1.2rem);
}
.address-card__edit { color: var(--wh-color-text-primary, #40362e); text-decoration: underline; text-underline-offset: 0.3rem; }
.address-card__edit:hover { color: var(--wh-color-accent, #9e8264); }
.address-card__delete { color: var(--wh-color-semantic-danger, #dc2626); text-decoration: underline; text-underline-offset: 0.3rem; }
.address-card--add-address {
  border-style: dashed;
  border-color: var(--wh-color-border-strong, #9ca3af);
  color: var(--wh-color-text-muted, #908981);
}
.address-card--add-address:hover {
  background: var(--wh-color-bg-subtle, #f7f7f7);
  border-color: var(--wh-color-accent, #9e8264);
  color: var(--wh-color-primary, #40362e);
}
.address-card--add-address .address-card__add-icon.btn-primary {
  background: var(--wh-color-accent, #9e8264);
  border-color: var(--wh-color-accent, #9e8264);
  color: var(--wh-color-text-inverse, #fff);
}

.page-content--customer .btn-outline-primary {
  background: transparent;
  border-color: var(--wh-color-accent, #9e8264);
  color: var(--wh-color-accent, #9e8264);
  border-radius: var(--wh-radius-md, 0.8rem);
}
.page-content--customer .btn-outline-primary:hover,
.page-content--customer .btn-outline-primary:focus-visible {
  background: var(--wh-color-accent, #9e8264);
  border-color: var(--wh-color-accent, #9e8264);
  color: var(--wh-color-text-inverse, #fff);
}
.page-content--customer .btn:focus,
.page-content--customer .btn:focus-visible,
.st-auth .btn:focus,
.st-auth .btn:focus-visible { box-shadow: none; }
.page-content--customer .btn:focus-visible,
.st-auth .btn:focus-visible {
  outline: 2px solid var(--wh-color-accent, #9e8264);
  outline-offset: 2px;
}

