.pm-beds24-widget {
    --pm-beds24-accent: #a82c86;
    --pm-beds24-accent-dark: #852269;
    --pm-beds24-border: #d8dce2;
    --pm-beds24-muted: #747b86;
    --pm-beds24-unavailable: #b42318;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--pm-beds24-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(26, 32, 44, .08);
    color: #1a202c;
}

.pm-beds24-widget *,
.pm-beds24-widget *::before,
.pm-beds24-widget *::after {
    box-sizing: border-box;
}

.pm-beds24-widget__heading {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.pm-beds24-widget__heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.pm-beds24-widget__heading p {
    margin: .2rem 0 0;
    color: var(--pm-beds24-muted);
    font-size: .92rem;
}

.pm-beds24-widget__updated {
    color: var(--pm-beds24-muted);
    font-size: .75rem;
    text-align: right;
}

.pm-beds24-widget__selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 480px;
    margin: 0 auto 1.25rem;
    border: 1px solid #aeb4bd;
    border-radius: 10px;
    background: #f7f8fa;
    overflow: visible;
}

.pm-beds24-date-field {
    min-height: 62px;
    padding: .6rem 1rem;
    border: 0;
    border-radius: 0;
    background: #f7f8fa;
    color: #1a202c;
    text-align: left;
    box-shadow: none;
}

.pm-beds24-date-field:first-child {
    border-radius: 9px 0 0 9px;
}

.pm-beds24-date-field:last-child {
    border-radius: 0 9px 9px 0;
}

.pm-beds24-date-field:hover,
.pm-beds24-date-field:focus {
    background: #f1f2f5;
    color: #1a202c;
    box-shadow: none;
}

.pm-beds24-date-field.is-active {
    position: relative;
    z-index: 1;
    border-radius: 9px;
    background: #fff;
    box-shadow: inset 0 0 0 2px #1a202c;
}

.pm-beds24-date-field span,
.pm-beds24-date-field strong {
    display: block;
}

.pm-beds24-date-field span {
    margin-bottom: .15rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.pm-beds24-date-field strong {
    font-size: .85rem;
    font-weight: 500;
}

.pm-beds24-widget__calendar-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: -2.5rem;
    pointer-events: none;
}

.pm-beds24-nav {
    position: relative;
    z-index: 2;
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1a202c;
    font-size: 1.15rem;
    pointer-events: auto;
    box-shadow: none;
}

.pm-beds24-nav:hover,
.pm-beds24-nav:focus {
    background: #f0f1f3;
    color: #1a202c;
}

.pm-beds24-nav:disabled {
    opacity: .25;
    cursor: default;
}

.pm-beds24-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 3.5rem);
}

.pm-beds24-month h3 {
    min-height: 2.25rem;
    margin: 0 0 .75rem;
    font-size: 1rem;
    line-height: 2.25rem;
    text-align: center;
}

.pm-beds24-weekdays,
.pm-beds24-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pm-beds24-weekdays span {
    padding: .35rem 0;
    color: var(--pm-beds24-muted);
    font-size: .7rem;
    font-weight: 600;
    text-align: center;
}

.pm-beds24-day {
    position: relative;
    display: grid;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1a202c;
    font-size: .84rem;
    line-height: 1;
    box-shadow: none;
}

.pm-beds24-day.is-empty {
    display: block;
}

.pm-beds24-day:disabled {
    opacity: 1;
    box-shadow: none;
}

.pm-beds24-day.is-available:hover,
.pm-beds24-day.is-available:focus {
    background: #f3e8f0;
    color: #1a202c;
}

.pm-beds24-day.is-past {
    color: #c5c8ce;
    cursor: not-allowed;
}

.pm-beds24-day.is-invalid-checkout {
    color: #c5c8ce;
    cursor: not-allowed;
}

.pm-beds24-day.is-unavailable {
    color: var(--pm-beds24-unavailable);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    cursor: not-allowed;
}

.pm-beds24-day.is-in-range {
    border-radius: 0;
    background: #f7eaf3;
}

.pm-beds24-day.is-selected {
    z-index: 1;
    background: var(--pm-beds24-accent);
    color: #fff;
    text-decoration: none;
}

.pm-beds24-widget__footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eceef1;
}

.pm-beds24-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    color: var(--pm-beds24-muted);
    font-size: .75rem;
}

.pm-beds24-legend span {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
}

.pm-beds24-legend i {
    display: inline-block;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #9ba1aa;
}

.pm-beds24-legend i.is-unavailable {
    position: relative;
    border-color: var(--pm-beds24-unavailable);
}

.pm-beds24-legend i.is-unavailable::after {
    position: absolute;
    top: 50%;
    left: -.1rem;
    width: .8rem;
    height: 1px;
    background: var(--pm-beds24-unavailable);
    content: '';
    transform: rotate(-45deg);
}

.pm-beds24-clear {
    padding: .25rem;
    border: 0;
    background: transparent;
    color: #4a5568;
    font-size: .78rem;
    text-decoration: underline;
    box-shadow: none;
}

.pm-beds24-clear:hover,
.pm-beds24-clear:focus {
    background: transparent;
    color: var(--pm-beds24-accent);
}

.pm-beds24-widget__status {
    min-height: 1.5em;
    margin: .75rem 0;
    color: var(--pm-beds24-muted);
    font-size: .82rem;
    text-align: center;
}

.pm-beds24-book-button,
.pm-beds24-request-button {
    display: block;
    width: 100%;
    padding: .8rem 1.2rem;
    border-radius: 5px;
    background: var(--pm-beds24-accent, #a82c86);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.pm-beds24-book-button:hover,
.pm-beds24-book-button:focus,
.pm-beds24-request-button:hover,
.pm-beds24-request-button:focus {
    background: var(--pm-beds24-accent-dark, #852269);
    color: #fff;
}

.pm-beds24-book-button.is-disabled {
    background: #c9cbd0;
    cursor: not-allowed;
    pointer-events: none;
}

.pm-beds24-widget__notice {
    padding: 1rem;
    border-left: 4px solid #dba617;
    background: #fff8df;
}

.pm-beds24-widget__admin-note {
    color: var(--pm-beds24-muted);
    font-size: .82rem;
}

.pm-beds24-request {
    max-width: 420px;
    margin: 1rem auto;
}

@media (max-width: 767px) {
    .pm-beds24-widget__heading {
        display: block;
    }

    .pm-beds24-widget__updated {
        display: block;
        margin-top: .5rem;
        text-align: left;
    }

    .pm-beds24-months {
        grid-template-columns: 1fr;
    }

    .pm-beds24-widget__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .pm-beds24-clear {
        align-self: flex-end;
    }
}
