.ccpf-incognito-status{display:inline-flex;align-items:center;justify-content:center;min-width:48px;padding:5px 9px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.ccpf-incognito-status.is-on{background:#dcfce7;color:#166534}.ccpf-incognito-card--active{border-color:#86efac!important;box-shadow:0 10px 26px rgba(22,101,52,.1)!important}.ccpf-member-switch{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;cursor:pointer}.ccpf-member-switch>input{position:absolute;opacity:0;pointer-events:none}.ccpf-member-switch-track{position:relative;display:block;width:48px;height:27px;border-radius:999px;background:#cbd5e1;transition:.2s}.ccpf-member-switch-track span{position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(15,23,42,.22);transition:.2s}.ccpf-member-switch input:checked+.ccpf-member-switch-track{background:#16a34a}.ccpf-member-switch input:checked+.ccpf-member-switch-track span{transform:translateX(21px)}.ccpf-member-switch strong{display:block;color:#172033}.ccpf-member-switch small{display:block;margin-top:3px;color:#64748b;line-height:1.45}.ccpf-incognito-benefits{display:grid;gap:7px;margin:16px 0;padding-left:20px;color:#475569}.ccpf-incognito-benefits li::marker{color:#16a34a}.ccpf-feature-locked{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#475569}.ccpf-feature-locked>.dashicons{color:#64748b}.ccpf-feature-locked strong{color:#1e293b}.ccpf-feature-locked p{margin:4px 0 0;line-height:1.5}.classicore-pro-incognito-active .kh-account-summary-card.ccpf-incognito-card .kh-account-icon{color:#16a34a}

/* Astrology compatibility ------------------------------------------------- */
.ccpf-astrology-form-card,
.ccpf-cosmic-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(104, 76, 170, .2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 8%, rgba(178, 130, 255, .2), transparent 30%),
        radial-gradient(circle at 8% 90%, rgba(255, 190, 95, .14), transparent 34%),
        linear-gradient(145deg, rgba(250, 248, 255, .98), rgba(255, 252, 246, .98));
    box-shadow: 0 16px 42px rgba(55, 32, 98, .09);
}

.ccpf-astrology-form-card {
    margin: 24px 0;
    padding: clamp(18px, 3vw, 28px);
}

.ccpf-astrology-form-card::before,
.ccpf-cosmic-card::before {
    content: "✦  ·  ✧  ·  ✦";
    position: absolute;
    top: 14px;
    right: 18px;
    color: rgba(99, 65, 160, .24);
    letter-spacing: 8px;
    pointer-events: none;
}

.ccpf-astrology-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.ccpf-astrology-heading-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(145deg, #5d3f9e, #9e65d5);
    box-shadow: 0 8px 22px rgba(93, 63, 158, .25);
}

.ccpf-astrology-heading h3,
.ccpf-cosmic-sign h2 {
    margin: 0;
    color: #2e2144;
}

.ccpf-astrology-heading p {
    max-width: 720px;
    margin: 5px 0 0;
    color: #6b617a;
    line-height: 1.55;
}

.ccpf-astrology-label {
    margin: 0 0 10px;
    color: #403153;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ccpf-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.ccpf-zodiac-option {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 13px 8px 11px;
    align-items: center;
    flex-direction: column;
    border: 1px solid rgba(79, 56, 120, .15);
    border-radius: 15px;
    background: rgba(255, 255, 255, .72);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.ccpf-zodiac-option:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 67, 178, .45);
    box-shadow: 0 8px 20px rgba(61, 39, 99, .1);
}

.ccpf-zodiac-option:has(input:checked) {
    border-color: #7650bb;
    background: linear-gradient(150deg, rgba(112, 73, 180, .13), rgba(255, 255, 255, .95));
    box-shadow: 0 0 0 2px rgba(118, 80, 187, .12), 0 10px 24px rgba(61, 39, 99, .12);
}

.ccpf-zodiac-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ccpf-zodiac-symbol {
    color: #6a42aa;
    font-size: 27px;
    line-height: 1;
}

.ccpf-zodiac-name {
    margin-top: 6px;
    color: #312442;
    font-weight: 800;
}

.ccpf-zodiac-dates {
    overflow: hidden;
    max-width: 100%;
    margin-top: 2px;
    color: #837990;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccpf-birthday-helper {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .7);
}

.ccpf-birthday-helper strong,
.ccpf-birthday-helper span {
    display: block;
}

.ccpf-birthday-helper span {
    margin-top: 2px;
    color: #7b7187;
    font-size: 12px;
}

.ccpf-birthday-selects {
    display: flex;
    gap: 8px;
}

.ccpf-birthday-selects select {
    min-width: 116px;
    margin: 0;
}

.ccpf-zodiac-preview {
    display: flex;
    min-height: 66px;
    gap: 13px;
    align-items: center;
    margin-top: 14px;
    padding: 13px 16px;
    border: 1px dashed rgba(106, 66, 170, .3);
    border-radius: 15px;
    color: #433452;
    background: rgba(250, 246, 255, .72);
}

.ccpf-zodiac-preview-symbol {
    color: #6a42aa;
    font-size: 36px;
}

.ccpf-zodiac-preview strong,
.ccpf-zodiac-preview span {
    display: block;
}

.ccpf-zodiac-preview span {
    margin-top: 3px;
    color: #776b84;
    font-size: 12px;
    text-transform: capitalize;
}

.ccpf-zodiac-preview-empty {
    color: #7c7089;
    font-size: 13px;
}

.ccpf-cosmic-card {
    display: grid;
    grid-template-columns: minmax(220px, .85fr) minmax(260px, 1.4fr);
    gap: 22px;
    margin: 18px 0 24px;
    padding: clamp(18px, 3vw, 26px);
}

.ccpf-cosmic-sign {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ccpf-cosmic-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    color: #fff;
    font-size: 38px;
    background: linear-gradient(145deg, #56358f, #a56bd6);
    box-shadow: 0 12px 28px rgba(91, 55, 148, .25);
}

.ccpf-cosmic-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #866aaa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ccpf-cosmic-sign p {
    margin: 4px 0 0;
    color: #786c85;
    font-size: 13px;
}

.ccpf-cosmic-result {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding-left: 22px;
    border-left: 1px solid rgba(91, 58, 143, .14);
}

.ccpf-sign-pair {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    color: #5b476d;
    font-size: 13px;
    font-weight: 700;
}

.ccpf-sign-pair b {
    color: #a47acb;
}

.ccpf-compatibility-score {
    display: flex;
    gap: 13px;
    align-items: baseline;
}

.ccpf-compatibility-score strong {
    color: #57368e;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.ccpf-compatibility-score span,
.ccpf-compatibility-label {
    color: #352545;
    font-size: 17px;
    font-weight: 850;
}

.ccpf-compatibility-summary,
.ccpf-cosmic-message,
.ccpf-cosmic-prompt p {
    margin: 8px 0 0;
    color: #665b72;
    line-height: 1.55;
}

.ccpf-cosmic-prompt .kh-button {
    margin-top: 12px;
}

.ccpf-cosmic-locked {
    display: flex;
    gap: 11px;
    align-items: center;
    color: #594b67;
}

.ccpf-cosmic-locked .dashicons {
    color: #7650bb;
}

.ccpf-cosmic-locked strong,
.ccpf-cosmic-locked span {
    display: block;
}

.ccpf-cosmic-locked span:not(.dashicons) {
    margin-top: 3px;
    color: #81758c;
    font-size: 12px;
}

.ccpf-cosmic-disclaimer {
    position: absolute;
    right: 18px;
    bottom: 10px;
    color: #988da2;
    font-size: 10px;
}

@media (max-width: 880px) {
    .ccpf-zodiac-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ccpf-cosmic-card { grid-template-columns: 1fr; }
    .ccpf-cosmic-result { padding: 18px 0 2px; border-top: 1px solid rgba(91, 58, 143, .14); border-left: 0; }
}

@media (max-width: 600px) {
    .ccpf-zodiac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ccpf-zodiac-option { padding: 11px 5px 9px; }
    .ccpf-zodiac-symbol { font-size: 24px; }
    .ccpf-zodiac-name { font-size: 12px; }
    .ccpf-zodiac-dates { font-size: 9px; }
    .ccpf-birthday-helper { align-items: stretch; flex-direction: column; }
    .ccpf-birthday-selects select { min-width: 0; width: 50%; }
    .ccpf-cosmic-symbol { flex-basis: 60px; width: 60px; height: 60px; border-radius: 18px; font-size: 32px; }
    .ccpf-cosmic-disclaimer { position: static; grid-column: 1; text-align: right; }
}
.ccpf-zodiac-option.is-selected {
    border-color: #7650bb;
    background: linear-gradient(150deg, rgba(112, 73, 180, .13), rgba(255, 255, 255, .95));
    box-shadow: 0 0 0 2px rgba(118, 80, 187, .12), 0 10px 24px rgba(61, 39, 99, .12);
}

/* Astrology browse filter ------------------------------------------------- */
.ccpf-zodiac-browse-filter {
    position: relative;
    grid-column: 1 / -1;
    margin: 4px 0 2px;
    border: 1px solid rgba(104, 76, 170, .2);
    border-radius: 15px;
    background:
        radial-gradient(circle at 96% 0%, rgba(174, 127, 246, .14), transparent 36%),
        linear-gradient(145deg, rgba(250, 248, 255, .98), rgba(255, 253, 249, .98));
    box-shadow: 0 7px 20px rgba(55, 32, 98, .05);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.ccpf-zodiac-browse-filter.is-open {
    border-color: rgba(108, 67, 178, .42);
    box-shadow: 0 0 0 2px rgba(118, 80, 187, .08), 0 9px 24px rgba(55, 32, 98, .07);
}

.ccpf-zodiac-filter-toggle {
    display: flex;
    width: 100%;
    min-height: 54px;
    gap: 16px;
    padding: 10px 13px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 14px;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ccpf-zodiac-filter-toggle:focus-visible {
    outline: 2px solid #7650bb;
    outline-offset: 2px;
}

.ccpf-zodiac-filter-toggle-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.ccpf-zodiac-filter-kicker {
    display: block;
    color: #61418f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ccpf-zodiac-filter-toggle-copy small {
    overflow: hidden;
    color: #81758c;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccpf-zodiac-filter-toggle-value {
    display: flex;
    min-width: 0;
    gap: 9px;
    align-items: center;
    justify-content: flex-end;
}

.ccpf-zodiac-filter-toggle-value strong {
    overflow: hidden;
    max-width: 245px;
    color: #5c3a8b;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccpf-zodiac-filter-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-right: 2px solid #7650bb;
    border-bottom: 2px solid #7650bb;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.ccpf-zodiac-browse-filter.is-open .ccpf-zodiac-filter-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.ccpf-zodiac-filter-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 60;
    max-height: min(330px, 48vh);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(104, 76, 170, .24);
    border-radius: 16px;
    background:
        radial-gradient(circle at 96% 0%, rgba(174, 127, 246, .17), transparent 34%),
        rgba(255, 255, 255, .98);
    box-shadow: 0 20px 45px rgba(38, 23, 66, .2);
    overscroll-behavior: contain;
}

.ccpf-zodiac-filter-panel[hidden] {
    display: none !important;
}

.ccpf-zodiac-filter-head {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.ccpf-zodiac-filter-head p {
    margin: 0;
    color: #756a81;
    font-size: 12px;
    line-height: 1.45;
}

.ccpf-zodiac-filter-any,
.ccpf-zodiac-filter-done {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid rgba(98, 64, 145, .22);
    border-radius: 999px;
    color: #5d4775;
    background: rgba(255, 255, 255, .86);
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.ccpf-zodiac-filter-any:hover,
.ccpf-zodiac-filter-any.is-active,
.ccpf-zodiac-filter-done:hover {
    border-color: #7650bb;
    color: #5c3893;
    background: rgba(118, 80, 187, .1);
    box-shadow: 0 0 0 2px rgba(118, 80, 187, .08);
}

.ccpf-zodiac-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.ccpf-zodiac-filter-option {
    position: relative;
    display: flex;
    min-width: 0;
    gap: 5px;
    padding: 9px 7px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 56, 120, .14);
    border-radius: 12px;
    color: #473755;
    background: rgba(255, 255, 255, .82);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ccpf-zodiac-filter-option:hover {
    transform: translateY(-1px);
    border-color: rgba(108, 67, 178, .4);
    box-shadow: 0 6px 15px rgba(61, 39, 99, .08);
}

.ccpf-zodiac-filter-option.is-selected,
.ccpf-zodiac-filter-option:has(input:checked) {
    border-color: #7650bb;
    color: #432867;
    background: linear-gradient(145deg, rgba(116, 75, 186, .14), rgba(255, 255, 255, .96));
    box-shadow: 0 0 0 2px rgba(118, 80, 187, .1), 0 7px 17px rgba(61, 39, 99, .09);
}

.ccpf-zodiac-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ccpf-zodiac-filter-symbol {
    color: #7148ad;
    font-size: 18px;
    line-height: 1;
}

.ccpf-zodiac-filter-name {
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccpf-zodiac-filter-panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 11px;
}

.ccpf-zodiac-filter-done {
    min-width: 72px;
    border-color: #7650bb;
    color: #fff;
    background: #7650bb;
}

.ccpf-zodiac-filter-done:hover {
    color: #fff;
    background: #6842a8;
}

@media (max-width: 760px) {
    .ccpf-zodiac-filter-panel {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 3px 13px 14px;
        border: 0;
        border-top: 1px solid rgba(104, 76, 170, .12);
        border-radius: 0 0 14px 14px;
        background: transparent;
        box-shadow: none;
    }

    .ccpf-zodiac-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ccpf-zodiac-filter-toggle-value strong { max-width: 150px; }
}

@media (max-width: 520px) {
    .ccpf-zodiac-filter-toggle { min-height: 52px; padding: 9px 11px; }
    .ccpf-zodiac-filter-toggle-copy small { max-width: 185px; }
    .ccpf-zodiac-filter-toggle-value strong { max-width: 100px; }
    .ccpf-zodiac-filter-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .ccpf-zodiac-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .ccpf-zodiac-filter-option { gap: 4px; padding: 9px 5px; }
    .ccpf-zodiac-filter-symbol { font-size: 17px; }
    .ccpf-zodiac-filter-name { font-size: 10px; }
}

/* -------------------------------------------------------------------------
 * Pro Messaging: typing, read receipts, unsend, and account preferences.
 * ---------------------------------------------------------------------- */
.ccpf-message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    min-height: 22px;
}

.ccpf-message-status {
    margin: 0;
    color: rgba(44, 55, 72, .72);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    text-align: right;
}

.ccpf-unsend-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid rgba(92, 35, 50, .34);
    border-radius: 999px;
    color: #76283d;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 1px 2px rgba(25, 18, 30, .08);
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.ccpf-unsend-button::before {
    content: "↶";
    margin-right: 4px;
    font-size: 13px;
    line-height: 1;
}

.ccpf-unsend-button:hover,
.ccpf-unsend-button:focus {
    border-color: rgba(92, 35, 50, .62);
    color: #5d1830;
    background: #fff;
    box-shadow: 0 2px 6px rgba(25, 18, 30, .14);
    outline: none;
}

.ccpf-unsend-button:disabled {
    cursor: wait;
    opacity: .62;
}

.ccpf-message-row--unsent .kh-msg-bubble {
    border-style: dashed;
    opacity: .82;
}

.ccpf-message-row--unsent .kh-msg-body {
    color: rgba(52, 58, 68, .66);
    font-size: 13px;
}

.ccpf-typing-indicator {
    display: flex;
    gap: 9px;
    margin: 0 0 12px;
    padding: 10px 13px;
    align-items: center;
    border: 1px solid rgba(111, 76, 169, .15);
    border-radius: 14px;
    color: #5d4775;
    background: linear-gradient(135deg, rgba(119, 81, 184, .08), rgba(255, 255, 255, .95));
    font-size: 12px;
    box-shadow: 0 7px 20px rgba(54, 35, 85, .06);
}

.ccpf-typing-indicator[hidden] {
    display: none !important;
}

.ccpf-typing-indicator > span {
    display: inline-flex;
    gap: 3px;
    min-width: 31px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(113, 72, 173, .12);
}

.ccpf-typing-indicator i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7148ad;
    animation: ccpfTypingDot 1.15s infinite ease-in-out;
}

.ccpf-typing-indicator i:nth-child(2) { animation-delay: .14s; }
.ccpf-typing-indicator i:nth-child(3) { animation-delay: .28s; }

@keyframes ccpfTypingDot {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.ccpf-messaging-preferences-card .ccpf-member-switch + .ccpf-member-switch {
    margin-top: 12px;
}

.ccpf-messaging-preferences-form > .kh-button {
    margin-top: 16px;
}

@media (max-width: 620px) {
    .ccpf-typing-indicator {
        margin-bottom: 10px;
        padding: 9px 11px;
    }

    .ccpf-message-status,
    .ccpf-unsend-button {
        font-size: 10px;
    }
}

/* Live conversation refresh and background sending. */
.ccpf-message-row--arriving {
    animation: ccpfMessageArrive .42s ease both;
}

@keyframes ccpfMessageArrive {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ccpf-new-message-pill {
    position: sticky;
    z-index: 8;
    bottom: 12px;
    display: flex;
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 12px auto 2px;
    padding: 9px 15px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(94, 57, 145, .24);
    border-radius: 999px;
    color: #fff;
    background: #6f49a6;
    box-shadow: 0 10px 25px rgba(52, 32, 82, .2);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.ccpf-new-message-pill:hover,
.ccpf-new-message-pill:focus {
    color: #fff;
    background: #5f3b94;
    outline: none;
    transform: translateY(-1px);
}

.ccpf-new-message-pill[hidden] {
    display: none !important;
}

.ccpf-composer-notice {
    margin: 0 0 11px;
    padding: 10px 12px;
    border: 1px solid rgba(180, 44, 44, .2);
    border-radius: 11px;
    color: #8b2929;
    background: rgba(255, 238, 238, .96);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.ccpf-composer-notice[hidden] {
    display: none !important;
}

@media (max-width: 620px) {
    .ccpf-new-message-pill {
        bottom: 74px;
        padding: 8px 13px;
        font-size: 11px;
    }
}


/* Keep the newest live-chat bubble clear of ClassiCore's floating footer. */
.kh-conversation .kh-msg-row {
    scroll-margin-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    .kh-conversation .kh-msg-row {
        scroll-margin-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    }
}

/* Message-bubble actions: tap/click a bubble for Unsend or a Tap reaction. */
.ccpf-message-bubble--actionable {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(111, 73, 166, .12);
    touch-action: manipulation;
}

.ccpf-message-bubble--actionable:focus-visible {
    outline: 3px solid rgba(111, 73, 166, .30);
    outline-offset: 3px;
}

.ccpf-message-actions-popover {
    position: fixed;
    z-index: 100000;
    display: grid;
    min-width: 156px;
    max-width: min(260px, calc(100vw - 24px));
    padding: 6px;
    border: 1px solid rgba(49, 38, 65, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 44px rgba(35, 22, 52, .22), 0 2px 8px rgba(35, 22, 52, .10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ccpf-message-action-button {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    gap: 9px;
    align-items: center;
    border: 0;
    border-radius: 10px;
    color: #34283f;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.ccpf-message-action-button:hover,
.ccpf-message-action-button:focus-visible {
    background: rgba(111, 73, 166, .09);
    outline: none;
}

.ccpf-message-action-button--unsend {
    color: #7b253d;
}

.ccpf-message-action-button--unsend:hover,
.ccpf-message-action-button--unsend:focus-visible {
    background: rgba(148, 39, 68, .09);
}

.ccpf-message-action-button:disabled {
    color: rgba(55, 45, 65, .48);
    cursor: default;
    background: transparent;
}

.ccpf-message-action-button .classicore-tap-icon,
.ccpf-message-tap-reaction .classicore-tap-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.ccpf-message-action-symbol {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.ccpf-message-tap-reaction {
    display: inline-flex;
    min-height: 23px;
    padding: 2px 7px;
    gap: 3px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(111, 73, 166, .18);
    border-radius: 999px;
    color: var(--classicore-tap-icon-color, #f97316);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 1px 3px rgba(28, 20, 37, .08);
    line-height: 1;
}

.ccpf-message-tap-reaction .classicore-tap-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
}

.ccpf-message-tap-count {
    min-width: 8px;
    color: #55455f;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

@media (max-width: 620px) {
    .ccpf-message-actions-popover {
        min-width: 170px;
        border-radius: 15px;
    }

    .ccpf-message-action-button {
        min-height: 46px;
        font-size: 14px;
    }
}

/* Expiring private chat photos ------------------------------------------- */
.ccpf-expiring-photo-composer {
    margin: 12px 0 4px;
    padding: 12px;
    border: 1px solid rgba(94, 57, 145, .16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(248, 245, 255, .96), rgba(255, 255, 255, .98));
    box-shadow: 0 7px 20px rgba(50, 31, 80, .05);
}

.ccpf-expiring-photo-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.ccpf-expiring-photo-toggle input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: #6f49a6;
}

.ccpf-expiring-photo-toggle-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    background: rgba(111, 73, 166, .11);
    font-size: 17px;
}

.ccpf-expiring-photo-toggle strong,
.ccpf-expiring-photo-toggle small {
    display: block;
}

.ccpf-expiring-photo-toggle strong {
    color: #3f3150;
    font-size: 13px;
    line-height: 1.25;
}

.ccpf-expiring-photo-toggle small {
    margin-top: 2px;
    color: #776b82;
    font-size: 10px;
    line-height: 1.4;
}

.ccpf-expiring-photo-options {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid rgba(94, 57, 145, .12);
}

.ccpf-expiring-photo-options[hidden] {
    display: none !important;
}

.ccpf-expiring-photo-options > span {
    color: #5e4776;
    font-size: 11px;
    font-weight: 850;
}

.ccpf-expiring-photo-durations {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ccpf-expiring-duration {
    min-width: 40px;
    min-height: 31px;
    padding: 5px 9px;
    border: 1px solid rgba(94, 57, 145, .2);
    border-radius: 999px;
    color: #60487a;
    background: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.ccpf-expiring-duration:hover,
.ccpf-expiring-duration:focus-visible,
.ccpf-expiring-duration.is-selected {
    border-color: #6f49a6;
    color: #fff;
    background: #6f49a6;
    outline: none;
}

#kh_reply_message_form.ccpf-expiring-photo-mode .kh-attachment-dropzone--video {
    display: none !important;
}

.ccpf-private-photo-card {
    display: flex;
    width: 100%;
    max-width: 360px;
    min-height: 74px;
    gap: 11px;
    margin: 10px 0 2px;
    padding: 12px;
    align-items: center;
    border: 1px solid rgba(91, 55, 145, .2);
    border-radius: 15px;
    color: #382a47;
    background:
        radial-gradient(circle at 100% 0%, rgba(164, 112, 218, .16), transparent 42%),
        linear-gradient(145deg, rgba(250, 247, 255, .98), rgba(255, 255, 255, .98));
    box-shadow: 0 8px 20px rgba(49, 31, 76, .08);
    font: inherit;
    text-align: left;
}

button.ccpf-private-photo-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(111, 73, 166, .12);
}

button.ccpf-private-photo-card:hover,
button.ccpf-private-photo-card:focus-visible {
    border-color: rgba(111, 73, 166, .54);
    box-shadow: 0 0 0 3px rgba(111, 73, 166, .1), 0 10px 24px rgba(49, 31, 76, .12);
    outline: none;
    transform: translateY(-1px);
}

button.ccpf-private-photo-card.is-loading {
    cursor: wait;
    opacity: .68;
}

.ccpf-private-photo-card--expired {
    border-style: dashed;
    background: rgba(245, 243, 248, .9);
    box-shadow: none;
    opacity: .82;
}

.ccpf-private-photo-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(111, 73, 166, .12);
    font-size: 20px;
}

.ccpf-private-photo-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.ccpf-private-photo-copy strong,
.ccpf-private-photo-copy span {
    display: block;
}

.ccpf-private-photo-copy strong {
    color: #3c2a51;
    font-size: 13px;
    line-height: 1.25;
}

.ccpf-private-photo-copy span {
    margin-top: 3px;
    color: #776b82;
    font-size: 10px;
    line-height: 1.35;
}

.ccpf-private-photo-shield {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: #6f49a6;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.ccpf-private-photo-card--expired .ccpf-private-photo-shield {
    color: #6d6179;
    background: rgba(80, 65, 94, .1);
}

html.ccpf-private-viewer-open,
html.ccpf-private-viewer-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.ccpf-private-viewer {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    flex-direction: column;
    color: #fff;
    background: #08070b;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

.ccpf-private-viewer-topbar {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 13px;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .84), rgba(0, 0, 0, .38));
}

.ccpf-private-viewer-topbar > div strong,
.ccpf-private-viewer-topbar > div span {
    display: block;
}

.ccpf-private-viewer-topbar > div strong {
    font-size: 13px;
}

.ccpf-private-viewer-topbar > div span {
    max-width: 660px;
    margin-top: 2px;
    color: rgba(255, 255, 255, .68);
    font-size: 9px;
    line-height: 1.35;
}

.ccpf-private-viewer-countdown {
    display: grid;
    min-width: 54px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(111, 73, 166, .8);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.ccpf-private-viewer-close {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.ccpf-private-viewer-close:hover,
.ccpf-private-viewer-close:focus-visible {
    background: rgba(255, 255, 255, .18);
    outline: 2px solid rgba(255, 255, 255, .5);
    outline-offset: 2px;
}

.ccpf-private-viewer-stage {
    position: relative;
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    place-items: center;
    overflow: hidden;
    padding: 8px 12px calc(16px + env(safe-area-inset-bottom, 0px));
}

.ccpf-private-viewer-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}

.ccpf-private-viewer-watermark {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 48px 28px;
    padding: 60px 22px;
    align-content: space-around;
    pointer-events: none;
    overflow: hidden;
    opacity: .38;
    transform: rotate(-11deg) scale(1.08);
}

.ccpf-private-viewer-watermark span {
    color: rgba(255, 255, 255, .9);
    font-size: 10px;
    font-weight: 850;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
    white-space: nowrap;
}

@media (max-width: 620px) {
    .ccpf-expiring-photo-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .ccpf-expiring-photo-durations {
        width: 100%;
        justify-content: space-between;
    }

    .ccpf-expiring-duration {
        flex: 1 1 0;
        min-width: 0;
    }

    .ccpf-private-photo-card {
        min-height: 68px;
        padding: 10px;
    }

    .ccpf-private-viewer-topbar {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .ccpf-private-viewer-topbar > div span {
        display: none;
    }

    .ccpf-private-viewer-countdown,
    .ccpf-private-viewer-close {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .ccpf-private-viewer-watermark {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 42px 18px;
        padding: 45px 8px;
    }
}

#kh_reply_message_form.ccpf-expiring-photo-mode .kh-field-attachment--rich {
    display: none !important;
}

.ccpf-expiring-photo-options {
    align-items: stretch;
    flex-direction: column;
}

.ccpf-private-photo-chooser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ccpf-private-photo-choice {
    display: flex;
    min-height: 48px;
    gap: 8px;
    padding: 9px 11px;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(94, 57, 145, .28);
    border-radius: 12px;
    color: #59416f;
    background: rgba(255, 255, 255, .78);
    cursor: pointer;
    text-align: center;
}

.ccpf-private-photo-choice:hover,
.ccpf-private-photo-choice:focus-within {
    border-color: #6f49a6;
    background: rgba(111, 73, 166, .08);
}

.ccpf-private-photo-choice span {
    font-size: 18px;
    line-height: 1;
}

.ccpf-private-photo-choice strong {
    font-size: 11px;
}

.ccpf-private-photo-selected {
    grid-column: 1 / -1;
    overflow: hidden;
    color: #6e617b;
    font-size: 10px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccpf-private-photo-selected:empty {
    display: none;
}

.ccpf-expiring-photo-timer-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.ccpf-expiring-photo-timer-row > span {
    color: #5e4776;
    font-size: 11px;
    font-weight: 850;
}

@media (max-width: 620px) {
    .ccpf-expiring-photo-timer-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
#kh_reply_message_form.ccpf-expiring-photo-mode .kh-upgrade-hint--attachments {
    display: none !important;
}

.ccpf-private-viewer--shielded .ccpf-private-viewer-image {
    visibility: hidden !important;
}

@media print {
    .ccpf-private-viewer,
    .ccpf-private-viewer * {
        display: none !important;
        visibility: hidden !important;
    }
}
