/* Candor Property floating shortcuts | TEST SITE ONLY until approved */
:root {
    --cp-float-purple: #493b86;
    --cp-float-border: #b8ade3;
    --cp-float-green: #25d366;
}

.cp-floating-actions {
    position: fixed;
    z-index: 1020; /* Below Bootstrap modal/backdrop layers */
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    font-family: 'Manrope', sans-serif;
    animation: cp-floating-rise 700ms cubic-bezier(.2,.75,.25,1) 500ms both;
    transition: opacity 220ms ease, transform 220ms ease;
}

.cp-floating-actions a,
.cp-floating-actions a:visited {
    text-decoration: none;
    box-shadow: 0px 6px 9px 1px rgba(0,0,0,0.48);
}

.cp-floating-actions__valuation,
.cp-floating-actions__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-style: solid;
    border-width: 2px;
    box-shadow: 0 8px 24px rgba(22, 18, 55, .24);
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.cp-floating-actions a.cp-floating-actions__valuation,
.cp-floating-actions a.cp-floating-actions__valuation:visited {
    min-height: 50px;
    padding: 0 18px;
    gap: 9px;
    border-color: var(--cp-float-border);
    border-radius: 26px;
    background: var(--cp-float-purple);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.cp-floating-actions a.cp-floating-actions__whatsapp,
.cp-floating-actions a.cp-floating-actions__whatsapp:visited {
    width: 54px;
    height: 54px;
    border-color: #eafff1;
    border-radius: 50%;
    background: var(--cp-float-green);
    color: #ffffff;
}

.cp-floating-actions__valuation svg { width: 19px; height: 19px; flex-shrink: 0; }
.cp-floating-actions__whatsapp svg { width: 29px; height: 29px; }

.cp-floating-actions a.cp-floating-actions__valuation:hover,
.cp-floating-actions a.cp-floating-actions__valuation:focus-visible {
    background: #5c4b9b;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(22, 18, 55, .34);
    transform: translateY(-2px);
}

.cp-floating-actions a.cp-floating-actions__whatsapp:hover,
.cp-floating-actions a.cp-floating-actions__whatsapp:focus-visible {
    background: #1fb857;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(22, 18, 55, .34);
    transform: translateY(-2px);
}

.cp-floating-actions a:focus-visible {
    outline: 3px solid #f6df84;
    outline-offset: 3px;
}

.cp-floating-actions__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@keyframes cp-floating-rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
    /* Reserve enough page space for the fixed bar, including on form pages. */
    body.cp-has-floating-actions {
        padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    }

    .cp-floating-actions {
        right: 12px;
        left: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: 560px;
        margin: 0 auto;
        padding: 8px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        border: 1px solid rgba(48, 45, 103, .11);
        border-radius: 18px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 8px 32px rgba(20, 20, 35, .19);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .cp-floating-actions a.cp-floating-actions__valuation,
    .cp-floating-actions a.cp-floating-actions__valuation:visited {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 48px;
        padding: 0 10px;
        border-radius: 12px;
        font-size: 13px;
    }

    .cp-floating-actions a.cp-floating-actions__whatsapp,
    .cp-floating-actions a.cp-floating-actions__whatsapp:visited {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .cp-floating-actions__whatsapp svg { width: 26px; height: 26px; }

    /* Text fields on small phones open a keyboard; hide the bar temporarily. */
    .cp-floating-actions.cp-floating-actions--input-active {
        opacity: 0 !important;
        transform: translateY(110px) !important;
        pointer-events: none !important;
        animation: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-floating-actions { animation: none; }
    .cp-floating-actions a { transition: none; }
}
