.firebook-calendar-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: inherit;
    color: inherit;
}

.firebook-calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.firebook-calendar-views {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.firebook-month-view {
    flex: 1;
    min-width: 300px;
}

.firebook-month-view h3 {
    text-align: center;
    margin-bottom: 10px;
}

.firebook-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #ddd;
}

.firebook-day-header {
    text-align: center;
    font-weight: bold;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    background: #f4f4f4;
}

.firebook-day {
    aspect-ratio: 1/1;
    border: 0.5px solid #eee;
    position: relative;
    cursor: default;
    overflow: hidden;
}

.firebook-day.other-month {
    background: #fafafa;
    color: #ccc;
}

.firebook-day-number {
    position: absolute;
    top: 2px;
    left: 4px;
    z-index: 2;
    font-size: 0.8em;
}

/* Half-day fills */
.firebook-asset-fill {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: var(--wp--preset--color--primary, #0073aa);
    opacity: 0.7;
    z-index: 1;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.firebook-asset-fill.start {
    top: 50%;
    height: 50%;
}

.firebook-asset-fill.end {
    top: 0;
    height: 50%;
}

.firebook-asset-fill.full {
    top: 0;
    height: 100%;
}

.firebook-asset-fill.start.end {
    top: 0;
    height: 100%;
}

.firebook-asset-fill:hover,
.firebook-asset-fill.highlight {
    background-color: var(--wp--preset--color--primary, #0073aa);
    opacity: 1;
}

/* Booking Modal adjustment */
#firebook-booking-modal {
    font-family: inherit;
}

#firebook-booking-modal input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#firebook-booking-modal .button {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

#firebook-booking-modal .button-primary {
    background-color: var(--wp--preset--color--primary, #0073aa);
    color: #fff;
}

#firebook-booking-modal .button-primary:hover {
    background-color: var(--wp--preset--color--primary, #0073aa);
    filter: brightness(0.9);
}

#firebook-booking-modal .button:not(.button-primary) {
    background-color: #eee;
    color: #333;
    border-color: #ccc;
}

#firebook-booking-modal .button:not(.button-primary):hover {
    background-color: #e0e0e0;
}

#firebook-booking-modal .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

#firebook-form-message {
    margin-top: 15px;
    font-size: 0.9em;
}

@media (max-width: 650px) {
    .firebook-calendar-views {
        flex-direction: column;
    }
}
