/* Paradise contact layout in Partak colors. */
.partak-floating-contact {
    position: fixed;
    right: 44px;
    bottom: calc(var(--contact-bottom, 20px) + env(safe-area-inset-bottom, 0px));
    z-index: 350;
    direction: rtl;
}
.partak-contact-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--contact-color);
    color: #fff;
    box-shadow: 0 4px 14px #0003;
}
.partak-contact-toggle:hover,
.partak-contact-toggle:focus {
    background: var(--contact-color);
    color: #fff;
}
.partak-contact-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--contact-color);
    border-radius: 50%;
    animation: partak-contact-pulse 2.5s ease-out infinite;
    pointer-events: none;
}
.partak-contact-icon,
.partak-contact-close {
    grid-area: 1 / 1;
    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
}
.partak-contact-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.65);
    font-size: 32px;
}
.partak-floating-contact.is-open .partak-contact-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.65);
}
.partak-floating-contact.is-open .partak-contact-close {
    opacity: 1;
    transform: none;
}
.partak-contact-links {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}
.partak-contact-links a {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #104552;
    color: #fff;
    box-shadow: 0 4px 14px #0003;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
    transition:
        opacity 0.22s ease,
        transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.partak-floating-contact.is-open .partak-contact-links a {
    opacity: 1;
    transform: translate(calc(-50% + var(--contact-x)), calc(-50% + var(--contact-y))) scale(1);
    pointer-events: auto;
}
.partak-floating-contact :is(a, button):focus-visible {
    outline: 2px solid #104552;
    outline-offset: 4px;
}
.wd-search-opened .partak-floating-contact {
    visibility: hidden;
}
@keyframes partak-contact-pulse {
    from {
        transform: scale(1);
        opacity: 0.5;
    }
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .partak-contact-toggle::before {
        animation: none;
    }
    .partak-floating-contact * {
        transition: none;
    }
}
/* Isolate interactive controls from theme button and icon rules. */
body .partak-floating-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 56px;
    right: 20px;
}
body
    .partak-floating-contact
    :is(.partak-contact-toggle, .partak-contact-single, .partak-contact-phone) {
    all: unset;
    box-sizing: border-box;
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border: 0;
    border-radius: 50%;
    background: var(--contact-color);
    color: #fff;
    box-shadow: 0 4px 14px #0003;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
body .partak-floating-contact .partak-contact-phone {
    background: var(--contact-phone-color);
}
body .partak-floating-contact .partak-contact-single {
    background: var(--contact-item-color, var(--contact-color));
}
body .partak-floating-contact .partak-contact-chat {
    position: relative;
    width: 56px;
    height: 56px;
}
body .partak-floating-contact .partak-contact-links a {
    background: var(--contact-item-color, #104552);
}
body .partak-floating-contact :is(svg, img) {
    display: block;
    width: 26px;
    height: 26px;
    max-width: 26px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}
body .partak-floating-contact svg {
    fill: none;
    stroke: currentColor;
}
body .partak-floating-contact .partak-contact-icon {
    display: grid;
    place-items: center;
}
body
    .partak-floating-contact
    :is(.partak-contact-toggle, .partak-contact-single, .partak-contact-phone):focus-visible {
    outline: 2px solid #104552;
    outline-offset: 4px;
}
body .partak-floating-contact .partak-contact-toggle::after {
    content: none;
}
body .partak-floating-contact .partak-contact-toggle:is(:hover, :focus, :active) {
    background: var(--contact-color) !important;
    color: #fff !important;
}
body .partak-floating-contact .partak-contact-phone:is(:hover, :focus, :active) {
    background: var(--contact-phone-color) !important;
    color: #fff !important;
}
body
    .partak-floating-contact
    :is(.partak-contact-single, .partak-contact-links a):is(:hover, :focus, :active) {
    background: var(--contact-item-color, #104552) !important;
    color: #fff !important;
}
@media (max-width: 767px) {
    body .partak-floating-contact {
        right: 12px;
    }
}
