/**
 * User Tooltips & Tipped Library Styles
 *   
 * Contains:
 * - User profile tooltip/popup styles (.profile_tip, .u_tt_*, .tu-tt-*, .tu-popup-*)
 * - Tipped library styles (.tpd-*) - used together with user tooltips
 * 
 * This file should be loaded on any page that displays user profile tooltips.
 * Loaded via mainLayout.jsp and forum header.jsp
 */


/* ===========================================
   USER PROFILE TOOLTIPS - Basic
   =========================================== */

.profile_tip {
    cursor: pointer;
    text-decoration: underline;
}

.utip {
    cursor: pointer;
}

.u_profile_tip_image {
    float: left;
    padding-right: 5px;
    height: 80px;
    width: 80px;
}

.u_tt_name {
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    background-color: #eee;
    text-align: center;
    padding: 2px 5px 2px 10px;
    margin-bottom: 3px;
}

.u_tt_name a {
    color: var(--site-primary) !important;
    text-decoration: none !important;
    font-weight: 700;
}

.u_tt_text {
    font-size: 12px;
    font-family: Verdana;
    padding-bottom: 2px;
}

/* Legacy user tooltip on orange: rank, TigerPulse, Posts, Joined must be white for readability (light mode) */
.tpd-content:has(.logo-area) .u_tt_text {
    color: var(--color-text-on-primary, #fff) !important;
}


/* ===========================================
   PLAYER / RECRUIT / COACH TOOLTIP CARD (JSON API)
   =========================================== */

.tooltip-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: 260px;
    max-width: 380px;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

.tooltip-card__image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: 50% 0%;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--color-bg-surface);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
}

.tooltip-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tooltip-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0;
}

.tooltip-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tooltip-card__meta-row {
    font-size: 0.875rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* User tooltip: orange header, neutral body, image left / stats right, uniform action buttons */
.tooltip-card--user {
    --tooltip-user-radius: 6px;
    flex-direction: column;
    padding: 0;
    min-width: 280px;
    max-width: 360px;
    overflow: hidden;
    border-radius: var(--tooltip-user-radius);
    background: #252525;
    box-sizing: border-box;
}

.tooltip-card--user .tooltip-card__header {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: center;
    background-color: var(--site-primary);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 35%, rgba(0, 0, 0, 0.10) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.12), inset 0 0 0 1px var(--site-primary);
    border: 1px solid var(--site-primary);
    border-bottom: none;
    box-sizing: border-box;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.tooltip-card--user .tooltip-card__header:hover {
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15);
    filter: brightness(1.06);
}

.tooltip-card--user .tooltip-card__content-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 12px;
    background: #252525;
    box-sizing: border-box;
}

/* Light mode: keep user tooltip body dark so rank, TigerPulse, Posts, Joined stay readable (no orange body + purple/orange text) */
html:not(.dark-mode) .tooltip-card--user .tooltip-card__content-row {
    background: #252525 !important;
}

.tooltip-card--user .tooltip-card__content-row .tooltip-card__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.tooltip-card--user .tooltip-card__content-row .tooltip-card__body {
    flex: 1;
    min-width: 0;
}

.tooltip-card--user .tooltip-card__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
    padding: 10px 12px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #252525;
    box-sizing: border-box;
}

.tooltip-card--user .tooltip-card__action-icon,
.tooltip-card--user .tooltip-card__action-icon .material-icons {
    color: #fff !important;
}

/* Uniform button look for all action icons (message, ignore, follow) */
.tooltip-card--user .tooltip-card__action-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px !important;
    margin: 0 !important;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tooltip-card--user .tooltip-card__action-icon .material-icons {
    line-height: 1;
    display: block;
    font-size: 1.25rem !important;
}

/* Optical nudge: action icons sit slightly left/up in their glyph box */
.tooltip-card--user .tooltip-card__actions .tooltip-card__action-icon:nth-child(1) .material-icons,
.tooltip-card--user .tooltip-card__actions .tooltip-card__action-icon:nth-child(2) .material-icons,
.tooltip-card--user .tooltip-card__actions .tooltip-card__action-icon:nth-child(3) .material-icons,
.tooltip-card--user .tooltip-card__actions .tooltip-card__action-icon:nth-child(4) .material-icons {
    transform: translate(1px, 1px);
}

.tooltip-card--user .tooltip-card__action-icon:hover,
.tooltip-card--user .tooltip-card__action-icon:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Active state: Following or Ignoring this user */
.tooltip-card--user .tooltip-card__action-icon.tooltip-card__action-icon--active {
    background: rgba(255, 166, 0, 0.35);
    border-color: rgba(255, 200, 100, 0.5);
}
.tooltip-card--user .tooltip-card__action-icon.tooltip-card__action-icon--active:hover,
.tooltip-card--user .tooltip-card__action-icon.tooltip-card__action-icon--active:focus {
    background: rgba(255, 166, 0, 0.45);
    border-color: rgba(255, 200, 100, 0.6);
}

.tooltip-card__stars {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.2rem;
}

.tooltip-card__stars-label {
    font-weight: 600;
}

.tooltip-card__star-img {
    vertical-align: middle;
    margin-left: 0.2rem;
}

.tooltip-card__link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--site-primary, #f56600);
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
}

.tooltip-card__link:hover {
    background: var(--color-bg-surface);
    color: var(--site-primary, #f56600) !important;
}

/* Main CTA (View Full Profile): content-width, centered in card body - for non-user cards */
.tooltip-card__body > .tooltip-card__link:not(.tooltip-card__profile-link) {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tooltip-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tooltip-card__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.5rem !important;
    text-decoration: none !important;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.tooltip-card__action-icon .material-icons {
    color: #fff !important;
}

.tooltip-card__action-icon:hover,
.tooltip-card__action-icon:focus {
    background: rgba(255, 255, 255, 0.2);
}

.tooltip-card__action-icon .material-icons {
    font-size: 1.5rem;
}

/* Author tooltip card (JSON API) */
.tooltip-card--author .tooltip-card__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.tooltip-card__link-small {
    font-size: 0.85rem;
    padding: 0.2rem 0;
}


/* ===========================================
   USER TOOLTIPS - Modern (tu-tt-*)
   =========================================== */

.tu-tt-name,
.tu-popup-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff !important;
    font-family: trebuchet ms;
    text-shadow: 0 -1px 0 #668337;
}

.tu-tt-title {
    margin-bottom: 5px;
    margin-top: 0;
    text-align: center;
    font-size: 1.2em;
}

.tu-tt-first {
    font-size: 1.2em;
}

.tu-tt-name {
    padding-left: 5px;
    padding-bottom: 2px;
    display: inline-block;
}

.tu-tt-name a {
    color: #fff !important;
}

.tu-tt-more a {
    font-size: 1.1em;
    color: #fff !important;
    margin-top: 5px;
    cursor: pointer;
}

a:hover.tu-tt-name,
a:hover.tu-popup-name {
    text-decoration: underline !important;
}

.tu-tt-row {
    margin-bottom: 5px;
    padding: 0 5px 0 0;
    text-align: left;
    background-image: linear-gradient(var(--site-primary-dark), var(--site-primary));
    cursor: pointer;
    height: 20px;
}

.tu-tt-row a {
    text-decoration: none;
}

.tu-tt-img {
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-color: #eee;
    vertical-align: bottom;
}


/* ===========================================
   USER POPUPS (tu-popup-*)
   =========================================== */

.popup {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.25);
}

.popup-inner {
    padding: 0 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px #000;
    border-radius: 3px;
    background: var(--site-primary);
}

.tu-popup-name {
    display: inline-block;
}

.tu-popup-name a {
    color: #fff !important;
}

.tu-popup-img {
    width: 40px;
    height: 40px;
    background-color: #eee;
}

.tu-popup-title {
    text-align: center;
    color: #fff;
    font-size: 1.5em;
    margin-top: 5px;
}

.tu-popup-pulse {
    color: #fff;
    font-size: 0.9em;
    font-weight: 700;
}

.tu-popup-row {
    width: 100%;
    height: 40px;
    margin-bottom: 5px;
    margin-right: 25px;
    cursor: pointer;
    background-image: linear-gradient(var(--site-secondary-dark), var(--site-secondary));
}

.tu-popup-row-info {
    display: inline-block;
    margin-left: 5px;
    vertical-align: top;
}

.tu-popup-scroll-pane {
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
    overflow: auto;
    padding: 0;
    text-align: left;
    max-height: 500px;
    margin-bottom: 3px;
    margin-top: 5px;
}

/* Award posts tooltip: supports multi-line post titles and author link metadata. */
.award-posts-tooltip {
    width: 360px;
    max-width: min(360px, 85vw);
}

.award-posts-tooltip__title {
    margin: 0 0 8px 0;
    text-align: center;
    color: #fff;
    font-size: 1.25em;
    line-height: 1.35;
}

.award-posts-tooltip__list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 360px;
    overflow: auto;
}

.award-posts-tooltip__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    margin-bottom: 6px;
    background-image: linear-gradient(var(--site-primary-dark), var(--site-primary));
    border-radius: 6px;
}

.award-posts-tooltip__img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    background-color: #eee;
    border-radius: 4px;
}

.award-posts-tooltip__body {
    min-width: 0;
}

.award-posts-tooltip__post-link {
    display: block;
    color: #fff !important;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    word-break: break-word;
}

.award-posts-tooltip__post-link:hover {
    text-decoration: underline !important;
}

.award-posts-tooltip__meta {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95em;
    line-height: 1.25;
}

.award-posts-tooltip__author-link,
.award-posts-tooltip__author-link:link,
.award-posts-tooltip__author-link:visited {
    color: #fff !important;
    text-decoration: underline !important;
    font-weight: 700;
}

.award-posts-tooltip__author-link:hover {
    color: #fff !important;
}

.award-posts-tooltip__empty {
    list-style: none;
    color: #fff;
    text-align: center;
    padding: 8px 4px;
}


/* ===========================================
   TIPPED LIBRARY - Core
   =========================================== */

.tpd-tooltip {
    position: absolute;
}

.tpd-tooltip,
.tpd-tooltip [class^=tpd-] {
    box-sizing: content-box;
}

.tpd-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    float: left;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tpd-content-spacer,
.tpd-content-relative,
.tpd-content-relative-padder {
    float: left;
    position: relative;
}

.tpd-content-relative {
    width: 100%;
}

.tpd-content {
    float: left;
    clear: both;
    position: relative;
    padding: 5px;
    font-size: 11px;
    line-height: 16px;
    color: #fff;
}

.tpd-has-inner-close .tpd-content-relative .tpd-content {
    padding-right: 0 !important;
}

.tpd-tooltip .tpd-content-no-padding {
    padding: 0 !important;
}


/* ===========================================
   TIPPED LIBRARY - Title
   =========================================== */

.tpd-title-wrapper {
    float: left;
    position: relative;
    overflow: hidden;
}

.tpd-title-spacer {
    float: left;
}

.tpd-title-relative,
.tpd-title-relative-padder {
    float: left;
    position: relative;
}

.tpd-title-relative {
    width: 100%;
}

.tpd-title {
    float: left;
    position: relative;
    font-size: 11px;
    line-height: 16px;
    padding: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.tpd-has-title-close .tpd-title {
    padding-right: 0 !important;
}


/* ===========================================
   TIPPED LIBRARY - Close Button
   =========================================== */

.tpd-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    cursor: pointer;
    overflow: hidden;
    color: #fff;
}

.tpd-close-icon {
    float: left;
    font-family: Arial, Baskerville, monospace;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 28px;
    text-align: center;
}


/* ===========================================
   TIPPED LIBRARY - Skin & Frames
   =========================================== */

.tpd-skin {
    position: absolute;
    top: 0;
    left: 0;
}

.tpd-frames {
    position: absolute;
    top: 0;
    left: 0;
}

.tpd-frames .tpd-frame {
    float: left;
    width: 100%;
    height: 100%;
    clear: both;
    display: none;
}

.tpd-visible-frame-top .tpd-frame-top {
    display: block;
}

.tpd-visible-frame-bottom .tpd-frame-bottom {
    display: block;
}

.tpd-visible-frame-left .tpd-frame-left {
    display: block;
}

.tpd-visible-frame-right .tpd-frame-right {
    display: block;
}


/* ===========================================
   TIPPED LIBRARY - Background
   =========================================== */

.tpd-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
}

.tpd-background-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: initial;
    pointer-events: none;
}

.tpd-no-shadow .tpd-skin .tpd-background-shadow {
    box-shadow: none !important;
}

.tpd-background-box {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.tpd-no-stem .tpd-background-box,
.tpd-no-stem .tpd-shift-stem {
    display: none;
}

.tpd-no-stem .tpd-background-box-top {
    display: block;
}

.tpd-background-box-shift,
.tpd-background-box-shift-further {
    position: relative;
    float: left;
    width: 100%;
    height: 100%;
}

.tpd-background {
    border-radius: 10px;
    float: left;
    clear: both;
    background: transparent;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.1);
}

.tpd-background-loading {
    display: none;
}

.tpd-no-radius .tpd-skin .tpd-frames .tpd-frame .tpd-backgrounds .tpd-background {
    border-radius: 0;
}

.tpd-background-title {
    float: left;
    clear: both;
    width: 100%;
    background-color: #282828;
}

.tpd-background-content {
    float: left;
    clear: both;
    width: 100%;
    background-color: #282828;
}

.tpd-background-border-hack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-style: solid;
}

.tpd-background-box-top {
    top: 0;
}

.tpd-background-box-bottom {
    bottom: 0;
}

.tpd-background-box-left {
    left: 0;
}

.tpd-background-box-right {
    right: 0;
}


/* ===========================================
   TIPPED LIBRARY - iFrame Shim
   =========================================== */

.tpd-iframeshim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
}


/* ===========================================
   TIPPED LIBRARY - Stem (Arrow)
   =========================================== */

.tpd-shift-stem {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.tpd-shift-stem-side {
    position: absolute;
}

.tpd-frame-top .tpd-shift-stem-side,
.tpd-frame-bottom .tpd-shift-stem-side {
    width: 100%;
}

.tpd-frame-left .tpd-shift-stem-side,
.tpd-frame-right .tpd-shift-stem-side {
    height: 100%;
}

.tpd-stem {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 16px;
    height: 8px;
    margin-left: 3px;
    margin-top: 2px;
    -webkit-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
}

.tpd-tooltip .tpd-skin .tpd-frames .tpd-frame .tpd-shift-stem .tpd-stem-reset {
    margin: 0 !important;
}

.tpd-stem-spacer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tpd-stem-reset .tpd-stem-spacer {
    margin-top: 0;
}

.tpd-stem-point {
    width: 100px;
    position: absolute;
    top: 0;
    left: 50%;
}

.tpd-stem-downscale,
.tpd-stem-transform {
    float: left;
    width: 100%;
    height: 100%;
    -webkit-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
    position: relative;
}

.tpd-stem-side {
    width: 50%;
    height: 100%;
    float: left;
    position: relative;
    overflow: hidden;
}

.tpd-stem-side-inversed {
    -webkit-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

.tpd-stem-triangle {
    width: 0;
    height: 0;
    border-bottom-style: solid;
    border-left-color: transparent;
    border-left-style: solid;
    position: absolute;
    top: 0;
    left: 0;
}

.tpd-stem-border {
    width: 20px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    background-color: var(--color-bg-surface);
    border-right-color: var(--color-bg-surface);
    border-right-style: solid;
    border-right-width: 0;
}

.tpd-stem-border-corner {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    border-right-style: solid;
    border-right-width: 0;
}

.tpd-stem * {
    z-index: 0;
    zoom: 1;
}

.tpd-stem-border-center-offset,
.tpd-stem-border-center-offset-inverse {
    float: left;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tpd-stem-notransform {
    float: left;
    width: 100%;
    height: 100%;
    position: relative;
}

.tpd-stem-notransform .tpd-stem-border {
    height: 100%;
    position: relative;
    float: left;
    top: 0;
    left: 0;
    margin: 0;
}

.tpd-stem-notransform .tpd-stem-border-center {
    position: absolute;
}

.tpd-stem-notransform .tpd-stem-border-corner {
    background: var(--color-bg-surface);
    border: 0;
    top: auto;
    left: auto;
}

.tpd-stem-notransform .tpd-stem-border-center,
.tpd-stem-notransform .tpd-stem-triangle {
    height: 0;
    border: 0;
    left: 50%;
}

.tpd-stem-transform-left {
    -webkit-transform: rotate(-90deg) scale(-1, 1);
    transform: rotate(-90deg) scale(-1, 1);
}

.tpd-stem-transform-right {
    -webkit-transform: rotate(90deg) translate(0, -100%);
    transform: rotate(90deg) translate(0, -100%);
}

.tpd-stem-transform-bottom {
    -webkit-transform: scale(1, -1) translate(0, -100%);
    transform: scale(1, -1) translate(0, -100%);
}


/* ===========================================
   TIPPED LIBRARY - Spinner
   =========================================== */

.tpd-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 36px;
}

.tpd-spinner-spin {
    position: relative;
    float: left;
    margin: 8px 0 0 13px;
    text-indent: -9999em;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-left: 2px solid #fff;
    -webkit-animation: tpd-spinner-animation 1.1s infinite linear;
    animation: tpd-spinner-animation 1.1s infinite linear;
    box-sizing: border-box !important;
}

.tpd-spinner-spin,
.tpd-spinner-spin:after {
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

@-webkit-keyframes tpd-spinner-animation {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes tpd-spinner-animation {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


/* ===========================================
   TIPPED LIBRARY - Loading State
   =========================================== */

.tpd-is-loading .tpd-content-wrapper,
.tpd-is-loading .tpd-title-wrapper {
    display: none;
}

.tpd-is-loading .tpd-background {
    display: none;
}

.tpd-is-loading .tpd-background-loading {
    display: block;
}

.tpd-tooltip-measuring {
    top: 0;
    left: 0;
    position: absolute;
    max-width: 100%;
    width: 100%;
}

.tpd-tooltip-measuring .tpd-skin,
.tpd-tooltip-measuring .tpd-spinner {
    display: none;
}

.tpd-tooltip-measuring .tpd-content-wrapper,
.tpd-tooltip-measuring .tpd-title-wrapper {
    display: block;
}


/* ===========================================
   TIPPED LIBRARY - Links
   =========================================== */

.tpd-tooltip a,
.tpd-tooltip a:hover {
    color: gray;
    text-decoration: underline;
}

.tpd-tooltip a:hover {
    color: #6c6c6c;
}


/* ===========================================
   TIPPED LIBRARY - Size Variants
   =========================================== */

/* X-Small */
.tpd-size-x-small .tpd-content,
.tpd-size-x-small .tpd-title {
    padding: 7px 8px;
    font-size: 10px;
    line-height: 15px;
}

.tpd-size-x-small .tpd-background {
    border-radius: 5px;
}

.tpd-size-x-small .tpd-stem {
    width: 12px;
    height: 6px;
    margin-left: 4px;
    margin-top: 2px;
}

.tpd-size-x-small.tpd-no-radius .tpd-stem {
    margin-left: 7px;
}

.tpd-size-x-small .tpd-close {
    margin-bottom: 1px;
}

.tpd-size-x-small .tpd-spinner {
    width: 35px;
    height: 29px;
}

.tpd-size-x-small .tpd-spinner-spin {
    margin: 6px 0 0 9px;
}

.tpd-size-x-small .tpd-spinner-spin,
.tpd-size-x-small .tpd-spinner-spin:after {
    width: 17px;
    height: 17px;
}

/* Small */
.tpd-size-small .tpd-content,
.tpd-size-small .tpd-title {
    padding: 8px;
    font-size: 10px;
    line-height: 16px;
}

.tpd-size-small .tpd-background {
    border-radius: 6px;
}

.tpd-size-small .tpd-stem {
    width: 14px;
    height: 7px;
    margin-left: 5px;
    margin-top: 2px;
}

.tpd-size-small.tpd-no-radius .tpd-stem {
    margin-left: 8px;
}

.tpd-size-small .tpd-close {
    margin: 2px 1px;
}

.tpd-size-small .tpd-spinner {
    width: 42px;
    height: 32px;
}

.tpd-size-small .tpd-spinner-spin {
    margin: 7px 0 0 13px;
}

.tpd-size-small .tpd-spinner-spin,
.tpd-size-small .tpd-spinner-spin:after {
    width: 18px;
    height: 18px;
}

/* Medium */
.tpd-size-medium .tpd-content,
.tpd-size-medium .tpd-title {
    padding: 5px;
    font-size: 11px;
    line-height: 16px;
}

.tpd-size-medium .tpd-background {
    border-radius: 8px;
}

.tpd-size-medium .tpd-stem {
    width: 16px;
    height: 8px;
    margin-left: 6px;
    margin-top: 2px;
}

.tpd-size-medium.tpd-no-radius .tpd-stem {
    margin-left: 10px;
}

.tpd-size-medium .tpd-close {
    margin: 4px 2px;
}

.tpd-size-medium .tpd-spinner {
    width: 50px;
    height: 36px;
}

.tpd-size-medium .tpd-spinner-spin {
    margin: 8px 0 0 15px;
}

.tpd-size-medium .tpd-spinner-spin,
.tpd-size-medium .tpd-spinner-spin:after {
    width: 20px;
    height: 20px;
}

/* Large */
.tpd-size-large .tpd-content,
.tpd-size-large .tpd-title {
    padding: 10px;
    font-size: 13px;
    line-height: 18px;
}

.tpd-size-large .tpd-background {
    border-radius: 8px;
}

.tpd-size-large .tpd-stem {
    width: 18px;
    height: 9px;
    margin-left: 7px;
    margin-top: 2px;
}

.tpd-size-large.tpd-no-radius .tpd-stem {
    margin-left: 10px;
}

.tpd-size-large .tpd-close {
    margin: 5px 2px;
}

.tpd-size-large .tpd-spinner {
    width: 54px;
    height: 38px;
}

.tpd-size-large .tpd-spinner-spin {
    margin: 9px 0 0 17px;
}

.tpd-size-large .tpd-spinner-spin,
.tpd-size-large .tpd-spinner-spin:after {
    width: 20px;
    height: 20px;
}


/* ===========================================
   TIPPED LIBRARY - Purple Skin (Site Theme)
   =========================================== */

.tpd-skin-purple .tpd-content,
.tpd-skin-purple .tpd-title,
.tpd-skin-purple .tpd-close {
    color: #fff;
}

.tpd-skin-purple .tpd-background-content,
.tpd-skin-purple .tpd-background-title {
    background-color: var(--site-secondary);
}

.tpd-skin-purple .tpd-background {
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.1);
}

.tpd-skin-purple .tpd-title-wrapper {
    border-bottom: 1px solid #404040;
}

.tpd-skin-purple .tpd-spinner-spin {
    border-color: rgba(255, 255, 255, 0.2);
    border-left-color: #fff;
}

.tpd-skin-purple a {
    color: #ccc;
}

.tpd-skin-purple a:hover {
    color: silver;
}

/* Flush user tooltip card to tooltip edges (no extra padding) */
.tpd-content .tooltip-card--user {
    margin: -5px;
}

