/* ─── Card ────────────────────────────────────────────────────── */
.block-vat-calculator-block .card {
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  border-radius: 16px;
}

/* ─── Display ─────────────────────────────────────────────────── */
.calc-display-wrap {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 0.75rem;
}

.calc-display-wrap:focus-within {
  border-color: #2E4E76;
  box-shadow: 0 0 0 3px rgba(46,78,118,0.12);
}

.calc-display-pound {
  font-size: 1.4rem;
  font-weight: 700;
  color: #6b7280;
  margin-right: 2px;
}

.block-vat-calculator-block #calc-display {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: left;
  color: #111827;
  background: transparent;
  border: none;
  padding: 0.6rem 0;
  box-shadow: none;
}

.block-vat-calculator-block #calc-display:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.block-vat-calculator-block #calc-display::placeholder {
  color: #9ca3af;
}

/* ─── Keypad ──────────────────────────────────────────────────── */
.block-vat-calculator-block .calc-btn {
  min-height: 48px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.block-vat-calculator-block .calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.block-vat-calculator-block .calc-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ─── VAT rate pills ─────────────────────────────────────────── */
.block-vat-calculator-block .vat-option {
  border-radius: 20px !important;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  transition: all 0.15s ease;
}

.block-vat-calculator-block .vat-option.btn-outline-primary {
  background: #2E4E76;
  color: #fff;
  border-color: #2E4E76;
  box-shadow: 0 0 0 3px rgba(46,78,118,0.15);
}

/* ─── Action buttons ─────────────────────────────────────────── */
.block-vat-calculator-block #add-vat {
  border-radius: 10px;
  font-weight: 600;
  min-height: 46px;
}

.block-vat-calculator-block #remove-vat {
  border-radius: 10px;
  font-weight: 600;
  min-height: 46px;
}

/* ─── Results header ──────────────────────────────────────────── */
.vr-header {
  margin-bottom: 1rem;
}

.vr-header-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vr-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #64748b !important;
  padding: 0;
  transition: color 0.15s ease;
}

.vr-header-link:hover {
  color: #1e293b !important;
}

.vr-header-link-icon {
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.vr-header-link:hover .vr-header-link-icon {
  transform: translateX(-2px);
}

/* ─── Results table ──────────────────────────────────────────── */
.vr-table {
  background: #f9fafb;
  border-radius: 10px;
  padding: 0.35rem 1rem;
  margin-bottom: 0.3rem;
}

/* ─── Result rows ────────────────────────────────────────────── */
.vr-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: opacity 0.12s ease;
  border-radius: 0 !important;
}

.vr-row:last-child {
  border-bottom: none;
}

.vr-row:hover {
  opacity: 0.75;
}

.block-vat-calculator-block .vr-row.copyable::before {
  display: none !important;
  content: none !important;
}

.block-vat-calculator-block .vr-row.copyable::after {
  display: none !important;
  content: none !important;
}

.vr-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.vr-label small {
  color: #9ca3af;
  font-weight: 400;
}

.vr-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vr-row--input .vr-label { color: #9ca3af; }
.vr-row--input .vr-label small { color: #d1d5db; }
.vr-row--input .vr-amount { color: #9ca3af; font-weight: 600; }

.vr-row--answer .vr-label { font-weight: 700; color: #111827; }
.vr-row--answer .vr-amount { font-size: 1.8rem; font-weight: 800; color: #111827; }

/* ─── Copy feedback ──────────────────────────────────────────── */
.vr-row--copied {
  background: #ecfdf5 !important;
  transition: background 0.15s ease;
}

.vr-row--copied .vr-amount::after {
  content: ' ✓';
  color: #16a34a;
  font-size: 0.75rem;
}

/* ─── Copy hint ──────────────────────────────────────────────── */
.vr-hint {
  font-size: 0.72rem;
  color: #c4c8ce;
  margin-bottom: 0.15rem;
}

/* ═══════════════════════════════════════════════════════════════
   SEO GUIDE — below calculator
   ═══════════════════════════════════════════════════════════════ */

.vat-calculator-module .vat-seo-guide {
  margin: 2.5rem auto 0;
  max-width: 46rem;
  text-align: left;
}

.vat-seo-section {
  margin-bottom: 2.5rem;
}

.vat-seo-section:last-of-type {
  margin-bottom: 1.5rem;
}

/* ─── Headings ───────────────────────────────────────────────── */
.vat-seo-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2e4e76;
  margin: 0 0 0.85rem;
  line-height: 1.3;
}

.vat-seo-p {
  font-size: 1rem;
  line-height: 1.75;
  color: #414045;
  font-weight: 300;
  margin: 0 0 1rem;
}

.vat-seo-p:last-child {
  margin-bottom: 0;
}

.vat-seo-p strong {
  font-weight: 600;
  color: #2e3138;
}

.vat-seo-list {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  color: #414045;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
}

.vat-seo-list li {
  margin-bottom: 0.4rem;
}

/* ─── How-to steps ───────────────────────────────────────────── */
.vat-seo-steps {
  margin: 0;
  padding-left: 1.2rem;
  counter-reset: none;
}

.vat-seo-step {
  margin-bottom: 1rem;
  padding-left: 0.35rem;
  line-height: 1.6;
}

.vat-seo-step:last-child {
  margin-bottom: 0;
}

.vat-seo-step::marker {
  color: #2e4e76;
  font-weight: 700;
}

.vat-seo-step-name {
  font-weight: 600;
  color: #2e3138;
}

.vat-seo-step-text {
  color: #414045;
  font-weight: 300;
}

.vat-seo-step-name + .vat-seo-step-text::before {
  content: " — ";
  color: #9ca3af;
}

/* ─── Formulas ───────────────────────────────────────────────── */
.vat-formula-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: #e7ebf0;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.25rem 0;
}

.vat-formula {
  background: #fff;
  padding: 1.1rem 1.25rem;
  margin: 0;
}

.vat-formula-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a9099;
  margin: 0 0 0.5rem;
}

.vat-formula-eq {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2e4e76;
  margin: 0 0 0.35rem;
}

.vat-formula-eg {
  font-size: 0.9375rem;
  color: #6b6b6c;
  font-weight: 300;
  margin: 0;
}

.vat-formula-vat {
  color: #9ca3af;
  margin-left: 0.2rem;
}

.vat-seo-note {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
  font-weight: 300;
  border-left: 3px solid #d8dee6;
  padding: 0.1rem 0 0.1rem 0.9rem;
  margin: 1rem 0 0;
}

.vat-seo-note strong {
  font-weight: 600;
  color: #2e3138;
}

/* ─── VAT rate table ─────────────────────────────────────────── */
.vat-rate-table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.vat-rate-table {
  width: 100%;
  font-size: 0.9375rem;
  border-collapse: collapse;
  margin: 0;
}

.vat-rate-table th {
  font-weight: 600;
  color: #2e3138;
  padding: 0.65rem 0.85rem 0.65rem 0;
  text-align: left;
  border-bottom: 2px solid #d8dee6;
}

.vat-rate-table td {
  padding: 0.7rem 0.85rem 0.7rem 0;
  border-bottom: 1px solid #eceff3;
  color: #414045;
  font-weight: 300;
  vertical-align: top;
}

.vat-rate-table tbody tr:last-child td {
  border-bottom: none;
}

.vat-rate-name {
  font-weight: 600;
  color: #2e3138;
  white-space: nowrap;
}

.vat-rate-pct {
  font-weight: 600;
  color: #2e4e76;
  white-space: nowrap;
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.vat-faq-list {
  border-top: 1px solid #e7ebf0;
}

.vat-faq-item {
  border-bottom: 1px solid #e7ebf0;
}

.vat-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #2e3138;
  cursor: pointer;
  list-style: none;
  line-height: 1.5;
}

.vat-faq-q::-webkit-details-marker {
  display: none;
}

.vat-faq-q::after {
  content: '+';
  flex-shrink: 0;
  margin-left: 1rem;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: #8a9099;
  transition: transform 0.15s ease;
}

.vat-faq-item[open] .vat-faq-q {
  color: #2e4e76;
}

.vat-faq-item[open] .vat-faq-q::after {
  content: '\2212';
  color: #2e4e76;
}

.vat-faq-a {
  padding: 0 0 1rem;
}

.vat-faq-a p {
  font-size: 1rem;
  line-height: 1.75;
  color: #414045;
  font-weight: 300;
  margin: 0;
}

/* ─── Footer / disclaimer ────────────────────────────────────── */
.vat-seo-footer {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f1f3;
}

.vat-seo-disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.55;
  margin: 0;
}

.vat-seo-disclaimer a {
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vat-seo-disclaimer a:hover {
  color: #6b7280;
}
