/* ============================================================
   Chargeback Rate Calculator — Dark theme override
   Loaded after the tool's scoped styles.css. Re-maps the tool's
   own CSS variables to Blockify dark theme tokens. Mirrors the
   approach used by fraud-tool/dark-theme.css.
   ============================================================ */

.chargeback-tool-scope {
	--ink: #fcfcfd;
	--ink-secondary: #b1b5c3;
	--text-muted: #838c96;
	--white: #1c1929;
	--bg: #0b0d17;
	--surface: #26213c;
	--border: #272b30;
	--accent-orange: #ff592c;
	--success: #34c759;
	--info-blue: #5ab1ff;
	--danger: #ff6b6b;
	--warning-amber: #ffb84d;

	--font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	background: transparent;
	color: var(--ink);
}

/* ── Hero ── */
/* Top padding must clear the 80px fixed nav (.nav { position: fixed; height: 80px }). */
.chargeback-tool-scope .hero {
	background: transparent;
	padding-top: 128px;
	padding-bottom: 32px;
}

.chargeback-tool-scope .hero__title {
	color: var(--ink);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.chargeback-tool-scope .hero__label {
	color: var(--accent-orange);
}

.chargeback-tool-scope .hero__subtitle {
	color: var(--ink-secondary);
	max-width: 720px;
	margin: 0 auto;
}

/* ── Calculator card ── */
.chargeback-tool-scope .calculator,
.chargeback-tool-scope .calculator__card {
	background: #1c1929;
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	color: var(--ink);
}

.chargeback-tool-scope .calculator__title,
.chargeback-tool-scope .calculator__heading {
	color: var(--ink);
}

/* ── Tabs ── */
.chargeback-tool-scope .tabs__nav,
.chargeback-tool-scope .calculator__tabs {
	border-color: var(--border);
}

.chargeback-tool-scope .tab,
.chargeback-tool-scope .calculator__tab {
	background: transparent;
	color: var(--ink-secondary);
	border: 1px solid transparent;
}

.chargeback-tool-scope .tab--active,
.chargeback-tool-scope .calculator__tab--active,
.chargeback-tool-scope .calculator__tab[aria-selected="true"] {
	color: var(--ink);
	border-color: var(--accent-orange);
	background: rgba(255, 89, 44, 0.08);
}

/* ── Form ── */
.chargeback-tool-scope .form-label,
.chargeback-tool-scope .calculator__label {
	color: var(--ink);
	font-weight: 600;
}

.chargeback-tool-scope .form-optional,
.chargeback-tool-scope .form-recommended,
.chargeback-tool-scope .form-hint,
.chargeback-tool-scope .calculator__hint {
	color: var(--text-muted);
	font-weight: 500;
}

.chargeback-tool-scope .form-input,
.chargeback-tool-scope .form-select,
.chargeback-tool-scope .calculator__input,
.chargeback-tool-scope .calculator__select {
	background: #1e2035;
	border: 1px solid var(--border);
	color: var(--ink);
}

.chargeback-tool-scope .form-input::placeholder,
.chargeback-tool-scope .calculator__input::placeholder {
	color: var(--text-muted);
}

.chargeback-tool-scope .form-input:focus,
.chargeback-tool-scope .form-select:focus,
.chargeback-tool-scope .calculator__input:focus,
.chargeback-tool-scope .calculator__select:focus {
	border-color: var(--accent-orange);
	box-shadow: 0 0 0 3px rgba(255, 89, 44, 0.2);
	outline: none;
}

.chargeback-tool-scope .form-select,
.chargeback-tool-scope .calculator__select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23b1b5c3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
}

.chargeback-tool-scope .form-error,
.chargeback-tool-scope .calculator__error {
	color: var(--danger);
}

.chargeback-tool-scope .form-tooltip,
.chargeback-tool-scope .calculator__tooltip {
	color: var(--text-muted);
}

.chargeback-tool-scope .form-tooltip:hover,
.chargeback-tool-scope .calculator__tooltip:hover {
	color: var(--accent-orange);
}

.chargeback-tool-scope [data-tooltip]::after,
.chargeback-tool-scope .form-tooltip::after {
	background: #fcfcfd;
	color: #0b0d17;
}

/* ── Input addons (currency $) ── */
.chargeback-tool-scope .input-group,
.chargeback-tool-scope .input-with-prefix {
	background: #1e2035;
	border: 1px solid var(--border);
	color: var(--ink);
	border-radius: 12px;
}

.chargeback-tool-scope .input-prefix,
.chargeback-tool-scope .input-group__prefix,
.chargeback-tool-scope .input-suffix {
	color: var(--text-muted);
}

/* ── Buttons ── */
.chargeback-tool-scope .btn--primary,
.chargeback-tool-scope .btn--cta {
	background: linear-gradient(139deg, #ff592c 12.7%, #401a99 98.1%);
	border: 0;
	color: #fcfcfd;
	border-radius: 90px;
	font-weight: 700;
	padding: 14px 28px;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.chargeback-tool-scope .btn--primary:hover,
.chargeback-tool-scope .btn--cta:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
}

.chargeback-tool-scope .btn--ghost,
.chargeback-tool-scope .btn--secondary {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--ink);
}

/* ── Result ── */
.chargeback-tool-scope .result,
.chargeback-tool-scope .calculator__result {
	border-top: 1px solid var(--border);
}

.chargeback-tool-scope .result__title,
.chargeback-tool-scope .result__label {
	color: var(--ink);
}

.chargeback-tool-scope .result__value,
.chargeback-tool-scope .result__big-number {
	color: var(--ink);
}

.chargeback-tool-scope .result__meta,
.chargeback-tool-scope .result__caption {
	color: var(--ink-secondary);
}

/* ── Gauge (rate calculator) ── */
.chargeback-tool-scope .gauge__track {
	background: #26213c;
	border-radius: 999px;
	overflow: hidden;
}

.chargeback-tool-scope .gauge__fill {
	background: linear-gradient(90deg, #34c759, #ffb84d 50%, #ff6b6b);
}

.chargeback-tool-scope .gauge__labels {
	color: var(--text-muted);
}

/* ── Threshold cards ── */
.chargeback-tool-scope .threshold-card,
.chargeback-tool-scope .threshold-cards__item,
.chargeback-tool-scope .threshold {
	background: #26213c;
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--ink);
}

.chargeback-tool-scope .threshold-card--active,
.chargeback-tool-scope .threshold--active,
.chargeback-tool-scope .threshold[aria-current="true"] {
	border-color: var(--accent-orange);
	box-shadow: 0 0 0 2px rgba(255, 89, 44, 0.18);
}

.chargeback-tool-scope .threshold__title,
.chargeback-tool-scope .threshold__name {
	color: var(--ink);
}

.chargeback-tool-scope .threshold__text,
.chargeback-tool-scope .threshold__desc {
	color: var(--ink-secondary);
}

/* ── Cost result extras ── */
.chargeback-tool-scope .hidden-cost,
.chargeback-tool-scope .cost-info-box {
	background: #26213c;
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--ink-secondary);
}

.chargeback-tool-scope .hidden-cost__title {
	color: var(--ink);
}

/* ── CTA blocks ── */
.chargeback-tool-scope .cta-block {
	background: #26213c;
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--ink);
}

.chargeback-tool-scope .cta-block__text {
	color: var(--ink);
}

.chargeback-tool-scope .cta-block--light,
.chargeback-tool-scope .cta-block--orange {
	background: rgba(255, 89, 44, 0.08);
	border-color: rgba(255, 89, 44, 0.25);
}

/* ── Sections ── */
.chargeback-tool-scope .how-to-section,
.chargeback-tool-scope .why-section,
.chargeback-tool-scope .reference-section,
.chargeback-tool-scope .stop-fraud-section,
.chargeback-tool-scope .faq-section {
	background: transparent;
}

.chargeback-tool-scope .why-section,
.chargeback-tool-scope .stop-fraud-section {
	background: rgba(28, 25, 41, 0.4);
}

.chargeback-tool-scope .section-title {
	color: var(--ink);
}

.chargeback-tool-scope .section-subtitle {
	color: var(--ink-secondary);
}

.chargeback-tool-scope .step-card,
.chargeback-tool-scope .why-card,
.chargeback-tool-scope .reference-card {
	background: #1c1929;
	border: 1px solid var(--border);
	border-radius: 16px;
	color: var(--ink);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.chargeback-tool-scope .step-card:hover,
.chargeback-tool-scope .why-card:hover,
.chargeback-tool-scope .reference-card:hover {
	transform: translateY(-2px);
	border-color: #353945;
}

.chargeback-tool-scope .step-card__title,
.chargeback-tool-scope .why-card__title,
.chargeback-tool-scope .reference-card__title {
	color: var(--ink);
}

.chargeback-tool-scope .step-card__text,
.chargeback-tool-scope .why-card__text,
.chargeback-tool-scope .reference-card__text,
.chargeback-tool-scope .reference-card__body {
	color: var(--ink-secondary);
}

.chargeback-tool-scope .step-card__number {
	background: linear-gradient(139deg, #ff592c 12.7%, #401a99 98.1%);
	color: #fcfcfd;
	font-weight: 700;
}

.chargeback-tool-scope .why-card__icon,
.chargeback-tool-scope .reference-card__icon {
	color: var(--accent-orange);
}

/* Reference tables */
.chargeback-tool-scope table,
.chargeback-tool-scope .reference-table {
	color: var(--ink-secondary);
	border-collapse: collapse;
}

.chargeback-tool-scope table th,
.chargeback-tool-scope .reference-table th {
	color: var(--ink);
	background: #26213c;
	border-color: var(--border);
}

.chargeback-tool-scope table td,
.chargeback-tool-scope .reference-table td {
	border-color: var(--border);
}

.chargeback-tool-scope table tr:hover td {
	background: rgba(255, 89, 44, 0.05);
}

/* ── Stop Fraudsters / CTA card ── */
.chargeback-tool-scope .stop-fraud-card,
.chargeback-tool-scope .stop-fraud__inner,
.chargeback-tool-scope .stop-fraud__content {
	background: linear-gradient(135deg, #1c1929 0%, #26213c 100%);
	border: 1px solid var(--border);
	border-radius: 20px;
	color: var(--ink);
}

.chargeback-tool-scope .stop-fraud__title {
	color: var(--ink);
}

.chargeback-tool-scope .stop-fraud__text,
.chargeback-tool-scope .stop-fraud__bullet {
	color: var(--ink-secondary);
}

/* ── FAQ ── */
.chargeback-tool-scope .faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chargeback-tool-scope .faq-item {
	background: #1c1929;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.chargeback-tool-scope .faq-item:first-child {
	border-top: 1px solid var(--border);
}

.chargeback-tool-scope .faq-question {
	color: var(--ink);
	background: transparent;
	padding: 20px 24px;
}

.chargeback-tool-scope .faq-question:hover {
	color: var(--accent-orange);
}

.chargeback-tool-scope .faq-answer {
	color: var(--ink-secondary);
	padding: 0 24px 20px;
}

.chargeback-tool-scope .faq-answer p {
	color: var(--ink-secondary);
	margin: 0;
}

.chargeback-tool-scope .faq-icon,
.chargeback-tool-scope .faq-question::after {
	color: var(--ink-secondary);
}

@media (max-width: 576px) {
	.chargeback-tool-scope .faq-question { padding: 16px 18px; }
	.chargeback-tool-scope .faq-answer   { padding: 0 18px 16px; }
}

/* ── Hide tool's own footer (theme provides one) ── */
.chargeback-tool-scope .footer {
	display: none;
}
