.apgl-event-action-dock {
    align-items: center;
    background: #fff;
    border: 1px solid #ded4e0;
    border-radius: 18px;
    bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 8px 32px #28172f26;
    box-sizing: border-box;
    color: #452749;
    display: flex;
    gap: .5rem;
    left: 50%;
    max-width: 980px;
    padding: .6rem;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    z-index: 100;
}
.apgl-event-action-dock [hidden],
.apgl-event-action-dock[hidden] { display: none !important; }
.apgl-event-action-dock__title {
    flex: 1;
    font-size: .9rem;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    padding: 0 .4rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.apgl-event-action-dock__control,
.apgl-event-action-dock__primary {
    align-items: center;
    background: #fff;
    border: 1px solid #d8ceda;
    border-radius: 11px;
    box-sizing: border-box;
    color: #55325b !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    gap: .4rem;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    min-width: 44px;
    padding: .6rem .8rem;
    text-decoration: none !important;
}
.apgl-event-action-dock__primary {
    background: #55325b;
    border-color: #55325b;
    color: #fff !important;
    order: 10;
}
.apgl-event-action-dock__control:hover { background: #f7edf4; }
.apgl-event-action-dock__primary:hover { background: #452749; }
.apgl-event-action-dock :focus-visible { outline: 3px solid #8451a0; outline-offset: 3px; }
.apgl-event-action-dock__control .dashicons { font-size: 20px; height: 20px; width: 20px; }
.apgl-event-action-dock__popup { position: relative; flex: 0 0 auto; }
.apgl-event-action-dock__panel {
    background: #fff;
    border: 1px solid #ded4e0;
    border-radius: 12px;
    bottom: calc(100% + .75rem);
    box-shadow: 0 8px 26px #28172f26;
    max-height: min(60vh, 24rem);
    min-width: 210px;
    overflow-y: auto;
    padding: .4rem;
    position: absolute;
    right: 0;
}
.apgl-event-action-dock__panel a {
    border-radius: 7px;
    color: #452749;
    display: flex;
    align-items: center;
    font-size: .9rem;
    min-height: 44px;
    padding: .3rem .7rem;
    text-decoration: none;
    white-space: nowrap;
}
.apgl-event-action-dock__panel a:hover { background: #f7edf4; }
.apgl-event-action-dock__more,
.apgl-event-action-dock__popup:has(.apgl-event-action-dock__more) { display: none; }
html.apgl-event-dock-visible,
html.apgl-event-dock-visible body { scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
html.apgl-event-dock-visible body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.apgl-event-action-dock__status:empty { display: none; }
.apgl-event-action-dock__status {
    background: #452749;
    border-radius: 9px;
    bottom: calc(100% + .5rem);
    color: #fff;
    font-size: .85rem;
    max-width: calc(100vw - 3rem);
    padding: .6rem .8rem;
    position: absolute;
    right: 0;
}
.apgl-event-share-dialog {
    background: #fff;
    border: 1px solid #ded4e0;
    border-radius: 16px;
    color: #452749;
    max-width: 28rem;
    padding: 1.5rem;
    width: calc(100% - 4rem);
}
.apgl-event-share-dialog::backdrop { background: #21142666; }
.apgl-event-share-dialog input { box-sizing: border-box; display: block; margin: 1rem 0; padding: .6rem; width: 100%; }
.apgl-event-share-dialog button { min-height: 44px; padding: .5rem 1rem; }
@media (max-width: 700px) {
    .apgl-event-action-dock { border-radius: 16px; gap: .4rem; padding: .5rem; width: calc(100% - 1rem); }
    .apgl-event-action-dock__title,
    .apgl-event-action-dock__label,
    .apgl-event-action-dock__edit { display: none; }
    .apgl-event-action-dock__primary { flex: 1; font-size: .86rem; min-width: 0; order: 0; padding: .6rem; }
    .apgl-event-action-dock__control { padding: .6rem; }
    .apgl-event-action-dock__more { display: inline-flex; }
    .apgl-event-action-dock__popup:has(.apgl-event-action-dock__more) { display: block; }
    .apgl-event-action-dock__popup:has(#apgl-event-dock-calendar) { position: static; }
    #apgl-event-dock-calendar { bottom: calc(100% + .5rem); max-width: calc(100vw - 2rem); right: .5rem; }
    .apgl-event-action-dock:has(.apgl-event-action-dock__primary[hidden]) { width: max-content; }
}
