/* Wypominki EP — page wizard. Loaded AFTER case-forms.css on purpose. */
#epWypWizard{overflow:visible!important}
#epWypWizard .ekwp-mass-form{display:block!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:18px 24px 24px!important}
#epWypWizard .ekwp-mass-form-step{display:none!important;position:static!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;opacity:1!important;visibility:visible!important}
#epWypWizard .ekwp-mass-form-step.is-active{display:block!important;flex:none!important;overflow:visible!important;padding:0!important}
#epWypWizard .ekwp-mass-fields{display:block!important;height:auto!important;overflow:visible!important}
#epWypWizard .ekwp-mass-fields>h3,#epWypWizard .ekwp-mass-form-step>h3{margin:0 0 14px!important;font-size:18px!important;color:#173b48!important}
#epWypWizard .ekwp-mass-two{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 14px!important}
#epWypWizard .ekwp-mass-two label{display:flex!important;flex-direction:column!important;gap:6px!important;margin:0!important;font-weight:700!important;color:#173b48!important}
#epWypWizard .ekwp-mass-two input{position:static!important;display:block!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;padding:9px 12px!important;box-sizing:border-box!important;border:1px solid #cbd8dd!important;border-radius:7px!important;background:#fff!important;color:#173b48!important;opacity:1!important;visibility:visible!important}
#epWypWizard .ep-wyp-section-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;margin:24px 0 10px!important;padding-top:20px!important;border-top:1px solid #e1e7e9!important}
#epWypWizard .ep-wyp-section-head h3{margin:0!important;font-size:18px!important}
#epWypWizard .ep-wyp-section-head p{margin:3px 0 0!important}
#epWypWizard .ep-wyp-add{width:auto!important;min-height:38px!important;padding:8px 14px!important;margin:0!important;background:#fff!important;border:1px solid #0b4b5d!important;border-radius:7px!important;color:#0b4b5d!important;font-weight:700!important}
#epWypWizard .ep-wyp-person{display:block!important;margin:0 0 10px!important;padding:14px!important;height:auto!important;min-height:0!important;overflow:visible!important}
#epWypWizard .ep-wyp-person-head{display:flex!important}
#epWypWizard .ekwp-mass-wizard-actions{position:static!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;margin:20px 0 0!important;padding:18px 0 0!important;border-top:1px solid #e1e7e9!important;background:#fff!important}
#epWypWizard .ekwp-mass-wizard-actions button{position:static!important;margin:0!important;min-height:40px!important;height:auto!important}
#epWypWizard [hidden]{display:none!important}
#epWypWizard .ekwp-mass-stepper{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:0!important;padding:18px 24px 0!important;height:auto!important;max-height:none!important;overflow:visible!important}
#epWypWizard .ekwp-mass-step{display:flex!important;align-items:center!important;gap:8px!important;width:auto!important;height:auto!important;min-height:44px!important;padding:9px 12px!important}
#epWypWizard .ekwp-mass-payment-online{height:auto!important;max-height:none!important;overflow:visible!important}
#epWypWizard .ekwp-payment-choices{height:auto!important;overflow:visible!important}
#epWypWizard .ekwp-mass-summary{height:auto!important;overflow:hidden!important}
@media(max-width:700px){
 #epWypWizard .ekwp-mass-form{padding:14px 16px 18px!important}
 #epWypWizard .ekwp-mass-two{grid-template-columns:1fr!important}
 #epWypWizard .ep-wyp-section-head{align-items:flex-start!important;flex-direction:column!important}
 #epWypWizard .ep-wyp-add{width:100%!important}
 #epWypWizard .ekwp-mass-stepper{padding:14px 16px 0!important;flex-wrap:nowrap!important;overflow-x:auto!important}
 #epWypWizard .ekwp-mass-wizard-actions{position:static!important;padding-bottom:0!important}
}

/* FIX4: wizard footer buttons must match Intencje and remain readable. */
#epWypWizard .ekwp-mass-wizard-actions .ekwp-wprev{background:#fff!important;border:1px solid #0b4b5d!important;color:#0b4b5d!important;-webkit-text-fill-color:#0b4b5d!important;opacity:1!important;visibility:visible!important;width:auto!important;min-width:92px!important;padding:10px 18px!important;font-weight:700!important;}
#epWypWizard .ekwp-mass-wizard-actions .ekwp-wnext,#epWypWizard .ekwp-mass-wizard-actions .ekwp-submit{background:#0b4b5d!important;border:1px solid #0b4b5d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;visibility:visible!important;width:auto!important;padding:10px 18px!important;font-weight:700!important;}
#epWypWizard .ekwp-mass-wizard-actions .ekwp-wprev[hidden],#epWypWizard .ekwp-mass-wizard-actions .ekwp-wnext[hidden],#epWypWizard .ekwp-mass-wizard-actions .ekwp-submit[hidden]{display:none!important;}

/* FIX5: kwota ofiary wyłącznie dla P24 + czytelny Wstecz */
#epWypWizard [data-online-amount][hidden]{display:none!important}
#epWypWizard [data-online-amount]{margin-top:16px!important}
#epWypWizard .ep-wyp-prev{display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#fff!important;border:1px solid #0b4b5d!important;color:#0b4b5d!important;-webkit-text-fill-color:#0b4b5d!important;font-size:14px!important;line-height:1!important;text-indent:0!important;opacity:1!important;visibility:visible!important;min-width:92px!important;padding:10px 18px!important}
#epWypWizard .ep-wyp-prev span{display:inline!important;color:#0b4b5d!important;-webkit-text-fill-color:#0b4b5d!important;font:inherit!important;line-height:1!important;opacity:1!important;visibility:visible!important;text-indent:0!important}
#epWypWizard .ep-wyp-prev[hidden]{display:none!important}

/* Potwierdzenie wypominków – estetyczna karta bez przycisku powrotu */
#epWypWizard:has(.ep-wyp-success){padding:24px!important;box-sizing:border-box!important;}
#epWypWizard .ep-wyp-success,.ep-wyp-final-summary .ep-wyp-success{display:flex!important;flex-direction:column!important;gap:8px!important;margin:0 0 22px!important;padding:22px 24px!important;border:1px solid #a8dbc0!important;border-radius:12px!important;background:#eaf8ef!important;color:#17643a!important;line-height:1.55!important;}
#epWypWizard .ep-wyp-success strong,.ep-wyp-final-summary .ep-wyp-success strong{font-size:18px!important;color:#17643a!important;}
#epWypWizard:has(.ep-wyp-success)>h2{margin:0 0 6px!important;font-size:23px!important;}
#epWypWizard:has(.ep-wyp-success)>.ekwp-form-hint{margin:0 0 18px!important;}
#epWypWizard:has(.ep-wyp-success)>.ekwp-mass-summary{margin:0!important;width:100%!important;box-sizing:border-box!important;}
#epWypWizard:has(.ep-wyp-success)>.ekwp-mass-summary>div{display:grid!important;grid-template-columns:minmax(140px,30%) minmax(0,1fr)!important;gap:14px!important;align-items:start!important;}
#epWypWizard:has(.ep-wyp-success)>.ekwp-mass-summary dd{min-width:0!important;overflow-wrap:anywhere!important;}
@media(max-width:600px){#epWypWizard:has(.ep-wyp-success){padding:16px!important;}#epWypWizard:has(.ep-wyp-success)>.ekwp-mass-summary>div{grid-template-columns:1fr!important;gap:4px!important;}}

/* EP Wypominki: spójny ekran potwierdzenia, bez stopki formularza */
#epWypWizard.ep-wyp-completed{padding:26px!important;overflow:hidden!important;border-radius:14px!important;background:#fff!important;}
#epWypWizard.ep-wyp-completed .ep-wyp-success{display:flex!important;flex-direction:row!important;align-items:center!important;gap:18px!important;margin:0 0 26px!important;padding:24px 26px!important;border:1px solid #b6dfc4!important;border-radius:12px!important;background:#eaf8ef!important;color:#175b35!important;}
#epWypWizard.ep-wyp-completed .ep-wyp-success-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:#23824b;color:#fff;font-size:25px;font-weight:800;}
#epWypWizard.ep-wyp-completed .ep-wyp-success>div{display:flex;flex-direction:column;gap:4px;min-width:0;}
#epWypWizard.ep-wyp-completed .ep-wyp-success strong{display:block;font-size:20px!important;line-height:1.25!important;}
#epWypWizard.ep-wyp-completed .ep-wyp-success span:not(.ep-wyp-success-icon){display:block;font-size:14px;line-height:1.5;}
#epWypWizard.ep-wyp-completed .ep-wyp-result-details{padding:0 2px 2px;}
#epWypWizard.ep-wyp-completed .ep-wyp-result-details h2{margin:0 0 5px!important;color:#173b48;font-size:21px;line-height:1.3;}
#epWypWizard.ep-wyp-completed .ep-wyp-result-details>.ekwp-form-hint{margin:0 0 18px!important;color:#637b87;font-size:13px;}
#epWypWizard.ep-wyp-completed .ekwp-mass-summary{width:100%!important;margin:0!important;border:1px solid #dce5e8!important;border-radius:10px!important;background:#fff!important;}
#epWypWizard.ep-wyp-completed .ekwp-mass-summary>div{display:grid!important;grid-template-columns:minmax(145px,28%) minmax(0,1fr)!important;gap:20px!important;align-items:center!important;padding:13px 17px!important;border-bottom:1px solid #e7edf0!important;}
#epWypWizard.ep-wyp-completed .ekwp-mass-summary dt{font-size:14px!important;color:#6a7f89!important;}
#epWypWizard.ep-wyp-completed .ekwp-mass-summary dd{font-size:14px!important;color:#173b48!important;font-weight:650!important;overflow-wrap:anywhere!important;}
@media(max-width:650px){#epWypWizard.ep-wyp-completed{padding:16px!important}#epWypWizard.ep-wyp-completed .ep-wyp-success{padding:18px!important;gap:12px!important}#epWypWizard.ep-wyp-completed .ep-wyp-success-icon{flex-basis:36px;width:36px;height:36px;font-size:20px}#epWypWizard.ep-wyp-completed .ekwp-mass-summary>div{grid-template-columns:1fr!important;gap:3px!important;padding:12px 14px!important}}

/* Wypominki: drugi przycisk dodawania osoby pod listą */
#epWypWizard .ep-wyp-add-bottom{display:flex;justify-content:flex-end;margin:12px 0 4px}
#epWypWizard .ep-wyp-add-bottom .ep-wyp-add{width:auto!important}
@media(max-width:640px){#epWypWizard .ep-wyp-add-bottom .ep-wyp-add{width:100%!important}}

/* Ukryj usuwanie pustych wpisów oraz ostatniej osoby, także przy stylach !important. */
#epWypWizard .ep-wyp-remove[hidden]{display:none!important;}

/* Publiczna lista wypominek */
.ep-wyp-directory-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.ep-wyp-directory-top h2{margin:0}.ep-wyp-directory-action{display:inline-block;background:#087b65;color:#fff!important;text-decoration:none;border-radius:10px;padding:12px 18px;font-weight:700}.ep-wyp-search-label{display:block;font-weight:700;margin-bottom:8px}.ep-wyp-search{box-sizing:border-box;width:100%;padding:13px 15px;border:1px solid #b9cbd0;border-radius:10px;font:inherit}.ep-wyp-count{color:#52646c;font-size:.9rem;margin:12px 0}.ep-wyp-directory-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 16px}.ep-wyp-directory-list li{padding:12px 14px;border:1px solid #dce6e9;border-radius:9px}.ep-wyp-directory-list li[hidden],.ep-wyp-no-results[hidden]{display:none!important}.ep-wyp-no-results{padding:18px 0}

/* Alfabetyczna lista wypominek – układ jak na stronie parafialnej */
.ep-wyp-directory{max-width:1100px}.ep-wyp-searchbar{display:grid;grid-template-columns:minmax(190px,32%) 1fr;gap:20px;align-items:center;border:1px solid #d0dfe4;border-radius:9px;padding:16px 18px;margin-bottom:18px}.ep-wyp-searchbar label{display:flex;align-items:center;gap:20px}.ep-wyp-searchbar label strong{color:#083746;font-size:15px}.ep-wyp-searchbar label small{color:#67818b;font-size:12px}.ep-wyp-search-controls{display:flex;min-width:0}.ep-wyp-search-controls .ep-wyp-search{border:2px solid #0863d7;border-radius:9px 0 0 9px;min-width:0;flex:1}.ep-wyp-search-controls button{background:#063b4c;color:#fff;border:0;border-radius:0 8px 8px 0;padding:0 22px;font-weight:700;cursor:pointer}.ep-wyp-groups{display:grid;gap:18px}.ep-wyp-group{display:grid;grid-template-columns:64px minmax(0,1fr);border:1px solid #d0dfe4;border-radius:10px;overflow:hidden}.ep-wyp-letter{background:#edf4f6;color:#003b4e;display:flex;align-items:flex-start;justify-content:center;padding:20px 4px;font-size:28px;font-weight:800}.ep-wyp-directory .ep-wyp-people{list-style:none;padding:8px 18px;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:12px}.ep-wyp-directory .ep-wyp-people li{display:flex;align-items:flex-start;gap:10px;padding:13px 10px;border-bottom:1px solid #e3ecef;overflow-wrap:anywhere;color:#073b50}.ep-wyp-directory .ep-wyp-people li span{color:#07835c;font-size:21px;line-height:1;flex:none}.ep-wyp-directory .ep-wyp-people li strong{font-size:14px;line-height:1.4}.ep-wyp-group[hidden],.ep-wyp-directory .ep-wyp-people li[hidden]{display:none!important}@media(max-width:800px){.ep-wyp-directory .ep-wyp-people{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-wyp-searchbar{grid-template-columns:1fr;gap:10px}}@media(max-width:540px){.ep-wyp-directory .ep-wyp-people{grid-template-columns:1fr;padding:4px 10px}.ep-wyp-group{grid-template-columns:48px minmax(0,1fr)}.ep-wyp-letter{font-size:23px}.ep-wyp-searchbar label{justify-content:space-between}.ep-wyp-search-controls button{padding:0 12px}}

/* Wyszukiwarka listy – niezależna od formularza zgłoszeń */
.ep-wyp-directory .ep-wyp-searchbar{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:14px 16px;background:#f8fbfc;border:1px solid #d8e4e8;border-radius:12px}
.ep-wyp-directory .ep-wyp-searchbar>label{display:block;flex:0 0 auto;font-size:14px;font-weight:700;color:#123d4a}
.ep-wyp-directory .ep-wyp-search-controls{display:flex;align-items:center;position:relative;flex:1 1 270px;min-width:0;background:#fff;border:1px solid #b7cdd5;border-radius:10px;transition:border-color .2s,box-shadow .2s}
.ep-wyp-directory .ep-wyp-search-controls:focus-within{border-color:#087b65;box-shadow:0 0 0 3px rgba(8,123,101,.12)}
.ep-wyp-directory .ep-wyp-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:29px;line-height:1;color:#537784;pointer-events:none}
.ep-wyp-directory .ep-wyp-search-controls input.ep-wyp-search{flex:1;min-width:0;width:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:13px 44px 13px 47px!important;border-radius:10px!important;font-size:15px}
.ep-wyp-directory .ep-wyp-search-controls button#epWypSearchClear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#e9f0f2;color:#385d69;font-size:23px;font-weight:400;line-height:1;cursor:pointer}
.ep-wyp-directory .ep-wyp-search-controls button#epWypSearchClear[hidden]{display:none!important}
.ep-wyp-return-list{display:inline-flex;margin-top:18px;text-decoration:none}
@media(max-width:540px){.ep-wyp-directory .ep-wyp-searchbar{align-items:stretch;gap:9px}.ep-wyp-directory .ep-wyp-searchbar>label{width:100%}.ep-wyp-directory .ep-wyp-search-controls{flex-basis:100%}}

/* Search clear: isolated from generic EP button positioning and sizing. */
.ep-wyp-directory .ep-wyp-search-controls{position:relative!important;align-items:center!important;overflow:hidden!important;min-height:48px}
.ep-wyp-directory .ep-wyp-search-controls input.ep-wyp-search{height:46px!important;min-height:46px!important;line-height:22px!important;box-sizing:border-box!important;padding-right:48px!important}
.ep-wyp-directory .ep-wyp-search-controls button#epWypSearchClear{position:absolute!important;inset:auto 12px auto auto!important;top:50%!important;transform:translateY(-50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important;margin:0!important;padding:0!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#64808a!important;font:400 19px/1 Arial,sans-serif!important;box-shadow:none!important;cursor:pointer;z-index:2}
.ep-wyp-directory .ep-wyp-search-controls button#epWypSearchClear:hover{background:#edf3f5!important;color:#0b4b5d!important}
.ep-wyp-directory .ep-wyp-search-controls button#epWypSearchClear[hidden]{display:none!important}
/* Wypominki — przełączane widoki */
.ep-wyp-viewbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}.ep-wyp-viewbar>span{font-size:12px;color:#63757e}.ep-wyp-switch{display:flex;gap:3px;padding:3px;border-radius:9px;background:#eef2f4}.ep-wyp-switch button{border:0;border-radius:7px;padding:8px 10px;background:transparent;color:#42545e}.ep-wyp-switch button.is-active{background:white;color:#073d4d;box-shadow:0 1px 4px #0002;font-weight:700}.ep-wyp-submission{padding:15px 2px;border-bottom:1px solid #dce5e8;line-height:1.85}.ep-wyp-submission:last-child{border-bottom:0}.ep-wyp-submissions[hidden],.ep-wyp-groups[hidden]{display:none!important}

/* Wypominki: czytelny nagłówek i przełącznik */
.ep-wyp-directory-top{align-items:flex-start!important;gap:16px!important}.ep-wyp-heading{display:flex;flex-direction:column;gap:10px;min-width:0}.ep-wyp-heading h2{margin:0!important}.ep-wyp-order-label{font-size:15px;font-weight:600;color:#244b58;line-height:1.4}.ep-wyp-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ep-wyp-switch{margin:0!important}.ep-wyp-switch button{font:inherit;font-size:14px;font-weight:600;cursor:pointer}.ep-wyp-submission{line-height:1.85}.ep-wyp-submission span{display:inline}.ep-wyp-people strong{font-weight:600}@media(max-width:650px){.ep-wyp-directory-top{flex-direction:column}.ep-wyp-actions{width:100%;justify-content:space-between}}
