/* Konto klienta — wspólny wygląd logowania i rejestracji, zgodny z OPC. */
.se-account-page { --account-green: #007953; --account-border: #d6e2dc; }
#content-wrapper.se-account-page { width:100%; max-width:100%; float:none; min-width:0; padding:8px 0 36px; margin:0; }
.se-account-page #main { width:100%; max-width:none; margin-inline:auto; }
.se-account-page .page-header { margin:0 0 24px; padding:0; border:0; }
.se-account-page .page-header h1 { margin:0; font-size:clamp(25px,2.5vw,30px); line-height:1.3; font-weight:600; text-transform:none; }
.se-account-page #content.page-content { display:grid; grid-template-columns:minmax(0,35fr) minmax(0,65fr); gap:28px; width:100%; max-width:none; margin:0; padding:0; border:0; background:transparent; box-shadow:none; }
.se-account-page .se-account-benefits, .se-account-page .se-account-form { min-width:0; padding:30px; border:1px solid var(--account-border); border-radius:12px; box-sizing:border-box; }
.se-account-page .se-account-benefits { align-self:start; background:#f5f8f5; color:#202a25; }
.se-account-page .se-account-benefits h2 { font-size:23px; line-height:1.4; font-weight:600; text-transform:none; margin:0 0 14px; }
.se-account-page .se-account-benefits p { font-size:15px; line-height:1.7; color:#65746b; }
.se-account-page .se-account-benefits ul { padding:0; margin:24px 0; list-style:none; }
.se-account-page .se-account-benefits li { position:relative; padding-left:26px; margin-bottom:18px; font-size:15px; line-height:1.6; }
.se-account-page .se-account-benefits li::before { content:'✓'; position:absolute; left:0; color:var(--account-green); font-weight:700; }
.se-account-page .se-account-help { border-top:1px solid var(--account-border); padding-top:20px; }
.se-account-page .se-account-help a { display:block; margin-top:8px; }
.se-account-page .se-account-form { background:#fff; }
.se-account-page :is(.login-form,.register-form,#login-form,#customer-form) { width:100%; max-width:none; margin:0; padding:0; }
.se-account-page :is(#login-form,#customer-form) .form-group { display:block; margin:0 0 20px; padding:0; }
.se-account-page :is(#login-form,#customer-form) .form-group > [class*='col-'] { display:block; float:none; width:100%; max-width:100%; margin:0; padding:0; box-sizing:border-box; text-align:left; }
.se-account-page :is(#login-form,#customer-form) .form-control-label { font-size:15px; font-weight:600; line-height:1.5; margin:0 0 8px; color:#202a25; }
.se-account-page :is(#login-form,#customer-form) .form-control-label:empty { display:none; }
.se-account-page :is(#login-form,#customer-form) .form-control { display:block; width:100%; min-width:0; min-height:50px; padding:12px 14px; font-size:16px; line-height:1.5; border:1px solid #cddbd3; border-radius:7px; background:#fff; color:#202a25; box-sizing:border-box; }
.se-account-page :is(#login-form,#customer-form) .form-control:focus { border-color:var(--account-green); outline:2px solid rgba(0,121,83,.15); outline-offset:1px; box-shadow:none; }
.se-account-page .input-group { display:flex; width:100%; }
.se-account-page .input-group .form-control { flex:1 1 auto; width:1% !important; border-radius:7px 0 0 7px !important; }
.se-account-page .input-group-btn { display:flex; flex:0 0 auto; width:auto; }
.se-account-page .input-group-btn button { position:static; height:50px; margin:0; padding-inline:14px; border:1px solid #cddbd3; border-left:0; border-radius:0 7px 7px 0; background:#f5f8f5; color:var(--account-green); font-size:14px; }
.se-account-page :is(#login-form,#customer-form) .form-control-comment { margin-top:6px; font-size:13px; line-height:1.5; color:#65746b; }
.se-account-page .form-control-comment:empty { display:none !important; }
.se-account-page .custom-checkbox { display:block; }
.se-account-page .custom-checkbox label { position:relative; display:block; padding-left:28px; font-size:14px; line-height:1.65; text-align:left; overflow-wrap:anywhere; }
.se-account-page .custom-checkbox label > span:has(.checkbox-checked), .se-account-page .custom-checkbox label > span:empty { position:absolute; left:0; top:3px; margin:0; }
.se-account-page .custom-checkbox input { position:absolute; left:0; top:3px; }
.se-account-page .radio-inline { margin-right:20px; font-size:15px; }
.se-account-page .forgot-password { text-align:right; margin:4px 0 20px; font-size:14px; }
.se-account-page :is(#login-form,#customer-form) .form-footer { margin:24px 0 0; padding:0; }
.se-account-page :is(#login-form,#customer-form) button[type='submit'] { float:none !important; width:100%; min-height:50px; margin:0; padding:12px 20px; border-radius:7px; background:var(--account-green); border:1px solid var(--account-green); color:#fff; font-size:16px; font-weight:600; text-transform:none; white-space:normal; }
.se-account-page :is(#login-form,#customer-form) button[type='submit']:hover { background:#006344; }
.se-account-page .se-account-form > hr { margin:24px 0; border:0; border-top:1px solid var(--account-border); }
.se-account-page .no-account { text-align:center; font-size:15px; line-height:1.6; }
.se-account-page a { color:var(--account-green); text-decoration:underline; text-underline-offset:3px; }
.se-account-page .alert { width:100%; overflow-wrap:anywhere; }
@media (max-width:767px) {
  .se-account-page #content.page-content { grid-template-columns:minmax(0,1fr); gap:20px; }
  .se-account-page .se-account-form { order:0; }
  .se-account-page .se-account-benefits { order:1; }
  .se-account-page .se-account-benefits, .se-account-page .se-account-form { padding:24px 18px; }
  .se-account-page .input-group-btn button { padding-inline:10px; }
}

/* Odstąpienie — ten sam układ kart, bez zmiany działania formularza. */
body#module-x13withdrawals-withdrawals .se-account-page #main { max-width:1160px; }
body#module-x13withdrawals-withdrawals .se-account-page #content.page-content { display:grid; padding:0; border:0; background:transparent; }
body#module-x13withdrawals-withdrawals .se-account-page .x13w-guest-form .form-fields { grid-template-columns:minmax(0,1fr); }
body#module-x13withdrawals-withdrawals .se-account-page .x13w-guest-form { padding:0; border:0; margin:0; }

/* Rejestracja — krótszy formularz, pola parowane wyłącznie na PC. */
.se-account-page:has(.register-form) #main { max-width:none; }
.se-account-page:has(.register-form) #content.page-content { grid-template-columns:minmax(0,34fr) minmax(0,66fr); gap:24px; }
.se-account-page .register-form > p { margin:0 0 18px; font-size:14px; }
.se-account-page .register-form #customer-form > section { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:18px; }
.se-account-page .register-form #customer-form > section > * { grid-column:1 / -1; min-width:0; }
.se-account-page .register-form #customer-form > section > .form-group:has(input[name="firstname"], input[name="lastname"], input[name="company"], input[name="siret"], input[name="vat_number"]) { grid-column:auto; }
.se-account-page .register-form #customer-form .form-group { margin-bottom:14px; }
.se-account-page .register-form #customer-form .form-control-label { margin-bottom:5px; font-size:14px; }
.se-account-page .register-form #customer-form .form-control { min-height:44px; padding:9px 12px; }
.se-account-page .register-form .input-group-btn button { height:44px; }
.se-account-page .register-form #customer-form .form-control-comment { font-size:12px; margin-top:4px; }
.se-account-page .register-form .custom-checkbox label { font-size:13px; line-height:1.55; }
.se-account-page .register-form #customer-form .form-footer { margin-top:10px; }
.se-account-page .register-form #customer-form button[type="submit"] { min-height:44px; padding:10px 20px; }
@media (max-width:767px) {
 .se-account-page:has(.register-form) #content.page-content { grid-template-columns:minmax(0,1fr); gap:20px; }
 .se-account-page .register-form #customer-form > section { grid-template-columns:minmax(0,1fr); }
}

/* Zgody rejestracji — układ i checkboxy jak w OPC. */
.se-account-page .se-account-consents { min-width:0; margin:8px 0 0; padding:24px; border:1px solid #d6e2dc; border-radius:14px; }
.se-account-page .se-account-consents legend { float:left; width:100%; margin:0 0 22px; padding:0; font-size:22px; line-height:1.4; font-weight:600; color:#202a25; }
.se-account-page .se-account-consents legend + * { clear:both; }
.se-account-page .register-form #customer-form .se-account-consents .form-group { margin:0 0 22px; }
.se-account-page .register-form #customer-form .se-account-consents .form-group:last-child { margin-bottom:0; }
.se-account-page .register-form .se-account-consents .custom-checkbox label { padding-left:37px; font-size:16px; line-height:1.6; font-weight:400; }
.se-account-page .se-account-consents .custom-checkbox label > span:has(.checkbox-checked), .se-account-page .se-account-consents .custom-checkbox label > span:empty { display:none; }
.se-account-page .se-account-consents .custom-checkbox input[type="checkbox"] { appearance:auto; -webkit-appearance:auto; position:absolute; top:3px; left:0; width:21px; height:21px; min-width:21px; margin:0; opacity:1; cursor:pointer; accent-color:#00815b; }
.se-account-page .se-account-consents .custom-checkbox input:focus-visible { outline:2px solid #007953; outline-offset:3px; }
.se-account-page .se-account-consents .custom-checkbox label :is(em,small,p) { display:block; margin:8px 0 0; font-size:14px; line-height:1.65; font-style:normal; color:#65746b; }
@media(max-width:575px) {
 .se-account-page .se-account-consents { padding:20px 16px; }
 .se-account-page .se-account-consents legend { font-size:20px; }
 .se-account-page .register-form .se-account-consents .custom-checkbox label { padding-left:32px; font-size:15px; }
}

/* Logowanie — zatwierdzona wizualizacja, formularz o czytelnej szerokości. */
.se-account-page:has(.se-account-form--login) #content.page-content { grid-template-columns:minmax(0,40fr) minmax(0,60fr); gap:24px; align-items:stretch; }
.se-account-page:has(.se-account-form--login) .se-account-benefits { align-self:stretch; padding:36px; }
.se-account-page:has(.se-account-form--login) .se-account-benefits h2 { font-size:clamp(24px,2vw,32px); line-height:1.3; }
.se-account-page .se-account-form--login { display:flex; align-items:center; justify-content:center; padding:36px; }
.se-account-page .se-login-inner { width:100%; max-width:520px; min-width:0; }
.se-account-page .se-login-heading { margin-bottom:24px; text-align:center; }
.se-account-page .se-login-heading h1 { margin:0 0 10px; font-size:clamp(27px,2.4vw,34px); font-weight:600; line-height:1.25; text-transform:none; }
.se-account-page .se-login-heading p { margin:0; font-size:16px; line-height:1.5; color:#65746b; }
.se-account-page .se-account-form--login #login-form .form-control { min-height:48px; padding:11px 14px; }
.se-account-page .se-account-form--login #login-form .input-group { position:relative; }
.se-account-page .se-account-form--login #login-form .input-group .form-control { border-radius:7px !important; padding-right:80px; }
.se-account-page .se-account-form--login #login-form .input-group-btn { position:absolute; right:1px; top:1px; bottom:1px; z-index:3; }
.se-account-page .se-account-form--login #login-form .input-group-btn button { height:auto; min-height:0; padding:0 14px; border:0; border-radius:0 7px 7px 0; background:transparent; color:#007953; font-weight:600; }
.se-account-page .se-account-form--login #login-form .forgot-password { text-align:right; margin:0 0 24px; }
.se-account-page .se-account-form--login #login-form .form-footer { margin-top:0; }
.se-account-page .se-account-form--login #login-form button[type='submit'] { min-height:48px; }
.se-account-page .se-login-inner > hr { margin:28px 0 22px; border:0; border-top:1px solid #d6e2dc; }
.se-account-page .se-login-register { display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; }
.se-account-page .se-login-register a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:9px 24px; border:1px solid #007953; border-radius:7px; font-weight:600; text-decoration:none; box-sizing:border-box; }
.se-account-page .se-login-register a:hover { background:#edf5f0; }
@media(max-width:767px) {
 .se-account-page:has(.se-account-form--login) #content.page-content { grid-template-columns:minmax(0,1fr); gap:20px; }
 .se-account-page .se-account-form--login, .se-account-page:has(.se-account-form--login) .se-account-benefits { padding:24px 18px; }
 .se-account-page .se-login-register { gap:12px; }
}

/* Jawna kolejność sekcji również przy nadpisaniach szablonu mobilnego. */
@media(max-width:991px) {
 body .se-account-page #content.page-content { display:flex !important; flex-direction:column; gap:20px; }
 body .se-account-page #content.page-content > .se-account-form { order:0; width:100%; }
 body .se-account-page #content.page-content > .se-account-benefits { order:1; width:100%; }
}

/* Rejestracja dopasowana do zatwierdzonego logowania. */
.se-account-page:has(.se-account-form--registration) #content.page-content { grid-template-columns:minmax(0,40fr) minmax(0,60fr); gap:24px; }
.se-account-page .se-account-form--registration { display:flex; justify-content:center; padding:36px; }
.se-account-page .se-registration-inner { width:100%; max-width:640px; min-width:0; }
.se-account-page:has(.se-account-form--registration) .se-account-benefits { padding:36px; }
.se-account-page:has(.se-account-form--registration) .se-account-benefits h2 { font-size:clamp(24px,2vw,32px); line-height:1.3; }
.se-account-page .se-account-form--registration #customer-form .input-group { position:relative; }
.se-account-page .se-account-form--registration #customer-form .input-group .form-control { border-radius:7px !important; padding-right:80px; }
.se-account-page .se-account-form--registration #customer-form .input-group-btn { position:absolute; right:1px; top:1px; bottom:1px; z-index:3; }
.se-account-page .se-account-form--registration #customer-form .input-group-btn button { height:auto; min-height:0; padding:0 14px; border:0; border-radius:0 7px 7px 0; background:transparent; color:#007953; font-weight:600; }
.se-account-page .se-registration-inner > hr { margin:28px 0 22px; border:0; border-top:1px solid #d6e2dc; }
@media(max-width:991px) {
 .se-account-page .se-account-form--registration, .se-account-page:has(.se-account-form--registration) .se-account-benefits { padding:24px 18px; }
}

/* Szczegóły rejestracji: wybór formy, krótsze zgody i wspólny rząd e-mail/hasło. */
.se-account-page .se-salutation { border:0; padding:0; min-width:0; }
.se-account-page .se-salutation legend { width:100%; margin:0 0 8px; padding:0; font-size:14px; line-height:1.5; font-weight:600; }
.se-account-page .se-salutation-options { display:flex; flex-wrap:wrap; gap:10px; }
.se-account-page .se-salutation-option { position:relative; display:block; margin:0; cursor:pointer; }
.se-account-page .se-salutation-option input { position:absolute; width:1px; height:1px; opacity:0; }
.se-account-page .se-salutation-option span { display:flex; align-items:center; justify-content:center; min-width:72px; min-height:40px; padding:8px 18px; border:1px solid #cddbd3; border-radius:7px; background:#fff; color:#202a25; font-size:14px; line-height:1.5; box-sizing:border-box; }
.se-account-page .se-salutation-option input:checked + span { background:#edf5f0; border-color:#007953; color:#007953; font-weight:600; }
.se-account-page .se-salutation-option input:focus-visible + span { outline:2px solid #007953; outline-offset:3px; }
.se-account-page .register-form #customer-form .se-account-consents .form-group { margin-bottom:14px; }
.se-account-page .register-form #customer-form .se-account-consents .form-group:last-child { margin-bottom:0; }
.se-account-page .se-account-consents .custom-checkbox label :is(em,small,p) { margin-top:4px; }
@media(min-width:992px) {
 .se-account-page .register-form #customer-form > section > .form-group:has(input[name="email"],input[name="password"]) { grid-column:auto; }
}

/* Przypięty panel wyłącznie na stronie rejestracji na PC. */
@media (min-width: 992px) {
  .se-account-page:has(.se-account-form--registration) #content.page-content {
    overflow: visible;
  }
  .se-account-page:has(.se-account-form--registration) .se-account-benefits {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    box-sizing: border-box;
  }
}
