#cw-vat-calculator {
  --cw-navy: #102a43;
  --cw-navy-2: #183b56;
  --cw-blue: #146ef5;
  --cw-blue-dark: #0b54c8;
  --cw-teal: #0f9f8f;
  --cw-green: #087f5b;
  --cw-amber: #b86500;
  --cw-red: #c73535;
  --cw-ink: #243447;
  --cw-muted: #64758b;
  --cw-line: #dce5ef;
  --cw-soft-line: #e8eef5;
  --cw-bg: #f4f7fb;
  --cw-white: #ffffff;
  --cw-shadow: 0 22px 62px rgba(16, 42, 67, 0.11);
  width: 100%;
  color: var(--cw-ink);
  font-family: inherit;
  line-height: 1.5;
}

#cw-vat-calculator,
#cw-vat-calculator * {
  box-sizing: border-box;
}

#cw-vat-calculator button,
#cw-vat-calculator input,
#cw-vat-calculator select {
  font: inherit;
}

#cw-vat-calculator h2,
#cw-vat-calculator h3,
#cw-vat-calculator h4,
#cw-vat-calculator h5,
#cw-vat-calculator p {
  margin-top: 0;
}

#cw-vat-calculator .cw-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid rgba(220, 229, 239, 0.98);
  border-radius: 24px;
  background:
    radial-gradient(circle at 97% 1%, rgba(20, 110, 245, 0.09), transparent 21%),
    radial-gradient(circle at 4% 1%, rgba(15, 159, 143, 0.07), transparent 20%),
    var(--cw-bg);
  box-shadow: var(--cw-shadow);
}

/* Header */
#cw-vat-calculator .cw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}

#cw-vat-calculator .cw-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px 10px 16px 4px;
}

#cw-vat-calculator .cw-eyebrow,
#cw-vat-calculator .cw-kicker {
  color: var(--cw-blue-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

#cw-vat-calculator .cw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

#cw-vat-calculator .cw-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cw-teal);
  box-shadow: 0 0 0 5px rgba(15, 159, 143, 0.11);
}

#cw-vat-calculator .cw-hero h2 {
  max-width: 850px;
  margin-bottom: 9px;
  color: var(--cw-navy);
  font-size: clamp(31px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.038em;
}

#cw-vat-calculator .cw-hero-copy > p {
  max-width: 820px;
  margin-bottom: 13px;
  color: var(--cw-muted);
  font-size: 16px;
  line-height: 1.55;
}

#cw-vat-calculator .cw-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#cw-vat-calculator .cw-hero-pills span {
  padding: 6px 10px;
  border: 1px solid rgba(20, 110, 245, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--cw-navy-2);
  font-size: 11px;
  font-weight: 750;
}

#cw-vat-calculator .cw-threshold-card {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 176px;
  padding: 22px;
  border-radius: 19px;
  background: linear-gradient(145deg, #102a43 0%, #0e4e79 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(16, 42, 67, 0.22);
}

#cw-vat-calculator .cw-threshold-card::after {
  content: "";
  position: absolute;
  right: -47px;
  top: -49px;
  width: 158px;
  height: 158px;
  border: 25px solid rgba(255, 255, 255, 0.065);
  border-radius: 50%;
}

#cw-vat-calculator .cw-threshold-label,
#cw-vat-calculator .cw-threshold-row {
  position: relative;
  z-index: 1;
}

#cw-vat-calculator .cw-threshold-label {
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}

#cw-vat-calculator .cw-threshold-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
}

#cw-vat-calculator .cw-threshold-row + .cw-threshold-row {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

#cw-vat-calculator .cw-threshold-row span,
#cw-vat-calculator .cw-threshold-row small {
  display: block;
}

#cw-vat-calculator .cw-threshold-row span {
  font-size: 13px;
  font-weight: 800;
}

#cw-vat-calculator .cw-threshold-row small {
  margin-top: 1px;
  font-size: 10px;
  opacity: 0.72;
}

#cw-vat-calculator .cw-threshold-row strong {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.025em;
}

#cw-vat-calculator .cw-threshold-main strong {
  font-size: 31px;
}

/* Main desktop workspace */
#cw-vat-calculator .cw-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(410px, 0.88fr);
  gap: 22px;
  align-items: start;
}

#cw-vat-calculator .cw-panel {
  min-width: 0;
  border: 1px solid var(--cw-line);
  border-radius: 19px;
  background: var(--cw-white);
  box-shadow: 0 11px 34px rgba(16, 42, 67, 0.065);
}

#cw-vat-calculator .cw-form-panel {
  padding: 22px;
}

#cw-vat-calculator .cw-result-panel {
  padding: 22px;
}

#cw-vat-calculator .cw-result-sticky {
  position: sticky;
  top: 22px;
}

#cw-vat-calculator .cw-workspace-heading,
#cw-vat-calculator .cw-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#cw-vat-calculator .cw-workspace-heading {
  margin-bottom: 15px;
  padding: 0 3px;
}

#cw-vat-calculator .cw-workspace-heading h3,
#cw-vat-calculator .cw-result-heading h3 {
  margin: 3px 0 0;
  color: var(--cw-navy);
  font-size: 21px;
  line-height: 1.25;
}

#cw-vat-calculator .cw-required-note {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(15, 159, 143, 0.18);
  border-radius: 999px;
  background: rgba(15, 159, 143, 0.06);
  color: #0b766b;
  font-size: 11px;
  font-weight: 800;
}

#cw-vat-calculator .cw-section-card {
  padding: 19px;
  border: 1px solid var(--cw-soft-line);
  border-radius: 15px;
  background: #fff;
}

#cw-vat-calculator .cw-section-card + .cw-section-card {
  margin-top: 14px;
}

#cw-vat-calculator .cw-turnover-card {
  background: linear-gradient(180deg, rgba(20, 110, 245, 0.018), #fff 32%);
}

#cw-vat-calculator .cw-section-heading,
#cw-vat-calculator .cw-heading-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#cw-vat-calculator .cw-section-heading {
  margin-bottom: 16px;
}

#cw-vat-calculator .cw-section-heading-row {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#cw-vat-calculator .cw-step-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: rgba(20, 110, 245, 0.10);
  color: var(--cw-blue-dark);
  font-size: 13px;
  font-weight: 850;
}

#cw-vat-calculator .cw-section-heading h4 {
  margin: 1px 0 2px;
  color: var(--cw-navy);
  font-size: 16px;
  line-height: 1.3;
}

#cw-vat-calculator .cw-section-heading p {
  margin-bottom: 0;
  color: var(--cw-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Fields */
#cw-vat-calculator .cw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

#cw-vat-calculator .cw-full {
  grid-column: 1 / -1;
}

#cw-vat-calculator .cw-field {
  min-width: 0;
}

#cw-vat-calculator .cw-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--cw-navy-2);
  font-size: 12.5px;
  font-weight: 780;
  line-height: 1.35;
}

#cw-vat-calculator .cw-field label em {
  color: var(--cw-blue-dark);
  font-style: normal;
}

#cw-vat-calculator .cw-field input[type="text"],
#cw-vat-calculator .cw-field input[type="date"],
#cw-vat-calculator .cw-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #ccd8e4;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--cw-ink);
  font-size: 13.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#cw-vat-calculator .cw-field input:hover,
#cw-vat-calculator .cw-field select:hover {
  border-color: #b7c7d8;
}

#cw-vat-calculator .cw-field input:focus,
#cw-vat-calculator .cw-field select:focus {
  border-color: var(--cw-blue);
  box-shadow: 0 0 0 4px rgba(20, 110, 245, 0.095);
}

#cw-vat-calculator .cw-field small {
  display: block;
  margin-top: 5px;
  color: var(--cw-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

#cw-vat-calculator .cw-input-prefix {
  position: relative;
}

#cw-vat-calculator .cw-input-prefix > span {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--cw-navy);
  font-weight: 850;
}

#cw-vat-calculator .cw-input-prefix input {
  padding-left: 31px !important;
}

#cw-vat-calculator .cw-input-large input {
  min-height: 56px !important;
  font-size: 21px !important;
  font-weight: 800;
  letter-spacing: -0.015em;
}

#cw-vat-calculator .cw-quick-entry-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 1.1fr);
  gap: 18px;
  align-items: end;
}

#cw-vat-calculator .cw-inline-help {
  min-height: 56px;
  padding: 11px 14px;
  border-left: 3px solid rgba(20, 110, 245, 0.35);
  border-radius: 0 9px 9px 0;
  background: #f7faff;
  color: var(--cw-muted);
  font-size: 11px;
  line-height: 1.5;
}

#cw-vat-calculator .cw-inline-help strong {
  color: var(--cw-navy);
}

/* Entry mode */
#cw-vat-calculator .cw-mode-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--cw-line);
  border-radius: 11px;
  background: #f5f8fb;
}

#cw-vat-calculator .cw-mode-btn {
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cw-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}

#cw-vat-calculator .cw-mode-btn.is-active {
  background: #fff;
  color: var(--cw-blue-dark);
  box-shadow: 0 3px 10px rgba(16, 42, 67, 0.09);
}

#cw-vat-calculator .cw-monthly-toolbar,
#cw-vat-calculator .cw-month-total-row,
#cw-vat-calculator .cw-progress-labels,
#cw-vat-calculator .cw-progress-scale,
#cw-vat-calculator .cw-date-row,
#cw-vat-calculator .cw-status-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#cw-vat-calculator .cw-monthly-toolbar {
  margin-bottom: 10px;
}

#cw-vat-calculator .cw-monthly-toolbar p {
  margin: 0;
  color: var(--cw-muted);
  font-size: 11px;
}

#cw-vat-calculator .cw-text-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cw-blue-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

#cw-vat-calculator .cw-monthly-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

#cw-vat-calculator .cw-month-field label {
  display: block;
  margin-bottom: 4px;
  color: var(--cw-muted);
  font-size: 9.5px;
  font-weight: 750;
}

#cw-vat-calculator .cw-month-field .cw-input-prefix > span {
  left: 10px;
  font-size: 12px;
}

#cw-vat-calculator .cw-month-field .cw-input-prefix input {
  width: 100%;
  min-height: 39px;
  padding: 8px 8px 8px 25px !important;
  border: 1px solid #cfdbe7;
  border-radius: 8px;
  outline: none;
  background: #fff;
  font-size: 12px;
}

#cw-vat-calculator .cw-month-total-row {
  margin-top: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(20, 110, 245, 0.15);
  border-radius: 10px;
  background: rgba(20, 110, 245, 0.05);
  color: var(--cw-navy);
  font-size: 12px;
}

#cw-vat-calculator .cw-month-total-row strong {
  font-size: 16px;
}

#cw-vat-calculator .cw-checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid var(--cw-line);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}

#cw-vat-calculator .cw-checkbox-field input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--cw-blue);
}

#cw-vat-calculator .cw-checkbox-field b,
#cw-vat-calculator .cw-checkbox-field small {
  display: block;
}

#cw-vat-calculator .cw-checkbox-field small {
  margin-top: 2px;
  font-weight: 400;
}

/* Buttons */
#cw-vat-calculator .cw-action-row,
#cw-vat-calculator .cw-result-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

#cw-vat-calculator .cw-action-row {
  justify-content: flex-end;
  margin-top: 16px;
}

#cw-vat-calculator .cw-primary-btn,
#cw-vat-calculator .cw-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 820;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#cw-vat-calculator .cw-primary-btn {
  border: 1px solid var(--cw-blue);
  background: linear-gradient(135deg, var(--cw-blue), #0f5fd9);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 110, 245, 0.20);
}

#cw-vat-calculator .cw-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(20, 110, 245, 0.28);
}

#cw-vat-calculator .cw-secondary-btn {
  border: 1px solid var(--cw-line);
  background: #fff;
  color: var(--cw-navy);
}

#cw-vat-calculator .cw-secondary-btn:hover {
  background: #f7f9fc;
}

#cw-vat-calculator .cw-primary-btn svg,
#cw-vat-calculator .cw-secondary-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Results */
#cw-vat-calculator .cw-result-heading {
  margin-bottom: 16px;
  padding: 0 2px;
}

#cw-vat-calculator .cw-result-empty {
  padding: 27px 20px 22px;
  border: 1px dashed #c9d7e5;
  border-radius: 15px;
  background: #f8fafc;
  text-align: center;
}

#cw-vat-calculator .cw-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 11px;
  border-radius: 14px;
  background: rgba(20, 110, 245, 0.09);
  color: var(--cw-blue-dark);
}

#cw-vat-calculator .cw-empty-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cw-vat-calculator .cw-result-empty h4 {
  margin-bottom: 5px;
  color: var(--cw-navy);
  font-size: 17px;
}

#cw-vat-calculator .cw-result-empty > p {
  max-width: 330px;
  margin: 0 auto;
  color: var(--cw-muted);
  font-size: 12px;
}

#cw-vat-calculator .cw-empty-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 17px;
}

#cw-vat-calculator .cw-empty-checklist span {
  padding: 7px 5px;
  border: 1px solid var(--cw-soft-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cw-muted);
  font-size: 9px;
  font-weight: 750;
}

#cw-vat-calculator .cw-status-box {
  padding: 17px;
  border: 1px solid rgba(20, 110, 245, 0.20);
  border-radius: 14px;
  background: rgba(20, 110, 245, 0.06);
}

#cw-vat-calculator .cw-status-box.is-safe {
  border-color: rgba(8, 127, 91, 0.22);
  background: rgba(8, 127, 91, 0.07);
}

#cw-vat-calculator .cw-status-box.is-warning {
  border-color: rgba(184, 101, 0, 0.25);
  background: rgba(184, 101, 0, 0.08);
}

#cw-vat-calculator .cw-status-box.is-danger {
  border-color: rgba(199, 53, 53, 0.24);
  background: rgba(199, 53, 53, 0.075);
}

#cw-vat-calculator .cw-status-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--cw-blue-dark);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

#cw-vat-calculator .cw-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--cw-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

#cw-vat-calculator .cw-status-box h4 {
  margin: 11px 0 5px;
  color: var(--cw-navy);
  font-size: 18px;
  line-height: 1.25;
}

#cw-vat-calculator .cw-status-box p {
  margin-bottom: 0;
  color: var(--cw-muted);
  font-size: 12px;
  line-height: 1.5;
}

#cw-vat-calculator .cw-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}

#cw-vat-calculator .cw-metric-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--cw-line);
  border-radius: 11px;
  background: #fff;
}

#cw-vat-calculator .cw-metric-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--cw-muted);
  font-size: 9px;
  font-weight: 790;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#cw-vat-calculator .cw-metric-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--cw-navy);
  font-size: 19px;
  line-height: 1.15;
}

#cw-vat-calculator .cw-progress-section,
#cw-vat-calculator .cw-deadline-block,
#cw-vat-calculator .cw-advisory,
#cw-vat-calculator .cw-info-card {
  margin-top: 11px;
  padding: 14px;
  border: 1px solid var(--cw-line);
  border-radius: 11px;
  background: #f9fbfd;
}

#cw-vat-calculator .cw-progress-labels {
  margin-bottom: 8px;
  color: var(--cw-navy);
  font-size: 11px;
  font-weight: 760;
}

#cw-vat-calculator .cw-progress-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e6edf4;
}

#cw-vat-calculator .cw-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cw-teal), var(--cw-blue));
  transition: width 0.55s ease;
}

#cw-vat-calculator .cw-progress-scale {
  margin-top: 6px;
  color: var(--cw-muted);
  font-size: 9px;
}

#cw-vat-calculator .cw-deadline-block h5,
#cw-vat-calculator .cw-info-card h5 {
  margin-bottom: 9px;
  color: var(--cw-navy);
  font-size: 12px;
}

#cw-vat-calculator .cw-date-row + .cw-date-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--cw-line);
}

#cw-vat-calculator .cw-date-row span {
  color: var(--cw-muted);
  font-size: 10.5px;
}

#cw-vat-calculator .cw-date-row strong {
  color: var(--cw-navy);
  font-size: 11px;
  text-align: right;
}

#cw-vat-calculator .cw-advisory {
  color: var(--cw-muted);
  font-size: 11px;
  line-height: 1.5;
}

#cw-vat-calculator .cw-advisory strong {
  color: var(--cw-navy);
}

#cw-vat-calculator .cw-advisory ul {
  margin: 7px 0 0;
  padding-left: 17px;
}

#cw-vat-calculator .cw-advisory li + li {
  margin-top: 5px;
}

#cw-vat-calculator .cw-result-actions {
  margin-top: 11px;
}

#cw-vat-calculator .cw-result-actions .cw-primary-btn {
  flex: 1 1 auto;
}

#cw-vat-calculator .cw-result-actions .cw-secondary-btn {
  flex: 0 0 82px;
}

#cw-vat-calculator .cw-info-card {
  margin-top: 14px;
}

#cw-vat-calculator .cw-info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

#cw-vat-calculator .cw-info-columns p {
  margin: 0;
  padding: 9px;
  border: 1px solid var(--cw-soft-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cw-muted);
  font-size: 10px;
  line-height: 1.45;
}

#cw-vat-calculator .cw-info-columns b {
  color: var(--cw-navy);
}

#cw-vat-calculator .cw-info-card > small {
  display: block;
  margin-top: 9px;
  color: var(--cw-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

#cw-vat-calculator .cw-disclaimer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(16, 42, 67, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--cw-muted);
  font-size: 10.5px;
  line-height: 1.5;
}

#cw-vat-calculator .cw-disclaimer strong {
  color: var(--cw-navy);
}

#cw-vat-calculator .cw-disclaimer a {
  flex: 0 0 auto;
  color: var(--cw-blue-dark);
  font-weight: 820;
  text-decoration: none;
}

#cw-vat-calculator .cw-hidden {
  display: none !important;
}

/* Laptop and narrow desktop */
@media (max-width: 1180px) {
  #cw-vat-calculator .cw-shell {
    padding: 20px;
  }

  #cw-vat-calculator .cw-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  #cw-vat-calculator .cw-content-grid {
    grid-template-columns: minmax(0, 1.52fr) minmax(360px, 0.88fr);
  }

  #cw-vat-calculator .cw-monthly-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #cw-vat-calculator .cw-section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Tablet */
@media (max-width: 960px) {
  #cw-vat-calculator .cw-hero,
  #cw-vat-calculator .cw-content-grid {
    grid-template-columns: 1fr;
  }

  #cw-vat-calculator .cw-hero {
    gap: 15px;
  }

  #cw-vat-calculator .cw-threshold-card {
    min-height: auto;
  }

  #cw-vat-calculator .cw-result-sticky {
    position: static;
  }

  #cw-vat-calculator .cw-result-panel {
    padding: 20px;
  }

  #cw-vat-calculator .cw-result-actions .cw-secondary-btn {
    flex-basis: 120px;
  }
}

/* Mobile */
@media (max-width: 680px) {
  #cw-vat-calculator .cw-shell {
    padding: 14px;
    border-radius: 17px;
  }

  #cw-vat-calculator .cw-hero-copy {
    padding: 8px 2px;
  }

  #cw-vat-calculator .cw-hero h2 {
    font-size: 31px;
  }

  #cw-vat-calculator .cw-threshold-card,
  #cw-vat-calculator .cw-form-panel,
  #cw-vat-calculator .cw-result-panel {
    padding: 17px;
  }

  #cw-vat-calculator .cw-section-card {
    padding: 15px;
  }

  #cw-vat-calculator .cw-form-grid,
  #cw-vat-calculator .cw-quick-entry-grid,
  #cw-vat-calculator .cw-monthly-grid,
  #cw-vat-calculator .cw-info-columns {
    grid-template-columns: 1fr;
  }

  #cw-vat-calculator .cw-workspace-heading,
  #cw-vat-calculator .cw-result-heading,
  #cw-vat-calculator .cw-section-heading-row,
  #cw-vat-calculator .cw-disclaimer {
    align-items: stretch;
    flex-direction: column;
  }

  #cw-vat-calculator .cw-required-note {
    align-self: flex-start;
  }

  #cw-vat-calculator .cw-mode-tabs {
    display: flex;
    width: 100%;
  }

  #cw-vat-calculator .cw-mode-btn {
    flex: 1 1 50%;
    white-space: normal;
  }

  #cw-vat-calculator .cw-action-row,
  #cw-vat-calculator .cw-result-actions {
    flex-direction: column;
  }

  #cw-vat-calculator .cw-action-row > *,
  #cw-vat-calculator .cw-result-actions > *,
  #cw-vat-calculator .cw-disclaimer a {
    width: 100%;
    text-align: center;
  }

  #cw-vat-calculator .cw-result-actions .cw-secondary-btn {
    flex-basis: auto;
  }
}

@media (max-width: 430px) {
  #cw-vat-calculator .cw-metric-grid,
  #cw-vat-calculator .cw-empty-checklist {
    grid-template-columns: 1fr;
  }

  #cw-vat-calculator .cw-threshold-row strong {
    font-size: 21px;
  }

  #cw-vat-calculator .cw-threshold-main strong {
    font-size: 27px;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #cw-vat-calculator,
  #cw-vat-calculator * {
    visibility: visible !important;
  }

  #cw-vat-calculator {
    position: absolute;
    inset: 0;
  }

  #cw-vat-calculator .cw-form-panel,
  #cw-vat-calculator .cw-disclaimer,
  #cw-vat-calculator .cw-result-actions {
    display: none !important;
  }

  #cw-vat-calculator .cw-content-grid,
  #cw-vat-calculator .cw-hero {
    display: block;
  }

  #cw-vat-calculator .cw-threshold-card {
    margin: 16px 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    box-shadow: none;
  }

  #cw-vat-calculator .cw-result-panel,
  #cw-vat-calculator .cw-shell {
    border: 0;
    box-shadow: none;
  }
}
