.tgbc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 30px auto;
    font-family: inherit;
}

.tgbc-calendar-box,
.tgbc-day-panel {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 22px;
}

.tgbc-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.tgbc-current-month {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #222222;
}

.tgbc-nav-button {
    border: none;
    background: #222222;
    color: #ffffff;
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s ease;
}

.tgbc-nav-button:hover {
    background: #000000;
    transform: translateY(-1px);
}

.tgbc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.tgbc-weekdays div {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #777777;
}

.tgbc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.tgbc-day {
    min-height: 58px;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    background: #fafafa;
    color: #222222;
    cursor: pointer;
    padding: 8px;
    font-size: 15px;
    position: relative;
    transition: 0.2s ease;
}

.tgbc-day:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

.tgbc-day.is-empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.tgbc-day.is-empty:hover {
    transform: none;
}

.tgbc-day.has-training {
    background: #fff4f4;
    border-color: #ffb4b4;
}

.tgbc-day.has-training::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 8px;
    height: 8px;
    background: #d94d4d;
    border-radius: 50%;
}

.tgbc-day.is-selected {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
}

.tgbc-day.is-selected.has-training::after {
    background: #ffffff;
}

.tgbc-day-number {
    font-weight: 700;
}

.tgbc-day-panel h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: #222222;
}

.tgbc-session-card {
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.tgbc-session-card h4 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #222222;
}

.tgbc-session-meta {
    margin: 0 0 10px;
    color: #555555;
    font-size: 14px;
}

.tgbc-session-description {
    margin: 0 0 14px;
    color: #333333;
    line-height: 1.5;
}

.tgbc-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tgbc-status-zaplanowany {
    background: #e9f8ee;
    color: #237a3b;
}

.tgbc-status-odwolana {
    background: #fff0f0;
    color: #b42323;
}

.tgbc-status-zakonczony {
    background: #f0f0f0;
    color: #666666;
}

.tgbc-places {
    font-weight: 700;
    margin-bottom: 14px;
    color: #222222;
}

.tgbc-booking-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.tgbc-booking-form input[type="text"] {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    box-sizing: border-box;
}

.tgbc-submit-button {
    border: none;
    background: #d94d4d;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s ease;
}

.tgbc-submit-button:hover {
    background: #bd3636;
    transform: translateY(-1px);
}

.tgbc-submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.tgbc-message {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.tgbc-message-success {
    background: #e9f8ee;
    color: #237a3b;
}

.tgbc-message-error {
    background: #fff0f0;
    color: #b42323;
}

.tgbc-muted {
    color: #777777;
    margin: 0;
}

.tgbc-unavailable {
    margin: 10px 0 0;
    font-weight: 700;
    color: #777777;
}

.tgbc-loading {
    color: #777777;
    padding: 12px 0;
}

.tgbc-privacy-info {
    margin: 2px 0 4px;
    font-size: 12px;
    line-height: 1.45;
    color: #666666;
}

.tgbc-privacy-info a {
    color: #222222;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tgbc-privacy-info a:hover {
    color: #d94d4d;
}

@media (max-width: 800px) {
    .tgbc-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 20px auto;
    }

    .tgbc-calendar-box,
    .tgbc-day-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .tgbc-calendar-header {
        gap: 8px;
    }

    .tgbc-current-month {
        font-size: 17px;
    }

    .tgbc-nav-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .tgbc-calendar-grid {
        gap: 6px;
    }

    .tgbc-weekdays {
        gap: 6px;
    }

    .tgbc-day {
        min-height: 46px;
        border-radius: 12px;
        padding: 6px;
        font-size: 14px;
    }

    .tgbc-session-card {
        padding: 15px;
    }

    .tgbc-submit-button {
        width: 100%;
        font-size: 17px;
        padding: 14px 18px;
    }
}

@media (max-width: 420px) {
    .tgbc-weekdays div {
        font-size: 11px;
    }

    .tgbc-day {
        min-height: 42px;
        font-size: 13px;
    }

    .tgbc-calendar-header {
        flex-wrap: wrap;
    }

    .tgbc-current-month {
        order: -1;
        width: 100%;
        margin-bottom: 6px;
    }

    .tgbc-nav-button {
        flex: 1;
    }
}

.wp-block-post-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Typography tuning */

.tgbc-session-card h4 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 6px;
}

.tgbc-session-meta {
    font-size: 13px;
    color: #777777;
    margin-bottom: 12px;
}

.tgbc-session-description {
    font-size: 16px;
    line-height: 1.45;
    color: #333333;
    margin-bottom: 14px;
}

.tgbc-status {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 9px;
    margin-bottom: 12px;
}

.tgbc-places {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
}

.tgbc-unavailable {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    color: #666666;
}

.tgbc-privacy-info {
    font-size: 11px;
    line-height: 1.4;
}

.tgbc-day-panel h3 {
    font-size: 21px;
    font-weight: 500;
}

/* Polityka prywatności — szersza treść i mniejszy tekst */
body.page-id-16 {
    --wp--style--global--content-size: 1100px !important;
    --wp--style--global--wide-size: 1200px !important;
}

/* Główny kontener strony */
body.page-id-16 .entry-content,
body.page-id-16 .wp-block-post-content,
body.page-id-16 main,
body.page-id-16 .wp-site-blocks {
    max-width: 1100px !important;
}

/* Wszystkie bloki wewnątrz treści */
body.page-id-16 .is-layout-constrained > *,
body.page-id-16 .wp-block-post-content > * {
    max-width: 1100px !important;
}

/* Nagłówek główny */
body.page-id-16 h1 {
    font-size: 36px !important;
    line-height: 1.15 !important;
    margin-bottom: 28px !important;
}

/* Nagłówki sekcji */
body.page-id-16 h2 {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-top: 34px !important;
    margin-bottom: 14px !important;
}

/* Tekst */
body.page-id-16 p,
body.page-id-16 li {
    font-size: 16px !important;
    line-height: 1.55 !important;
}

/* Listy */
body.page-id-16 ul,
body.page-id-16 ol {
    font-size: 16px !important;
    line-height: 1.55 !important;
    padding-left: 24px !important;
}

body.page-id-16 h1.wp-block-post-title {
    display: none !important;
}

.tgbc-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
.tgbc-day.is-today {
    border-color: #222222;
    box-shadow: inset 0 0 0 1px #222222;
}

.tgbc-day.is-today.is-selected {
    background: #222222;
    color: #ffffff;
}
.tgbc-muted {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    line-height: 1.3;
}
body.page-id-7 {
    background-image: url("https://zapisytrening.pl/wp-content/uploads/2026/04/magnific_edit-img1-edit-existing-i_2885481166-1-scaled.webp") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}
body.page-id-7 main.wp-block-group {
    max-width: 1100px;
    margin: 80px auto 60px;
    padding: 36px;

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(20px);

    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.16);
}
@media (max-width: 800px) {
    body.page-id-7 main.wp-block-group {
        max-width: calc(100% - 24px);
        margin: 24px auto;
        padding: 18px 12px;
        border-radius: 18px;
    }

    body.page-id-7 .wp-block-post-title {
        font-size: 34px !important;
        line-height: 1.15 !important;
        margin-bottom: 22px !important;
    }

    body.page-id-7 .tgbc-wrapper {
        margin: 0 auto;
        padding: 0;
        background: transparent !important;
        box-shadow: none !important;
    }
}
body.page-id-7 .is-layout-constrained {
    padding-top: 30px !important;
    padding-bottom: 20px !important;
}
@media (max-width: 420px) {
    .tgbc-day.has-training::after {
        width: 6px;
        height: 6px;
        right: 6px;
        bottom: 5px;
    }
}