/* ==========================================================================
   Confessions plugin profile hover card
   ========================================================================== */

.wt-confession-profile-card[hidden] {
    display: none !important;
}

.wt-confession-profile-card,
.wt-confession-profile-card * {
    box-sizing: border-box;
}

.wt-confession-profile-card,
.wt-confession-profile-card.lightmode {
    --wt-profile-accent: #f80074;
    --wt-profile-accent-deep: #d90066;
    --wt-profile-ink: #202027;
    --wt-profile-muted: #71717c;
    --wt-profile-line: #e5e5e9;
    --wt-profile-soft: #f1f1f4;
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: block;
    padding: 0;
    opacity: 1;
    place-items: start;
    font-family: inherit;
    pointer-events: none;
}

.wt-confession-profile-card.is-open {
    pointer-events: none;
}

.wt-confession-profile-card__backdrop,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__backdrop {
    display: none;
}

.wt-confession-profile-card__shell,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__shell {
    position: fixed;
    top: var(--wt-profile-top, 12px);
    left: var(--wt-profile-left, 12px);
    display: block;
    width: min(390px, calc(100vw - 16px));
    max-height: min(330px, calc(100dvh - 16px));
    overflow: hidden;
    border: 1px solid #dedee3;
    border-radius: 14px;
    color: var(--wt-profile-ink);
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 16px 42px rgba(26, 24, 34, .18), 0 3px 10px rgba(26, 24, 34, .08);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(7px) scale(.985);
    transform-origin: var(--wt-profile-origin-x, 44px) var(--wt-profile-origin-y, 0);
    transition: opacity .16s ease, transform .18s cubic-bezier(.2, .74, .3, 1);
}

.wt-confession-profile-card.is-open .wt-confession-profile-card__shell {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wt-confession-profile-card__topbar {
    position: absolute;
    z-index: 8;
    top: 8px;
    right: 8px;
    display: block;
    width: 32px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.wt-confession-profile-card__topbar>strong {
    display: none;
}

.wt-confession-profile-card__close,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__close {
    position: static;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #62626d;
    background: #f0f0f3;
    box-shadow: none;
    cursor: pointer;
    backdrop-filter: none;
}

.wt-confession-profile-card__close:hover,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__close:hover {
    color: var(--wt-profile-ink);
    background: #e4e4e8;
    transform: none;
}

.wt-confession-profile-card__close svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.wt-confession-profile-card__content {
    min-height: 0;
    max-height: min(330px, calc(100dvh - 16px));
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.wt-confession-profile-card__profile {
    position: relative;
    padding: 16px;
}

.wt-confession-profile-card__header {
    display: flex;
    min-height: 76px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0 36px 0 0;
    text-align: left;
}

.wt-confession-profile-card__avatar {
    position: relative;
    display: block;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 50%;
}

.wt-confession-profile-card__avatar>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.wt-confession-profile-card__avatar>img,
.wt-confession-profile-card__avatar.wt-story-avatar--has-stories>img,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__avatar.wt-story-avatar--has-stories>img {
    padding: 2px;
/*     border: 3px solid #ff8fc2; */
    background: #fff;
    box-shadow: none;
}

.wt-confession-profile-card__heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    text-align: left;
}

.wt-confession-profile-card__header h2,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__header h2 {
    max-width: 230px;
    overflow: hidden;
    margin: 0;
    color: var(--wt-profile-ink);
    font: 700 19px/1.18 'Outfit', sans-serif;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-confession-profile-card__header small,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__header small {
    display: block;
    max-width: 230px;
    margin-top: 4px;
    overflow: hidden;
    color: var(--wt-profile-muted);
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-confession-profile-card__eyebrow {
    display: none;
}

.wt-confession-profile-card__stats,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__stats {
    position: static;
    display: block;
    width: auto;
    min-height: 22px;
    margin: -21px 0 0 90px;
    padding: 0;
    border: 0;
    background: transparent;
}

.wt-confession-profile-card.lightmode .wt-confession-profile-card__stats {
    margin-top: -12px;
}

.wt-confession-profile-card__stats>div {
    display: flex;
    min-height: 22px;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
}

.wt-confession-profile-card__stats>div:nth-child(2) {
    display: none;
}

.wt-confession-profile-card__stats svg,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__stats svg {
    width: 17px;
    height: 17px;
    padding: 0;
    border-radius: 0;
    color: var(--wt-profile-accent);
    background: transparent;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wt-confession-profile-card__stats>div>span {
    display: block;
    min-width: 0;
}

.wt-confession-profile-card__stats small {
    display: none;
}

.wt-confession-profile-card__stats strong,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__stats strong {
    display: block;
    max-width: 230px;
    overflow: hidden;
    color: var(--wt-profile-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-confession-profile-card__escort,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__escort {
    position: static;
    display: inline-flex;
    width: auto;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0 90px;
    padding: 7px 10px;
    border: 1px solid #dcdce2;
    border-radius: 8px;
    color: #3e3e48;
    background: #fff;
    box-shadow: none;
    text-decoration: none;
    transform: none;
}

.wt-confession-profile-card__escort:hover,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__escort:hover {
    border-color: #ff8fc2;
    color: var(--wt-profile-accent-deep);
    background: #fff7fb;
    transform: none;
}

.wt-confession-profile-card__escort-icon,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__escort-icon {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 0;
    color: var(--wt-profile-accent);
    background: transparent;
}

.wt-confession-profile-card__escort-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wt-confession-profile-card__escort-copy {
    display: block;
}

.wt-confession-profile-card__escort-copy strong,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__escort-copy strong {
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.wt-confession-profile-card__escort-copy small,
.wt-confession-profile-card__escort>b {
    display: none;
}

.wt-confession-profile-card__recent,
.wt-confession-profile-card__profile>.wt-confession-profile-card__empty {
    display: none;
}

.wt-confession-profile-card__footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px -16px -16px;
    padding: 12px;
    border-top: 1px solid var(--wt-profile-line);
    background: #fafafa;
}

.wt-confession-profile-card__footer :is(a, button),
.wt-confession-profile-card.lightmode .wt-confession-profile-card__footer :is(a, button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    gap: 6px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(105deg, var(--wt-profile-accent), #e9006d);
    box-shadow: none;
    font: 650 13px/1 'Outfit', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.wt-confession-profile-card__footer :is(a, button):hover,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__footer :is(a, button):hover {
    border: 0;
    background: linear-gradient(105deg, #e9006d, var(--wt-profile-accent-deep));
    box-shadow: none;
    transform: translateY(-1px);
}

.wt-confession-profile-card__footer :is(a, button):only-child {
    grid-column: 1 / -1;
}

.wt-confession-profile-card__footer .wt-confession-profile-card__view-profile,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__footer .wt-confession-profile-card__view-profile {
    color: #50505b;
    background: var(--wt-profile-soft);
}

.wt-confession-profile-card__footer .wt-confession-profile-card__view-profile:hover,
.wt-confession-profile-card.lightmode .wt-confession-profile-card__footer .wt-confession-profile-card__view-profile:hover {
    color: var(--wt-profile-ink);
    background: #e4e4e8;
}

.wt-confession-profile-card__footer :is(a, button) svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wt-confession-profile-card__footer>small {
    display: none;
}

.wt-confession-profile-card__loading {
    display: flex;
    min-height: 150px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 6px;
    padding: 44px 20px 24px;
    color: var(--wt-profile-muted);
}

.wt-confession-profile-card__loading>span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wt-profile-accent);
    animation: wt-confession-profile-card-pulse .9s ease-in-out infinite alternate;
}

.wt-confession-profile-card__loading>span:nth-child(2) {
    animation-delay: .15s;
}

.wt-confession-profile-card__loading>span:nth-child(3) {
    animation-delay: .3s;
}

.wt-confession-profile-card__loading>p {
    width: 100%;
    margin: 8px 0 0;
    font-size: 12px;
    text-align: center;
}

@keyframes wt-confession-profile-card-pulse {
    to {
        opacity: .35;
        transform: translateY(-2px);
    }
}

.wt-confession-profile-card__content>.wt-confession-profile-card__empty {
    margin: 42px 16px 16px;
    padding: 12px;
    border-radius: 9px;
    font-size: 12px;
}

.wt-confession-profile-card :where(button, a):focus-visible,
.wt-confession-profile-card.lightmode :where(button, a):focus-visible {
    outline: 2px solid rgba(248, 0, 116, .48);
    outline-offset: 2px;
}

@media (max-width: 430px) {

    .wt-confession-profile-card__shell,
    .wt-confession-profile-card.lightmode .wt-confession-profile-card__shell {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .wt-confession-profile-card__header h2,
    .wt-confession-profile-card.lightmode .wt-confession-profile-card__header h2,
    .wt-confession-profile-card__header small,
    .wt-confession-profile-card.lightmode .wt-confession-profile-card__header small,
    .wt-confession-profile-card__stats strong,
    .wt-confession-profile-card.lightmode .wt-confession-profile-card__stats strong {
        max-width: calc(100vw - 160px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .wt-confession-profile-card__shell,
    .wt-confession-profile-card__footer :is(a, button) {
        transition: none;
    }
}