/* version: 1.3 */
.performance-checker-card {
  padding-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 4rem
}
.performance-checker-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem
}
.performance-checker-title, .performance-checker-subtitle {
  text-align: center;
}
.performance-checker-flex h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0rem;
}
.performance-checker-range {
  font-size: .9rem;
  display: block;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  text-align: center;
}
.performance-checker-flexrow, .performance-checker-actions {
  display: flex;
  gap: 60px;
  justify-content: center;
  row-gap: 20px;
  flex-wrap: wrap
}
.performance-checker-actions {
  margin-bottom: 2rem
}
.performance-checker-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem
}
.performance-checker-field label {
  margin-bottom: 4px
}
.currency-toggle, .strategy-toggle, .benchmark-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap
}
.currency-option input, .strategy-option input, .bench-option input {
  display: none;
}
.currency-option span, .strategy-option span, .bench-option span {
  padding: 16px 50px;
  border: 1px solid #ccc;
  cursor: pointer;
  display: block;
  text-align: center;
}
.currency-option input:checked + span, .strategy-option input:checked + span, .bench-option input:checked + span {
  background: #6292cd;
  color: #fff;
  border-color: #6292cd;
}
.performance-checker-flex input, .performance-checker-flex select, #pqc-email {
  height: 30px;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 0;
  padding: 2px 6px;
  box-sizing: content-box;
}
.pc-info {
  text-align: center;
  margin-top: -20px;
}
/*.performance-checker-badge {
  display: flex;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-style: italic;
  font-size: 1.5rem;
  margin: 1rem auto;
  border-radius: 10px;
}*/
img.performance-checker-icon {
  width: 28px;
  height: 28px;
  display: block;
  margin-right: .5em
}
.performance-checker-table-wrap {
  /*margin: 3rem auto;*/
  display: none
}
.performance-checker-error {
  color: red;
  text-align: center;
  border: 1px solid red;
  padding: 5px 60px;
  background-color: rgba(255, 0, 4, 0.30);
  margin: 1rem auto 0;
}
.performance-checker-error::before {
  display: inline-block;
  content: 'Error:';
  text-transform: uppercase;
  margin-right: .5em;
}
.pqc-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}
.pqc-table {
  width: 100%;
  border-collapse: collapse;
}
.pqc-table th, .pqc-table td {
  border: 1px solid rgba(0, 0, 0, .12);
  padding: 10px;
  text-align: left;
}
.reset-btn, .pqc-reset-results-btn.secondary {
  display: block;
  border: none!important;
  background: none!important;
  cursor: pointer;
  color: #1d1d1d!important
}
.reset-btn:hover, .pqc-reset-results-btn.secondary:hover, .reset-btn:focus, .pqc-reset-results-btn.secondary:focus {
  color: #6292cd!important;
  background: transparent!important;
}
.fwm-button:hover, .fwm-button:focus {
  color: #6292cd !important;
  background: transparent!important;
  border: 2px solid #6292cd;
}
/* new link "Click here to enter a net return instead" styling */
.performance-checker-alt {
  margin-top: 10px;
}
.performance-checker-alt a {
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}
.performance-checker-alt a:hover {
  color: #2C435F;
}
/* Hidden manual-return field */
[data-performance-checker-manual][hidden] {
  display: none !important;
}
.performance-checker-modal[hidden] {
  display: none;
}
.performance-checker-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.performance-checker-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}
.performance-checker-modal-panel {
  position: relative;
  max-width: 520px;
  margin: 15vh auto;
  background: #fff;
  padding: 2rem 2.4rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, .4); /* same as callback button */
}
#pqc-modal-title {
  font-family: 'Catamaran', sans-serif;
  font-size: 1.5rem;
}
.performance-checker-modal-actions, .pqc-export-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline
}
#pqc-email {
  max-width: 95%
}
.pqc-consent-label {
  font-size: small;
  margin-bottom: 1.2rem !important;
  line-height: 1.2;
  display: inline-flex;
}
input#pqc-consent {
  accent-color: #6292cd;
  height: 15px;
  width: 15px;
  margin-right: .4em;
}
a.privacy {
  display: contents;
}
/* New: months */
.pqc-month-group {
  margin-bottom: 1rem;
}
.pqc-month-selects {
  display: flex;
  gap: 0.75rem;
}
.pqc-month-selects select {
  min-width: max-content;
}
.performance-checker-summary {
  background: #6292cd;
  padding: 2rem;
  border-radius: 15px;
}
/*.performance-checker-explainer {
  margin: 1rem 0 1.5rem 0;
  padding: 1rem 1.25rem 0;
  color: #fff;
  line-height: 1.5;
}
.performance-checker-explainer a, .performance-checker-explainer a:hover {
	color: #fff;
	font-weight: 600
}
*/
table.performance-checker-table {
  background: #fff;
}
@media screen and (min-width:1024px) {
  .performance-checker-summary {
    max-width: 950px;
  }
  /*
  .performance-checker-card {
    max-width: 60%;
  }
  .bench-option {
    max-width: 32%;
    display: flex;
  } */
}
/* ─── Metric cards grid ─── */
.pqc-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.pqc-metric-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 20px;
}
.pqc-metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 6px;
}
.pqc-metric-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a3a5c;
  margin-top: 4px;
  margin-bottom: 4px;
  line-height: 1.2;
}
.pqc-metric-value.is-negative {
  color: #c0392b;
}
.pqc-metric-value.is-positive {
  color: #1a7a4a;
}
.pqc-metric-sub {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
/* ─── Result callout card ──────────────────────────────────────────────────── */
.pqc-result-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.pqc-result-callout.is-below {
  background: #fdecea;
  border: 1px solid #f5c1c1;
}
.pqc-result-callout.is-above {
  background: #e8f5ec;
  border: 1px solid #b8dfc4;
}
.pqc-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pqc-result-callout.is-below .pqc-result-icon {
  background: #e24b4a;
}
.pqc-result-callout.is-above .pqc-result-icon {
  background: #1a7a4a;
}
.pqc-result-icon svg {
  width: 16px;
  height: 16px;
}
.pqc-result-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.3;
}
.pqc-result-callout.is-below .pqc-result-title {
  color: #7f1d1d;
}
.pqc-result-callout.is-above .pqc-result-title {
  color: #14532d;
}
.pqc-result-desc {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}
.pqc-result-callout.is-below .pqc-result-desc {
  color: #991b1b;
}
.pqc-result-callout.is-above .pqc-result-desc {
  color: #166534;
}
/* ─── CTA strip ────────────────────────────────────────────────────────────── */
.pqc-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 10px;
  padding: 16px 20px;
}
.pqc-cta-strip.is-below {
  background: #1a3a5c;
}
.pqc-cta-strip.is-above {
  background: #f0f6ff;
  border: 1px solid #b5d4f4;
}
.pqc-cta-text {
  font-size: 13px;
  line-height: 1.5;
}
.pqc-cta-strip.is-below .pqc-cta-text {
  color: #ffffff;
}
.pqc-cta-strip.is-above .pqc-cta-text {
  color: #0c447c;
}
.pqc-cta-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.pqc-cta-btn {
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
  text-transform: uppercase;
}
.pqc-cta-btn:hover {
  opacity: 0.85;
}
a.pqc-cta-btn:hover {
  text-decoration: none;
}
.pqc-cta-strip.is-below .pqc-cta-btn {
  background: #6292CD;
  color: #ffffff;
}
.pqc-cta-strip.is-above .pqc-cta-btn {
  background: #1a3a5c;
  color: #ffffff;
}
/* HTML: class="loader" */
.pqc-loader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-size: 14px;
}
.pqc-loader[hidden], .pqc-export-btn.fwm-button[hidden] {
  display: none !important;
}
.pqc-loader_spinner {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(farthest-side, #6292cd 94%, #0000) top/8px 8px no-repeat, conic-gradient(#0000 30%, #6292cd);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
  animation: l13 1s infinite linear;
}
@keyframes l13 {
  100% {
    transform: rotate(1turn)
  }
}
.pqc-loader_text {
  font-size: 1rem;
  text-align: center
}
.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.pqc-export-btn {
  margin-top: 16px;
  display: block!important;
  margin-left: auto
}
/* ─── Responsive ─── */
@media (max-width: 640px) {
  .pqc-metric-grid {
    grid-template-columns: 1fr;
  }
  .pqc-cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .pqc-cta-btn {
    width: 100%;
    text-align: center;
  }
}