/* ==========================================================================
   UWAGA DLA EDYTUJĄCYCH:
   Panel zapisu obcina plik na pierwszym znaku "ampersand" i zamienia znak
   "plus" na spację. Nie używaj tych dwóch znaków nigdzie w tym pliku,
   także w komentarzach i adresach URL.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700');


/* ==========================================================================
   0. PALETA WYDARZENIA I ROLE KOLORÓW (zjazdptd2027.pl)
   pomarańczowy – marka i główna akcja (wypełniony przycisk, fokus)
   niebieski    – kolor obszaru STRESZCZENIA (wysyłka, lista, podgląd, okno autora)
   fioletowy    – kolor obszaru PREZENTACJE (wgrywanie prezentacji)
   czerwony     – kolor obszaru PŁATNOŚCI (kafelek i strona rozliczenia),
                  poza tym tylko błędy, usuwanie i zamykanie okna
   biały        – tekst i przyciski drugorzędne (obrys)
   Kolor obszaru (--accent) barwi pasek u góry karty, ikony, linię pod
   nagłówkiem tabeli i przyciski pobierania / podglądu.
   ========================================================================== */

:root {
  --zptd-orange: #FFA520;
  --zptd-blue: #2458C8;
  --zptd-purple: #9E68C5;
  --zptd-red: #FE4057;
  --zptd-white: #FFFFFF;
}


/* ==========================================================================
   1. GLOBALNE
   ========================================================================== */

body {
  font-family: 'Outfit', sans-serif !important;
}

body .card-header {
  display: none;
}

.stepChange:hover {
  cursor: pointer !important;
}

.errors {
  color: var(--zptd-red) !important;
}

/* Ukrycie stopki z logo systemcoffee.pl */
section:has(a[href*="systemcoffee.pl"] img[src*="coffee.png"]) {
  display: none !important;
}


/* ==========================================================================
   2. FORMULARZ REJESTRACJI
   ========================================================================== */

#MainRegistrationWindow label {
  color: #ffffff;
  font-size: 16px !important;
}

#MainRegistrationWindow div.card-body form input.form-control,
#MainRegistrationWindow div.card-body form textarea,
#MainRegistrationWindow div.card-body form select {
  border: 1px solid #ffffff !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

.form-horizontal hr {
  display: none !important;
}

.registrationStepName {
  margin-top: 50px;
  margin-bottom: 25px;
  font-size: 24px !important;
}

#PayOnlinePanel .card-body .text-center h3,
#MainRegistrationWindow .card-body .text-center h3 {
  color: #ffffff !important;
  margin-top: 50px;
  margin-bottom: 25px;
}

.card-body > h3 {
  color: #ffffff;
}

.form-group strong {
  color: #ffffff;
  font-size: 14px;
}

.form-group div.col-md-8 {
  color: #ffffff;
  font-size: 16px;
}

.form-group > label.form-label {
  color: #ffffff;
  font-size: 16px;
}

/* Pasek etapów rejestracji */
div.RegistrationStages label.active {
  color: var(--zptd-blue) !important;
}

/* Krok 8 – dane nabywcy / faktura */
#registrationStep8_View #buyerData div.invoiceData div.col-sm-4 {
  max-width: 650% !important;
  flex: 0 0 65%;
}

/* Krok 15 */
#registrationStep15_View .form-group {
  margin-left: 20px !important;
}

#SubmitAbstractPanel {
  color: #ffffff !important;
}


/* ==========================================================================
   3. TABELE
   ========================================================================== */

table.table thead th {
  background-color: var(--zptd-blue);
  color: #ffffff !important;
  font-size: 16px;
}

table.table tbody td {
  color: #ffffff !important;
  font-size: 16px;
}


/* ==========================================================================
   4. PODSUMOWANIE
   ========================================================================== */

.SummaryHeader {
  border-top: 1px solid #ffffff;
  padding-top: 15px;
  margin-bottom: 15px;
}

.SummaryHeader > h4 {
  font-size: 18px !important;
}

.SummaryHeader:has(u) {
  display: flex !important;
  gap: 20%;
}

.row .col-md-6 h4 {
  font-size: 20px;
}

#PayOnlinePanel .card-body .row .col-md-6 hr:nth-of-type(1) {
  display: none !important;
}


/* ==========================================================================
   5. PRZYCISKI
   ========================================================================== */

#ControlButtons {
  display: flex;
  justify-content: center;
  gap: 20px !important;
  margin-top: 50px;
  margin-bottom: 50px;
}

#PayOnlineBtn {
  margin-top: 25px;
  margin-bottom: 50px;
}

.card-footer #PayOnlineBtn {
  margin-top: 0px;
  margin-bottom: 0px;
}

.card-footer #BillingSummaryBtn {
  margin-left: 20px;
}

.card-footer #SubmitAbstractBtn {
  margin-left: 20px;
}


/* ==========================================================================
   6. OKNA MODALNE
   ========================================================================== */

.modal-content,
.modal .modal-header,
.modal .modal-footer {
  background-color: #000000 !important;
  background: #000000 !important;
}

.modal-content {
  border: 1px solid #fff !important;
}

.modal-content button.close {
  color: #fff !important;
}


/* ==========================================================================
   7. STRONA LOGOWANIA (body:has(#loginForm))
   Uwaga: ta sekcja musi pozostać PO sekcji 2 – reguła dla inputów
   ma tę samą specyficzność co inputy formularza rejestracji.
   ========================================================================== */

/* --- Układ strony --- */
body:has(#loginForm) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

body:has(#loginForm) > section.col-md-10.col-12.mx-auto {
  flex: 0 0 50%;
  max-width: 50%;
  margin: 0 !important;
  padding: 0 15px;
}

body:has(#loginForm) > div.col-md-10.mx-auto {
  flex: 0 0 50%;
  max-width: 50%;
  margin: 0 !important;
  padding: 0 15px;
}

body:has(#loginForm) > section.col-md-10.col-12.mx-auto img {
  max-width: 100%;
  height: auto;
}

body:has(#loginForm) > section:last-of-type {
  width: 100%;
  flex: 0 0 100%;
}

/* --- Zawartość karty logowania --- */
body:has(#loginForm) .card-body > hr:first-child {
  display: none;
}

body:has(#loginForm) .card-body label {
  color: var(--zptd-orange);
  padding-left: 5px !important;
}

body:has(#loginForm) .card-body > div.text-center > h4,
body:has(#loginForm) .card-body > h4 {
  color: #ffffff !important;
  text-align: left !important;
  font-size: 32px !important;
}

body:has(#loginForm) .card-body > h4 {
  margin-top: 50px;
}

body:has(#loginForm) .card-body > p.text-center {
  color: #ffffff !important;
  text-align: left !important;
  margin-bottom: 50px !important;
}

body:has(#loginForm) .card-body > div.text-center:nth-of-type(2) {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

body:has(#loginForm) .card-body > div:last-child {
  color: var(--zptd-orange) !important;
  max-width: 80% !important;
  float: left;
}

body:has(#loginForm) .card-body > div:last-child input {
  color: #ffffff !important;
  caret-color: #ffffff;
  border: 1px solid var(--zptd-orange) !important;
  background-color: #000000 !important;
}

body:has(#loginForm) .card-body > div:last-child input:focus {
  border-color: #ffffff !important;
  box-shadow: none !important;
}

/* autouzupełnianie przeglądarki (np. zapisany e-mail i hasło) – też biały tekst na czarnym */
body:has(#loginForm) .card-body > div:last-child input:-webkit-autofill,
body:has(#loginForm) .card-body > div:last-child input:-webkit-autofill:hover,
body:has(#loginForm) .card-body > div:last-child input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 1000px #000000 inset !important;
  caret-color: #ffffff;
}


/* ==========================================================================
   8. BANERY / GRAFIKI NAGŁÓWKA
   ========================================================================== */

/* Domyślnie / mobile (do 767.98px):
   zawsze widoczna kwadratowa grafika, podłużna ukryta */
section img[src*="wallpaper1200x1200"] {
  display: inline-block !important;
}

section img[src*="baner_ZPTD2026"] {
  display: none !important;
}

/* Desktop (od 768px) */
@media (min-width: 768px) {
  /* Kolejne kroki (brak #loginForm): pokaż podłużny baner */
  section img[src*="wallpaper1200x1200"] {
    display: none !important;
  }

  section img[src*="baner_ZPTD2026"] {
    display: inline-block !important;
  }

  /* Wyjątek – strona logowania (#loginForm): wymuś kwadratową grafikę */
  body:has(#loginForm) section img[src*="wallpaper1200x1200"] {
    display: inline-block !important;
  }

  body:has(#loginForm) section img[src*="baner_ZPTD2026"] {
    display: none !important;
  }
}


/* ==========================================================================
   9. RWD – MOBILE (do 768px)
   ========================================================================== */

@media (max-width: 768px) {
  body:not(.mini-navbar) {
    background-color: #000000;
  }

  body:has(#loginForm) {
    flex-direction: column;
  }

  body:has(#loginForm) > section.col-md-10.col-12.mx-auto,
  body:has(#loginForm) > div.col-md-10.mx-auto {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body:has(#loginForm) .card-body > div:last-child {
    color: var(--zptd-orange) !important;
    max-width: 100% !important;
    float: left;
  }
}


/* ==========================================================================
   10–12. WSPÓLNY WYGLĄD KART (panel uczestnika, prezentacje, podgląd)
   Czarne tło, karta #0b0b0b z cienką ramką i pomarańczowym paskiem u góry,
   ikona w pomarańczowym kwadracie, przyciski z pomarańczowym obrysem.
   ========================================================================== */

body:has(#EditParticipantDataBtn),
body:has(#AbstractPresentation),
body:has(#ViewAbstractPanel) {
  background-color: #000000 !important;
}

body:has(#EditParticipantDataBtn) > section:first-of-type img,
body:has(#AbstractPresentation) > section:first-of-type img,
body:has(#ViewAbstractPanel) > section:first-of-type img {
  border-radius: 0 !important;
}

body:has(#EditParticipantDataBtn) > section:first-of-type .text-center > p br,
body:has(#AbstractPresentation) > section:first-of-type .text-center > p br,
body:has(#ViewAbstractPanel) > section:first-of-type .text-center > p br {
  display: none;
}

/* przyciski we wszystkich trzech widokach */
#MainRegistrationWindow:has(#EditParticipantDataBtn) .btn,
#AbstractPresentation .btn,
#ViewAbstractPanel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 6px 12px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) .btn:hover,
#AbstractPresentation .btn:hover,
#ViewAbstractPanel .btn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) .btn:focus-visible,
#AbstractPresentation .btn:focus-visible,
#ViewAbstractPanel .btn:focus-visible {
  outline: 2px solid var(--zptd-orange) !important;
  outline-offset: 2px;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) .btn .fa,
#MainRegistrationWindow:has(#EditParticipantDataBtn) .btn svg,
#ViewAbstractPanel .btn i,
#ViewAbstractPanel .btn svg {
  margin-right: 8px !important;
}


/* ==========================================================================
   10. PANEL ZALOGOWANEGO UCZESTNIKA (#EditParticipantDataBtn)
   ========================================================================== */

#MainRegistrationWindow:has(#EditParticipantDataBtn) {
  background: #000000 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* pasek „Zalogowany uczestnik” z przyciskiem Wyloguj */
#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-header {
  display: block;
  background: #000000 !important;
  color: #ffffff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  padding: 16px 0;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-header .row {
  align-items: center;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-header b {
  font-weight: 400;
  font-size: 16px;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) #LogoutBtn {
  margin-right: 0 !important;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body {
  padding: 24px 0;
  background: #000000;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row {
  row-gap: 24px;
}

/* karty sekcji – równa wysokość i kolor obszaru rozpoznawany po przycisku w karcie
   (a nie po kolejności, więc nowe lub przestawione kafelki nie zmienią kolorów):
   Dane uczestnika – pomarańczowy, Płatności – czerwony,
   Streszczenia – niebieski, Prezentacje – fioletowy */
#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6 {
  display: flex;
  --accent: var(--zptd-orange);
  --accent-ink: #000000;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6:has(#BillingSummaryBtn) {
  --accent: var(--zptd-red);
  --accent-ink: #ffffff;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6:has(#SubmitAbstractBtn),
#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6:has(#AbstractListBtn) {
  --accent: var(--zptd-blue);
  --accent-ink: #ffffff;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6:has(#AbstractPresentationBtn) {
  --accent: var(--zptd-purple);
  --accent-ink: #ffffff;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6 > .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, .22);
  border-top: 4px solid var(--accent, var(--zptd-orange));
  border-radius: 0;
  box-shadow: none !important;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6 > .card > .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #ffffff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6 > .card > .card-header .fa,
#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6 > .card > .card-header svg {
  margin: 0 !important;
  width: 34px;
  height: 34px;
  padding: 9px;
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, var(--zptd-orange));
  color: var(--accent-ink, #000000);
  font-size: 15px;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6 > .card > .card-body {
  flex: 1;
  padding: 4px 20px !important;
  background: transparent;
}

/* wiersze danych */
#MainRegistrationWindow:has(#EditParticipantDataBtn) .card .form-group.row {
  margin: 0;
  padding: 14px 0;
  align-items: center;
  flex-wrap: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) .card .form-group.row:last-child {
  border-bottom: 0;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) .card .form-group.row > label {
  margin: 0;
  padding: 0;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) .card .form-group.row > label:first-child {
  color: #d6d6d6;
  padding-right: 16px;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) .card .form-group.row > label:last-child {
  color: #ffffff;
  font-weight: 700;
  word-break: break-word;
}

/* liczniki (streszczenia, prezentacje) – liczba wyrównana do prawej */
#MainRegistrationWindow:has(#EditParticipantDataBtn) .card .form-group.row:has(> label.col-md-8:first-child) > label.col-md-8 {
  flex: 1 1 auto;
  max-width: none;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) .card .form-group.row:has(> label.col-md-8:first-child) > label.col-md-4 {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin-left: auto;
  text-align: right;
  font-size: 18px !important;
}

/* karta prezentacji: ukrycie pustego wiersza-wypełniacza */
#MainRegistrationWindow .card:has(#AbstractPresentationBtn) .card-body .form-group.row:nth-child(3) {
  display: none;
}

#MainRegistrationWindow .card:has(#AbstractPresentationBtn) .card-body .form-group.row:nth-child(2) {
  border-bottom: 0;
}

/* stopka karty */
#MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row > .col-md-6 > .card > .card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  padding: 16px 20px;
}

/* mobile */
@media (max-width: 767.98px) {
  #MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-header .col-md-3:first-child {
    display: none;
  }

  #MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-header .col-md-3.text-right {
    text-align: center !important;
    margin-top: 12px;
  }

  #MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body {
    padding: 16px 0;
  }

  #MainRegistrationWindow:has(#EditParticipantDataBtn) > .card-body > .row {
    row-gap: 16px;
  }

  #MainRegistrationWindow:has(#EditParticipantDataBtn) .card .form-group.row:has(> label.col-md-4:first-child) {
    flex-wrap: wrap;
  }

  #MainRegistrationWindow:has(#EditParticipantDataBtn) .card .form-group.row > label.col-md-4:first-child {
    flex: 0 0 100%;
    max-width: 100%;
    font-size: 14px !important;
    margin-bottom: 2px;
  }

  #MainRegistrationWindow:has(#EditParticipantDataBtn) .card-footer .btn {
    flex: 1 1 100%;
    padding: 10px 14px;
  }
}


/* ==========================================================================
   11–12. KARTA STRESZCZEŃ: wgrywanie prezentacji (#AbstractPresentation)
          i podgląd streszczenia (#ViewAbstractPanel)
   ========================================================================== */

@media (min-width: 768px) {
  body:has(#AbstractPresentation) > section.col-md-12 {
    max-width: 83.333333%;
  }
}

#AbstractPresentation,
#ViewAbstractPanel {
  background: #0b0b0b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-top: 4px solid var(--accent, var(--zptd-orange)) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 40px;
}

/* nagłówek karty: domek w pomarańczowym kwadracie i tytuł */
#AbstractPresentation > .card-header,
#ViewAbstractPanel > .card-header {
  display: block !important;
  background: transparent !important;
  color: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 0 !important;
  padding: 16px 20px !important;
}

#AbstractPresentation > .card-header .row,
#ViewAbstractPanel > .card-header .row {
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0;
}

#AbstractPresentation > .card-header .row > div,
#ViewAbstractPanel > .card-header .row > div {
  padding: 0;
}

#AbstractPresentation > .card-header .row > div:first-child,
#ViewAbstractPanel > .card-header .row > div:first-child {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

#AbstractPresentation > .card-header .row > div:nth-child(2),
#ViewAbstractPanel > .card-header .row > div:nth-child(2) {
  flex: 1 1 0;
  max-width: none;
  text-align: left;
}

#AbstractPresentation > .card-header .row > div:last-child,
#ViewAbstractPanel > .card-header .row > div:last-child {
  display: none;
}

#AbstractPresentation > .card-header b,
#ViewAbstractPanel > .card-header b {
  display: block;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

/* treść karty */
#AbstractPresentation > .card-body,
#ViewAbstractPanel > .card-body {
  background: transparent !important;
  padding: 4px 20px 16px !important;
}

#AbstractPresentation > .card-body > hr,
#ViewAbstractPanel > .card-body > hr {
  display: none !important;
}


/* ==========================================================================
   11. Lista prezentacji
   ========================================================================== */

#AbstractPresentation > .card-body > .row {
  margin: 0 !important;
  align-items: center;
  flex-wrap: nowrap;
}

#AbstractPresentation > .card-body > .row > div {
  padding: 0 10px;
}

#AbstractPresentation > .card-body > .row > div:first-child {
  padding-left: 0;
}

#AbstractPresentation > .card-body > .row > div:last-child {
  padding-right: 0;
}

@media (min-width: 768px) {
  #AbstractPresentation > .card-body > .row > div:nth-child(1) { flex: 0 0 130px; max-width: 130px; text-align: center; }
  #AbstractPresentation > .card-body > .row > div:nth-child(2) { flex: 1 1 0; max-width: none; min-width: 0; }
  #AbstractPresentation > .card-body > .row > div:nth-child(3) { flex: 0 0 22%; max-width: 22%; }
  #AbstractPresentation > .card-body > .row > div:nth-child(4) { flex: 0 0 20%; max-width: 20%; }
  #AbstractPresentation > .card-body > .row > div:nth-child(5) { flex: 0 0 100px; max-width: 100px; }
}

/* nagłówki kolumn */
#AbstractPresentation > .card-body > .row:first-child {
  padding: 14px 0;
  border-bottom: 2px solid var(--accent);
}

#AbstractPresentation > .card-body > .row:first-child strong {
  color: #d6d6d6 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.3;
}

/* wiersze */
#AbstractPresentation > .card-body > .row.mb-3 {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #d6d6d6 !important;
  font-size: 15px;
}

#AbstractPresentation > .card-body > .row.mb-3:last-of-type {
  border-bottom: 0;
}

#AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(1) .fa,
#AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(1) svg {
  color: var(--accent) !important;
  font-size: 16px;
  margin-bottom: 4px;
}

#AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(1) strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700;
}

#AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(2) strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

#AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(2) small {
  display: inline-block;
  margin-top: 3px;
  color: #d6d6d6 !important;
  font-size: 14px;
}

#AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(4) {
  color: #ffffff !important;
  word-break: break-word;
}

#AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(4) small {
  color: #d6d6d6 !important;
  font-size: 13px;
}

/* operacje */
#AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(5) {
  display: flex;
  gap: 8px;
}

#AbstractPresentation .btn.DownloadBtn,
#AbstractPresentation .btn.RemoveBtn {
  width: 34px;
  height: 34px;
  padding: 0 !important;
}

#AbstractPresentation .btn.DownloadBtn i,
#AbstractPresentation .btn.DownloadBtn svg,
#AbstractPresentation .btn.RemoveBtn i,
#AbstractPresentation .btn.RemoveBtn svg {
  margin: 0 !important;
}

#AbstractPresentation .btn.RemoveBtn:hover {
  background: var(--zptd-red) !important;
  border-color: var(--zptd-red) !important;
  color: #000000 !important;
}


/* ==========================================================================
   12. Podgląd streszczenia
   ========================================================================== */

#ViewAbstractPanel > .card-body > .row.form-group {
  margin: 0 !important;
  padding: 14px 0;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

#ViewAbstractPanel > .card-body > .row.form-group > .form-label {
  margin: 0;
  padding: 0 16px 0 0;
  text-align: left !important;
}

#ViewAbstractPanel > .card-body > .row.form-group > .form-label strong {
  color: #d6d6d6 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}

#ViewAbstractPanel > .card-body > .row.form-group > .col-md-8 {
  padding: 0;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

@media (min-width: 768px) {
  #ViewAbstractPanel > .card-body > .row.form-group {
    flex-wrap: nowrap;
  }

  #ViewAbstractPanel > .card-body > .row.form-group > .form-label {
    flex: 0 0 240px;
    max-width: 240px;
  }

  #ViewAbstractPanel > .card-body > .row.form-group > .col-md-8 {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }
}

/* autorzy */
#ViewAbstractPanel #authorsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ViewAbstractPanel #authorsList .authorRow {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 0;
  border: 0;
}

#ViewAbstractPanel #authorsList .authorRow > div {
  padding: 0;
  max-width: none;
}

/* numer autora w małym pomarańczowym kwadracie (kropka ukryta) */
#ViewAbstractPanel #authorsList .authorRow > .col-md-1 {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  font-size: 0 !important;
}

#ViewAbstractPanel #authorsList .authorOrderNumber {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

#ViewAbstractPanel #authorsList .authorRow > .col-md-9 {
  flex: 1 1 0;
  min-width: 0;
}

#ViewAbstractPanel #authorsList .authorRow strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700;
}

#ViewAbstractPanel #authorsList .authorPresenting {
  margin-left: 6px;
  color: var(--accent);
  font-weight: 400;
}

#ViewAbstractPanel #authorsList .affiliation {
  margin-top: 2px;
  color: #d6d6d6 !important;
  font-size: 14px;
  font-weight: 400;
}

#ViewAbstractPanel #authorsList .affiliation sup {
  color: var(--accent);
  margin-right: 2px;
}

/* ostatni wiersz = stopka karty z przyciskiem Powrót
   (margin-top -1px nakłada linię na linię poprzedniego wiersza) */
#ViewAbstractPanel > .card-body > .row.form-group:last-child {
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  margin: -1px -20px -16px !important;
  padding: 16px 20px;
  justify-content: center;
}

#ViewAbstractPanel > .card-body > .row.form-group:last-child > .form-label {
  display: none;
}

#ViewAbstractPanel > .card-body > .row.form-group:last-child > .col-md-8 {
  flex: 0 0 auto;
  max-width: none;
  width: auto;
}


/* ==========================================================================
   11–12. Mobile
   ========================================================================== */

@media (max-width: 767.98px) {
  #AbstractPresentation > .card-body > .row:first-child {
    display: none !important;
  }

  #AbstractPresentation > .card-body > .row.mb-3 {
    flex-wrap: wrap;
  }

  #AbstractPresentation > .card-body > .row.mb-3 > div {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 4px 0;
  }

  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(1) {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(1) .text-center {
    text-align: left !important;
  }

  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(1) .fa,
  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(1) svg {
    margin-bottom: 0;
  }

  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(3)::before,
  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(4)::before {
    display: block;
    color: #d6d6d6;
    font-size: 13px;
  }

  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(3)::before {
    content: "Przypisanie w programie naukowym";
  }

  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(4)::before {
    content: "Plik prezentacji";
  }

  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(3) {
    color: #ffffff !important;
  }

  #AbstractPresentation > .card-body > .row.mb-3 > div:nth-child(5) {
    padding-top: 10px;
  }

  #AbstractPresentation .btn.DownloadBtn,
  #AbstractPresentation .btn.RemoveBtn {
    width: 42px;
    height: 42px;
  }

  #ViewAbstractPanel > .card-body > .row.form-group > .form-label {
    padding: 0 0 4px;
  }

  #ViewAbstractPanel > .card-body > .row.form-group > .form-label strong {
    font-size: 14px !important;
  }

  #ViewAbstractPanel .btn {
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #MainRegistrationWindow:has(#EditParticipantDataBtn) *,
  #AbstractPresentation *,
  #ViewAbstractPanel * {
    transition: none !important;
  }
}


/* ==========================================================================
   13. WYŚLIJ STRESZCZENIE (#SubmitAbstractPanel)
   Ta sama karta co w sekcjach 10–12 oraz ciemne pola formularza.
   Uwaga: bez znaków ampersand i plus (patrz nagłówek pliku).
   ========================================================================== */

body:has(#SubmitAbstractPanel) {
  background-color: #000000 !important;
}

body:has(#SubmitAbstractPanel) > section:first-of-type img {
  border-radius: 0 !important;
}

body:has(#SubmitAbstractPanel) > section:first-of-type .text-center > p br {
  display: none;
}

/* --- Karta --- */
#SubmitAbstractPanel {
  background: #0b0b0b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-top: 4px solid var(--accent, var(--zptd-orange)) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 40px;
}

#SubmitAbstractPanel > .card-header {
  display: block !important;
  background: transparent !important;
  color: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 0 !important;
  padding: 16px 20px !important;
}

#SubmitAbstractPanel > .card-header .row {
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0;
}

#SubmitAbstractPanel > .card-header .row > div {
  padding: 0;
}

#SubmitAbstractPanel > .card-header .row > div:first-child {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

#SubmitAbstractPanel > .card-header .row > div:nth-child(2) {
  flex: 1 1 0;
  max-width: none;
  text-align: left;
}

#SubmitAbstractPanel > .card-header .row > div:last-child {
  display: none;
}

#SubmitAbstractPanel > .card-header b {
  display: block;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

#SubmitAbstractPanel > .card-body {
  background: transparent !important;
  padding: 4px 20px 16px !important;
}

#SubmitAbstractPanel #SubmitAbstract > .panel-body {
  padding: 0;
  background: transparent;
  border: 0;
}

/* --- Wiersze formularza: etykieta | pole --- */
#SubmitAbstractPanel #submitAbstractForm > .row.form-group {
  margin: 0 !important;
  padding: 18px 0;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

#SubmitAbstractPanel #submitAbstractForm > .row.form-group > label.form-label {
  margin: 0;
  padding: 10px 16px 0 0;
  text-align: left !important;
  color: #d6d6d6 !important;
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.35;
}

#SubmitAbstractPanel #submitAbstractForm > .row.form-group > label.form-label br {
  display: none;
}

/* podpowiedź pod etykietą, np. „(max znaków)” */
#SubmitAbstractPanel #submitAbstractForm > .row.form-group > label.form-label small {
  display: block;
  margin-top: 4px;
}

#SubmitAbstractPanel #submitAbstractForm > .row.form-group > label.form-label small strong {
  color: #9e9e9e !important;
  font-size: 13px !important;
  font-weight: 400;
}

#SubmitAbstractPanel #submitAbstractForm > .row.form-group > .col-md-8 {
  padding: 0;
  color: #ffffff !important;
  font-size: 16px !important;
}

@media (min-width: 768px) {
  #SubmitAbstractPanel #submitAbstractForm > .row.form-group {
    flex-wrap: nowrap;
  }

  #SubmitAbstractPanel #submitAbstractForm > .row.form-group > label.form-label {
    flex: 0 0 240px;
    max-width: 240px;
  }

  #SubmitAbstractPanel #submitAbstractForm > .row.form-group > .col-md-8 {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }
}

/* --- Pola formularza --- */
#SubmitAbstractPanel .form-control,
body:has(#SubmitAbstractPanel) .modal .form-control {
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  font-size: 16px;
  box-shadow: none !important;
  color-scheme: dark;
  transition: border-color .15s ease;
}

#SubmitAbstractPanel textarea.form-control,
body:has(#SubmitAbstractPanel) .modal textarea.form-control {
  min-height: 140px;
}

#SubmitAbstractPanel .form-control::placeholder,
body:has(#SubmitAbstractPanel) .modal .form-control::placeholder {
  color: #9e9e9e;
}

#SubmitAbstractPanel .form-control:hover,
body:has(#SubmitAbstractPanel) .modal .form-control:hover {
  border-color: rgba(255, 255, 255, .6) !important;
}

#SubmitAbstractPanel .form-control:focus,
body:has(#SubmitAbstractPanel) .modal .form-control:focus {
  border-color: var(--zptd-orange) !important;
  outline: none;
}

#SubmitAbstractPanel select.form-control option,
body:has(#SubmitAbstractPanel) .modal select.form-control option {
  background: #0b0b0b;
  color: #ffffff;
}

/* pole wyboru pliku */
#SubmitAbstractPanel input[type="file"] {
  max-width: 100%;
  color: #d6d6d6;
  font-size: 15px;
}

#SubmitAbstractPanel input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

#SubmitAbstractPanel input[type="file"]::file-selector-button:hover {
  background: #ffffff;
  color: #000000;
}

/* select2 (jeśli pola wyboru sesji używają select2) */
#SubmitAbstractPanel .select2-container .select2-selection,
body:has(#SubmitAbstractPanel) .modal .select2-container .select2-selection {
  min-height: 44px;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 0 !important;
  color: #ffffff !important;
}

#SubmitAbstractPanel .select2-container .select2-selection__rendered,
body:has(#SubmitAbstractPanel) .modal .select2-container .select2-selection__rendered {
  color: #ffffff !important;
  line-height: 42px !important;
}

body:has(#SubmitAbstractPanel) .select2-dropdown {
  background: #0b0b0b !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 0 !important;
  color: #ffffff !important;
}

body:has(#SubmitAbstractPanel) .select2-results__option--highlighted {
  background: var(--zptd-orange) !important;
  color: #000000 !important;
}

/* edytor treści TinyMCE – ramka jak pola */
#SubmitAbstractPanel .tox-tinymce {
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 0 !important;
}

/* radio i checkboxy */
#SubmitAbstractPanel .radio label,
#SubmitAbstractPanel .checkbox label,
#SubmitAbstractPanel .form-check-label {
  color: #ffffff !important;
  font-size: 16px !important;
}

#SubmitAbstractPanel input[type="radio"],
#SubmitAbstractPanel input[type="checkbox"] {
  accent-color: var(--zptd-orange);
}

/* --- Komunikaty walidacji --- */
#SubmitAbstractPanel label.errors,
body:has(#SubmitAbstractPanel) .modal label.errors {
  display: block;
  margin: 6px 0 0;
  color: var(--zptd-red) !important;
  font-size: 14px !important;
  font-weight: 400;
}

#SubmitAbstractPanel .form-control.errors,
body:has(#SubmitAbstractPanel) .modal .form-control.errors {
  border-color: var(--zptd-red) !important;
  color: #ffffff !important;
}

/* --- Lista autorów --- */
#SubmitAbstractPanel #authorsList {
  display: flex;
  flex-direction: column;
}

#SubmitAbstractPanel #authorsList:not(:empty) {
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
}

#SubmitAbstractPanel #authorsList .authorRow {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

#SubmitAbstractPanel #authorsList .authorRow:last-child {
  border-bottom: 0;
}

#SubmitAbstractPanel #authorsList .authorRow > div {
  padding: 0;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

/* kolumna z nazwiskiem i afiliacją */
#SubmitAbstractPanel #authorsList .authorRow > div:nth-child(2) {
  flex: 1 1 0;
  min-width: 0;
}

/* kolumna z przyciskami: w górę, w dół, edytuj, usuń */
#SubmitAbstractPanel #authorsList .authorRow > div:nth-child(3) {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

/* ikona autora prezentującego */
#SubmitAbstractPanel #authorsList .authorRow .fa-chalkboard-teacher {
  color: var(--accent);
}

/* numer autora w pomarańczowym kwadracie (kropka po numerze ukryta) */
#SubmitAbstractPanel #authorsList .authorRow > div:has(> .authorOrderNumber) {
  font-size: 0 !important;
}

#SubmitAbstractPanel #authorsList .authorOrderNumber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

#SubmitAbstractPanel #authorsList .authorRow strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700;
}

#SubmitAbstractPanel #authorsList .authorPresenting {
  margin-left: 6px;
  color: var(--accent);
  font-weight: 400;
}

#SubmitAbstractPanel #authorsList .affiliation {
  margin-top: 2px;
  color: #d6d6d6 !important;
  font-size: 14px;
}

#SubmitAbstractPanel #authorsList .affiliation sup {
  color: var(--accent);
  margin-right: 2px;
}

#SubmitAbstractPanel #authorsList .btn {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  margin: 0 !important;
}

#SubmitAbstractPanel #authorsList .btn i,
#SubmitAbstractPanel #authorsList .btn svg {
  margin: 0 !important;
}

#SubmitAbstractPanel #authorsList .btn-danger:hover {
  background: var(--zptd-red) !important;
  border-color: var(--zptd-red) !important;
}

/* --- Przyciski: pomarańczowy obrys jak w panelu --- */
#SubmitAbstractPanel .btn,
body:has(#SubmitAbstractPanel) .modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 14px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  transition: background-color .15s ease, color .15s ease;
}

#SubmitAbstractPanel .btn:hover,
body:has(#SubmitAbstractPanel) .modal .btn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

#SubmitAbstractPanel .btn:focus-visible,
body:has(#SubmitAbstractPanel) .modal .btn:focus-visible {
  outline: 2px solid var(--zptd-orange) !important;
  outline-offset: 2px;
}

#SubmitAbstractPanel .btn i,
#SubmitAbstractPanel .btn svg {
  margin-right: 8px !important;
}

/* główna akcja – Wyślij streszczenie: wypełniony pomarańczowy */
#SubmitAbstractPanel .btn.submitAbstractBtn {
  padding: 12px 28px;
  background: var(--zptd-orange) !important;
  color: #000000 !important;
  font-size: 16px;
  font-weight: 600;
}

#SubmitAbstractPanel .btn.submitAbstractBtn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
}

/* --- Modal dodawania autora: czytelne etykiety --- */
body:has(#SubmitAbstractPanel) .modal-title,
body:has(#SubmitAbstractPanel) .modal label,
body:has(#SubmitAbstractPanel) .modal .form-label {
  color: #ffffff !important;
}

body:has(#SubmitAbstractPanel) .modal-content {
  border-radius: 0 !important;
}

/* --- Stopka karty z przyciskiem wysyłki --- */
#SubmitAbstractPanel #submitAbstractForm > .row.form-group:last-child {
  margin: -1px -20px -16px !important;
  padding: 20px;
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  justify-content: center;
}

#SubmitAbstractPanel #submitAbstractForm > .row.form-group:last-child > label.form-label {
  display: none;
}

#SubmitAbstractPanel #submitAbstractForm > .row.form-group:last-child > .col-md-8 {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

/* --- Mobile --- */
@media (max-width: 767.98px) {
  #SubmitAbstractPanel #submitAbstractForm > .row.form-group {
    padding: 14px 0;
  }

  #SubmitAbstractPanel #submitAbstractForm > .row.form-group > label.form-label {
    padding: 0 0 8px;
    font-size: 14px !important;
  }

  #SubmitAbstractPanel #authorsList .authorRow {
    flex-wrap: wrap;
  }

  #SubmitAbstractPanel #authorsList .authorRow > div:nth-child(2) {
    flex: 1 1 200px;
  }

  #SubmitAbstractPanel #authorsList .authorRow > div:nth-child(3) {
    justify-content: flex-start;
    margin-left: 34px;
  }

  #SubmitAbstractPanel #AddAuthorBtn,
  #SubmitAbstractPanel .btn.submitAbstractBtn {
    width: 100%;
  }

  #SubmitAbstractPanel #submitAbstractForm > .row.form-group:last-child > .col-md-8 {
    flex: 1 1 100%;
  }

  #SubmitAbstractPanel .btn {
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #SubmitAbstractPanel * {
    transition: none !important;
  }
}


/* ==========================================================================
   13b. OKNO „DODAJ / EDYTUJ AUTORA” na stronie Wyślij streszczenie
   Okno tworzy modal.js (#modalCoffee), treść ładuje AddAuthorView (#AddAuthor).
   Działa tylko na stronie z #SubmitAbstractPanel.
   ========================================================================== */

/* przyciemnienie tła */
body:has(#SubmitAbstractPanel) .modal-backdrop.show {
  opacity: .85;
}

/* okno: szerokość ograniczona, wyśrodkowane */
body:has(#SubmitAbstractPanel) .modal .modal-dialog {
  max-width: none;
  margin: 40px auto;
  padding: 0 16px;
}

body:has(#SubmitAbstractPanel) .modal .modal-content {
  max-width: 900px;
  margin: 0 auto;
  background: #0b0b0b !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-top: 4px solid var(--accent, var(--zptd-orange)) !important;
  border-radius: 0 !important;
  box-shadow: none;
}

/* nagłówek */
body:has(#SubmitAbstractPanel) .modal .modal-header {
  align-items: center;
  padding: 18px 24px;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
}

body:has(#SubmitAbstractPanel) .modal .modal-header .form-header {
  margin: 0;
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

body:has(#SubmitAbstractPanel) .modal .modal-header .close {
  width: 36px;
  height: 36px;
  margin: 0 0 0 auto;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zptd-red);
  color: var(--zptd-red) !important;
  line-height: 1 !important;
  font-size: 16px;
  text-shadow: none;
  opacity: 1;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

body:has(#SubmitAbstractPanel) .modal .modal-header .close:hover {
  background: var(--zptd-red);
  border-color: var(--zptd-red);
  color: #000000 !important;
}

/* treść – wysokość dopasowana do zawartości (max zamiast stałych 80vh) */
body:has(#SubmitAbstractPanel) .modal .modal-body {
  max-height: min(75vh, 520px);
  padding: 8px 24px;
  background: transparent;
  color: #ffffff;
}

/* wiersze formularza: etykieta | pole */
body:has(#SubmitAbstractPanel) .modal .modal-body .form-group {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

body:has(#SubmitAbstractPanel) .modal .modal-body .form-group:last-child {
  border-bottom: 0;
}

body:has(#SubmitAbstractPanel) .modal .modal-body .form-group.row {
  margin-left: 0;
  margin-right: 0;
  align-items: flex-start;
}

body:has(#SubmitAbstractPanel) .modal .modal-body .form-group.row > label,
body:has(#SubmitAbstractPanel) .modal .modal-body .form-group > label.form-label,
body:has(#SubmitAbstractPanel) .modal .modal-body .form-group > label.col-form-label {
  margin: 0;
  padding: 10px 16px 0 0;
  text-align: left !important;
  color: #d6d6d6 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35;
}

body:has(#SubmitAbstractPanel) .modal .modal-body .form-group.row > div {
  padding-left: 0;
  padding-right: 0;
}

/* przełącznik Tak / Nie */
body:has(#SubmitAbstractPanel) .modal .modal-body .radio,
body:has(#SubmitAbstractPanel) .modal .modal-body .form-check {
  display: inline-flex;
  align-items: center;
  margin: 8px 24px 0 0;
}

body:has(#SubmitAbstractPanel) .modal .modal-body .radio label,
body:has(#SubmitAbstractPanel) .modal .modal-body .form-check-label {
  padding-left: 8px;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  cursor: pointer;
}

body:has(#SubmitAbstractPanel) .modal .modal-body input[type="radio"],
body:has(#SubmitAbstractPanel) .modal .modal-body input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--zptd-orange);
  cursor: pointer;
}

/* kółka z awesome-bootstrap-checkbox */
body:has(#SubmitAbstractPanel) .modal .radio label::before {
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, .6) !important;
}

body:has(#SubmitAbstractPanel) .modal .radio label::after {
  background-color: var(--zptd-orange) !important;
}

body:has(#SubmitAbstractPanel) .modal .radio:has(input:checked) label::before {
  border-color: var(--zptd-orange) !important;
}

/* afiliacje dodawane przyciskiem „Dodaj afiliacje” */
body:has(#SubmitAbstractPanel) .modal .modal-body .affiliationRow,
body:has(#SubmitAbstractPanel) .modal .modal-body [id*="affiliation"] > .row {
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
}

body:has(#SubmitAbstractPanel) .modal .modal-body .form-control {
  margin-bottom: 0;
}

/* stopka: Anuluj (obrys) i Zapisz (wypełniony) */
body:has(#SubmitAbstractPanel) .modal .modal-footer {
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
}

body:has(#SubmitAbstractPanel) .modal .modal-footer .btn {
  margin: 0 !important;
  padding: 10px 22px;
  font-size: 15px;
}

body:has(#SubmitAbstractPanel) .modal .modal-footer .btn i,
body:has(#SubmitAbstractPanel) .modal .modal-footer .btn svg {
  margin-right: 8px !important;
}

body:has(#SubmitAbstractPanel) .modal .modal-footer .btn-primary {
  background: var(--zptd-orange) !important;
  color: #000000 !important;
  font-weight: 600;
}

body:has(#SubmitAbstractPanel) .modal .modal-footer .btn-primary:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
}

body:has(#SubmitAbstractPanel) .modal .modal-footer .btn-danger.btn-outline {
  border-color: rgba(255, 255, 255, .35) !important;
  color: #ffffff !important;
}

body:has(#SubmitAbstractPanel) .modal .modal-footer .btn-danger.btn-outline:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

/* mobile: etykieta nad polem, przyciski na całą szerokość */
@media (max-width: 767.98px) {
  body:has(#SubmitAbstractPanel) .modal .modal-dialog {
    margin: 16px auto;
    padding: 0 8px;
  }

  body:has(#SubmitAbstractPanel) .modal .modal-header,
  body:has(#SubmitAbstractPanel) .modal .modal-body,
  body:has(#SubmitAbstractPanel) .modal .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  body:has(#SubmitAbstractPanel) .modal .modal-body .form-group.row > label {
    padding: 0 0 8px;
    font-size: 14px !important;
  }

  body:has(#SubmitAbstractPanel) .modal .modal-footer .btn {
    flex: 1 1 0;
  }
}

/* --- Okno autora: przycisk zamknięcia – ikona na środku kwadratu --- */
body:has(#SubmitAbstractPanel) .modal .modal-header .close > span {
  display: flex !important;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body:has(#SubmitAbstractPanel) .modal .modal-header .close i,
body:has(#SubmitAbstractPanel) .modal .modal-header .close svg {
  display: block;
  margin: 0 !important;
  line-height: 1;
  vertical-align: 0;
}

/* --- Okno autora: afiliacje (#afiliationList, wiersze #affiliation_N) ---
   Każda afiliacja to osobny blok: Instytucja i Oddział na całą szerokość,
   Miasto i Kraj obok siebie, przycisk usuwania w prawym górnym rogu. */
body:has(#SubmitAbstractPanel) .modal #afiliationList {
  counter-reset: afiliacja;
}

body:has(#SubmitAbstractPanel) .modal #afiliationList > .form-group.row {
  display: grid;
  grid-template-columns: 1fr 1fr 36px;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px !important;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

body:has(#SubmitAbstractPanel) .modal #afiliationList > .form-group.row::before {
  counter-increment: afiliacja;
  content: "Afiliacja " counter(afiliacja);
  grid-column: 1 / 3;
  grid-row: 1;
  color: #d6d6d6;
  font-size: 14px;
  font-weight: 400;
}

body:has(#SubmitAbstractPanel) .modal #afiliationList > .form-group.row > div {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0 !important;
}

/* Instytucja */
body:has(#SubmitAbstractPanel) .modal #afiliationList > .form-group.row > div:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 2;
}

/* Oddział / Wydział */
body:has(#SubmitAbstractPanel) .modal #afiliationList > .form-group.row > div:nth-child(2) {
  grid-column: 1 / 4;
  grid-row: 3;
}

/* Miasto i Kraj */
body:has(#SubmitAbstractPanel) .modal #afiliationList > .form-group.row > div:nth-child(3) {
  grid-column: 1;
  grid-row: 4;
}

body:has(#SubmitAbstractPanel) .modal #afiliationList > .form-group.row > div:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 4;
}

/* gdy Kraj jest wyłączony, Miasto zajmuje całą szerokość */
body:has(#SubmitAbstractPanel) .modal #afiliationList > .form-group.row:has(> div.d-none:nth-child(4)) > div:nth-child(3) {
  grid-column: 1 / 4;
}

/* przycisk usuwania afiliacji */
body:has(#SubmitAbstractPanel) .modal #afiliationList > .form-group.row > div:last-child {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

body:has(#SubmitAbstractPanel) .modal #afiliationList .removeAffiliation {
  width: 36px;
  height: 36px;
  padding: 0 !important;
}

body:has(#SubmitAbstractPanel) .modal #afiliationList .removeAffiliation i,
body:has(#SubmitAbstractPanel) .modal #afiliationList .removeAffiliation svg {
  margin: 0 !important;
}

body:has(#SubmitAbstractPanel) .modal #afiliationList .removeAffiliation:hover {
  background: var(--zptd-red) !important;
  border-color: var(--zptd-red) !important;
  color: #000000 !important;
}


/* ==========================================================================
   14. LISTA WYSŁANYCH STRESZCZEŃ (#SubmitAbstractPanel z tabelą)
   Ta strona używa tego samego id co formularz wysyłki, ale tylko tutaj
   wiersze tabeli są bezpośrednio w .card-body – stąd selektory "> .card-body > .row".
   Wygląd tabeli jak na stronie wgrywania prezentacji (sekcja 11).
   ========================================================================== */

/* szerokość jak baner (formularz wysyłki ma już col-md-10, więc go to nie dotyczy) */
@media (min-width: 768px) {
  body:has(#SubmitAbstractPanel) > section.col-md-12 {
    max-width: 83.333333%;
  }
}

#SubmitAbstractPanel > .card-body > hr {
  display: none !important;
}

#SubmitAbstractPanel > .card-body > .row {
  margin: 0 !important;
  align-items: center;
  flex-wrap: nowrap;
}

#SubmitAbstractPanel > .card-body > .row > div {
  padding: 0 10px;
}

#SubmitAbstractPanel > .card-body > .row > div:first-child {
  padding-left: 0;
}

#SubmitAbstractPanel > .card-body > .row > div:last-child {
  padding-right: 0;
}

@media (min-width: 768px) {
  #SubmitAbstractPanel > .card-body > .row > div:nth-child(1) { flex: 0 0 130px; max-width: 130px; text-align: center; }
  #SubmitAbstractPanel > .card-body > .row > div:nth-child(2) { flex: 1 1 0; max-width: none; min-width: 0; }
  #SubmitAbstractPanel > .card-body > .row > div:nth-child(3) { flex: 0 0 210px; max-width: 210px; }
  #SubmitAbstractPanel > .card-body > .row > div:nth-child(4) { flex: 0 0 170px; max-width: 170px; }
  #SubmitAbstractPanel > .card-body > .row > div:nth-child(5) { flex: 0 0 90px; max-width: 90px; }
}

/* nagłówki kolumn */
#SubmitAbstractPanel > .card-body > .row:first-child {
  padding: 14px 0;
  border-bottom: 2px solid var(--accent);
}

#SubmitAbstractPanel > .card-body > .row:first-child strong {
  color: #d6d6d6 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.3;
}

/* wiersze */
#SubmitAbstractPanel > .card-body > .row.mb-3 {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #d6d6d6 !important;
  font-size: 15px;
}

#SubmitAbstractPanel > .card-body > .row.mb-3:last-of-type {
  border-bottom: 0;
}

/* nr streszczenia */
#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(1) .fa,
#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(1) svg {
  color: var(--accent) !important;
  font-size: 16px;
  margin-bottom: 4px;
}

#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(1) strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700;
}

/* tytuł / autorzy */
#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(2) strong {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(2) small {
  display: inline-block;
  margin-top: 3px;
  color: #d6d6d6 !important;
  font-size: 14px;
}

/* daty utworzenia i wysłania */
#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(3) {
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.7;
  white-space: nowrap;
}

#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(3) .fa,
#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(3) svg {
  width: 14px;
  color: var(--accent) !important;
}

/* status – z pomarańczowym kwadratem jak w logo */
#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(4) {
  color: #ffffff !important;
  font-weight: 600;
}

#SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(4)::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--accent);
}

/* podgląd */
#SubmitAbstractPanel .btn.ViewBtn {
  width: 34px;
  height: 34px;
  padding: 0 !important;
}

#SubmitAbstractPanel .btn.ViewBtn i,
#SubmitAbstractPanel .btn.ViewBtn svg {
  margin: 0 !important;
}

/* mobile: wiersze jeden pod drugim, z etykietami */
@media (max-width: 767.98px) {
  #SubmitAbstractPanel > .card-body > .row:first-child {
    display: none !important;
  }

  #SubmitAbstractPanel > .card-body > .row.mb-3 {
    flex-wrap: wrap;
  }

  #SubmitAbstractPanel > .card-body > .row.mb-3 > div {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 4px 0;
  }

  #SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(1) {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(1) .text-center {
    text-align: left !important;
  }

  #SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(1) .fa,
  #SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(1) svg {
    margin-bottom: 0;
  }

  #SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(3)::before {
    content: "Data utworzenia / wysłania";
    display: block;
    color: #d6d6d6;
    font-size: 13px;
    font-weight: 400;
  }

  #SubmitAbstractPanel > .card-body > .row.mb-3 > div:nth-child(5) {
    padding-top: 10px;
  }

  #SubmitAbstractPanel .btn.ViewBtn {
    width: 42px;
    height: 42px;
  }
}


/* ==========================================================================
   15. ROLE KOLORÓW – wspólne dla sekcji 10–14
   ========================================================================== */

/* --- kolor obszaru (--accent) dla każdej karty ---
   panel: Dane uczestnika – pomarańczowy, Streszczenia – niebieski,
   Prezentacje – fioletowy (ustawione w sekcji 10) */
#AbstractPresentation {
  --accent: var(--zptd-purple);
}

#ViewAbstractPanel,
#SubmitAbstractPanel,
body:has(#SubmitAbstractPanel) .modal {
  --accent: var(--zptd-blue);
}

/* --- przycisk powrotu do panelu – nad kartą, po lewej ---
   Przycisk jest w nagłówku karty, ale wyciągamy go nad kartę
   (position: absolute względem .card), a w nagłówku zostaje sam tytuł.
   Klikalny jest #HomeBtn rozciągnięty na cały przycisk; napis dokłada ::after
   rodzica (pointer-events: none, więc klik trafia w #HomeBtn). */
#AbstractPresentation,
#ViewAbstractPanel,
#SubmitAbstractPanel,
#BillingSummaryPanel {
  position: relative;
  margin-top: 88px;   /* łączy się z dolnym marginesem banera: ok. 28px nad przyciskiem, 20px pod nim */
}

#AbstractPresentation > .card-header .row > div:first-child,
#ViewAbstractPanel > .card-header .row > div:first-child,
#SubmitAbstractPanel > .card-header .row > div:first-child,
#BillingSummaryPanel > .card-header .row > div:first-child {
  position: absolute;
  top: -64px;
  left: -1px;
  width: auto;
  padding: 0;
}

#AbstractPresentation #HomeBtn,
#ViewAbstractPanel #HomeBtn,
#SubmitAbstractPanel #HomeBtn,
#BillingSummaryPanel #HomeBtn {
  display: block !important;
  box-sizing: border-box;
  width: 190px;
  height: 40px;
  margin: 0 !important;
  padding: 12px 160px 12px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #ffffff !important;
  font-size: 15px;
  line-height: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .15s ease, color .15s ease;
}

#AbstractPresentation > .card-header .row > div:first-child::after,
#ViewAbstractPanel > .card-header .row > div:first-child::after,
#SubmitAbstractPanel > .card-header .row > div:first-child::after,
#BillingSummaryPanel > .card-header .row > div:first-child::after {
  content: "Powrót do panelu";
  position: absolute;
  top: 0;
  left: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 15px;
  white-space: nowrap;
  pointer-events: none;
}

#AbstractPresentation #HomeBtn:hover,
#ViewAbstractPanel #HomeBtn:hover,
#SubmitAbstractPanel #HomeBtn:hover,
#BillingSummaryPanel #HomeBtn:hover {
  background: #ffffff;
  color: #000000 !important;
}

#AbstractPresentation > .card-header .row > div:first-child:has(> #HomeBtn:hover)::after,
#ViewAbstractPanel > .card-header .row > div:first-child:has(> #HomeBtn:hover)::after,
#SubmitAbstractPanel > .card-header .row > div:first-child:has(> #HomeBtn:hover)::after,
#BillingSummaryPanel > .card-header .row > div:first-child:has(> #HomeBtn:hover)::after {
  color: #000000;
}

/* --- główna akcja w każdej karcie: wypełniony pomarańczowy --- */
#MainRegistrationWindow:has(#EditParticipantDataBtn) #FinishRegistrationBtn,
#MainRegistrationWindow:has(#EditParticipantDataBtn) #SubmitAbstractBtn,
#MainRegistrationWindow:has(#EditParticipantDataBtn) #AbstractPresentationBtn,
#SubmitAbstractPanel .btn.submitAbstractBtn,
body:has(#SubmitAbstractPanel) .modal .modal-footer .btn-primary {
  background: var(--zptd-orange) !important;
  border-color: var(--zptd-orange) !important;
  color: #000000 !important;
  font-weight: 600;
}

#MainRegistrationWindow:has(#EditParticipantDataBtn) #FinishRegistrationBtn:hover,
#MainRegistrationWindow:has(#EditParticipantDataBtn) #SubmitAbstractBtn:hover,
#MainRegistrationWindow:has(#EditParticipantDataBtn) #AbstractPresentationBtn:hover,
#SubmitAbstractPanel .btn.submitAbstractBtn:hover,
body:has(#SubmitAbstractPanel) .modal .modal-footer .btn-primary:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

/* --- pobierz / podgląd: kolor obszaru (fiolet w prezentacjach, niebieski w streszczeniach) --- */
#AbstractPresentation .btn.DownloadBtn,
#ViewAbstractPanel #downloadAbstractFile,
#SubmitAbstractPanel .btn.ViewBtn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
}

#AbstractPresentation .btn.DownloadBtn:hover,
#ViewAbstractPanel #downloadAbstractFile:hover,
#SubmitAbstractPanel .btn.ViewBtn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

/* --- usuwanie: czerwony obrys, po najechaniu wypełnienie --- */
#AbstractPresentation .btn.RemoveBtn,
#SubmitAbstractPanel #authorsList .AuthorRemoveBtn,
body:has(#SubmitAbstractPanel) .modal #afiliationList .removeAffiliation {
  border-color: var(--zptd-red) !important;
  color: var(--zptd-red) !important;
}

#AbstractPresentation .btn.RemoveBtn:hover,
#SubmitAbstractPanel #authorsList .AuthorRemoveBtn:hover,
body:has(#SubmitAbstractPanel) .modal #afiliationList .removeAffiliation:hover {
  background: var(--zptd-red) !important;
  border-color: var(--zptd-red) !important;
  color: #000000 !important;
}


/* ==========================================================================
   16. OKIENKA POTWIERDZEŃ I KOMUNIKATÓW (SweetAlert: .sweet-alert)
   Np. „Usuwanie danych – Czy na pewno chcesz usunąć tą prezentację?”.
   Działa na wszystkich stronach rejestracji – całe są w ciemnym motywie.
   Ostrzeżenie i błąd: czerwony (akcja nieodwracalna), sukces: pomarańczowy,
   informacja: niebieski. Ikony kwadratowe jak piksele z identyfikacji.
   ========================================================================== */

.sweet-overlay {
  background-color: rgba(0, 0, 0, .85) !important;
}

.sweet-alert {
  background-color: #0b0b0b !important;
  border: 1px solid rgba(255, 255, 255, .22);
  border-top: 4px solid var(--zptd-orange);
  border-radius: 0 !important;
  padding: 32px 28px 28px !important;
  font-family: 'Outfit', sans-serif !important;
  color: #ffffff;
}

/* ostrzeżenie lub błąd – czerwony pasek */
.sweet-alert:has(.sa-icon.sa-warning[style*="block"]),
.sweet-alert:has(.sa-icon.sa-error[style*="block"]) {
  border-top-color: var(--zptd-red);
}

.sweet-alert:has(.sa-icon.sa-info[style*="block"]) {
  border-top-color: var(--zptd-blue);
}

.sweet-alert h2 {
  margin: 18px 0 8px !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.sweet-alert p {
  color: #d6d6d6 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

/* --- ikony: kwadratowe, w kolorach wydarzenia --- */
.sweet-alert .sa-icon {
  width: 64px !important;
  height: 64px !important;
  margin: 4px auto 0 !important;
  border-width: 3px !important;
}

.sweet-alert .sa-icon.sa-warning {
  border-color: var(--zptd-red) !important;
  border-radius: 0 !important;
  animation: none !important;
}

.sweet-alert .sa-icon.sa-warning .sa-body {
  height: 26px !important;
  top: 10px !important;
  left: 50% !important;
  margin-left: -2px !important;
  background-color: var(--zptd-red) !important;
  border-radius: 0 !important;
  animation: none !important;
}

.sweet-alert .sa-icon.sa-warning .sa-dot {
  width: 6px !important;
  height: 6px !important;
  bottom: 10px !important;
  left: 50% !important;
  margin-left: -3px !important;
  background-color: var(--zptd-red) !important;
  border-radius: 0 !important;
  animation: none !important;
}

.sweet-alert .sa-icon.sa-error {
  border-color: var(--zptd-red) !important;
  border-radius: 0 !important;
}

.sweet-alert .sa-icon.sa-error .sa-line {
  background-color: var(--zptd-red) !important;
  border-radius: 0 !important;
}

.sweet-alert .sa-icon.sa-info {
  border-color: var(--zptd-blue) !important;
  border-radius: 0 !important;
}

.sweet-alert .sa-icon.sa-info::before,
.sweet-alert .sa-icon.sa-info::after {
  background-color: var(--zptd-blue) !important;
  border-radius: 0 !important;
}

/* sukces: okrągła animacja zostaje, ale w kolorach strony */
.sweet-alert .sa-icon.sa-success {
  border-color: var(--zptd-orange) !important;
}

.sweet-alert .sa-icon.sa-success::before,
.sweet-alert .sa-icon.sa-success::after,
.sweet-alert .sa-icon.sa-success .sa-fix {
  background: #0b0b0b !important;
}

.sweet-alert .sa-icon.sa-success .sa-placeholder {
  border-color: rgba(255, 165, 32, .3) !important;
}

.sweet-alert .sa-icon.sa-success .sa-line {
  background-color: var(--zptd-orange) !important;
}

/* --- pole tekstowe (gdy okno o coś pyta) --- */
.sweet-alert input {
  height: 44px !important;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.sweet-alert input:focus {
  border-color: var(--zptd-orange) !important;
}

.sweet-alert .sa-error-container {
  background: transparent !important;
  color: var(--zptd-red) !important;
}

.sweet-alert .sa-error-container p {
  color: var(--zptd-red) !important;
}

/* --- przyciski: Nie / Anuluj = biały obrys, Tak / OK = wypełniony --- */
.sweet-alert .sa-button-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.sweet-alert button {
  min-width: 120px;
  margin: 0 !important;
  padding: 11px 28px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.sweet-alert button.cancel {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  color: #ffffff !important;
}

.sweet-alert button.cancel:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

/* potwierdzenie – domyślnie pomarańczowe (kolor z JS nadpisany) */
.sweet-alert button.confirm {
  background-color: var(--zptd-orange) !important;
  border: 1px solid var(--zptd-orange) !important;
  color: #000000 !important;
  font-weight: 600 !important;
}

/* potwierdzenie usunięcia (okno z ostrzeżeniem) – czerwone */
.sweet-alert:has(.sa-icon.sa-warning[style*="block"]) button.confirm {
  background-color: var(--zptd-red) !important;
  border-color: var(--zptd-red) !important;
  color: #000000 !important;
}

.sweet-alert button.confirm:hover,
.sweet-alert:has(.sa-icon.sa-warning[style*="block"]) button.confirm:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

.sweet-alert button:focus-visible {
  outline: 2px solid var(--zptd-orange) !important;
  outline-offset: 2px;
}

@media (max-width: 540px) {
  .sweet-alert {
    padding: 28px 20px 20px !important;
  }

  .sweet-alert .sa-button-container {
    flex-direction: column-reverse;
  }

  .sweet-alert button {
    width: 100%;
  }
}


/* ==========================================================================
   17. FORMULARZ REJESTRACJI (#MainRegistrationWindow z #MainForm)
   Wszystkie kroki rejestracji: pasek etapów, sekcje, pola, przyciski.
   Kolor obszaru: pomarańczowy (rejestracja = marka wydarzenia).
   Strona logowania i panel uczestnika nie mają #MainForm – nie są objęte.
   ========================================================================== */

body:has(#MainForm) {
  background-color: #000000 !important;
}

/* --- karta --- */
#MainRegistrationWindow:has(#MainForm) {
  background: #0b0b0b !important;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-top: 4px solid var(--zptd-orange) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 40px;
}

#MainRegistrationWindow:has(#MainForm) > .card-body {
  padding: 0 28px 28px !important;
  background: transparent !important;
}

#MainRegistrationWindow:has(#MainForm) > .card-body > hr {
  display: none !important;
}

/* --- pasek etapów rejestracji --- */
#MainRegistrationWindow:has(#MainForm) > .card-body > .row:first-child {
  margin: 0 -28px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

#MainRegistrationWindow:has(#MainForm) .RegistrationStages {
  display: flex;
  padding: 0;
  counter-reset: etap;
}

#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 18px 10px 15px;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #9e9e9e !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.3;
  white-space: normal;
  cursor: default !important;
}

#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange .fas,
#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange svg {
  margin: 0 !important;
  font-size: 15px;
}

/* krok bieżący */
#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange.active {
  color: #ffffff !important;
  font-weight: 600;
  border-bottom-color: var(--zptd-orange) !important;
}

#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange.active .fas,
#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange.active svg {
  color: var(--zptd-orange);
}

/* kroki już wypełnione (bez klasy unfilled i nie bieżący) */
#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange:not(.active):not(.unfilled) {
  color: #d6d6d6 !important;
}

/* --- informacja o polach obowiązkowych --- */
#MainRegistrationWindow:has(#MainForm) #MainForm::before {
  content: "Pola oznaczone * są obowiązkowe";
  display: block;
  margin-top: 20px;
  text-align: right;
  color: #9e9e9e;
  font-size: 13px;
}

/* --- nagłówki sekcji (Dane konta, Dane osobowe…) z kwadratem jak w logo --- */
#MainRegistrationWindow:has(#MainForm) .registrationStep {
  padding-top: 8px;
}

#MainRegistrationWindow:has(#MainForm) .registrationStep ~ .registrationStep {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

#MainRegistrationWindow:has(#MainForm) .registrationStepName {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 600;
}

#MainRegistrationWindow:has(#MainForm) .registrationStepName::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  background: var(--zptd-orange);
}

/* --- wiersze: etykieta | pole --- */
#MainRegistrationWindow:has(#MainForm) .form-group.row:has(> label.control-label) {
  margin: 0;
  padding: 12px 0;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ostatni wiersz w sekcji bez linii (sekcje rozdziela własna linia) */
#MainRegistrationWindow:has(#MainForm) div.form-group.row:last-of-type {
  border-bottom: 0;
}

#MainRegistrationWindow:has(#MainForm) .form-group.row > label.control-label {
  margin: 0;
  padding: 11px 16px 0 0;
  text-align: left !important;
  color: #d6d6d6 !important;
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.35;
}

#MainRegistrationWindow:has(#MainForm) .form-group.row:has(> label.control-label) > div {
  position: relative;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  #MainRegistrationWindow:has(#MainForm) .form-group.row:has(> label.control-label) {
    flex-wrap: nowrap;
  }

  #MainRegistrationWindow:has(#MainForm) .form-group.row > label.control-label {
    flex: 0 0 280px;
    max-width: 280px;
  }

  /* jednakowa szerokość pól we wszystkich sekcjach */
  #MainRegistrationWindow:has(#MainForm) .form-group.row:has(> label.control-label) > div {
    flex: 1 1 0;
    max-width: 560px;
    min-width: 0;
  }
}

/* gwiazdka przy polach obowiązkowych */
#MainRegistrationWindow:has(#MainForm) .form-group.row:has(.obligatory) > label.control-label::after,
#MainRegistrationWindow:has(#MainForm) #Account .form-group.row:has(input.form-control) > label.control-label::after {
  content: " *";
  color: var(--zptd-orange);
}

/* --- pola --- */
#MainRegistrationWindow:has(#MainForm) .form-control {
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  font-size: 16px;
  box-shadow: none !important;
  color-scheme: dark;
  transition: border-color .15s ease;
}

#MainRegistrationWindow:has(#MainForm) textarea.form-control {
  min-height: 120px;
}

#MainRegistrationWindow:has(#MainForm) .form-control:hover {
  border-color: rgba(255, 255, 255, .6) !important;
}

#MainRegistrationWindow:has(#MainForm) .form-control:focus {
  border-color: var(--zptd-orange) !important;
  outline: none;
}

#MainRegistrationWindow:has(#MainForm) select.form-control option {
  background: #0b0b0b;
  color: #ffffff;
}

/* autouzupełnianie przeglądarki */
#MainRegistrationWindow:has(#MainForm) .form-control:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 1000px #000000 inset !important;
}

/* walidacja: błąd na czerwono, poprawne pole bez zielonego (spoza palety) */
#MainRegistrationWindow:has(#MainForm) .form-control.errors {
  border-color: var(--zptd-red) !important;
  color: #ffffff !important;
}

#MainRegistrationWindow:has(#MainForm) .form-control.valid {
  border-color: rgba(255, 255, 255, .35) !important;
}

#MainRegistrationWindow:has(#MainForm) label.errors {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  color: var(--zptd-red) !important;
  font-size: 14px !important;
  font-weight: 400;
}

#MainRegistrationWindow:has(#MainForm) div.form-group > div:has(input.form-control.valid)::after {
  top: 13px !important;
  right: 14px !important;
  color: rgba(255, 255, 255, .6) !important;
}

/* --- przełączniki (Nowe konto / Mam już konto) --- */
#MainRegistrationWindow:has(#MainForm) .abc-radio {
  margin: 10px 24px 0 0;
}

#MainRegistrationWindow:has(#MainForm) .abc-radio label {
  color: #ffffff !important;
  font-size: 16px !important;
  cursor: pointer;
}

#MainRegistrationWindow:has(#MainForm) .abc-radio label::before {
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, .6) !important;
}

#MainRegistrationWindow:has(#MainForm) .abc-radio label::after {
  background-color: var(--zptd-orange) !important;
}

#MainRegistrationWindow:has(#MainForm) .abc-radio:has(input:checked) label::before {
  border-color: var(--zptd-orange) !important;
}

#MainRegistrationWindow:has(#MainForm) input[type="radio"],
#MainRegistrationWindow:has(#MainForm) input[type="checkbox"] {
  accent-color: var(--zptd-orange);
}

/* --- numer telefonu z wyborem kraju (intl-tel-input) --- */
#MainRegistrationWindow:has(#MainForm) .intl-tel-input {
  width: 100%;
}

#MainRegistrationWindow:has(#MainForm) .intl-tel-input .selected-flag:hover,
#MainRegistrationWindow:has(#MainForm) .intl-tel-input .selected-flag:focus {
  background-color: rgba(255, 255, 255, .08) !important;
}

#MainRegistrationWindow:has(#MainForm) .intl-tel-input .country-list {
  background: #0b0b0b !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#MainRegistrationWindow:has(#MainForm) .intl-tel-input .country-list .country.highlight {
  background: var(--zptd-orange) !important;
  color: #000000 !important;
}

#MainRegistrationWindow:has(#MainForm) .intl-tel-input .country-list .dial-code {
  color: #9e9e9e !important;
}

/* --- przyciski --- */
#MainRegistrationWindow:has(#MainForm) .btn:not(.stepChange) {
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* drugorzędne: Zaloguj (Mam już konto), Wstecz */
#MainRegistrationWindow:has(#MainForm) #loginBtn,
#MainRegistrationWindow:has(#MainForm) #BackButton {
  padding: 11px 24px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  color: #ffffff !important;
  font-size: 16px;
}

#MainRegistrationWindow:has(#MainForm) #loginBtn:hover,
#MainRegistrationWindow:has(#MainForm) #BackButton:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

/* główne: Kontynuuj, Zakończ rejestrację */
#MainRegistrationWindow:has(#MainForm) #ContinueButton,
#MainRegistrationWindow:has(#MainForm) #FinishButton {
  padding: 13px 36px !important;
  background: var(--zptd-orange) !important;
  border: 1px solid var(--zptd-orange) !important;
  color: #000000 !important;
  font-size: 16px;
  font-weight: 600;
}

#MainRegistrationWindow:has(#MainForm) #ContinueButton:hover,
#MainRegistrationWindow:has(#MainForm) #FinishButton:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
}

#MainRegistrationWindow:has(#MainForm) .btn:focus-visible {
  outline: 2px solid var(--zptd-orange) !important;
  outline-offset: 2px;
}

/* stopka z przyciskami nawigacji */
#MainRegistrationWindow:has(#MainForm) #ControlButtons {
  margin: 32px -28px -28px !important;
  padding: 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  gap: 12px !important;
}

/* --- mobile --- */
@media (max-width: 767.98px) {
  #MainRegistrationWindow:has(#MainForm) > .card-body {
    padding: 0 16px 16px !important;
  }

  #MainRegistrationWindow:has(#MainForm) > .card-body > .row:first-child {
    margin: 0 -16px;
  }

  /* pasek etapów: same ikony, nazwa tylko bieżącego kroku */
  #MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange {
    flex: 0 0 auto;
    padding: 14px 12px 11px;
    font-size: 0 !important;
  }

  #MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange.active {
    flex: 1 1 auto;
    font-size: 14px !important;
  }

  #MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange .fas,
  #MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange svg {
    font-size: 16px;
  }

  #MainRegistrationWindow:has(#MainForm) #MainForm::before {
    text-align: left;
  }

  #MainRegistrationWindow:has(#MainForm) .form-group.row > label.control-label {
    padding: 0 0 6px;
    font-size: 14px !important;
  }

  #MainRegistrationWindow:has(#MainForm) .abc-radio {
    display: flex;
    margin: 6px 0 0;
  }

  #MainRegistrationWindow:has(#MainForm) #ControlButtons {
    margin: 24px -16px -16px !important;
    padding: 16px;
    flex-direction: column-reverse;
  }

  #MainRegistrationWindow:has(#MainForm) #ControlButtons .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #MainRegistrationWindow:has(#MainForm) * {
    transition: none !important;
  }
}


/* ==========================================================================
   17b. REJESTRACJA – KROK „OPŁATY REJESTRACYJNE” (kod rabatowy)
   oraz klikalne ukończone kroki w pasku etapów.
   Tabela opłat celowo bez własnych stylów – wygląda tak samo jak tabela
   imprez towarzyszących (style ogólne tabel z sekcji 3).
   ========================================================================== */

/* ukończone kroki (.filled) – skrypt pozwala do nich wrócić, więc wyglądają na klikalne */
#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange.filled {
  cursor: pointer !important;
}

#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange.filled:hover {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, .5) !important;
}

#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange.filled .fas,
#MainRegistrationWindow:has(#MainForm) .RegistrationStages label.stepChange.filled svg {
  color: var(--zptd-orange);
}

/* dopisek o polach obowiązkowych tylko w krokach, które mają takie pola */
#MainRegistrationWindow:has(#MainForm) #MainForm:not(:has(.obligatory)):not(:has(#Account))::before {
  display: none;
}

/* --- kod rabatowy: pole i przycisk w jednej linii --- */
#MainRegistrationWindow:has(#MainForm) .form-group.row > div:has(> #discountCode) {
  display: flex !important;
  align-items: stretch;
  gap: 10px;
}

#MainRegistrationWindow:has(#MainForm) #discountCode {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 320px;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#MainRegistrationWindow:has(#MainForm) #DiscountCodeBtn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 20px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  color: #ffffff !important;
  font-size: 15px;
  white-space: nowrap;
}

#MainRegistrationWindow:has(#MainForm) #DiscountCodeBtn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

/* --- mobile --- */
@media (max-width: 767.98px) {
  #MainRegistrationWindow:has(#MainForm) #discountCode {
    max-width: none;
  }
}


/* ==========================================================================
   17c. REJESTRACJA – KROK „PODSUMOWANIE” (#registrationStep15_View)
   i „WARUNKI REJESTRACJI” (#RegistrationTerms)
   ========================================================================== */

/* --- podsumowanie: grupy danych --- */
#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .SummaryHeader {
  margin: 20px 0 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

#MainRegistrationWindow:has(#MainForm) #registrationStep15_View > .SummaryHeader:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}

#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .SummaryHeader > h4 {
  margin: 0;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 600;
}

/* wiersze: etykieta | wartość (obie są <label>, więc wartość osobno) */
#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .form-group.row {
  margin-left: 0 !important;   /* znosi wcięcie 20px z sekcji 2 (Krok 15) */
  padding: 9px 0;
  align-items: baseline;
}

#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .form-group.row > label.control-label {
  padding: 0 16px 0 0;
}

#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .form-group.row > label.control-label:first-child b {
  color: #d6d6d6;
  font-weight: 400;
}

#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .form-group.row > label.control-label:nth-child(2) {
  color: #ffffff !important;
  font-weight: 600;
  word-break: break-word;
}

@media (min-width: 768px) {
  #MainRegistrationWindow:has(#MainForm) #registrationStep15_View .form-group.row > label.control-label:nth-child(2) {
    flex: 1 1 0;
    max-width: 560px;
  }
}

/* opis formy płatności (kursywa) jako szara podpowiedź pod wartością */
#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .form-group.row > label.control-label:nth-child(2) i:not(.fa) {
  display: block;
  margin-top: 4px;
  color: #9e9e9e;
  font-size: 14px;
  font-weight: 400;
}

/* hasło: ikona podglądu */
#MainRegistrationWindow:has(#MainForm) #registrationStep15_View #showPassword {
  color: var(--zptd-orange);
  cursor: pointer;
}

/* Razem do zapłaty – wyróżniony pas z kwotą */
#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .SummaryHeader:has(u) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding: 18px 20px;
  background: rgba(255, 165, 32, .08);
  border: 1px solid var(--zptd-orange);
}

#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .SummaryHeader:has(u) > h4:first-child,
#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .SummaryHeader:has(u) > h4:first-child * {
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 600;
  text-decoration: none;
}

#MainRegistrationWindow:has(#MainForm) #registrationStep15_View .SummaryHeader:has(u) > h4:last-child {
  color: var(--zptd-orange) !important;
  font-size: 22px !important;
  font-weight: 700;
}

/* --- warunki rejestracji (zgody) --- */
#MainRegistrationWindow:has(#MainForm) #RegistrationTerms > .form-group {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms > .form-group:last-of-type {
  border-bottom: 0;
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox {
  padding-left: 34px;
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox label {
  padding-left: 4px;
  color: #d6d6d6 !important;
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox label p {
  margin: 0;
}

/* zgody obowiązkowe – gwiazdka jak przy polach formularza */
#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox:has(input.obligatory) label p::after {
  content: " *";
  color: var(--zptd-orange);
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox label a {
  color: var(--zptd-orange) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox label a:hover {
  color: #ffffff !important;
}

/* pole zaznaczenia – kwadratowe, po zaznaczeniu pomarańczowe */
#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox label::before {
  width: 20px;
  height: 20px;
  margin-left: -30px;
  background-color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, .6) !important;
  border-radius: 0 !important;
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox label::after {
  margin-left: -30px;
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox:has(input:checked) label::before {
  background-color: var(--zptd-orange) !important;
  border-color: var(--zptd-orange) !important;
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox:has(input:checked) label::after {
  color: #000000 !important;
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms input[type="checkbox"] {
  accent-color: var(--zptd-orange);
}

/* brak wymaganej zgody: czerwona ramka pola i komunikat */
#MainRegistrationWindow:has(#MainForm) #RegistrationTerms .abc-checkbox:has(input.errors) label::before {
  border-color: var(--zptd-red) !important;
}

#MainRegistrationWindow:has(#MainForm) #RegistrationTerms label.errors {
  display: block;
  margin: 6px 0 0 34px;
  color: var(--zptd-red) !important;
  font-size: 14px !important;
}

@media (max-width: 767.98px) {
  #MainRegistrationWindow:has(#MainForm) #registrationStep15_View .form-group.row > label.control-label:first-child {
    padding-bottom: 2px;
  }

  #MainRegistrationWindow:has(#MainForm) #registrationStep15_View .SummaryHeader:has(u) {
    padding: 14px 16px;
  }
}


/* ==========================================================================
   18. REJESTRACJA ZAKOŃCZONA (strona z #btnLogin i #btnDownloadInvoice)
   Karta potwierdzenia: ikona sukcesu, czytelny komunikat, dwie akcje.
   ========================================================================== */

body:has(#btnDownloadInvoice) {
  background-color: #000000 !important;
}

#MainRegistrationWindow:has(#btnDownloadInvoice) {
  max-width: 720px;
  margin: 0 auto 40px;
  background: #0b0b0b !important;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-top: 4px solid var(--zptd-orange) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body {
  padding: 40px 32px 32px !important;
  background: transparent !important;
  text-align: center;
}

/* ikona sukcesu – pomarańczowy kwadrat z ptaszkiem (piksel z identyfikacji) */
#MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body > .text-center:first-child::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--zptd-orange);
  color: #000000;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

#MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body > .text-center:first-child h3 {
  margin: 0 0 10px !important;
  color: #ffffff !important;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

#MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body > .text-center:first-child h4 {
  margin: 0;
  color: #d6d6d6 !important;
  font-size: 17px !important;
  font-weight: 400;
  line-height: 1.5;
}

/* separatory zastąpione jedną linią nad akcjami */
#MainRegistrationWindow:has(#btnDownloadInvoice) hr.separator {
  display: none;
}

#MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body > h4 {
  margin: 32px -32px 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #9e9e9e !important;
  font-size: 14px !important;
  font-weight: 400;
}

/* akcje */
#MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body > .d-flex {
  justify-content: center !important;
  gap: 12px;
  padding: 16px 0 0 !important;
}

#MainRegistrationWindow:has(#btnDownloadInvoice) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  margin: 0 !important;
  padding: 13px 24px;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 16px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* główna akcja: przejście do konta */
#MainRegistrationWindow:has(#btnDownloadInvoice) #btnLogin {
  background: var(--zptd-orange) !important;
  border: 1px solid var(--zptd-orange) !important;
  color: #000000 !important;
  font-weight: 600;
}

/* druga akcja: faktura pro forma */
#MainRegistrationWindow:has(#btnDownloadInvoice) #btnDownloadInvoice {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  color: #ffffff !important;
}

#MainRegistrationWindow:has(#btnDownloadInvoice) .btn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

#MainRegistrationWindow:has(#btnDownloadInvoice) .btn:focus-visible {
  outline: 2px solid var(--zptd-orange) !important;
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  #MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body {
    padding: 32px 16px 20px !important;
  }

  #MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body > h4 {
    margin: 28px -16px 0;
    padding: 20px 16px 0;
  }

  #MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body > .text-center:first-child h3 {
    font-size: 23px;
  }

  #MainRegistrationWindow:has(#btnDownloadInvoice) > .card-body > .d-flex {
    flex-direction: column;
  }

  #MainRegistrationWindow:has(#btnDownloadInvoice) .btn {
    width: 100%;
    min-width: 0;
  }
}


/* ==========================================================================
   19. ROZLICZENIE UCZESTNIKA (#BillingSummaryPanel)
   Karta jak w sekcjach 10–14; kolor obszaru: czerwony (płatności),
   tak jak kafelek „Podsumowanie płatności” w panelu.
   Przycisk „Powrót do panelu” – wspólne reguły w sekcji 15.
   ========================================================================== */

body:has(#BillingSummaryPanel) {
  background-color: #000000 !important;
}

#BillingSummaryPanel {
  --accent: var(--zptd-red);
  background: #0b0b0b !important;
  color: #d6d6d6 !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-top: 4px solid var(--accent) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 40px;
}

/* nagłówek karty: sam tytuł (przycisk powrotu jest nad kartą) */
#BillingSummaryPanel > .card-header {
  display: block !important;
  background: transparent !important;
  color: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 0 !important;
  padding: 16px 20px !important;
}

#BillingSummaryPanel > .card-header .row {
  align-items: center;
  margin: 0;
}

#BillingSummaryPanel > .card-header .row > div:nth-child(2) {
  flex: 1 1 0;
  max-width: none;
  padding: 0;
  text-align: left;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

#BillingSummaryPanel > .card-header .row > div:nth-child(2) .fa,
#BillingSummaryPanel > .card-header .row > div:nth-child(2) svg {
  color: var(--accent);
}

#BillingSummaryPanel > .card-header .row > div:last-child {
  display: none;
}

#BillingSummaryPanel > .card-body {
  padding: 8px 20px 24px !important;
  background: transparent !important;
  color: #9e9e9e;
  font-size: 15px;
}

#BillingSummaryPanel hr {
  display: none !important;
}

/* --- nagłówki sekcji z ikoną w kolorze obszaru --- */
#BillingSummaryPanel h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 600;
}

#BillingSummaryPanel h4 .fa,
#BillingSummaryPanel h4 svg {
  margin: 0 !important;
  width: 20px;
  color: var(--accent);
}

/* sekcje w dolnej części: Należności, Wpłaty, Zwroty, Dane do faktury */
#BillingSummaryPanel > .card-body > h4 {
  margin: 28px -20px 8px;
  padding: 24px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

#BillingSummaryPanel > .card-body > h3 {
  margin: 8px 0 0;
  color: #d6d6d6 !important;
  font-size: 15px !important;
  font-weight: 600;
}

/* --- dwa panele u góry: Dane uczestnika i Dane do przelewu --- */
#BillingSummaryPanel > .card-body > .row:first-child {
  row-gap: 16px;
  margin-top: 12px;
}

#BillingSummaryPanel > .card-body > .row:first-child > .col-md-6 > h4 {
  margin: 0 -20px 4px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

@media (min-width: 768px) {
  #BillingSummaryPanel > .card-body > .row:first-child {
    flex-wrap: nowrap;
    gap: 16px;
    margin-left: 0;
    margin-right: 0;
  }

  #BillingSummaryPanel > .card-body > .row:first-child > .col-md-6 {
    flex: 1 1 0;
    max-width: none;
  }
}

#BillingSummaryPanel > .card-body > .row:first-child > .col-md-6 {
  padding: 0 20px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
}

/* --- wiersze: etykieta | wartość --- */
#BillingSummaryPanel .row.form-group {
  margin: 0 !important;
  padding: 11px 0;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#BillingSummaryPanel .row.form-group:last-child {
  border-bottom: 0;
}

#BillingSummaryPanel .row.form-group > .form-label {
  margin: 0;
  padding: 0 12px 0 0;
}

#BillingSummaryPanel .row.form-group > .form-label strong {
  color: #d6d6d6 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

#BillingSummaryPanel .row.form-group > div:not(.form-label) {
  padding: 0;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600;
  word-break: break-word;
}

/* sekcje dolne – stała szerokość etykiety, jak w formularzach */
@media (min-width: 768px) {
  #BillingSummaryPanel > .card-body > .row.form-group {
    flex-wrap: nowrap;
  }

  #BillingSummaryPanel > .card-body > .row.form-group > .form-label {
    flex: 0 0 240px;
    max-width: 240px;
  }

  #BillingSummaryPanel > .card-body > .row.form-group > div:not(.form-label) {
    flex: 1 1 0;
    max-width: none;
  }
}

/* stan rozliczenia: wyraźny status z kolorowym znacznikiem */
#BillingSummaryPanel .text-danger,
#BillingSummaryPanel .text-success,
#BillingSummaryPanel .text-warning {
  display: inline-block;
  padding: 2px 0 2px 12px;
  border-left: 4px solid currentColor;
  line-height: 1.4;
}

#BillingSummaryPanel .text-danger {
  color: var(--zptd-red) !important;
}

#BillingSummaryPanel .text-success {
  color: var(--zptd-orange) !important;
}

#BillingSummaryPanel .text-warning {
  color: #ffffff !important;
}

#BillingSummaryPanel .text-danger small,
#BillingSummaryPanel .text-success small,
#BillingSummaryPanel .text-warning small {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

/* numer konta: większy, równe cyfry, zaznaczany jednym kliknięciem do skopiowania */
#BillingSummaryPanel > .card-body > .row:first-child > .col-md-6:nth-child(2) > .row.form-group:nth-of-type(3) > div:not(.form-label) {
  font-size: 17px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  user-select: all;
  cursor: text;
}

/* Razem – kwota do zapłaty wyróżniona */
#BillingSummaryPanel > .card-body > .row:first-child > .col-md-6:nth-child(2) > .row.form-group:last-child {
  margin-top: -1px !important;   /* nakłada się na linię poprzedniego wiersza */
  border-top: 1px solid rgba(255, 255, 255, .35);
}

#BillingSummaryPanel > .card-body > .row:first-child > .col-md-6:nth-child(2) > .row.form-group:last-child > div:not(.form-label) {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 700;
}

/* --- mobile --- */
@media (max-width: 767.98px) {
  #BillingSummaryPanel > .card-body {
    padding: 8px 16px 20px !important;
  }

  #BillingSummaryPanel > .card-body > .row:first-child {
    margin-left: 0;
    margin-right: 0;
  }

  #BillingSummaryPanel > .card-body > .row:first-child > .col-md-6 {
    padding: 0 16px 8px;
  }

  #BillingSummaryPanel > .card-body > .row:first-child > .col-md-6 > h4 {
    margin: 0 -16px 4px;
    padding: 14px 16px 10px;
  }

  #BillingSummaryPanel > .card-body > h4 {
    margin: 24px -16px 8px;
    padding: 20px 16px 0;
  }

  #BillingSummaryPanel .row.form-group > .form-label {
    padding-bottom: 2px;
  }

  #BillingSummaryPanel .row.form-group > .form-label strong {
    font-size: 13px !important;
  }
}