.ttj-ad {
    margin: 16px 0;
    text-align: center;
}

.ttj-ad > img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ttj-ad-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .ttj-ad-homepage_hero {
        display: none;
    }
}

.ttj-text-ad {
    padding:16px 18px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:8px;
    transition:all 0.2s ease;
}

.ttj-text-ad:hover {
    background:#f1f5f9;
    transform:translateY(-1px);
}

.ttj-text-ad-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-form-container {
    max-width: 700px;
    margin: 40px auto;
}

.ad-form-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 700;
}

.ad-form-header p {
    color: #6b7280;
}

.ad-form-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    margin-top: 20px;
    overflow: visible;
}

.ad-form-container .form-group {
    margin-bottom: 16px;
}

.ad-form-container .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.ad-form-container .form-group input,
.ad-form-container .form-group select,
.ad-form-container .form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ttj-success {
    background: #d1fae5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    margin-top: 40px;
}

.ttj-error {
    background: #fee2e2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.ad-form-card .btn-primary{
    background: #2563eb;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
}

.ttj-select {
    position: relative;
    cursor: pointer;
}

.ttj-select-trigger {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.ttj-options {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: none;
    z-index: 99999;
}

.ttj-options div {
    padding: 10px;
}

.ttj-options div:hover {
    background: #f1f5f9;
}

#ttj-preview-box {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.ttj-image-source {
    display: flex;
    gap: 20px;
}

.ttj-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: center;
}

/* 🔥 RESET WORDPRESS MEDIA MODAL (IMPORTANT) */

.media-modal,
.media-modal * {
    all: revert;
    font-family: inherit;
}

/* Restore visibility */
.media-modal {
    color: #1d2327;
}

/* Fix buttons inside modal */
.media-modal .button {
    background: #f6f7f7;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.media-modal .button:hover {
    background: #f0f0f1;
    color: #2c3338;
}

/* Primary button (Use this image) */
.media-modal .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.media-modal .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Close button FIX */
.media-modal-close {
    background: transparent !important;
    box-shadow: none !important;
}

.media-modal-close:hover {
    background: transparent !important;
    border-width: 0;
}

/* Remove your custom button bleed */
.media-modal .btn-primary {
    all: unset;
}

#ttj-image-preview {
    width: 100%;
}

#ttj-image-preview img {
    display: block;
}

#ttj-preview-box {
    width: 100%;
    max-width: 700px;
    margin-top: 15px;
}

.ttj-preview-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 12px;
    display: block;
}

.ttj-preview-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
}

.ttj-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mce-content-body p {
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
}

.mce-toolbar button:hover,
.mce-toolbar button:focus {
    background: #f0f0f1 !important;
    color: #000 !important;
}

.mce-toolbar .mce-btn.mce-active,
.mce-toolbar .mce-btn:active {
    background: #e5e7eb !important;
}

#ttj-preview-box {
    padding: 10px;
}

.ttj-preview-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.ttj-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ttj-text-ad-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.ttj-text-ad-content p {
    margin: 0 0 6px;
}

.ttj-text-ad-content br {
    display: none;
}

#ttj-text-mode textarea {
    font-size:14px;
    line-height:1.4;
}

.ttj-select {
    position: relative;
}

.ttj-select-trigger {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.ttj-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;

    display: none;
    z-index: 99999;
}

.ttj-options.open {
    display: block;
}

.ttj-options div {
    padding: 10px;
    cursor: pointer;
}

.ttj-options div:hover {
    background: #f3f4f6;
}

/* 🔥 HIDE DEFAULT INPUT */
#ttj-upload-image {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

/* 🔥 CUSTOM UPLOAD BOX */
.ttj-upload-wrap {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* HOVER */
.ttj-upload-wrap:hover {
    border-color: #2563eb;
    background: #f1f5f9;
}

/* TEXT */
.ttj-upload-wrap::before {
    content: "Click to upload image or drag & drop";
    display: block;
    color: #64748b;
    font-size: 14px;
}

/* 🔥 QUILL EDITOR CONTAINER */
#ttj-editor-wrap {
    border-radius: 10px;
    overflow: hidden;
}

/* toolbar */
#ttj-editor-wrap .ql-toolbar {
    border-radius: 10px 10px 0 0;
}

/* editor area */
#ttj-editor-wrap .ql-container {
    border-radius: 0 0 10px 10px;
}

.ql-toolbar {
    background: #f8fafc;
}

.ql-container {
    background: #ffffff;
}

.ttj-preview-clickable {
    position: relative;
    cursor: pointer;
}

.ttj-preview-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
}

.ttj-replace-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
}

.ttj-drag-over {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

/* 🔥 SPINNER */
.ttj-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: ttj-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes ttj-spin {
    to { transform: rotate(360deg); }
}

/* wrapper */
.ttj-loading-box {
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}




.ttj-ad {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 12px;
}

#ttj-preview-box {
    width: 100%;
}

.ttj-ad {
    width: 100%;
}

.ttj-preview-wrapper {
    width: 100%;
}

/* 🔥 FORCE preview container kuwa full width ya form */
.ad-form-card #ttj-preview-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 20px 0 30px !important;
}

/* 🔥 REMOVE any inner spacing inayobana */
.ad-form-card #ttj-preview-box * {
    box-sizing: border-box;
}

/* 🔥 AD CARD full width */
#ttj-preview-box .ttj-ad {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    margin: 0;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

/* 🔥 IMAGE WRAPPER lazima i-fill */
#ttj-preview-box .ttj-preview-wrapper {
    width: 100% !important;
}

/* 🔥 IMAGE full width no shrink */
#ttj-preview-box img {
    width: 100% !important;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* 🔥 REMOVE hidden max-width kutoka theme yoyote */
.ad-form-container,
.ad-form-card {
    max-width: 100% !important;
}

.ttj-auto-preview{
    margin-top: 10px;
    width: 100%;
}

.ttj-position-frame {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    background: #eee;
}

.ttj-position-frame:active {
    cursor: grabbing;
}

.ttj-drag-hint {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
    pointer-events: none;
}

.ttj-position-frame:active .ttj-draggable-image {
    cursor: grabbing;
}

.ttj-draggable-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;

    cursor: grab;
    user-select: none;
    display: block;
}

.ttj-draggable-image {
    transition: object-position 0.05s linear;
}

.ttj-draggable-image {
    transition: object-position 0.05s linear;
}

/* FIX QUILL INLINE STYLES */
.ttj-html-ad span {
    display: inline;
}

/* CARD */
.ttj-ad-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin: 18px 0;
    overflow: hidden;
    transition: 0.2s ease;
}

.ttj-ad-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* LINK WRAPPER */
.ttj-ad-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* INNER */
.ttj-ad-inner {
    width: 100%;
}

/* IMAGE WRAP */
.ttj-ad-image-wrap {
    position: relative;
    width: 100%;
    height: 200px; /* 🔥 control hapa */
    overflow: hidden;
}

/* IMAGE */
.ttj-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* BADGE */
.ttj-ad-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* BODY */
.ttj-ad-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* TEXT CENTER */
.ttj-text-left {
    align-items: left;
    text-align: left;
}

/* LABEL */
.ttj-ad-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* TEXT */
.ttj-ad-text {
    font-size: 16px;
    font-weight: 400;
    color: #0f172a;
    line-height: 1.5;
}

.ttj-ad-text {
    display: inline-block;
    max-width: 100%;    /* 🔥 ondoka kwenye kubana */
    width: 100%;        /* 🔥 full width */
    white-space: normal;
}

/* HTML AD */
.ttj-html-ad {
    font-size: 15px;
    line-height: 1.6;
}

/* 🔥 PREVIEW MATCH JOB LIST UI */

/* remove extra padding kwa preview card */
#ttj-preview-box .ttj-ad-card {
    padding: 0;
}

/* image badge transparent like production */
#ttj-preview-box .ttj-ad-badge {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

/* text/html ads zisijaze height kama image */
#ttj-preview-box .ttj-ad-body {
    padding: 18px;
}

/* 🔥 REMOVE LINK STYLES COMPLETELY */
#ttj-preview-box a {
    text-decoration: none !important;
    color: inherit !important;
}

/* hata hover */
#ttj-preview-box a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* 🔥 CLEAN PREVIEW CONTAINER */
#ttj-preview-box {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* 🔥 MATCH JOB CARD EXACTLY */
#ttj-preview-box .ttj-ad-card {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* 🔥 REMOVE DOUBLE BORDER ISSUE */
#ttj-preview-box .ttj-ad {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* 🔥 TEXT/HTML AD SHOULD LOOK INLINE (NOT CARD INSIDE CARD) */
#ttj-preview-box .ttj-ad-body {
    background: #fff;
    border-radius: 14px;
}

/* 🔥 HTML CONTENT WRAPPER */
.ttj-html-content {
    text-align: inherit;
}

/* kuhakikisha watoto wanarithi */
.ttj-html-content * {
    text-align: inherit;
}

/* 🔥 HTML AD alignment control */
.ttj-html-content {
    display: inline-block;
    width: 100%;
}

/* 🔥 muhimu sana */
.ttj-html-content {
    text-align: inherit;
}

/* label ifuate content */
.ttj-html-content .ttj-ad-label {
    display: block;
    text-align: inherit;
    margin-bottom: 6px;
}

.ttj-ad-label {
    text-align: left;
}

.ttj-manage-link {
    padding: 4px 8px;
    border-radius: 6px;
    background: #eff6ff;
    font-weight: 500;
    text-decoration: none !important;
}

.ttj-manage-link:hover {
    text-decoration: underline !important;
}

.ttj-table-wrap {
    width: 100%;
    overflow-x: auto;   /* 🔥 horizontal scroll */
    overflow-y: hidden; /* 🔥 prevent vertical scroll */
}

.ttj-table-wrap table {
    min-width: 700px; /* 🔥 force scroll on small screens */
}

.ttj-table-wrap {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.ttj-table-wrap thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

/* 🔥 STOP PAGE FROM EXPANDING */
.main-grid {
    overflow: hidden;
}

/* 🔥 LEFT COLUMN ISOLATION */
.main-grid .left {
    min-width: 0; /* muhimu sana kwa flex/grid */
}

/* 🔥 CARD ISOLATION */
.main-grid .left .card {
    overflow: hidden;
}

/* 🔥 TABLE SCROLL CONTAINER */
.ttj-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.ttj-table-wrap table {
    width: max-content;   /* 🔥 muhimu sana */
    min-width: 100%;      /* isiwe ndogo kuliko container */
    border-collapse: collapse;
}

.table th,
.table td {
    white-space: nowrap;
    padding: 12px 16px; /* adjust spacing */
}

.btn-manage {
    background: #f3f4f6;
    padding: 6px 14px;
    border-radius: 10px;
    text-decoration: none !important;
    color: #111;
    font-weight: 500;
    margin-bottom: 10px;
}

.btn-manage:hover {
    background: #e5e7eb;
}

/* =========================
   🔥 CREATE BUTTON (UNIQUE)
========================= */

.ttj-create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    background: #2563eb;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;

    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
}

/* TEXT */
.ttj-create-btn__text {
    display: inline-block;
}

/* LOADER */
.ttj-create-btn__loader {
    display: none;

    width: 12px;
    height: 12px;
    box-sizing: border-box;

    border: 2px solid rgba(255,255,255,0.4);
    border-top: 2px solid #fff;

    border-radius: 50%;
    animation: ttjCreateSpin 0.6s linear infinite;
}

/* SPIN */
@keyframes ttjCreateSpin {
    to { transform: rotate(360deg); }
}

/* HOVER */
.ttj-create-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

/* ACTIVE / CLICK FIX */
.ttj-create-btn:active,
.ttj-create-btn:focus {
    color: #fff !important;
    outline: none;
}

/* DISABLED */
.ttj-create-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =========================
   🔥 STATUS BADGE
========================= */

.ttj-ad-status-bar {
    margin-top: 10px;
    margin-bottom: 10px;
}

.ttj-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* ACTIVE */
.ttj-status-badge.active {
    background: #dcfce7;
    color: #166534;
}

/* INACTIVE */
.ttj-status-badge.inactive {
    background: #f1f5f9;
    color: #64748b;
}

/* =========================
   🔥 FORM ACTIONS
========================= */

.ttj-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* preview button tofauti */
#ttj-preview-btn {
    background: #f3f4f6;
    color: #111;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 500;
}

#ttj-preview-btn:hover {
    background: #e5e7eb;
}

/* secondary button */
.ttj-create-btn.secondary {
    background: #16a34a;
}

.ttj-create-btn.secondary:hover {
    background: #15803d;
}

/* =========================
   🔥 HEADER FLEX
========================= */

.ttj-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

/* left side */
.ttj-header-left h1 {
    margin-bottom: 4px;
}

.ttj-header-left p {
    margin: 0;
}

/* right side */
.ttj-header-right {
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .ttj-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .ttj-header-right {
        margin-top: 8px;
    }
}

/* clickable */
.ttj-status-toggle {
    cursor: pointer;
    transition: all 0.2s ease;
}

.ttj-status-toggle:hover {
    transform: scale(1.05);
}

.ttj-alert {
    overflow: hidden;
}

.ttj-status-badge.needs-approval {
    background: #f59e0b;
    color: #fff;
}

.ttj-pending-row {
    background: #fff7ed;
}

/* REJECTED */
.ttj-status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* PENDING */
.ttj-status-badge.pending {
    background: #dbeafe;
    color: #1e3a8a;
}

.ttj-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ttj-error {
    line-height: 1.5;
}

.ttj-header-right .ttj-error {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    max-width: 500px;
}

/* =========================================
   ADMIN FIX WRAPPER (IMPORTANT)
========================================= */

.wrap .ad-form-container {
    max-width: 1000px;
    margin: 20px auto;
    box-sizing: border-box;
}

/* Prevent overflow */
.wrap .ad-form-card {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   GLOBAL SCOPING (ANTI-WP CONFLICT)
========================================= */

.ad-form-container * {
    box-sizing: border-box;
}

.ad-form-container input,
.ad-form-container textarea,
.ad-form-container select {
    max-width: 100%;
}

/* =========================================
   RADIO BUTTON FIX (WP OVERRIDE FIX)
========================================= */

.ttj-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* reset WP admin radio */
.ttj-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    position: relative;
    cursor: pointer;
    background: #fff;
}

/* checked state */
.ttj-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ttj-waiting {
    background: #fef9c3;
    color: #854d0e;
}

.ttj-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 🔥 space between items */
    margin-top: 8px;
}

.ttj-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* 🔥 space between text and X */

    background: #f1f5f9;
    border-radius: 20px;
    padding: 6px 10px;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
    transition: 0.2s;
}

.ttj-chip:hover {
    background: #e2e8f0;
}

.ttj-chip span {
    font-weight: bold;
    margin-left: 4px;
}

.ttj-chip {
    display:inline-flex;
    align-items:center;
    gap:6px; /* space between text and X */
    padding:6px 10px;
    background:#f1f5f9;
    border-radius:20px;
    margin:4px; /* space between chips */
    font-size:13px;
}

.ttj-chip span {
    cursor:pointer;
    font-weight:bold;
}

/* =========================
   NO PLAN BUTTONS (SCOPED)
========================= */

.ttj-no-plan-wrap .ttj-no-plan-card .ttj-cta-btn--primary {
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.ttj-no-plan-wrap .ttj-no-plan-card .ttj-cta-btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.ttj-no-plan-wrap .ttj-no-plan-card .ttj-cta-btn--primary:active {
    transform: translateY(0);
}


/* SECONDARY */
.ttj-no-plan-wrap .ttj-no-plan-card .ttj-cta-btn--secondary {
    background: #f3f4f6;
    color: #111;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.ttj-no-plan-wrap .ttj-no-plan-card .ttj-cta-btn--secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.ttj-no-plan-wrap .ttj-no-plan-card .ttj-cta-btn--secondary:active {
    transform: translateY(0);
}


/* ACTION GROUP */
.ttj-no-plan-wrap .ttj-no-plan-card .ttj-no-plan-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.ttj-no-plan-wrap .ttj-no-plan-card .ttj-no-plan-actions a {
    min-width: 170px;
}

.ttj-no-plan-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65vh;
}

.ttj-no-plan-card {
    max-width: 520px;
    width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.ttj-no-plan-card h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.ttj-no-plan-card p {
    color: #555;
    margin-bottom: 20px;
}

.ttj-plan-benefits {
    text-align: left;
    margin: 20px 0;
}

.ttj-plan-benefits div {
    font-size: 14px;
    margin-bottom: 8px;
}

.ttj-plan-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 🔥 PROTECT HTML AD EXACT FORMATTING */
.ttj-html-preview {
    all: unset;
    display: block;
}

.ttj-html-ad-content p {
    margin: 0;
    line-height: 1.3;
}

.ttj-html-ad-content {
    white-space: normal;
}


/* 🔥 HTML AD — RESPECT FULL QUILL STYLING */
.ttj-html-ad-content {
    all: revert;
}

/* preserve inline + classes */
.ttj-html-ad-content * {
    all: revert;
}

/* 🔥 restore Quill alignment */
.ttj-html-ad-content .ql-align-center { text-align: center; }
.ttj-html-ad-content .ql-align-right  { text-align: right; }
.ttj-html-ad-content .ql-align-left   { text-align: left; }
.ttj-html-ad-content .ql-align-justify{ text-align: justify; }

/* 🔥 restore Quill font sizes */
.ttj-html-ad-content .ql-size-small  { font-size: 0.75em; }
.ttj-html-ad-content .ql-size-normal { font-size: 1em; }
.ttj-html-ad-content .ql-size-large  { font-size: 1.5em; }
.ttj-html-ad-content .ql-size-huge   { font-size: 2.5em; }

.ttj-html-ad .ql-size-small {
    font-size: 0.75em;
}

.ttj-html-ad .ql-size-large {
    font-size: 1.5em;
}

.ttj-html-ad .ql-size-huge {
    font-size: 2.5em;
}

.ttj-html-ad .ql-align-center {
    text-align: center;
}

.ttj-html-ad .ql-align-right {
    text-align: right;
}

.ttj-html-ad .ql-align-justify {
    text-align: justify;
}

.ttj-html-ad p,
.ttj-html-ad ul,
.ttj-html-ad ol {
    margin: 0 0 6px;
}

.ttj-html-ad ul,
.ttj-html-ad ol {
    padding-left: 20px;
}

.ttj-html-ad p {
    line-height: 1.3;
}

