/* ============================================================================
   trading-cost-calculator.css
   מחשבון עלויות מסחר עצמאי (Controls/Content/TradingCostCalculator.ascx).
   סקופ: .tcc (הכרטיס המלא) + .tcc-teaser (הרצועה במאמרים). אותה פלטה כמו
   trading-accounts-modern.css (דף ההשוואה); כתום לבנק, ירוק לבית השקעות.
   מובייל: gutter נשמר ע"י הדף המארח; כאן רק טור יחיד, צ'יפים 44px ובלי גלילה
   אופקית (הטבלה נגללת בתוך המעטפת שלה בלבד).
   ============================================================================ */

.tcc, .tcc-teaser {
    --tcc-brand: #17765a;
    --tcc-brand-dark: #0f5a47;
    --tcc-bank: #c05a2e;
    --tcc-house: #17765a;
    --tcc-bg: #f7faf9;
    --tcc-soft: #eef4f1;
    --tcc-line: #dce8e3;
    --tcc-ink: #263d35;
    --tcc-muted: #5a6e66;
    --tcc-note: #8a5a2b;
    --tcc-note-bg: #fdf6ec;
    color: var(--tcc-ink);
    direction: rtl;
    text-align: right;
    line-height: 1.5;
    box-sizing: border-box;
    max-width: 100%;
}
.tcc *, .tcc-teaser * { box-sizing: border-box; }
.tcc [hidden] { display: none !important; }
.tcc bdi { unicode-bidi: isolate; }
.tcc { margin: 28px 0; scroll-margin-top: 80px; }

/* ---- הכרטיס ---- */
.tcc-card { background: #fff; border: 1px solid var(--tcc-line); border-radius: 14px; box-shadow: 0 4px 18px rgba(15, 90, 71, .07); overflow: hidden; }
.tcc-head { background: linear-gradient(135deg, var(--tcc-brand-dark), var(--tcc-brand)); color: #fff; padding: 20px 24px; }
.tcc .tcc-head .tcc-title { margin: 0 0 6px; font-size: 23px; color: #fff; padding: 0; }
.tcc-head p { margin: 0; font-size: 15px; opacity: .93; }
.tcc-body { padding: 22px 24px; }

/* ---- קלטים ---- */
.tcc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.tcc-field { margin-bottom: 18px; }
.tcc-field > .tcc-label { display: block; font-weight: bold; font-size: 15px; margin-bottom: 8px; }
.tcc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tcc-chip { border: 1.5px solid var(--tcc-line); background: #fff; border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 15px; cursor: pointer; min-height: 44px; color: var(--tcc-ink); transition: border-color .15s, background .15s; }
.tcc-chip:hover { border-color: var(--tcc-brand); }
.tcc-chip.on { background: var(--tcc-soft); border-color: var(--tcc-brand); color: var(--tcc-brand-dark); font-weight: bold; }
.tcc-chip:focus-visible, .tcc-free:focus-visible, .tcc-adv input:focus-visible { outline: 3px solid rgba(23, 118, 90, .45); outline-offset: 2px; }
.tcc-free { border: 1.5px solid var(--tcc-line); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 15px; width: 140px; min-height: 44px; }

/* ---- מתקדם (details) ---- */
.tcc-adv { border: 1px solid var(--tcc-line); border-radius: 10px; margin: 4px 0 16px; background: var(--tcc-soft); }
.tcc-adv > summary { cursor: pointer; padding: 12px 16px; font-weight: bold; color: var(--tcc-brand-dark); font-size: 14.5px; list-style: none; }
.tcc-adv > summary::-webkit-details-marker { display: none; }
.tcc-adv > summary::before { content: "▸ "; }
.tcc-adv[open] > summary::before { content: "▾ "; }
.tcc-adv-body { padding: 0 16px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.tcc-adv label { display: block; font-size: 14px; }
.tcc-adv label span { display: block; margin-bottom: 4px; }
.tcc-adv input { width: 130px; max-width: 100%; border: 1px solid var(--tcc-line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; min-height: 40px; background: #fff; }
.tcc-adv .tcc-hint { grid-column: 1 / -1; color: var(--tcc-muted); font-size: 13px; margin: 2px 0 0; }
.tcc-adv .tcc-hint b { color: var(--tcc-note); }

/* ---- כפתור החישוב ---- */
.tcc-run { display: block; width: 100%; background: var(--tcc-brand); color: #fff; border: 0; border-radius: 10px; padding: 15px; font: inherit; font-size: 18px; font-weight: bold; cursor: pointer; min-height: 52px; }
.tcc-run:hover { background: var(--tcc-brand-dark); }

/* ---- תוצאות ---- */
.tcc-results { margin-top: 24px; scroll-margin-top: 80px; }
.tcc-headline { background: var(--tcc-soft); border: 1px solid var(--tcc-line); border-right: 6px solid var(--tcc-bank); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.tcc-headline[data-kind="house"] { border-right-color: var(--tcc-house); }
.tcc-headline[data-kind="even"], .tcc-headline[data-kind="missing"] { border-right-color: var(--tcc-muted); }
.tcc-headline .tcc-big { font-size: 21px; font-weight: bold; margin: 0 0 6px; line-height: 1.35; }
.tcc-headline .tcc-big em, .tcc-headline .tcc-sub em { font-style: normal; color: var(--tcc-bank); }
.tcc-headline[data-kind="house"] em { color: var(--tcc-house); }
.tcc-headline .tcc-sub { margin: 0; font-size: 15px; color: var(--tcc-muted); }
.tcc-note { font-size: 13.5px; color: var(--tcc-note); background: var(--tcc-note-bg); border-radius: 8px; padding: 8px 12px; margin: -8px 0 16px; }
.tcc-note:empty { display: none; }
.tcc-picked { font-size: 14px; background: #fff; border: 1px dashed var(--tcc-line); border-radius: 8px; padding: 8px 12px; margin: -8px 0 16px; }
.tcc-prov.tcc-prov--picked { outline: 2px solid #fff; outline-offset: 2px; }
/* מצב מקופל (הדף המארח רשאי להוסיף tcc--collapsed; SMTradingCalc.open() מסיר) */
.tcc.tcc--collapsed .tcc-body { display: none; }

.tcc-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.tcc-barbox { border: 1px solid var(--tcc-line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.tcc-barbox h4 { margin: 0 0 12px; font-size: 15px; color: var(--tcc-muted); font-weight: normal; }
.tcc-barrow { margin-bottom: 12px; }
.tcc-barrow .tcc-lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 4px; }
.tcc-barrow .tcc-lbl b { font-size: 15px; white-space: nowrap; }
.tcc-track { background: #eef1f0; border-radius: 6px; height: 24px; overflow: hidden; }
.tcc-fill { height: 100%; border-radius: 6px; transition: width .5s ease; }
.tcc-fill.bank { background: var(--tcc-bank); }
.tcc-fill.house { background: var(--tcc-house); }
@media (prefers-reduced-motion: reduce) { .tcc-fill { transition: none; } }

.tcc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 6px; }
table.tcc-breakdown { width: 100%; border-collapse: collapse; font-size: 14px; }
.tcc-breakdown th, .tcc-breakdown td { border: 1px solid var(--tcc-line); padding: 9px 10px; text-align: right; }
.tcc-breakdown th { background: var(--tcc-soft); color: var(--tcc-brand-dark); }
.tcc-breakdown td.tcc-num { text-align: center; white-space: nowrap; }
.tcc-breakdown tr.tcc-total td { font-weight: bold; background: #fbfdfc; }
.tcc-na { color: var(--tcc-muted); font-size: 12.5px; white-space: normal; }
.tcc-breakdown-note { font-size: 13px; color: var(--tcc-muted); margin: 4px 0 0; min-height: 1em; }

/* ---- איך חישבנו ---- */
.tcc-how { border: 1px solid var(--tcc-line); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--tcc-muted); margin: 14px 0 22px; }
.tcc-how > summary { cursor: pointer; font-weight: bold; color: var(--tcc-brand-dark); }
.tcc-how ul { margin: 10px 18px 4px 0; padding: 0; }
.tcc-how li { margin-bottom: 5px; }
.tcc-how h5 { font-size: 14px; margin: 12px 0 4px; color: var(--tcc-ink); }
.tcc-how a { color: var(--tcc-brand-dark); }

/* ---- רצועת הליד ---- */
.tcc-lead { background: linear-gradient(135deg, var(--tcc-brand-dark), var(--tcc-brand)); border-radius: 14px; color: #fff; padding: 22px 24px; text-align: center; }
.tcc .tcc-lead h4 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.tcc-lead > p { margin: 0 0 16px; font-size: 15px; opacity: .93; }
.tcc a.tcc-cta, .tcc a.tcc-cta:link, .tcc a.tcc-cta:visited { display: inline-block; background: #fff; color: var(--tcc-brand-dark); border-radius: 10px; padding: 14px 36px; font-size: 18px; font-weight: bold; text-decoration: none; min-height: 52px; max-width: 100%; }
.tcc a.tcc-cta:hover, .tcc a.tcc-cta:focus-visible { background: var(--tcc-soft); color: var(--tcc-brand-dark); text-decoration: none; }
.tcc-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 13px; opacity: .92; }
.tcc-provs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.tcc-prov { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tcc-prov-logo { background: #fff; border-radius: 8px; height: 54px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tcc-prov-logo img { max-width: 110px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.tcc-prov-name { font-weight: bold; font-size: 15px; }
.tcc-prov-perk { font-size: 13px; opacity: .92; flex: 1; }
.tcc-prov-reg { font-size: 11.5px; opacity: .8; }
.tcc-est { font-size: 13.5px; }
.tcc-est .tcc-na { color: #fff; opacity: .85; }
.tcc a.tcc-prov-cta, .tcc a.tcc-prov-cta:link, .tcc a.tcc-prov-cta:visited { display: block; border: 1.5px solid #fff; color: #fff; border-radius: 8px; padding: 10px; font-size: 14px; font-weight: bold; text-decoration: none; min-height: 44px; }
.tcc a.tcc-prov-cta:hover, .tcc a.tcc-prov-cta:focus-visible { background: rgba(255, 255, 255, .16); color: #fff; }
.tcc-disclaimer { font-size: 12px; color: var(--tcc-muted); margin: 14px 0 0; text-align: center; }

/* ---- טיזר (Mode="Teaser") ---- */
.tcc-teaser { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--tcc-soft); border: 1px solid var(--tcc-line); border-right: 6px solid var(--tcc-brand); border-radius: 12px; padding: 14px 16px; margin: 22px 0; }
.tcc-teaser-badge { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tcc-brand); color: #fff; font-weight: bold; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.tcc-teaser-text { flex: 1 1 220px; font-size: 15px; font-weight: bold; margin: 0; }
.tcc-teaser-text small { display: block; font-weight: normal; color: var(--tcc-muted); font-size: 13px; margin-top: 2px; }
.tcc-teaser a.tcc-teaser-cta, .tcc-teaser a.tcc-teaser-cta:link, .tcc-teaser a.tcc-teaser-cta:visited { flex: none; background: var(--tcc-brand); color: #fff; border-radius: 10px; padding: 11px 20px; font-weight: bold; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.tcc-teaser a.tcc-teaser-cta:hover { background: var(--tcc-brand-dark); color: #fff; }

/* ---- הגנה מול כללי הדף המארח (מדוד ב-WhatToCompareInTradingAccount, 2026-09-10) ----
   .supermarkerArticle p / h4 / h5 (cssSupermarker) ו-.sm-modern-article .article h4:not(.faq-text) (inline בדף)
   גוברים על כללי הקונטרול בלי !important, וצובעים טקסט כהה על הרקע הירוק של הכותרת ורצועת הליד. */
.tcc .tcc-head .tcc-title, .tcc .tcc-head p { color: #fff !important; }
.tcc .tcc-lead h4, .tcc .tcc-lead > p, .tcc .tcc-lead .tcc-trust, .tcc .tcc-lead .tcc-trust span,
.tcc .tcc-prov, .tcc .tcc-prov-name, .tcc .tcc-prov-perk, .tcc .tcc-prov-reg, .tcc .tcc-est, .tcc .tcc-est .tcc-na { color: #fff !important; }
.tcc .tcc-barbox h4 { color: var(--tcc-muted) !important; font-weight: normal; }
.tcc p.tcc-note { color: var(--tcc-note); }
.tcc p.tcc-picked { color: var(--tcc-ink); }
.tcc p.tcc-breakdown-note, .tcc p.tcc-disclaimer { color: var(--tcc-muted); }
.tcc p.tcc-big, .tcc p.tcc-sub, .tcc p.tcc-note, .tcc p.tcc-picked, .tcc p.tcc-breakdown-note, .tcc p.tcc-disclaimer, .tcc .tcc-head p, .tcc .tcc-lead > p { line-height: 1.45; }
.tcc-teaser p.tcc-teaser-text { color: var(--tcc-ink); }

/* ---- מובייל ---- */
@media (max-width: 760px) {
    .tcc-grid, .tcc-adv-body, .tcc-bars { grid-template-columns: 1fr; }
    .tcc-head { padding: 16px 16px; }
    .tcc .tcc-head .tcc-title { font-size: 20px; }
    .tcc-body { padding: 16px 16px; }
    .tcc-free { width: 100%; }
    .tcc-headline .tcc-big { font-size: 18px; }
    .tcc-provs { grid-template-columns: 1fr; }
    .tcc-lead { padding: 18px 14px; }
    .tcc a.tcc-cta { display: block; padding: 14px 16px; font-size: 17px; }
}
