.pw-booking {
    max-width: 720px;
    margin: 2rem auto;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,.06);
}
.pw-booking * { box-sizing: border-box; }
.pw-booking h2, .pw-booking h3 { margin-top: 0; }
.pw-lead { margin-bottom: 1.5rem; }
.pw-step { margin: 1.35rem 0; }
.pw-step > label, .pw-label, .pw-form > label:not(.pw-consent) {
    display: block;
    margin-bottom: .45rem;
    font-weight: 700;
}
.pw-booking input[type="date"],
.pw-booking input[type="text"],
.pw-booking input[type="email"],
.pw-booking input[type="tel"],
.pw-booking select {
    width: 100%;
    min-height: 48px;
    padding: .7rem .85rem;
    border: 1px solid #b8b8b8;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}
.pw-form > input, .pw-form > select { margin-bottom: 1rem; }
.pw-times { display: flex; flex-wrap: wrap; gap: .65rem; }
.pw-time {
    min-width: 78px;
    padding: .7rem 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.pw-time:hover, .pw-time:focus-visible, .pw-time.is-selected {
    background: #1d2327;
    color: #fff;
}
.pw-form {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,.12);
}
.pw-consent { display: flex; align-items: flex-start; gap: .65rem; margin: .5rem 0 1.25rem; }
.pw-consent input { margin-top: .25rem; flex: 0 0 auto; }
.pw-submit {
    width: 100%;
    min-height: 50px;
    padding: .8rem 1.2rem;
    border: 0;
    border-radius: 10px;
    background: #1d2327;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.pw-submit:disabled { opacity: .6; cursor: wait; }
.pw-message { margin: .8rem 0 0; font-weight: 600; }
.pw-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
    .pw-booking {
        width: 100%;
        margin: 1rem 0;
        padding: 1.1rem;
        border-radius: 12px;
    }
    .pw-step {
        display: block !important;
        width: 100%;
    }
    .pw-step > label,
    .pw-label {
        display: block !important;
        width: 100%;
        margin-bottom: .55rem;
    }
    .pw-booking input[type="date"],
    .pw-booking input[type="text"],
    .pw-booking input[type="email"],
    .pw-booking input[type="tel"],
    .pw-booking select {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* iOS Safari potrafi nadawać polu date własną szerokość minimalną.
       -webkit-fill-available trzyma natywny picker, ale ogranicza pole do wnętrza karty. */
    .pw-booking input[type="date"] {
        inline-size: -webkit-fill-available !important;
        max-inline-size: 100% !important;
        min-inline-size: 0 !important;
    }
    .pw-time { flex: 1 1 28%; }
}


.pw-success {
    text-align: center;
    padding: .35rem 0 .15rem;
    outline: none;
}
.pw-success-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}
.pw-success h2 {
    margin-bottom: .8rem;
}
.pw-success-slot {
    margin: 0 0 1rem;
    font-size: 1.1em;
    font-weight: 700;
}
.pw-success-note {
    margin-bottom: 1.4rem;
    font-size: .95em;
    opacity: .78;
}
.pw-reset {
    padding: .65rem 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .18em;
    cursor: pointer;
}
.pw-reset:hover,
.pw-reset:focus-visible {
    text-decoration-thickness: 2px;
}

/* Availability calendar — 0.2.0 */
.pw-date-step { margin-bottom: 1.5rem; }
.pw-nearest {
    margin: .15rem 0 .45rem;
    font-weight: 600;
}
.pw-calendar-status {
    margin: .15rem 0 .9rem;
    font-size: .95em;
    opacity: .82;
}
.pw-calendar {
    width: 100%;
    padding: .9rem;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 14px;
    background: #fafafa;
}
.pw-calendar-head {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: .5rem;
    margin-bottom: .7rem;
}
.pw-calendar-title {
    text-align: center;
    font-weight: 700;
    text-transform: capitalize;
}
.pw-calendar-nav {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(0,0,0,.16);
    border-radius: 50%;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}
.pw-calendar-nav:hover,
.pw-calendar-nav:focus-visible {
    background: #1d2327;
    color: #fff;
}
.pw-calendar-nav:disabled {
    opacity: .28;
    cursor: default;
    background: #fff;
    color: inherit;
}
.pw-calendar-weekdays,
.pw-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .35rem;
}
.pw-calendar-weekdays {
    margin-bottom: .35rem;
    font-size: .82em;
    font-weight: 700;
    text-align: center;
    opacity: .65;
}
.pw-calendar-empty {
    aspect-ratio: 1;
}
.pw-calendar-day {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: default;
}
.pw-calendar-day:not(.is-available) {
    opacity: .34;
}
.pw-calendar-day.is-available {
    border-color: #69747d;
    background: #eef1f3;
    font-weight: 700;
    cursor: pointer;
}
.pw-calendar-day.is-available:hover,
.pw-calendar-day.is-available:focus-visible {
    outline: 2px solid #1d2327;
    outline-offset: 1px;
}
.pw-calendar-day.is-selected {
    border-color: #1d2327;
    background: #1d2327;
    color: #fff;
}
.pw-calendar-day-dot {
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    transform: translateX(-50%);
}
.pw-calendar-legend {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: .8rem 0 0;
    font-size: .84em;
    opacity: .76;
}
.pw-calendar-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #69747d;
}

@media (max-width: 520px) {
    .pw-calendar {
        padding: .7rem;
        border-radius: 12px;
    }
    .pw-calendar-head {
        grid-template-columns: 40px 1fr 40px;
        gap: .3rem;
    }
    .pw-calendar-nav {
        width: 40px;
        height: 40px;
    }
    .pw-calendar-weekdays,
    .pw-calendar-grid {
        gap: .22rem;
    }
    .pw-calendar-day {
        border-radius: 9px;
        font-size: .94em;
    }
    .pw-calendar-day-dot {
        bottom: 3px;
        width: 4px;
        height: 4px;
    }
    .pw-nearest,
    .pw-calendar-status,
    .pw-calendar-legend {
        font-size: .9em;
    }
}
