.calendar-picker {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.calendar-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .35rem;
    padding: 0 .5rem .5rem .5rem;
}

.day-labels div {
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    color: var(--gray-600);
}

.calendar-day {
    padding: .3rem;
    text-align: center;
    border-radius: 6px;
    background: var(--gray-200);
    cursor: pointer;
    user-select: none;

    &.inactive {
        opacity: .25 !important;
        cursor: default;
    }

    &.different-month {
        opacity: .5;
        background: var(--gray-200);
    }

    &.enabled {
        background: var(--gray-300);
    }

    &.selected {
        background: var(--primary);
        color: var(--white);
    }

    &.range {
        background: var(--primary-light);
        color: var(--white);
    }
}

.selected-dates {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .75rem;
}

.date-pill {
    background: var(--primary-light);
    color: var(--white);
    padding: .25rem .6rem;
    border-radius: 12px;
    font-size: .85rem;
}

.reply-selection-types {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-bottom: 1rem;
}

/* larger screen adjustments */
@media (min-width: 768px) {
    .reply-selection-types {
        padding-right: 0.5rem;
    }
}

/* Style the selected date range input */
.create-selection-types {
    display: flex;
    flex-wrap: wrap;
    border-radius: 0.5rem;
    box-sizing: border-box;
    padding: 0.25rem;
    font-size: 14px;
    width: 100%;
    gap: .5rem;

    label {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 1rem;
        cursor: pointer;
        border-radius: 0.5rem;
        transition: background-color .15s ease-in-out, color .15s ease-in-out;
        position: relative;
        /* enable stacking context */
        z-index: 0;

        input[type="radio"] {
            display: none;
        }

        .name {
            text-align: center;
            width: 100%;
            font-weight: 500;
            padding: 0.5rem 0.75rem;
            position: relative;
            z-index: 1;
            /* above highlight background */
        }

        /* Entire selection turns blue */
        input[type="radio"]:checked+.name {
            font-weight: 600;
            color: var(--white);
        }

        /* Blue background for the label parent */
        input[type="radio"]:checked+.name::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 0.5rem;
            background-color: var(--primary);
            z-index: -1;
        }
    }
}

/* Buttons will be to the right, next to each other with some spacing. On smaller screens they will be centred. */
.reply-selection-types {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;

    @media (max-width: 767px) {
        justify-content: center;
    }
}

.invitee-selection-type {
    display: none;
}