/* “Add to calendar” button ([jits_calendar_button], block, Elementor widget).
   The toggle is a JITS button (button.css); the menu opens under it. */

.jits-calendar {
    position: relative;
    display: inline-block;
    width: var(--jits-button-width, auto);
    text-align: left;
}

.jits-calendar > summary {
    list-style: none;
}

.jits-calendar > summary::-webkit-details-marker {
    display: none;
}

.jits-button__chevron {
    width: 1em;
    height: 1em;
    flex: none;
    transition: transform 200ms ease;
}

.jits-calendar[open] .jits-button__chevron {
    transform: rotate(180deg);
}

.jits-calendar__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 30;
    min-width: max(100%, 16rem);
    margin: 0;
    padding: 0.5rem 0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 0.75rem 2rem rgba(1, 15, 44, 0.2);
    list-style: none;
}

.jits-calendar__menu li {
    margin: 0;
}

.jits-calendar__option {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--footer-bg, #0e1b56);
    font-size: 1rem;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.jits-calendar__option:hover,
.jits-calendar__option:focus-visible {
    background: color-mix(in srgb, var(--button-primary-bg, #163cdb) 8%, transparent);
    color: var(--button-primary-bg, #163cdb);
    outline: none;
}

.jits-calendar__date {
    opacity: 0.7;
}

.jits-calendar__empty {
    margin: 0;
    padding: 0.75rem 1rem;
    border: 1px dashed currentColor;
    font-size: 0.875rem;
}
