body.partial-repayment-calculator-page {
  overflow-x: hidden;
}

body.partial-repayment-calculator-page *,
body.partial-repayment-calculator-page *::before,
body.partial-repayment-calculator-page *::after {
  box-sizing: border-box;
}

body.partial-repayment-calculator-page article.post.featured h1,
body.partial-repayment-calculator-page article.post.featured h2,
body.partial-repayment-calculator-page article.post.featured h3,
body.partial-repayment-calculator-page article.post.featured h4 {
  letter-spacing: 0;
}

body.partial-repayment-calculator-page #main article.post.featured header.major > h1 {
  font-size: 3.15rem;
  line-height: 1.06;
  margin: 0;
}

.prc-hero,
.prc-tool-shell,
.prc-results,
.prc-output-card,
.prc-info-card,
.prc-preset-card,
.prc-app-cta {
  min-width: 0;
  max-width: 100%;
}

.prc-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(18rem, 0.62fr);
  align-items: center;
}

.prc-hero-visual {
  justify-self: end;
  width: min(100%, 34rem);
  margin: 0;
  line-height: 0;
}

.prc-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #fffaf2;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
}

.prc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.prc-chip-row span,
.prc-status-pill,
.prc-example-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.prc-chip-row span {
  min-height: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: rgba(24, 33, 43, 0.74);
  font-size: 0.82rem;
  padding: 0.42rem 0.68rem;
}

.prc-clarification-box,
.prc-soft-note,
.prc-result-note,
.prc-noscript {
  border-left: 4px solid rgba(175, 230, 126, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.9rem 1rem;
}

.prc-clarification-box {
  display: grid;
  gap: 0.35rem;
  max-width: 66ch;
  margin-top: 1.15rem;
  color: rgba(24, 33, 43, 0.82);
  font-size: 0.96rem;
  line-height: 1.55;
}

.prc-tool-section,
.prc-results,
#partial-repayment-example {
  scroll-margin-top: 1rem;
}

.prc-tool-shell {
  display: grid;
  gap: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(175, 230, 126, 0.18), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(84, 132, 202, 0.13), transparent 28rem),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.1);
  padding: 1.65rem;
}

.prc-tool-heading,
.prc-results-heading,
.prc-copy-heading,
.prc-app-cta {
  display: grid;
  gap: 1rem;
}

.prc-tool-heading,
.prc-results-heading {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.42fr);
  align-items: start;
}

.prc-tool-heading p,
.prc-results-heading p,
.prc-content-section > p,
.prc-app-cta p {
  margin: 0;
}

.prc-privacy-note,
.prc-muted,
.prc-field-hint,
.prc-validation,
.prc-form-status,
.prc-copy-status {
  color: rgba(24, 33, 43, 0.68);
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}

.prc-privacy-note {
  margin-top: 0.8rem !important;
}

.prc-example-card {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  border: 1px solid rgba(175, 230, 126, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(175, 230, 126, 0.22), rgba(240, 217, 155, 0.16)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
  padding: 1rem;
}

.prc-example-card h3,
.prc-presets h3 {
  margin: 0 !important;
}

.prc-example-card p,
.prc-preset-card p {
  color: rgba(24, 33, 43, 0.72);
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
}

.prc-example-label {
  color: rgba(24, 33, 43, 0.6) !important;
  font-size: 0.76rem !important;
  text-transform: uppercase;
}

.prc-form {
  display: grid;
  gap: 1rem;
}

.prc-fieldset,
.prc-adjustment {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.84);
}

.prc-fieldset legend {
  padding: 0 0.3rem;
  color: #18212b;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.prc-field-grid,
.prc-mode-grid,
.prc-summary-grid,
.prc-output-grid,
.prc-preset-grid,
.prc-card-grid {
  display: grid;
  gap: 1rem;
}

.prc-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prc-field-grid--amounts {
  grid-template-columns: minmax(7rem, 0.35fr) minmax(11rem, 0.65fr) minmax(0, 1fr);
}

.prc-field-grid--single {
  grid-template-columns: minmax(0, 0.52fr);
}

.prc-field--wide {
  grid-column: span 2;
}

.prc-field label,
.prc-field-label {
  display: block;
  margin: 0 0 0.32rem;
  color: rgba(24, 33, 43, 0.78);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
  text-transform: none;
}

.prc-field input {
  width: 100%;
  height: 2.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #18212b !important;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: none !important;
  padding: 0 0.85rem !important;
}

.prc-field-hint,
.prc-validation {
  margin: 0.45rem 0 0;
}

.prc-validation,
.prc-form-status {
  color: #725c16;
  font-weight: 800;
}

.prc-mode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prc-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 100%;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  padding: 1rem;
}

.prc-mode-card input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
}

.prc-mode-card span {
  color: #18212b;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.32;
}

.prc-mode-card:has(input:checked) {
  border-color: rgba(107, 161, 69, 0.38);
  background: rgba(175, 230, 126, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.prc-repayment-rows {
  display: grid;
  gap: 0.85rem;
}

.prc-repayment-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(10rem, 0.75fr) minmax(12rem, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.85rem;
}

.prc-adjustment {
  padding: 0;
  overflow: hidden;
}

.prc-adjustment summary {
  color: #18212b;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 1rem;
}

.prc-adjustment-body {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.prc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.prc-actions--compact {
  margin-top: 0.9rem;
}

.prc-primary-button,
.prc-secondary-button,
.prc-copy-button,
.prc-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
}

.prc-primary-button {
  padding: 0.72rem 1.05rem;
  border: 1px solid rgba(107, 161, 69, 0.24);
  background: #afe67e;
  color: #18212b;
}

.prc-secondary-button,
.prc-copy-button,
.prc-icon-button {
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #18212b;
}

.prc-copy-button {
  width: fit-content;
  margin-top: auto;
  background: rgba(175, 230, 126, 0.24);
  border-color: rgba(107, 161, 69, 0.22);
}

.prc-icon-button {
  align-self: end;
  min-height: 2.85rem;
  border-radius: 13px;
}

.prc-copy-button:disabled,
.prc-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.prc-primary-button:hover {
  background: #bcf18c;
}

.prc-secondary-button:hover,
.prc-copy-button:hover,
.prc-icon-button:hover {
  background: rgba(175, 230, 126, 0.2);
}

.prc-field input:focus,
.prc-mode-card input:focus-visible,
.prc-primary-button:focus-visible,
.prc-secondary-button:focus-visible,
.prc-copy-button:focus-visible,
.prc-icon-button:focus-visible,
.prc-app-cta .lt-appStoreBtn:focus-visible {
  outline: 3px solid rgba(53, 84, 40, 0.28) !important;
  outline-offset: 2px;
}

.prc-presets {
  display: grid;
  gap: 0.65rem;
}

.prc-preset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prc-preset-card,
.prc-info-card,
.prc-output-card,
.prc-summary-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.prc-preset-card,
.prc-info-card,
.prc-output-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.15rem;
}

.prc-preset-card h4,
.prc-info-card h3,
.prc-output-card h4 {
  margin-bottom: 0.55rem !important;
}

.prc-results {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1.15rem;
}

.prc-status-pill {
  justify-self: end;
  min-height: 2rem;
  border: 1px solid rgba(107, 161, 69, 0.26);
  background: rgba(175, 230, 126, 0.24);
  color: #18212b;
  font-size: 0.82rem;
  padding: 0.42rem 0.72rem;
}

.prc-result-note:empty {
  display: none;
}

.prc-result-note {
  border-color: rgba(240, 217, 155, 0.72);
  background: rgba(240, 217, 155, 0.18);
  color: rgba(24, 33, 43, 0.78);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.5;
}

.prc-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.prc-summary-card {
  padding: 1rem;
}

.prc-summary-card[hidden] {
  display: none !important;
}

.prc-summary-card p {
  margin: 0 0 0.35rem !important;
  color: rgba(24, 33, 43, 0.64) !important;
  font-size: 0.82rem !important;
  font-weight: 800;
  line-height: 1.3 !important;
}

.prc-summary-card strong {
  color: #18212b;
  font-size: 1.12rem;
  line-height: 1.3;
}

.prc-progress-wrap {
  display: grid;
  gap: 0.45rem;
}

.prc-progress-label {
  color: rgba(24, 33, 43, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.prc-progress {
  height: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.prc-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ba145, #afe67e);
  transition: width 0.2s ease;
}

.prc-table-wrap,
.prc-static-table-wrap {
  overflow-x: auto;
}

.prc-history-table,
.prc-static-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.prc-history-table th,
.prc-history-table td,
.prc-static-table th,
.prc-static-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(33, 41, 49, 0.88);
  font-size: 0.97rem;
  line-height: 1.45;
  text-align: left;
}

.prc-history-table th,
.prc-static-table th {
  color: #18212b;
  font-weight: 800;
}

.prc-history-table tr:last-child td,
.prc-static-table tr:last-child td {
  border-bottom: 0;
}

.prc-copy-panel {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
}

.prc-copy-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.prc-copy-status {
  min-height: 1.35rem;
  color: #355428;
  font-weight: 800;
  text-align: right !important;
}

.prc-output-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prc-output-text,
.prc-output-pre {
  border-left: 4px solid #afe67e;
  border-radius: 16px;
  background: rgba(175, 230, 126, 0.11);
  color: #18212b !important;
  user-select: text;
}

.prc-output-text {
  margin: 0 0 1rem !important;
  padding: 1rem 1rem 1rem 1.1rem;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.prc-output-pre {
  flex: 1 1 auto;
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 1rem 1rem 1rem 1.1rem;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.prc-content-section > p,
.prc-content-section > ul {
  max-width: 74ch;
}

.prc-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.prc-info-card p {
  margin: 0 !important;
}

.prc-static-table {
  min-width: 42rem;
}

.prc-soft-note {
  max-width: 72ch;
  margin-top: 1.15rem !important;
  color: rgba(24, 33, 43, 0.78) !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
}

.prc-app-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(175, 230, 126, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(228, 238, 248, 0.86));
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  padding: 1.35rem;
}

.prc-app-actions {
  display: grid;
  justify-items: start;
}

.prc-app-cta .lt-appStoreBtn {
  width: 190px;
  max-width: 100%;
}

.prc-faq-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.prc-faq-list details {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 1rem 1.1rem;
}

.prc-faq-list summary {
  color: #18212b;
  font-weight: 800;
  cursor: pointer;
}

.prc-faq-list details p {
  margin: 0.85rem 0 0 !important;
}

@media (max-width: 1120px) {
  .prc-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prc-output-grid,
  .prc-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .prc-hero,
  .prc-tool-heading,
  .prc-results-heading,
  .prc-app-cta {
    grid-template-columns: 1fr;
  }

  .prc-hero-visual {
    justify-self: start;
    width: min(100%, 34rem);
  }

  .prc-field-grid,
  .prc-field-grid--amounts,
  .prc-field-grid--single,
  .prc-mode-grid,
  .prc-repayment-row,
  .prc-preset-grid,
  .prc-card-grid {
    grid-template-columns: 1fr;
  }

  .prc-field--wide {
    grid-column: auto;
  }

  .prc-icon-button {
    align-self: stretch;
  }

  .prc-status-pill,
  .prc-copy-status {
    justify-self: start;
    text-align: left !important;
  }
}

@media (max-width: 736px) {
  body.partial-repayment-calculator-page .lt-breadcrumb,
  body.partial-repayment-calculator-page .lt-toolsHero,
  body.partial-repayment-calculator-page .lt-toolsSection {
    width: 100%;
    max-width: min(100%, 390px);
    margin-left: 0;
    margin-right: 0;
  }

  body.partial-repayment-calculator-page #wrapper,
  body.partial-repayment-calculator-page #main,
  body.partial-repayment-calculator-page article.post.featured {
    max-width: 100vw !important;
    overflow-x: hidden;
  }

  body.partial-repayment-calculator-page article.post.featured p,
  body.partial-repayment-calculator-page article.post.featured a,
  body.partial-repayment-calculator-page article.post.featured li,
  body.partial-repayment-calculator-page article.post.featured td,
  body.partial-repayment-calculator-page article.post.featured th {
    overflow-wrap: break-word;
  }

  body.partial-repayment-calculator-page #main article.post.featured header.major > h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .prc-tool-shell,
  .prc-fieldset,
  .prc-example-card,
  .prc-summary-card,
  .prc-output-card,
  .prc-info-card,
  .prc-preset-card,
  .prc-app-cta,
  .prc-faq-list details {
    border-radius: 18px;
  }

  .prc-tool-shell,
  .prc-app-cta {
    padding: 1rem;
  }

  .prc-actions,
  .prc-copy-heading,
  .prc-app-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .prc-primary-button,
  .prc-secondary-button,
  .prc-copy-button,
  .prc-icon-button {
    width: 100%;
  }

  .prc-app-cta .lt-appStoreBtn {
    width: 190px;
    max-width: 100%;
  }

  .prc-summary-grid,
  .prc-output-grid {
    grid-template-columns: 1fr;
  }

  .prc-history-table,
  .prc-history-table thead,
  .prc-history-table tbody,
  .prc-history-table th,
  .prc-history-table td,
  .prc-history-table tr {
    display: block;
  }

  .prc-history-table {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .prc-history-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .prc-history-table tr {
    margin-bottom: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
  }

  .prc-history-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: right;
  }

  .prc-history-table td::before {
    content: attr(data-label);
    color: rgba(24, 33, 43, 0.64);
    font-weight: 800;
    text-align: left;
  }

  .prc-history-table td[colspan] {
    display: block;
    text-align: left;
  }

  .prc-history-table td[colspan]::before {
    content: "";
  }
}
