.gpsa-events-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; width: 100%; flex-basis: 100%; margin: 0 0 24px; padding: 16px 0; border-top: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8; color: #252525; font-size: 15px; line-height: 1.5; letter-spacing: 0; }
.gpsa-events-available { display: inline-flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; }
.gpsa-events-location { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; margin: 0; }
.gpsa-events-location select { box-sizing: border-box; width: 260px; max-width: 100%; min-width: 0; min-height: 40px; padding: 7px 28px 7px 10px; border: 1px solid #aaa; border-radius: 4px; background-color: #fff; color: #252525; font: inherit; letter-spacing: 0; text-overflow: ellipsis; }
.gpsa-events-available input { appearance: none; -webkit-appearance: none; box-sizing: border-box; flex: 0 0 36px; width: 36px; height: 22px; margin: 0; padding: 2px; border: 1px solid #777; border-radius: 11px; background: #777; cursor: pointer; }
.gpsa-events-available input::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.gpsa-events-available input:checked { background: #246c46; border-color: #246c46; }
.gpsa-events-available input:checked::before { transform: translateX(14px); }
@media (prefers-reduced-motion: reduce) { .gpsa-events-available input::before { transition: none; } }
@media (forced-colors: active) { .gpsa-events-available input { appearance: auto; -webkit-appearance: auto; } .gpsa-events-available input::before { display: none; } }
.gpsa-events-calendar { position: relative; margin: 0; padding: 0; border: 0; }
.gpsa-events-calendar summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: #252525; cursor: pointer; list-style: none; }
.gpsa-events-calendar summary::-webkit-details-marker { display: none; }
.gpsa-events-tools .dashicons { font-size: 20px; width: 20px; height: 20px; flex-shrink: 0; }
.gpsa-events-tools .gpsa-events-clear { color: #444; text-decoration: underline; text-underline-offset: 3px; }
.gpsa-events-filter-status { width: 100%; margin: 0; color: #9c2430; }
.gpsa-events-filter-status:empty { display: none; }
.gpsa-calendar-panel { box-sizing: border-box; position: absolute; z-index: 100; top: calc(100% + 10px); left: 0; width: 328px; max-width: calc(100vw - 32px); padding: 16px; border: 1px solid #ccc; border-radius: 4px; background: #fff; box-shadow: 0 6px 22px #00000018; }
.gpsa-calendar-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 8px; margin-bottom: 10px; }
.gpsa-calendar-heading strong { text-align: center; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.gpsa-events-tools .gpsa-calendar-heading button, .gpsa-events-tools [data-calendar-retry] { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 1px solid #d8d8d8; border-radius: 3px; color: #252525; background: #fff; cursor: pointer; }
.gpsa-events-tools button:disabled { opacity: .35; cursor: default; }
.gpsa-events-tools [hidden] { display: none !important; }
.gpsa-calendar-status { min-height: 24px; font-size: 13px; color: #555; }
.gpsa-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 24px repeat(6, 38px); gap: 4px; }
.gpsa-calendar-weekday { text-align: center; font-size: 12px; color: #666; }
.gpsa-events-tools .gpsa-calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; height: 38px; min-height: 0; margin: 0; padding: 2px; border: 1px solid transparent; border-radius: 3px; font: inherit; font-size: 14px; line-height: 1; letter-spacing: 0; }
.gpsa-calendar-inactive { color: #aaa; }
.gpsa-events-tools .gpsa-calendar-has-seats { color: #195b37; background: #edf7ef; border-color: #b9d7c1; cursor: pointer; }
.gpsa-events-tools .gpsa-calendar-full { color: #a02632; background: #fff0f1; border-color: #e8c0c5; cursor: pointer; }
.gpsa-events-tools .gpsa-calendar-day[aria-pressed="true"] { outline: 2px solid #252525; outline-offset: 0; }
.gpsa-calendar-markers { display: flex; gap: 3px; height: 5px; }
.gpsa-calendar-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.gpsa-calendar-green { background: #246c46; }
.gpsa-calendar-red { background: #b02e3b; }
.gpsa-calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: #444; font-size: 12px; }
.gpsa-calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gpsa-events-tools :focus-visible { outline: 2px solid #252525; outline-offset: 3px; }
@media (max-width: 600px) {
    .gpsa-events-tools { gap: 10px 18px; }
    .gpsa-events-location { flex-basis: 100%; }
    .gpsa-events-location select { flex: 1; width: 0; }
    .gpsa-events-calendar { position: static; }
    .gpsa-events-tools { position: relative; }
    .gpsa-calendar-panel { left: 0; top: calc(100% + 2px); width: 328px; }
}
