/* ============================================================
   DST Public Zapisy – styles
   ============================================================ */

/* ── Wrapper ── */
#dst-public-zapisy-wrapper {
    font-family: inherit;
    margin: 0 auto;
}

/* ── Filtry ── */
.dst-public-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(115deg, #DDF3F8 0%, #DEF3C7 100%);
    border: 1px solid #c5e8c2;
    border-radius: 8px;
}

.dst-public-filter-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 180px;
    min-width: 150px;
}

.dst-public-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    margin-bottom: 0px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.dst-public-filter-group select {
    padding: 8px 10px;
    border: 1px solid #d0d3de;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color .15s;
}

.dst-public-filter-group select:focus {
    outline: none;
    border-color: #85C440;
    box-shadow: 0 0 0 3px rgba(133,196,64,.2);
}

/* ── Lista (container) ── */
#dst-public-lista-wrapper {
    min-height: 80px;
}

.dst-popup-videos {
    margin-top: 20px;
}

.dst-public-video-link {
    padding: 0;
    color: #4f8f12;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dst-public-video-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.dst-public-video-tab {
    padding: 6px 12px;
    border: 1px solid #85c440;
    border-radius: 5px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.dst-public-video-tab.is-active {
    background: #85c440;
    color: #fff;
}

.dst-public-video-iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.dst-public-loading,
.dst-public-empty {
  color: #000;
  font-style: normal;
    padding: 16px 0;
}

/* ── Tabela ── */
.dst-public-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
      border-radius: 10px;
  border: 1px solid #c5e8c2;
}

.dst-public-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dst-public-table thead tr {
    background: #edf7e8;
}

.dst-public-table th {
    text-align: left;
    padding: 8px 10px !important;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: wrap;
    line-height: 1.2;
    border-bottom: 2px solid #c5e0b8;
}

.dst-public-table td {
    padding: 8px 10px !important;
    line-height: 1.2;
    border-bottom: 1px solid #eceef5;
    vertical-align: middle;
}

.dst-public-table tbody tr:hover {
    background: #f9fafd;
}

.dst-public-table .col-photo {
    width: 64px;
}

.dst-zajecia-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.dst-zajecia-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: #e8eaf0;
}

.dst-public-table .col-placowka small {
    color: #777;
}

.dst-public-table .col-akcja {
    text-align: right;
    white-space: nowrap;
}

/* ── Przycisk "Szczegóły" ── */
.dst-public-btn-details {
    padding: 7px 16px;
    background: #85C440;
    color: #222;
    border: 2px solid rgba(255,255,255,.12);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s;
    box-shadow: 0px 0px 0px 1px rgba(10,13,18,.18) inset, 0px -2px 0px 0px rgba(10,13,18,.05) inset, 0px 1px 2px 0px rgba(10,13,18,.05);
}

.dst-public-btn-details:hover {
    filter: brightness(0.93);
}

/* ── Popup overlay ── */
#dst-public-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 32px 16px;
    animation: dstFadeIn .18s ease;
}

@keyframes dstFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#dst-public-popup-box {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 680px;
    position: relative;
    padding: 36px 32px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    animation: dstSlideUp .2s ease;
}

@keyframes dstSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

#dst-public-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
}

#dst-public-popup-close:hover {
    color: #333;
}

/* ── Popup: szczegóły ── */
.dst-popup-nazwa {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a2e;
    padding-right: 30px;
}

.dst-popup-photo {
    margin-bottom: 20px;
}

.dst-popup-photo img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.dst-popup-meta {
    background: linear-gradient(115deg, #f0fbfd 0%, #f2fbe8 100%);
    border: 1px solid #d6efc8;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.dst-popup-meta-row {
    display: flex;
    gap: 12px;
    padding: 5px 0;
    font-size: 14px;
    border-bottom: 1px solid #eceef5;
}

.dst-popup-meta-row:last-child {
    border-bottom: none;
}

.dst-popup-meta-label {
    color: #535d4d;
    min-width: 130px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding-top: 1px;
}

.dst-popup-section {
    margin-bottom: 20px;
}

.dst-popup-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #535d4d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dst-popup-dates {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 20px;
    font-size: 13px;
    color: #333;
}

.dst-popup-dates li {
    padding: 2px 0;
    line-height: 1;
    break-inside: avoid;
}

.dst-popup-dates-cancelled {
    color: #c00;
    text-decoration: line-through;
}

.dst-popup-opis-tresc {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.dst-popup-opis-tresc p {
    margin: 0 0 10px;
}

/* ── CTA ── */
.dst-popup-cta {
    margin-bottom: 0;
}

.dst-btn-zapis,
.dst-btn-rezerwowa {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.dst-btn-zapis {
    background: #85C440;
    color: #222;
}

.dst-btn-zapis:hover {
    filter: brightness(0.93);
    transform: translateY(-1px);
}

.dst-btn-rezerwowa {
    background: #e67e22;
    color: #fff;
}

.dst-btn-rezerwowa:hover {
    background: #d35400;
    transform: translateY(-1px);
}

/* ── Formularz w popupie ── */
.dst-popup-form-wrapper {
    border-top: 2px solid #e8eaf0;
    padding-top: 24px;
    margin-top: 4px;
}

.dst-public-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dst-form-subheading {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 10px 0 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eaf0;
    letter-spacing: 0;
}

.dst-public-form .dst-form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.dst-public-form .dst-form-row label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 0;
    line-height: 1;
}

.dst-public-form .dst-form-row input[type="text"],
.dst-public-form .dst-form-row input[type="email"],
.dst-public-form .dst-form-row input[type="tel"],
.dst-public-form .dst-form-row input[type="date"],
.dst-public-form .dst-form-row input[type="password"],
.dst-public-form .dst-form-row select,
.dst-public-form .dst-form-row textarea {
    padding: 9px 12px;
    border: 1px solid #d0d3de;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}

.dst-public-form .dst-form-row input:focus,
.dst-public-form .dst-form-row select:focus,
.dst-public-form .dst-form-row textarea:focus {
    outline: none;
    border-color: #85C440;
    box-shadow: 0 0 0 3px rgba(133,196,64,.2);
}

.dst-adres-row {
    display: flex;
    gap: 8px;
}

.dst-adres-row input {
    flex: 1;
}

/* ── Split row (2 kolumny) ── */
.dst-form-row--split {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.dst-form-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
}

.dst-form-half label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.dst-form-half input {
    padding: 9px 12px;
    border: 1px solid #d0d3de;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}

.dst-form-half input:focus {
    outline: none;
    border-color: #85C440;
    box-shadow: 0 0 0 3px rgba(133,196,64,.2);
}

/* ── Opis pod sekcją ── */
.dst-form-description {
    font-size: 14px;
    color: #666;
    margin: -6px 0 12px;
    line-height: 1.5;
}

/* ── "Zaznacz wszystkie zgody" ── */
.dst-consent-row-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
}

.dst-form-help {
    font-size: 12px;
    color: #888;
}

.req {
    color: #e00;
}

/* ── Osoby upoważnione ── */
.dst-upow-osoba {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e0e0e0;
}

.dst-upow-osoba:last-child {
    border-bottom: none;
    margin-bottom: 8px;
}

.dst-upow-dodaj {
    font-size: 13px;
    color: #5a9e28;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.dst-upow-dodaj:hover {
    text-decoration: underline;
}

/* ── Zgody ── */
.dst-consent-row label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #555 !important;
}

.dst-consent-row label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.dst-consent-row a {
    color: #5a9e28;
    text-decoration: underline;
}

.dst-consent-row a:hover {
    color: #3d7018;
}

/* ── Błędy formularza ── */
.dst-form-errors {
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
    color: #c00;
    font-size: 13px;
}

.dst-form-errors ul {
    margin: 0;
    padding-left: 16px;
}

/* ── Alert e-mail już istnieje ── */
.dst-email-exists-alert {
    background: #fff8e1;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}

.dst-email-exists-alert p {
    margin: 0;
}

/* ── Przycisk submit ── */
.dst-btn-submit {
    padding: 13px 28px;
    background: #85C440;
    color: #222;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: filter .15s;
    box-shadow: 0px 1px 2px rgba(10,13,18,.08);
}


.dst-btn-submit:hover {
    filter: brightness(0.93);
}


.dst-btn-skip-step2.button {
  background: transparent;
  border: 0;
  text-align: center;
  margin: 0 auto;
  font-weight: 500;
  font-size: 16px;
  margin-top: 20px;
  transition: all .2s linear;
  padding: 0.6rem;
  width: 100% !important;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}

.dst-btn-skip-step2.button:hover {
  background: #f9f9f9;
  border-color: #eee;
}


.dst-btn-submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Animacja pulse (dla formularza logowania gdy e-mail istnieje) ── */
.dst-pulse-login {
    animation: dstPulse 1s ease 2;
}

@keyframes dstPulse {
    0%   { box-shadow: 0 0 0 0 rgba(231, 76, 60, .7); }
    40%  { box-shadow: 0 0 0 12px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* ── Responsive ── */
@media (max-width: 700px) {

    /* Filtry: siatka 2×2 */
    .dst-public-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
    }

    .dst-public-filter-group label {
        font-size: 11px;
    }

    .dst-public-filter-group select {
        padding: 5px 8px;
        font-size: 13px;
    }

    /* Tabela → układ kart (bez poziomego scroll) */
    .dst-public-table-scroll {
        overflow-x: visible;
    }

    .dst-public-table,
    .dst-public-table tbody {
        display: block;
    }

    .dst-public-table thead {
        display: none;
    }

    .dst-public-table tbody tr {
        display: grid;
        grid-template-columns: 44px 1fr;
        grid-template-areas:
            "photo placowka"
            "photo nazwa"
            "photo termin"
            "photo miejsca"
            "akcja akcja";
        column-gap: 8px;
        row-gap: 1px;
        align-items: start;
        padding: 10px 4px;
        border-bottom: 1px solid #e8eaf0;
        background: none;
    }

    .dst-public-table td {
        display: block;
        padding: 0;
        border: none;
    }

    .dst-public-table td.col-photo {
        grid-area: photo;
        align-self: start;
    }

    .dst-zajecia-thumb,
    .dst-zajecia-thumb-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 5px;
    }

    .dst-public-table td.col-nazwa {
        grid-area: nazwa;
        font-size: 12px;
        font-weight: 700;
        color: #1a1a2e;
        line-height: 1.2;
    }

    .dst-public-table td.col-placowka {
        grid-area: placowka;
        font-size: 16px;
        color: #555;
        line-height: 1.3;
    }

    .dst-public-table td.col-placowka strong {
        font-weight: 600;
    }

    .dst-public-table td.col-placowka small {
        font-size: 11px;
        color: #888;
    }

    .dst-public-table td.col-termin {
        grid-area: termin;
        font-size: 12px;
        color: #444;
        line-height: 1.3;
    }

    .dst-public-table td.col-termin::before {
        content: "Termin: ";
        font-weight: 600;
        color: #666;
    }

    .dst-public-table td.col-miejsca {
        grid-area: miejsca;
        font-size: 11px;
        color: #777;
        line-height: 1.3;
    }

    .dst-public-table td.col-miejsca::before {
        content: "Miejsca: ";
        font-weight: 600;
        color: #888;
    }

    .dst-public-table td.col-min {
        display: none;
    }

    .dst-public-table td.col-akcja {
        grid-area: akcja;
        padding-top: 7px;
        text-align: left;
        white-space: nowrap;
    }

    .dst-public-table td.col-akcja .dst-public-btn-details {
        padding: 6px 14px;
        font-size: 12px;
    }

    #dst-public-popup-box {
        padding: 24px 16px 20px;
    }

    .dst-popup-dates {
        columns: 1;
    }

    .dst-adres-row {
        flex-direction: column;
    }

    .dst-adres-row input[style] {
        width: 100% !important;
    }

    .dst-form-row--split {
        flex-direction: column;
        gap: 0;
    }


.dst-public-filter-group {
  flex: 0 0 auto;
  min-width: auto;
}

  .dst-public-filters {
    grid-template-columns: 1fr;
  }
  .dst-public-table td.col-akcja {
    padding-left: 55px !important;
  }


.dst-public-filter-group label {
  margin-bottom: 0;
}


.entry-content tr td {
  border-top: 0;
  padding: 2px 4px !important;
}

.dst-popup-meta {
  padding: 10px;
}

.dst-popup-meta-label {
  line-height: 1;
}

.dst-popup-nazwa {
  font-size: 18px;
}

  .dst-public-table td.col-placowka {
    color: #000;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }
  .dst-public-table td.col-miejsca {
    font-size: 12px;
    color: #000;
  }
  .dst-public-table td.col-termin::before {
    color: #000;
  }
  .dst-public-table td.col-miejsca::before {
    color: #000;
  }



.dst-popup-meta-value {
  line-height: 1.2;
}


#left-area ul, .entry-content ul, .et-l--body ul, .et-l--footer ul, .et-l--header ul {
  padding: 0 0 5px 1em;
}


.dst-login-wrapper {
  max-width: 100%;
  margin: 0 0;
}



}
