: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,
.za-customer-feedback-modal button:focus-visible,
.za-customer-feedback-modal textarea: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;
}

.za-customer-feedback-entry {
    display: grid;
    width: 100%;
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 11px;
    margin-top: 12px;
    border: 1px solid rgba(181, 54, 89, 0.12);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #fff 72%, #fbf1f5 100%);
    padding: 10px 12px;
    box-shadow: 0 6px 18px rgba(81, 45, 82, 0.06);
    color: inherit;
    text-align: left;
}

.za-customer-feedback-entry__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-feedback-entry__icon i {
    font-size: 21px;
}

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

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

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

.za-customer-feedback-entry__arrow {
    color: var(--za-customer-service-brand);
    font-size: 22px;
}

.za-customer-feedback-modal .modal-dialog {
    width: min(390px, calc(100vw - 28px));
    margin-right: auto;
    margin-left: auto;
}

.za-customer-feedback-modal__content {
    overflow: hidden;
    border: 1px solid rgba(181, 54, 89, 0.13);
    border-radius: 22px;
    background: #fbf8fc;
    box-shadow: 0 24px 64px rgba(48, 31, 54, 0.24);
}

.za-customer-feedback-modal__header {
    min-height: 64px;
    border-bottom: 1px solid rgba(181, 54, 89, 0.09);
    padding: 15px 18px;
}

.za-customer-feedback-modal__title {
    color: var(--za-customer-service-brand);
    font-size: 20px;
    font-weight: 750;
    line-height: 26px;
}

.za-customer-feedback-modal__body {
    padding: 18px;
}

.za-customer-feedback-modal__label {
    display: block;
    margin-bottom: 8px;
    color: var(--za-customer-service-ink);
    font-size: 13px;
    font-weight: 700;
}

.za-customer-feedback-modal__textarea {
    min-height: 150px;
    resize: vertical;
    border: 1px solid rgba(181, 54, 89, 0.15);
    border-radius: 15px;
    background: #fff;
    padding: 13px 14px;
    color: var(--za-customer-service-ink);
    font-size: 14px;
    line-height: 21px;
    box-shadow: inset 0 1px 2px rgba(55, 35, 62, 0.03);
}

.za-customer-feedback-modal__textarea::placeholder {
    color: #aaa1ac;
}

.za-customer-feedback-modal__textarea:focus {
    border-color: rgba(181, 54, 89, 0.48);
    box-shadow: 0 0 0 4px rgba(181, 54, 89, 0.09);
}

.za-customer-feedback-modal__textarea.is-invalid {
    border-color: #c63b5f;
}

.za-customer-feedback-modal__validation {
    min-height: 18px;
    margin: 6px 2px 8px;
    color: #b02c51;
    font-size: 11px;
    line-height: 18px;
}

.za-customer-feedback-modal__submit {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 14px;
    background: var(--za-customer-service-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 9px 22px rgba(181, 54, 89, 0.22);
}

.za-customer-feedback-success {
    display: grid;
    justify-items: center;
    padding: 20px 8px 8px;
    text-align: center;
}

.za-customer-feedback-success[hidden] {
    display: none;
}

.za-customer-feedback-success__icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 50%;
    background: rgba(181, 54, 89, 0.1);
    color: var(--za-customer-service-brand);
}

.za-customer-feedback-success__icon i {
    font-size: 30px;
}

.za-customer-feedback-success p {
    max-width: 280px;
    margin: 18px auto 22px;
    color: var(--za-customer-service-ink);
    font-size: 15px;
    font-weight: 650;
    line-height: 24px;
}

.za-customer-feedback-success button {
    min-width: 132px;
    min-height: 42px;
    border: 1px solid rgba(181, 54, 89, 0.18);
    border-radius: 13px;
    background: #fff;
    color: var(--za-customer-service-brand);
    font-size: 13px;
    font-weight: 750;
}

@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;
    }
}
