/* Floating controls are kept in a separate child-theme stylesheet so they can be
 * removed or restyled without changing the site's content templates. */
.ds-floating-actions {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ds-floating-action {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(8, 22, 38, .22);
    color: #fff;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ds-floating-action:hover,
.ds-floating-action:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(8, 22, 38, .3);
}

.ds-floating-action:focus-visible {
    outline: 3px solid #d8ef8a;
    outline-offset: 3px;
}

.ds-floating-action--message,
.ds-floating-action--top { background: #12324b; color: #fff; }
.ds-floating-action--message:hover,
.ds-floating-action--message:focus-visible,
.ds-floating-action--top:hover,
.ds-floating-action--top:focus-visible { background: #1c4b6d; }

.ds-floating-action svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ds-floating-action--top svg { width: 24px; height: 24px; }

@media (max-width: 640px) {
    .ds-floating-actions {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        gap: 8px;
    }

    .ds-floating-action { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-floating-action { transition: none; }
}
