/* ==========================================================================
   우측 하단 세로 플로팅 CTA (전화·카톡·맨위로) — 전 뷰포트
   부모 cta.css 의 모바일 가로 바를 덮어쓰는 자식 override.
   ========================================================================== */

.cta-float {
    display: block;
    position: fixed;
    top: auto;
    left: auto;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    padding: 0;
    pointer-events: none;
}

.cta-float__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.cta-float__btn {
    pointer-events: auto;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 62px;
    height: 62px;
    min-height: 0;
    padding: 8px 4px;
    border: none;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, visibility 0.18s ease;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.cta-float__btn:hover,
.cta-float__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22), 0 4px 10px rgba(15, 23, 42, 0.14);
    outline: none;
}

.cta-float__btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.cta-float__btn .cta-float__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin: 0;
}

.cta-float__btn > span:not(.cta-float__icon) {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: inherit;
    white-space: nowrap;
}

.cta-float__btn--phone {
    background-color: var(--color-cta-phone, #2563eb);
    color: var(--color-text-inverse, #ffffff);
}

.cta-float__btn--phone:hover {
    background-color: var(--color-cta-phone-dark, #1d4ed8);
    color: var(--color-text-inverse, #ffffff);
}

.cta-float__btn--kakao {
    background-color: var(--color-cta-kakao, #fee500);
    color: var(--color-cta-kakao-text, #191919);
}

.cta-float__btn--kakao:hover {
    background-color: #f3da00;
    color: var(--color-cta-kakao-text, #191919);
}

.cta-float__btn--top {
    background-color: #1f2937;
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
}

.cta-float--show-top .cta-float__btn--top {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.cta-float__btn--top:hover {
    background-color: #111827;
    color: #ffffff;
}

/* 모바일 — 약간 작게 + 안쪽으로 */
@media (max-width: 768px) {
    .cta-float {
        right: 12px;
        bottom: calc(14px + env(safe-area-inset-bottom));
    }
    .cta-float__inner {
        gap: 8px;
    }
    .cta-float__btn {
        width: 56px;
        height: 56px;
        padding: 6px 4px;
    }
    .cta-float__btn .cta-float__icon {
        width: 20px;
        height: 20px;
    }
    .cta-float__btn > span:not(.cta-float__icon) {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .cta-float {
        right: 10px;
    }
    .cta-float__btn {
        width: 52px;
        height: 52px;
    }
}

/* 인쇄 시 숨김 */
@media print {
    .cta-float { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .cta-float__btn,
    .cta-float__btn--top { transition: none; }
}
