/* ==========================================================================
   Gamplify TAC — Module Listing State Styles
   ========================================================================== */


/* ------------------------------------------------------------------
   Default: hide all state-driven elements
   ------------------------------------------------------------------ */

.gamplify-tac-growth-module-index-icons,
.gamplify-tac-growth-module-play-icons,
.gamplify-tac-growth-module-completed-icons,
.gamplify-tac-growth-module-btn-start,
.gamplify-tac-growth-module-btn-continue {
    display: none;
}


/* ------------------------------------------------------------------
   tac-module-not-started (any module, not first)
   Show: index icon
   Hide: play icon + completed icon + start button + continue button
   ------------------------------------------------------------------ */

.tac-module-not-started .gamplify-tac-growth-module-index-icons {
    display: block;
}


/* ------------------------------------------------------------------
   tac-module-not-started + first-tac-module
   Show: play icon + start button
   Hide: index icon + completed icon + continue button
   ------------------------------------------------------------------ */

.tac-module-not-started.first-tac-module .gamplify-tac-growth-module-index-icons {
    display: none;
}

.tac-module-not-started.first-tac-module .gamplify-tac-growth-module-play-icons {
    display: block;
}

.tac-module-not-started.first-tac-module .gamplify-tac-growth-module-btn-start,
.tac-module-in-progress.first-tac-module .gamplify-tac-growth-module-btn-start{
    display: inline-flex;
}

.tac-module-not-started.first-tac-module .gamplify-tac-growth-module-arrow-icon {
    display: none;
}


/* ------------------------------------------------------------------
   tac-module-in-progress
   Show: play icon + continue button
   ------------------------------------------------------------------ */

.tac-module-in-progress .gamplify-tac-growth-module-play-icons {
    display: block;
}

.tac-module-in-progress .gamplify-tac-growth-module-btn-continue {
    display: inline-flex;
}

.tac-module-in-progress .gamplify-tac-growth-module-arrow-icon {
    display: none;
}


/* ------------------------------------------------------------------
   tac-module-completed
   Show: completed icon only
   No button shown
   ------------------------------------------------------------------ */

.tac-module-completed .gamplify-tac-growth-module-completed-icons {
    display: block;
}

.tac-has-user-course-not-purchased .tac-course-locked-modules .gamplify-tac-growth-module-index-icons,
.tac-has-user-course-not-purchased .tac-course-locked-modules .gamplify-tac-growth-module-locked-icon {
    display: block;
}

.tac-has-user-course-not-purchased .tac-course-locked-modules .gamplify-tac-growth-module-completed-icons,
.tac-has-user-course-not-purchased .tac-course-locked-modules .gamplify-tac-growth-module-play-icons {
    display: none;
}

/* ── Merged from gamplify-jetengine-extension ── */
/**
 * Gamplify User Cover — Frontend styles.
 *
 * Applied to <img> tags rendered by both the JetEngine callback
 * and the Elementor Dynamic Tag.
 *
 * @package GamplifyUserCover
 * @since   1.0.0
 */

.gamplify-user-cover-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* ==========================================================================
   Gamplify TAC — My Growth Latest  [gamplify_tac_my_growth_latest]
   ========================================================================== */

.tac-mg-latest {
    background: transparent;
    padding: 0;
}

.tac-mg-latest__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
}

.tac-mg-latest__body {
    margin-bottom: 10px;
}

.tac-mg-latest__info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

/* Title — truncated with ellipsis at 2 lines */
.tac-mg-latest__title {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    text-decoration: none;
    cursor: default;
}

a.tac-mg-latest__title {
    cursor: pointer;
}

a.tac-mg-latest__title:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Badge */
.tac-mg-latest__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
}

.tac-mg-latest__badge-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Progress bar (Course only) */
.tac-mg-latest__progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.tac-mg-latest__bar-wrap {
    flex: 1 1 auto;
    height: 6px;
    border-radius: 100px;
    background: rgba(255,255,255,0.15);
    overflow: hidden;
}

.tac-mg-latest__bar {
    height: 100%;
    border-radius: 100px;
    background: #f5c842;
    transition: width 0.5s ease;
    min-width: 4px;
}

.tac-mg-latest__pct {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
}

/* View-all link */
.tac-mg-latest__view-all {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.tac-mg-latest__view-all:hover {
    color: #ffffff;
}

/* Empty state */
.tac-mg-latest--empty .tac-mg-latest__empty-msg {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin: 6px 0 0;
}


/* ==========================================================================
   Gamplify TAC — My Contributions  [gamplify_tac_my_contributions]
   Matches: light card, heading center-aligned, divider, title bold,
   file-type badge (pill, light border), stat row with icon, manage link,
   full-width dark CTA button.
   ========================================================================== */

/* ── Wrapper ───────────────────────────────────────────── */
.tac-mc {
    background: transparent;
    padding: 0;
}

/* ── Header ────────────────────────────────────────────── */
.tac-mc__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.tac-mc__header-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.tac-mc__heading {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* ── Divider ───────────────────────────────────────────── */
.tac-mc__divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 0 0 16px;
}

/* ── Item ──────────────────────────────────────────────── */
.tac-mc__item {
    margin-bottom: 6px;
}

.tac-mc__item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    margin-bottom: 8px;
}

/* Title — truncated with ellipsis at 2 lines */
.tac-mc__title {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
}

/* ── Badge (file type — Other Resources only) ──────────── */
.tac-mc__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #ffffff;
    color: #444444;
    border: 1px solid #d0d0d0;
    white-space: nowrap;
}

.tac-mc__badge-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* File type colour accents — set background-image in your theme CSS */
.tac-mc__badge--docx  { border-color: #2b579a; color: #2b579a; }
.tac-mc__badge--pdf   { border-color: #cc2929; color: #cc2929; }
.tac-mc__badge--xlsx  { border-color: #217346; color: #217346; }
.tac-mc__badge--pptx  { border-color: #d04423; color: #d04423; }
.tac-mc__badge--mp4,
.tac-mc__badge--video { border-color: #7b5ea7; color: #7b5ea7; }

/* ── Stat row ──────────────────────────────────────────── */
.tac-mc__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.tac-mc__stat-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.65;
}

.tac-mc__stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.tac-mc__stat-label {
    font-size: 13px;
    color: #666666;
}

/* ── Manage link ───────────────────────────────────────── */
.tac-mc__manage-link {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #555555;
    text-decoration: none;
    transition: color 0.2s;
}

.tac-mc__manage-link:hover {
    color: #1a1a1a;
    text-decoration: none;
}

/* ── CTA button ────────────────────────────────────────── */
.tac-mc__btn {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    box-sizing: border-box;
}

.tac-mc__btn--primary {
    background: #0d3349;
    color: #ffffff;
}

.tac-mc__btn--primary:hover {
    opacity: 0.88;
    color: #ffffff;
    text-decoration: none;
}

.tac-mc__btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Empty state ───────────────────────────────────────── */
.tac-mc--empty .tac-mc__empty-body {
    margin-bottom: 18px;
}

.tac-mc--empty .tac-mc__empty-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}


/* ==========================================================================
   Gamplify TAC — Growth Study Progress  [gamplify_tac_study_progress]
   Dark teal card, white text, amber progress bar.
   ========================================================================== */

/* ── Card wrapper ──────────────────────────────────────── */
.tac-sp {
    background: #0d3349;
    border-radius: 12px;
    padding: 20px 20px 22px;
    color: #ffffff;
    box-sizing: border-box;
}

/* ── Header: title + chevron ───────────────────────────── */
.tac-sp__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.tac-sp__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
    /* No truncation — title can wrap to show the full name */
}

/* Toggle / chevron */
.tac-sp__toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin-top: 1px;
}

.tac-sp__toggle:hover {
    opacity: 1;
}

.tac-sp__toggle-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Default chevron-up shape via CSS — replace with background-image in theme */
    border: 2px solid #ffffff;
    border-left: none;
    border-bottom: none;
    width: 9px;
    height: 9px;
    transform: rotate(-45deg);
    margin-top: 3px;
}

/* ── Divider ───────────────────────────────────────────── */
.tac-sp__divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 0 0 16px;
}

/* ── Progress section ──────────────────────────────────── */
.tac-sp__progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tac-sp__progress-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin: 0 0 2px;
}

.tac-sp__progress-text {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

/* ── Progress bar ──────────────────────────────────────── */
.tac-sp__bar-wrap {
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: rgba(255,255,255,0.18);
    overflow: hidden;
}

.tac-sp__bar {
    height: 100%;
    border-radius: 100px;
    background: #f5c842;
    transition: width 0.5s ease;
    min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   Growth Course Activity  [gamplify_tac_course_activity]
   ═══════════════════════════════════════════════════════════════════════ */

.tac-ca {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Progress section ──────────────────────────────────── */
.tac-ca__progress-wrap {
    display: flex;
    flex-direction: column;
}

.tac-ca__progress-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tac-ca-label-color, #888);
    margin: 0 0 2px;
}

.tac-ca__progress-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--tac-ca-text-color, #1a1a1a);
    margin: 0 0 10px;
}

/* ── Progress bar ──────────────────────────────────────── */
.tac-ca__bar-wrap {
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: var(--tac-ca-bar-track, #e5e5e5);
    overflow: hidden;
}

.tac-ca__bar {
    height: 100%;
    border-radius: 100px;
    background: var(--tac-ca-bar-fill, #d4a017);
    transition: width 0.5s ease;
    min-width: 0;
}

/* ── Action button ─────────────────────────────────────── */
.tac-ca__btn-wrap {
    display: flex;
}

.tac-ca__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
    background: var(--tac-ca-btn-bg, #1a3c5e);
    color: var(--tac-ca-btn-color, #ffffff);
}

.tac-ca__btn:hover {
    opacity: 0.88;
    color: var(--tac-ca-btn-color, #ffffff);
    text-decoration: none;
}

/* Play icon via CSS — overrideable with a real SVG/font icon */
.tac-ca__btn-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2.5l10 5.5-10 5.5V2.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2.5l10 5.5-10 5.5V2.5z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   JetEngine Gallery Slider — Video Support
   class-gallery-video-support.php
   ═══════════════════════════════════════════════════════════════════════ */

/* Fill the slide the same way the gallery image does */
.jet-engine-gallery-slider__link[data-media-type="video"] {
    display: block;
    line-height: 0;
}

.jet-engine-gallery-slider__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* mirrors typical img sizing in the slider */
    max-width: 100%;
    background: #000;
}

/* ==========================================================================
   Revenue Dashboard — Stat Cards, Chart, Info Boxes, Transaction Tables
   @since 2.5.0
   ========================================================================== */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
	--tac-teal:         #1e6e6e;
	--tac-teal-dark:    #185a5a;
	--tac-teal-light:   #e8f4f4;
	--tac-white:        #ffffff;
	--tac-bg:           #f9fafb;
	--tac-border:       #e5e7eb;
	--tac-text:         #111827;
	--tac-muted:        #6b7280;
	--tac-green:        #10b981;
	--tac-green-bg:     #ecfdf5;
	--tac-red:          #ef4444;
	--tac-red-bg:       #fef2f2;
	--tac-radius:       12px;
	--tac-radius-sm:    8px;
	--tac-shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
	--tac-shadow-md:    0 4px 12px rgba(0,0,0,.10);
}

/* ── Shared card base ───────────────────────────────────────────────────── */
.tac-card {
	position: relative;
	border-radius: var(--tac-radius);
	padding: 20px 22px;
	box-shadow: var(--tac-shadow);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Hero card — dark teal (SS1 first box, SS2 Total Revenue) */
.tac-card--hero {
	background: var(--tac-teal);
	color: var(--tac-white);
	min-width: 200px;
}

/* White card (SS3 boxes) */
.tac-card--white {
	background: var(--tac-white);
	color: var(--tac-text);
	border: 1px solid var(--tac-border);
}

/* Resource card (SS2) */
.tac-card--resource {
	background: var(--tac-white);
	border: 1px solid var(--tac-border);
}

/* ── Card icon wrap ────────────────────────────────────────────────────── */
.tac-card__icon-wrap {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-bottom: 4px;
}

.tac-card__icon-wrap--hero   { background: rgba(255,255,255,.18); color: #fff; }
.tac-card__icon-wrap--eye    { background: #fef3c7; color: #d97706; }
.tac-card__icon-wrap--download { background: #ede9fe; color: #7c3aed; }
.tac-card__icon-wrap--calendar { background: #e0f2fe; color: #0284c7; }

.tac-card__icon { width: 20px; height: 20px; }

/* ── Card fields ───────────────────────────────────────────────────────── */
.tac-card--hero .tac-card__title {
	font-size: 13px;
	font-weight: 500;
	opacity: .85;
	letter-spacing: .02em;
}

.tac-card--white .tac-card__title {
	font-size: 13px;
	color: var(--tac-muted);
	font-weight: 500;
}

.tac-card__value {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.tac-card--white .tac-card__value { color: var(--tac-text); }
.tac-card--hero  .tac-card__value { color: var(--tac-white); }

.tac-card__value--plain { font-size: 32px; }

/* ── Growth / trend row ────────────────────────────────────────────────── */
.tac-card__growth {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	margin-top: 2px;
}

.tac-card--hero .tac-card__growth { color: rgba(255,255,255,.9); }

.tac-card--white .tac-card__growth--up   { color: var(--tac-green); }
.tac-card--white .tac-card__growth--down { color: var(--tac-red); }

.tac-card__growth-label {
	font-weight: 400;
	font-size: 12px;
	opacity: .8;
}

/* ── Card link ─────────────────────────────────────────────────────────── */
.tac-card__link {
	margin-top: 10px;
	font-size: 13px;
	color: rgba(255,255,255,.85);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: opacity .15s;
}
.tac-card__link:hover { opacity: 1; color: #fff; }

/* ── Resource card internals ───────────────────────────────────────────── */
.tac-card__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 2px;
}

.tac-card__header-icon {
	color: var(--tac-muted);
	display: flex;
}
.tac-card__header-icon svg { width: 18px; height: 18px; }

.tac-card__heading {
	font-size: 14px;
	font-weight: 600;
	color: var(--tac-text);
}

.tac-card__divider {
	border: none;
	border-top: 1px solid var(--tac-border);
	margin: 10px 0;
}

.tac-card__empty {
	font-size: 13px;
	color: var(--tac-muted);
	padding: 8px 0;
}

.tac-card__resource-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--tac-text);
	line-height: 1.3;
	margin: 8px 0;
}

.tac-card__resource-stats {
	display: flex;
	gap: 24px;
	margin: 4px 0 16px;
}

.tac-card__resource-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tac-card__resource-stat-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--tac-text);
}

.tac-card__resource-stat-label {
	font-size: 12px;
	color: var(--tac-muted);
}

.tac-card__cta {
	display: block;
	width: 100%;
	padding: 11px;
	background: var(--tac-teal);
	color: var(--tac-white);
	text-align: center;
	border-radius: var(--tac-radius-sm);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}
.tac-card__cta:hover { background: var(--tac-teal-dark); color: #fff; }

/* ── Badges (type labels) ──────────────────────────────────────────────── */
.tac-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .01em;
	white-space: nowrap;
}

.tac-badge--course        { background: #fee2e2; color: #b91c1c; }
.tac-badge--masterclass   { background: #fef9c3; color: #854d0e; }
.tac-badge--resource,
.tac-badge--other-resources { background: #e0f2fe; color: #0369a1; }
.tac-badge--session,
.tac-badge--1-to-1-sessions,
.tac-badge--one-to-one-sessions { background: #d1fae5; color: #065f46; }

/* ── Chart ─────────────────────────────────────────────────────────────── */
.tac-chart {
	background: var(--tac-white);
	border: 1px solid var(--tac-border);
	border-radius: var(--tac-radius);
	padding: 22px 24px 16px;
	box-shadow: var(--tac-shadow);
}

.tac-chart__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.tac-chart__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--tac-text);
}

.tac-chart__daterange {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--tac-muted);
	background: var(--tac-bg);
	border: 1px solid var(--tac-border);
	border-radius: 8px;
	padding: 4px 10px;
}

.tac-chart__daterange-icon { width: 14px; height: 14px; flex-shrink: 0; }

.tac-chart__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.tac-chart__total {
	font-size: 30px;
	font-weight: 700;
	color: var(--tac-text);
	letter-spacing: -.02em;
}

.tac-chart__growth {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 14px;
	font-weight: 600;
}
.tac-chart__growth--up   { color: var(--tac-green); }
.tac-chart__growth--down { color: var(--tac-red); }

.tac-chart__wrap { overflow-x: auto; }

.tac-chart__svg {
	width: 100%;
	max-width: 560px;
	height: auto;
	display: block;
}

/* ── Info boxes (SS6 right panel) ──────────────────────────────────────── */
.tac-info-box {
	padding: 16px 0;
	border-bottom: 1px solid var(--tac-border);
}
.tac-info-box:last-child { border-bottom: none; padding-bottom: 0; }

.tac-info-box__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--tac-text);
	margin-bottom: 4px;
}

.tac-info-box__value {
	font-size: 22px;
	font-weight: 700;
	color: var(--tac-text);
	letter-spacing: -.01em;
}

.tac-info-box__desc {
	font-size: 12px;
	color: var(--tac-muted);
	margin-top: 3px;
}

/* ── Transaction mini table (SS4) ──────────────────────────────────────── */
.tac-tx-mini {
	background: var(--tac-white);
	border: 1px solid var(--tac-border);
	border-radius: var(--tac-radius);
	overflow: hidden;
	box-shadow: var(--tac-shadow);
}

.tac-tx-mini__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tac-tx-mini__table thead tr {
	background: transparent;
}

.tac-tx-mini__table th {
	text-align: left;
	padding: 12px 16px;
	font-size: 12px;
	font-weight: 600;
	color: var(--tac-muted);
	border-bottom: 1px solid var(--tac-border);
	text-transform: uppercase;
	letter-spacing: .05em;
}

.tac-tx-mini__table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--tac-border);
	vertical-align: middle;
	color: var(--tac-text);
}

.tac-tx-mini__table tbody tr:last-child td { border-bottom: none; }

.tac-tx-mini__table tbody tr:hover { background: var(--tac-bg); }

.tac-tx-mini__buyer { font-weight: 600; }

.tac-tx-mini__amount {
	font-weight: 700;
	color: var(--tac-teal);
	white-space: nowrap;
}

.tac-tx-mini__date {
	color: var(--tac-muted);
	font-size: 13px;
	white-space: nowrap;
}

.tac-tx-mini__empty {
	text-align: center;
	color: var(--tac-muted);
	padding: 32px 16px !important;
}

.tac-tx-mini__footer {
	padding: 14px 16px;
	text-align: right;
	border-top: 1px solid var(--tac-border);
}

.tac-tx-mini__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	background: var(--tac-teal);
	color: var(--tac-white);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}
.tac-tx-mini__cta:hover { background: var(--tac-teal-dark); color: #fff; }

/* ── Transaction full table (SS5) ──────────────────────────────────────── */
.tac-tx-full {
	font-size: 14px;
}

/* Top bar: search + date filter */
.tac-tx-full__top-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.tac-tx-full__search-wrap {
	flex: 1;
	min-width: 200px;
	position: relative;
}

.tac-tx-full__search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.tac-tx-full__search {
	width: 100%;
	padding: 10px 12px 10px 36px;
	border: 1px solid var(--tac-border);
	border-radius: 24px;
	font-size: 14px;
	color: var(--tac-text);
	background: var(--tac-white);
	outline: none;
	transition: border-color .15s;
	box-sizing: border-box;
}
.tac-tx-full__search:focus { border-color: var(--tac-teal); }
.tac-tx-full__search::placeholder { color: #9ca3af; }

.tac-tx-full__date-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tac-tx-full__date-preset {
	padding: 9px 12px;
	border: 1px solid var(--tac-border);
	border-radius: 8px;
	font-size: 13px;
	color: var(--tac-text);
	background: var(--tac-white);
	outline: none;
	cursor: pointer;
}

.tac-tx-full__date-range {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tac-tx-full__date-from,
.tac-tx-full__date-to {
	padding: 8px 10px;
	border: 1px solid var(--tac-border);
	border-radius: 8px;
	font-size: 13px;
	color: var(--tac-text);
	background: var(--tac-white);
	outline: none;
}

/* Type pills */
.tac-tx-full__pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.tac-pill {
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	background: var(--tac-bg);
	color: var(--tac-muted);
	transition: background .15s, color .15s;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tac-pill--active,
.tac-pill:hover {
	background: var(--tac-teal);
	color: var(--tac-white);
}

/* Type-specific active pill colours */
.tac-pill--course.tac-pill--active       { background: #b91c1c; }
.tac-pill--masterclass.tac-pill--active  { background: #854d0e; }
.tac-pill--resource.tac-pill--active,
.tac-pill--other-resources.tac-pill--active { background: #0369a1; }
.tac-pill--session.tac-pill--active      { background: #065f46; }

/* Card wrapper */
.tac-tx-full__card {
	background: var(--tac-white);
	border: 1px solid var(--tac-border);
	border-radius: var(--tac-radius);
	box-shadow: var(--tac-shadow);
	overflow: hidden;
}

.tac-tx-full__card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--tac-border);
	font-size: 15px;
	font-weight: 700;
	color: var(--tac-text);
}
.tac-tx-full__card-icon { width: 18px; height: 18px; color: var(--tac-teal); }

/* Table */
.tac-tx-full__table-wrap {
	overflow-x: auto;
	transition: opacity .2s;
}
.tac-tx-full__table-wrap--loading { opacity: .5; pointer-events: none; }

.tac-tx-full__table {
	width: 100%;
	border-collapse: collapse;
}

.tac-tx-full__table th {
	text-align: left;
	padding: 12px 18px;
	font-size: 12px;
	font-weight: 600;
	color: var(--tac-muted);
	border-bottom: 1px solid var(--tac-border);
	text-transform: uppercase;
	letter-spacing: .05em;
	white-space: nowrap;
}

.tac-tx-full__table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--tac-border);
	vertical-align: middle;
	color: var(--tac-text);
}

.tac-tx-full__table tbody tr:last-child td { border-bottom: none; }
.tac-tx-full__table tbody tr:hover { background: var(--tac-bg); }

.tac-tx-full__buyer  { font-weight: 600; }
.tac-tx-full__amount { font-weight: 700; color: var(--tac-teal); white-space: nowrap; }
.tac-tx-full__date   { color: var(--tac-muted); font-size: 13px; white-space: nowrap; }

/* Status badges */
.tac-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}
.tac-status--completed  { background: var(--tac-teal-light); color: var(--tac-teal-dark); }
.tac-status--processing { background: #e0f2fe; color: #0369a1; }
.tac-status--refunded   { background: #fee2e2; color: #b91c1c; }
.tac-status--cancelled  { background: #f3f4f6; color: #6b7280; }
.tac-status--failed     { background: var(--tac-red-bg); color: var(--tac-red); }
.tac-status--on-hold    { background: #fef9c3; color: #854d0e; }

/* Footer: showing + pagination */
.tac-tx-full__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-top: 1px solid var(--tac-border);
	flex-wrap: wrap;
	gap: 10px;
}

.tac-tx-full__showing {
	font-size: 13px;
	color: var(--tac-muted);
}

.tac-tx-full__pagination {
	display: flex;
	gap: 8px;
}

.tac-tx-full__prev-btn,
.tac-tx-full__next-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--tac-border);
	border-radius: 8px;
	background: var(--tac-white);
	font-size: 13px;
	font-weight: 600;
	color: var(--tac-text);
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.tac-tx-full__prev-btn svg,
.tac-tx-full__next-btn svg { width: 14px; height: 14px; }

.tac-tx-full__next-btn {
	background: var(--tac-teal);
	color: var(--tac-white);
	border-color: var(--tac-teal);
}
.tac-tx-full__next-btn:hover:not(:disabled) { background: var(--tac-teal-dark); border-color: var(--tac-teal-dark); }
.tac-tx-full__prev-btn:hover:not(:disabled) { background: var(--tac-bg); }
.tac-tx-full__prev-btn:disabled,
.tac-tx-full__next-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.tac-tx-full__loading-row td {
	text-align: center;
	color: var(--tac-muted);
	padding: 40px !important;
}

/* ==========================================================================
   Creator Stats Cards — Views, Downloads, Published, Pending
   @since 2.5.0
   ========================================================================== */

/* ── Published resources card icon ────────────────────────────────────── */
.tac-card__icon-wrap--published {
	background: #ede9fe;
	color: #7c3aed;
}

/* ── Sub-note line (Published card) ───────────────────────────────────── */
.tac-card__sub-note {
	font-size: 12px;
	color: var(--tac-muted);
	margin-top: 2px;
}

/* ── Pending review card ───────────────────────────────────────────────── */
.tac-card--pending {
	background: #fef9e7;
	border: 1.5px solid #f5d76e;
	border-radius: var(--tac-radius);
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.tac-card--pending .tac-card__header {
	margin-bottom: 0;
	gap: 7px;
}

.tac-card--pending .tac-card__header-icon svg {
	width: 16px;
	height: 16px;
	color: #b7791f;
}

.tac-card--pending .tac-card__heading {
	font-size: 13px;
	font-weight: 600;
	color: #92400e;
}

.tac-card--pending .tac-card__divider {
	border-color: #f5d76e;
	margin: 10px 0 8px;
}

.tac-card__pending-count {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.tac-card--pending .tac-card__value {
	font-size: 22px;
	font-weight: 700;
	color: #92400e;
}

.tac-card__pending-label {
	font-size: 13px;
	color: #b7791f;
	font-weight: 500;
}

.tac-card__review-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #92400e;
	text-decoration: none;
	margin-top: 2px;
	transition: opacity .15s;
}
.tac-card__review-link:hover { opacity: .75; }

/* ==========================================================================
   Revenue Overview Card  [tac_me_revenue_overview]
   @since 2.5.0
   ========================================================================== */

/* Header row: icon + title side by side */
.tac-card--overview .tac-card__header-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tac-card--overview .tac-card__icon-wrap--hero {
	flex-shrink: 0;
}

.tac-card--overview .tac-card__title {
	font-size: 14px;
	font-weight: 600;
	opacity: .9;
	letter-spacing: .01em;
}

/* Divider inside the dark hero card */
.tac-card__divider--hero {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, .18);
	margin: 12px 0 14px;
}

/* ==========================================================================
   Highcharts Revenue Chart — date range + summary  [tac_me_revenue_chart]
   @since 2.5.0
   ========================================================================== */

.tac-chart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.tac-chart__daterange-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--tac-bg, #f9fafb);
	border: 1px solid var(--tac-border, #e5e7eb);
	border-radius: 8px;
	padding: 5px 10px;
}

.tac-chart__daterange-icon {
	width: 14px;
	height: 14px;
	color: var(--tac-muted, #6b7280);
	flex-shrink: 0;
}

.tac-chart__date-from,
.tac-chart__date-to {
	border: none;
	background: transparent;
	font-size: 13px;
	color: var(--tac-text, #111827);
	outline: none;
	cursor: pointer;
}

.tac-chart__date-sep {
	color: var(--tac-muted, #6b7280);
	font-size: 13px;
}

.tac-chart__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.tac-chart__container {
	width: 100%;
	min-height: 280px;
}

/* Error block for all shortcodes */
.tac-shortcode-error {
	padding: 10px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #b91c1c;
	font-size: 13px;
}

/* ==========================================================================
   Type badge icons — shared across pills, table badges, resource cards
   @since 2.5.0
   ========================================================================== */

.tac-badge__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	vertical-align: middle;
	margin-right: 4px;
	display: inline-block;
}

.tac-badge {
	display: inline-flex;
	align-items: center;
}

.tac-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tac-pill .tac-badge__icon {
	width: 15px;
	height: 15px;
	margin-right: 0;
}

/* ==========================================================================
   Transactions Mini — optional icon wrap (from Elementor widget)
   @since 2.6.0
   ========================================================================== */

.tac-card__icon-wrap--mini {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: var(--tac-teal-light, #e8f4f4);
	color: var(--tac-teal, #1e6e6e);
	margin: 16px 16px 0;
}

/* Ensure Elementor icons inside card-header icon slots render at the right size */
.tac-card__header-icon i,
.tac-card__header-icon svg {
	width: 16px;
	height: 16px;
}

.tac-tx-full__card-header i {
	font-size: 18px;
	color: var(--tac-teal, #1e6e6e);
}

.tac-tx-full__card-header svg.tac-tx-full__card-icon,
.tac-tx-full__card-header i.tac-tx-full__card-icon {
	width: 18px;
	height: 18px;
}
