/** Condo Map v1.7.18 · live-language immediately prewarmed WordPress Prince Chat. */

body.cc-condo-source-prince-chat-host > #cc-aichat-root,
body.cc-condo-source-prince-chat-host > #chat-box-wrapper {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.cc-source-prince-chat-overlay[hidden] {
    display: none !important;
}

.cc-source-prince-chat-overlay {
    position: fixed;
    right: clamp(18px, 2vw, 30px);
    bottom: clamp(18px, 2vw, 28px);
    z-index: 2147483000;
    display: block;
    width: min(390px, calc(100vw - 36px));
    height: min(640px, calc(100vh - 42px));
    box-sizing: border-box;
    pointer-events: none;
}

.cc-source-prince-chat-backdrop {
    display: none !important;
}

.cc-source-prince-chat-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: min(420px, calc(100vh - 42px));
    overflow: hidden;
    border: 1px solid rgba(205, 145, 117, .72);
    border-radius: 22px;
    background: linear-gradient(180deg, #fffaf7, #fbecef);
    box-shadow:
        0 22px 58px rgba(58, 27, 38, .28),
        0 0 0 5px rgba(255, 248, 239, .32),
        inset 0 1px 0 rgba(255, 255, 255, .75);
    pointer-events: auto;
}

.cc-source-prince-chat-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    opacity: 0;
    transition: opacity .18s ease;
}

.cc-source-prince-chat-overlay.is-ready .cc-source-prince-chat-frame {
    opacity: 1;
}

.cc-source-prince-chat-close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(157, 76, 103, .34);
    border-radius: 50%;
    color: #8c4961;
    background: rgba(255, 250, 247, .96);
    box-shadow: 0 6px 18px rgba(91, 40, 58, .14);
    font: 400 22px/1 "Noto Sans SC", "Microsoft YaHei", sans-serif;
    cursor: pointer;
}

.cc-source-prince-chat-close::before {
    content: "×";
    display: block;
    transform: translateY(-1px);
}

.cc-source-prince-chat-close:hover,
.cc-source-prince-chat-close:focus-visible {
    color: #fffaf4;
    background: #9a4867;
    outline: 2px solid rgba(219, 166, 184, .48);
    outline-offset: 2px;
}

.cc-source-prince-chat-loading {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    color: #82445b;
    background:
        radial-gradient(circle at 94% 5%, rgba(239, 198, 211, .30), transparent 28%),
        linear-gradient(180deg, #fffaf7, #fbecef);
    font-family: "Noto Serif SC", "Songti SC", serif;
    transition: opacity .18s ease, visibility .18s ease;
}

.cc-source-prince-chat-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 98px;
    padding: 17px 52px 13px 18px;
    border-bottom: 1px solid rgba(201, 139, 163, .22);
    box-sizing: border-box;
}

.cc-source-prince-chat-shell-head > div {
    display: grid;
    gap: 5px;
}

.cc-source-prince-chat-shell-head strong {
    color: #75334f;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: .08em;
}

.cc-source-prince-chat-shell-head span:not(.cc-source-prince-chat-shell-picker) {
    color: #a07b88;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 11px;
}

.cc-source-prince-chat-shell-picker {
    width: 92px;
    height: 34px;
    border: 1px solid rgba(190, 116, 142, .32);
    border-radius: 12px;
    background: rgba(255, 248, 250, .82);
}

.cc-source-prince-chat-shell-quota {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 8px 14px 0;
    padding: 10px 14px;
    border: 1px solid rgba(215, 164, 181, .28);
    border-radius: 12px;
    background: rgba(255, 252, 250, .68);
}

.cc-source-prince-chat-shell-quota i {
    height: 8px;
    border-radius: 999px;
    background: rgba(155, 83, 108, .13);
}

.cc-source-prince-chat-shell-messages {
    flex: 1 1 auto;
    min-height: 0;
    margin: 8px 7px 0;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.46), rgba(252,238,243,.46));
}

.cc-source-prince-chat-shell-composer {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(201, 139, 163, .20);
}

.cc-source-prince-chat-shell-composer span {
    flex: 1 1 auto;
    height: 48px;
    border: 1px solid rgba(200, 142, 162, .30);
    border-radius: 12px;
    background: rgba(255,255,255,.76);
}

.cc-source-prince-chat-shell-composer b {
    display: grid;
    place-items: center;
    width: 72px;
    height: 48px;
    border-radius: 12px;
    color: #fff;
    background: #91405f;
    font: 700 13px/1 "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.cc-source-prince-chat-overlay.is-ready .cc-source-prince-chat-loading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Reusable, layout-neutral prince chat bubble for custom Post cards. */
.cc-prince-chat-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(72, 162, 157, .42);
    border-radius: 10px;
    color: #2b817e;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(222,249,246,.92));
    box-shadow: 0 5px 14px rgba(35, 111, 108, .12), inset 0 1px 0 #fff;
    vertical-align: middle;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.cc-prince-chat-trigger svg {
    display: block;
    width: 19px;
    height: 19px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.cc-prince-chat-trigger svg circle {
    fill: currentColor;
    stroke: none;
}

.cc-prince-chat-trigger:hover,
.cc-prince-chat-trigger:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(57, 143, 139, .74);
    box-shadow: 0 8px 18px rgba(35, 111, 108, .18), inset 0 1px 0 #fff;
    outline: 2px solid rgba(88, 185, 180, .22);
    outline-offset: 2px;
}

.cc-prince-chat-trigger:active {
    transform: translateY(0) scale(.96);
}

.cc-prince-chat-trigger.is-opening {
    opacity: .66;
    pointer-events: none;
}

@media (max-width: 767px) {
    html.cc-source-prince-chat-open,
    body.cc-source-prince-chat-open {
        overflow: hidden !important;
    }

    .cc-source-prince-chat-overlay {
        inset: 0;
        width: 100vw;
        height: 100vh;
        pointer-events: auto;
    }

    .cc-source-prince-chat-dialog {
        width: 100vw;
        height: 100vh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .cc-source-prince-chat-close {
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-source-prince-chat-frame,
    .cc-source-prince-chat-loading {
        transition: none;
    }
}
