:root {
    --za-customer-service-brand: #b53659;
    --za-customer-service-ink: #211923;
    --za-customer-service-muted: #7d727f;
    --za-customer-service-bottom: 92px;
}

.za-customer-service-fab {
    position: fixed;
    right: 14px;
    bottom: var(--za-customer-service-bottom);
    z-index: 1038;
    display: grid;
    width: 52px;
    height: 52px;
    place-content: center;
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: var(--za-customer-service-brand);
    box-shadow:
        0 -1px 5px rgba(255, 255, 255, 0.62),
        0 10px 24px -2px rgba(82, 31, 87, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: grab;
    line-height: 1;
    text-align: center;
    touch-action: none;
    user-select: none;
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-tap-highlight-color: transparent;
    transition: left 220ms ease, top 220ms ease, bottom 220ms ease, background-color 160ms ease, opacity 180ms ease, transform 180ms ease;
}

.za-customer-service-fab i {
    font-size: 21px;
}

.za-customer-service-fab span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (hover: hover) and (pointer: fine) {
    .za-customer-service-fab:hover {
        background: #a42f50;
    }
}

.za-customer-service-fab:active {
    background: #922747;
    transform: scale(0.94);
}

.za-customer-service-fab.is-dragging {
    background: #922747;
    cursor: grabbing;
    transform: scale(1.04);
    transition: none;
}

.za-customer-service-fab.is-snapping {
    transition: left 220ms cubic-bezier(0.22, 0.75, 0.28, 1), top 220ms ease, opacity 180ms ease;
}

.za-customer-service-fab:focus-visible,
.za-customer-service-panel button:focus-visible,
.za-customer-service-panel a:focus-visible {
    outline: 3px solid rgba(181, 54, 89, 0.32);
    outline-offset: 3px;
}

body.za-customer-service-overlay-open .za-customer-service-fab {
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.92);
}

#za-customer-service-panel.za-customer-service-panel {
    --bs-offcanvas-height: min(560px, calc(100dvh - 76px));
    right: max(0px, calc((100vw - 460px) / 2));
    left: max(0px, calc((100vw - 460px) / 2));
    height: min(560px, calc(100dvh - 76px));
    max-height: calc(100dvh - 76px);
    overflow: hidden;
    border: 0;
    background: #f8f5fb;
    box-shadow: 0 -18px 50px rgba(55, 35, 62, 0.2);
    color: var(--za-customer-service-ink);
}

.za-customer-service-panel__header {
    min-height: 64px;
    align-items: center;
    border-bottom: 1px solid rgba(181, 54, 89, 0.08);
    padding: 14px 20px;
}

.za-customer-service-panel__title {
    margin: 0;
    color: var(--za-customer-service-brand);
    font-size: 22px;
    font-weight: 750;
    line-height: 28px;
}

.za-customer-service-panel__body {
    overflow-y: auto;
    padding: 14px 16px calc(22px + env(safe-area-inset-bottom));
}

.za-customer-service-hours {
    display: grid;
    min-height: 62px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin-bottom: 9px;
    border: 1px solid rgba(181, 54, 89, 0.08);
    border-radius: 16px;
    background: #fff;
    padding: 9px 12px;
    box-shadow: 0 6px 16px rgba(81, 45, 82, 0.06);
}

.za-customer-service-hours__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(181, 54, 89, 0.11);
    color: var(--za-customer-service-brand);
}

.za-customer-service-hours__icon i {
    font-size: 19px;
}

.za-customer-service-hours__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.za-customer-service-hours__copy strong {
    color: var(--za-customer-service-ink);
    font-size: 14px;
    line-height: 18px;
}

.za-customer-service-hours__copy small {
    color: var(--za-customer-service-muted);
    font-size: 11px;
    line-height: 15px;
}

.za-customer-service-actions {
    display: grid;
    gap: 9px;
}

.za-customer-service-action {
    display: grid;
    min-height: 62px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(181, 54, 89, 0.08);
    border-radius: 16px;
    background: #fff;
    padding: 9px 12px;
    box-shadow: 0 6px 16px rgba(81, 45, 82, 0.06);
    color: inherit;
    text-decoration: none;
}

.za-customer-service-action__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(181, 54, 89, 0.1);
    color: var(--za-customer-service-brand);
}

.za-customer-service-action__icon i {
    font-size: 21px;
}

.za-customer-service-action__copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.za-customer-service-action__copy strong {
    font-size: 14px;
    line-height: 18px;
}

.za-customer-service-action__copy small {
    overflow: hidden;
    color: var(--za-customer-service-muted);
    font-size: 11px;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.za-customer-service-action__status {
    border-radius: 999px;
    background: #f2edf3;
    padding: 5px 8px;
    color: #948b96;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.za-customer-service-action__status.is-actionable {
    background: var(--za-customer-service-brand);
    color: #fff;
}

.za-customer-service-action--wecom .za-customer-service-action__icon {
    background: rgba(39, 165, 95, 0.11);
    color: #239653;
}

.za-customer-service-action.is-unconfigured {
    box-shadow: none;
}

.za-customer-service-qr {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    border: 1px solid rgba(181, 54, 89, 0.09);
    border-radius: 20px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 22px rgba(81, 45, 82, 0.07);
}

.za-customer-service-qr__image-wrap {
    overflow: hidden;
    border: 1px solid rgba(181, 54, 89, 0.12);
    border-radius: 14px;
    background: #fff;
    padding: 5px;
}

.za-customer-service-qr__image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 9px;
    object-fit: cover;
}

.za-customer-service-qr__copy strong {
    color: var(--za-customer-service-brand);
    font-size: 16px;
    line-height: 22px;
}

.za-customer-service-qr__copy p {
    margin: 6px 0 13px;
    color: var(--za-customer-service-muted);
    font-size: 11px;
    line-height: 17px;
}

.za-customer-service-qr__copy a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 2px;
    border-radius: 16px;
    background: rgba(181, 54, 89, 0.09);
    padding: 0 11px;
    color: var(--za-customer-service-brand);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.za-customer-service-qr__copy a i {
    font-size: 16px;
}

@media (max-width: 359px) {
    .za-customer-service-qr {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .za-customer-service-fab {
        transition-duration: 0.01ms;
    }
}
