/* ============================================================
   Lowes Payment Calculator — Branded V2
   Visual design matching lowes-payment-calculator.html
   Works with payment-calculator-branded-lowes.js
   ============================================================ */

/* --- Reset / Base --- */

.lowes-color {
    color: #3B3D49;
}
body {
margin: 0 !important;
}
#global-footer-container {
  display: none;
}

@media (min-width: 320px) and (max-width: 701px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }
}

.lpc-wrapper.calculator-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;

}

/* ============================================================
   BACK BANNER
   ============================================================ */
.lpc-back-banner {
  background-color: #3b3c43;
  color: #fff;
  text-align: center;
  padding: 12px 0;
}

.lpc-back-banner a {
  color: #fff;
  text-decoration: none;
}

.lpc-back-banner a:focus-visible {
  outline: 2px solid #fbc600;
  border-radius: 8px;
  outline-offset: 4px;
}

/* ============================================================
   HEADER SECTION
   ============================================================ */
.lpc-header {
  padding: 40px 0 0;
}

.lpc-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo — JS sets background-image via .logo class */
.lpc-header__logo.logo {
  width: 152px;
  height: 80px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0;
  max-width: none;
}

/* BNPL header variant — larger logo footprint */
.lpc-header__logo.logo.lpc-logo--bnpl {
  width: 252px;
  height: 106px;
}

/* Title — typography from h3 global; only color + margin here */
.lpc-header__title {
  color: #012169;
  margin: 30px 0 0;
}

/* ============================================================
   INPUT AREA
   ============================================================ */
.lpc-input {
  width: 580px;
  margin-top: 40px;
}

.lpc-input__info {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
}

.lpc-input__info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.lpc-input__info span {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: visibility 0.2s, opacity 0.2s;
  z-index: 10;
  color: #3B3D49;
}

.lpc-input__info:hover span {
  visibility: visible;
  opacity: 1;
}

/* Input Row */
.lpc-input__row.balance-panel {
  display: flex !important;
  align-items: flex-end;
  gap: 24px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.lpc-input__field-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.lpc-input__field-wrap .input-icon {
  position: relative;
  width: 100% !important;

}

.lpc-input__field-wrap .input-icon > i {
  position: absolute;
  display: block;
  top: 50% !important;
  transform: translateY(-50%);
  left: 0;
  width: 32px;
  text-align: center;
  font-style: normal;
  pointer-events: none;


  z-index: 1;
}

.lpc-input__field.number,
.lpc-input .input-icon > input {
  box-sizing: border-box;
  border: 1px solid #A0A8B7 !important;
  border-radius: 4px;
  padding: 0 16px 0 32px !important;


  width: 100%;
  height: 56px !important;
  color: #3B3D49;

  background: #fff;
}

.lpc-input__field.number:focus,
.lpc-input .input-icon > input:focus {
  outline: 2px solid #012169;
  border-color: #012169 !important;
}

/* Hide floating label — new design doesn't use it */
.lpc-input__label,
.lpc-input .input-icon > label {
  display: none !important;
}

/* Error text */
.lpc-input .error-big-text {

  color: #ca3625;


  display: block;
  margin-top: 4px;
}

/* Calculate Button */
.lpc-input__calc-btn.action-button {
  background-color: #38A6DD !important;
  color: #fff !important;
  border: none;
  border-radius: 9999px;
  padding: 16px 24px;
  width: 180px;
  min-width: 180px;
  height: 52px;
  cursor: pointer;
  white-space: nowrap;



  transition: background-color 0.2s;
  vertical-align: middle;
}

.lpc-input__calc-btn.action-button:hover {
  background-color: #2e8fc0 !important;
}

.lpc-input__calc-btn.action-button > img {
  display: none;
}

/* ============================================================
   CTA BUTTONS (Apply / Prequalify)
   ============================================================ */
.lpc-input__actions {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
}

.lpc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 12px 24px;


  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}

.lpc-cta--primary.apply-now-button {
  background-color: #012169 !important;
  color: #fff !important;
  border: 2px solid #012169;
  min-width: 182px;
}

.lpc-cta--primary.apply-now-button:hover,
.lpc-cta--primary.apply-now-button:focus,
.lpc-cta--primary.apply-now-button:visited,
.lpc-cta--primary.apply-now-button:active {
  background-color: #001a54 !important;
  color: #fff !important;
  text-decoration: none;
}

.lpc-cta--secondary.prequal-button {
  background-color: #fff !important;
  color: #012169 !important;
  border: 2px solid #012169;
}

.lpc-cta--secondary.prequal-button:hover,
.lpc-cta--secondary.prequal-button:focus,
.lpc-cta--secondary.prequal-button:visited,
.lpc-cta--secondary.prequal-button:active {
  background-color: #f0f4fa !important;
  color: #012169 !important;
  text-decoration: none;
}

/* Anchor-as-button — kill link decoration and inherited link color across all states */
a.lpc-cta,
a.lpc-cta:link,
a.lpc-cta:visited,
a.lpc-cta:hover,
a.lpc-cta:focus,
a.lpc-cta:active {
  text-decoration: none;
}

/* Prequalify subtext — typography from type-body-2 + text-lt-grey global */
.lpc-cta__subtext,
.prequalify-text {
  margin-top: 4px;
  /* margin-left: 27px; */
  position: static;
}

#prequalify-below-text {
  display: inline-flex !important;
  flex-direction: column;
  position: static;
  margin-bottom: 0;
}

/* Keep CTA buttons always visible (override branded JS hide/show logic) */
.lpc-input__actions .lpc-cta--primary.apply-now-button {
  display: inline-flex !important;
}

.lpc-input__actions .lpc-cta--secondary.prequal-button {
  display: inline-flex !important;
}

/* BNPL variant: hide Apply Now button (must beat the !important above) */
.lpc-input__actions .lpc-cta--primary.apply-now-button.lpc-cta--hidden {
  display: none !important;
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.lpc-results {
  padding-top: 32px;
  padding-bottom: 60px;
}

.lpc-results__divider {
  border: none;
  border-top: 1px solid #d4d4d4;
  margin: 0 0 32px;
}

.lpc-results__disclaimer {
  text-align: center;
  color: #012169;
  margin: 0 0 24px;
}

.lpc-results__disclaimer a {
  color: inherit;
  text-decoration: underline;
}

/* ============================================================
   TAB DESCRIPTIONS (subheads above tabs)
   ============================================================ */
/* Tab descriptions — typography from h6 + font-medium global; only layout + color here */
.lpc-tab-desc {
  text-align: center;
  max-width: 70%;
  margin: 0 auto 30px;
  color: #012169;
}

.lpc-tab-desc .disclosure {
  display: none;
}

/* ============================================================
   CHOOSE INSTRUCTION
   ============================================================ */
/* Choose instruction — typography from type-body-2 global */
.lpc-choose-instruction {
  text-align: center;
  padding: 8px;
  margin: 8px 0;
  color: #3B3D49;
}

/* ============================================================
   COMPARE BUTTON
   ============================================================ */
.lpc-compare-wrap {
  text-align: center;
  margin-bottom: 16px;
}

/* ============================================================
   MOBILE TABS (dropdown) — hidden; using desktop tabs on all sizes
   ============================================================ */
.lpc-mobile-instruction.mobile-ddl-instruction {
  display: none !important;
}

.lpc-mobile-tabs.tab-mobile-container {
  display: none !important;
}

.lpc-mobile-tabs.tab-mobile-container:after {
  position: absolute;
  content: '\25bc';
  top: 2rem;
  right: 2rem;
}

.lpc-mobile-tabs.tab-mobile-container.after-hidden:after {
  display: none;
}

.lpc-mobile-tabs select {
  box-sizing: border-box;
  width: 100%;
  max-width: 380px;
  margin: 16px auto;
  padding: 16px;
  display: block;
  background-color: #f0f4fa;


  border: 1px solid #012169;
  border-radius: 8px;
  color: #012169;
  text-align-last: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* ============================================================
   DESKTOP TABS
   ============================================================ */
.lpc-tabs.tab-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  box-sizing: border-box;
  width: auto;
}

/* Tab button — matches calc-tabs__tab from reference design */
.lpc-tabs__tab.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 130px;
  padding: 16px 12px;
  border: 1px solid #6b6b6b;
  border-radius: 8px;
  background: #fff;
  color: #090909;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  margin-top: 0;
  box-sizing: border-box;
  vertical-align: top;
}

.lpc-tabs__tab.tab:hover {
  border-color: #090909;
}

/* Active tab — matches calc-tabs__tab--active */
.lpc-tabs__tab.tab.tab-selected {
  background-color: #012169;
  color: #fff;
  border-color: #012169;
  margin-top: 0;
  padding-top: 16px;
  border-radius: 8px;
}

/* Tab icons — show/hide based on active state */
.calc-tabs__icon { vertical-align: middle; }
.lpc-tabs__tab .calc-tabs__icon--inactive { display: inline-block !important; }
.lpc-tabs__tab .calc-tabs__icon--active   { display: none !important; }
.lpc-tabs__tab.tab-selected .calc-tabs__icon--active   { display: inline-block !important; }
.lpc-tabs__tab.tab-selected .calc-tabs__icon--inactive { display: none !important; }

/* ============================================================
   PAYMENT PANEL
   ============================================================ */
.lpc-panel#payment-panel {
  background-color: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

/* ============================================================
   CARD GRID
   ============================================================ */
.lpc-cards#payment-box-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-content: center;
}

/* Lock every card to its grid cell width */
.lpc-cards > .lpc-card {
  width: 100%;
  min-width: 0;
}

/* Center the last visible card when a tab has an odd count */
.lpc-cards > .lpc-card--center-odd {
  grid-column: 1 / -1;
  width: calc((100% - 24px) / 2);
  justify-self: center;
}

/* ============================================================
   PAYMENT CARD
   ============================================================ */
.lpc-card.payment-box {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0;
}

/* Card Header — h4 typography from global; text-white from global.css */
.lpc-card__header.payment-box-header {
  background-color: #012169;
  color: #fff;
  padding: 24px;
  text-align: center;
  border: none;
  border-radius: 0;
}

.lpc-card__header h4 {
  margin: 0;
}

/* APR subtitle — typography from type-subtitle-3 + font-bold + text-white global */
.lpc-card__header .lpc-card__apr {
  margin: 4px 0 0;
}

.lpc-card__header .lpc-card__ticket {
  margin: 4px 0 0;
}

/* Card Body */
.lpc-card__body {
  padding: 24px;
  background: #fff;
}

.lpc-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: #3B3D49 !important;
}

/* Row label — typography from type-body-1 global; only layout here */
.lpc-card__label {
  padding-right: 12px;
}

/* Label sub — typography from type-body-2 + text-lt-grey global; only layout here */
.lpc-card__label-sub {
  display: block;
  margin-top: 2px;
}

/* Value — typography from type-subtitle-2 + font-bold global; only color + layout here */
.lpc-card__value {
  /* color: #012169; */
  white-space: nowrap;
}

.lpc-card__line {
  border: none;
  border-top: 1px solid #012169;
  margin: 0;
}

/* Footnote — typography from type-body-2 + text-lt-grey global; only layout here */
.lpc-card__footnote {
  margin: 8px 0 0;
  padding: 0;
}

/* Greyout state */
.lpc-card.greyout {
  opacity: 0.2;
}

/* ============================================================
   DISCLAIMERS (below cards)
   ============================================================ */
.lpc-disclaimer-area {
  margin-top: 40px;
}

.lpc-disclaimer-area .disclosure {
  display: none;
}

/* Disclaimer — typography from type-disclaimer global; only layout here */
.lpc-disclaimer {
  color: #6b6b6b;
}

.lpc-disclaimer ul {
  padding-left: 20px;
  margin: 8px 0;
}

.lpc-disclaimer li {
  padding-left: 4px;
  margin-top: 4px;
}

.lpc-disclaimer p {
  margin: 8px 0 0;
}

/* ============================================================
   ERROR
   ============================================================ */
.lpc-error {
  padding: 32px 0;
}

.lpc-error__bar {
  border-left: 6px solid #012169;
  padding: 16px 24px;

  display: table;
  margin: 0 auto;
}

.lpc-error__message {
  text-align: center;

  max-width: 640px;
  margin: 16px auto;
  padding: 16px;
}

/* ============================================================
   MODALS
   ============================================================ */
#modal-background {
  background-color: rgba(127, 127, 127, 0.5);
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  cursor: pointer;
}

#disclosure-popup-modal {
  position: fixed;
  display: none;
  z-index: 2;
  bottom: 10vh;
  left: 10vw;
  width: 80vw;
  max-width: 80vw;
  max-height: 80vh;
  background-color: #fff;
  overflow: auto;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

#disclosure-popup-modal i {


  font-style: normal;
  cursor: pointer;
  float: right;
}

#full-compare-modal {
  padding: 24px;
}

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.lpc-compare-table,
.lpc-compare-table tr,
.lpc-compare-table td,
.lpc-compare-table th {
  border: 1px solid #d4d4d4;
  border-collapse: collapse;
}

.lpc-compare-table th:first-child {
  width: 45%;
}

.lpc-compare-table td,
.lpc-compare-table th {
  padding: 12px;
}

.lpc-compare-table tbody tr:nth-child(odd) {
  background-color: #f8f9fa;
}

.lpc-compare-table tbody tr:nth-child(even) {
  background-color: #fff;
}

.lpc-compare-table thead tr {
  background-color: #012169;
  color: #fff;
}



/* Keep old ID-based styles that JS relies on */
#fctable,
#fctable tr,
#fctable td,
#fctable th {
  border: 1px solid #d4d4d4;
  border-collapse: collapse;
}

#fctable th:first-child {
  width: 45%;
}

#fctable td,
#fctable th {
  padding: 12px;
}

#fctable tbody tr:nth-child(odd) {
  background-color: #f8f9fa;
}

#fctable tbody tr:nth-child(even) {
  background-color: #fff;
}

#fctable thead tr {
  background-color: #012169;
  color: #fff;
}

/* ============================================================
   UTILITY — big-text (used by JS getMonthsValues)
   ============================================================ */
.big-text {

  font-size: inherit;
  margin: 0;
}

/* ============================================================
   TABLET: 768px – 1199px
   ============================================================ */
@media (max-width: 1199px) {
  .lpc-cards#payment-box-container {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .lpc-cards > .lpc-card--center-odd {
    width: 100%;
  }

  .lpc-tabs.tab-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  #prequalify-below-text {
    width: 100%;
  }
}

/* ============================================================
   MOBILE: <= 480px
   ============================================================ */
@media (max-width: 480px) {
  .lpc-header {
    padding: 24px 0 0;
  }

  .lpc-input {
    width: 100%;
  }

  .lpc-input__row.balance-panel {
    flex-direction: column-reverse !important;
    align-items: stretch;
    gap: 16px;
  }

  .lpc-input__calc-btn.action-button {
    width: 100%;
    min-width: unset;
  }

  .lpc-input__field-wrap {
    width: 100%;
  }

  .lpc-input__actions {
    flex-direction: column;
    gap: 12px;
  }

  .lpc-cta {
    width: 100%;
    min-width: unset;
    text-align: center;
  }

  /* Hide mobile dropdown — always use tab buttons */
  .lpc-mobile-instruction.mobile-ddl-instruction {
    display: none !important;
  }

  .lpc-mobile-tabs.tab-mobile-container {
    display: none !important;
  }

  /* Show tabs as 2-col grid on mobile */
  .lpc-tabs.tab-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }

  .lpc-tabs__tab.tab {
    width: 100%;
  }

  .lpc-tab-desc {
    margin: 0;
    max-width: 100%;
    padding-bottom: 30px;
  }

  .lpc-cards#payment-box-container {
    grid-template-columns: 1fr;
  }

  .lpc-card__row {
    text-align: left;
    gap: 10px;
  }

  #compare-all-button {
    display: none;
    margin-bottom: 0.5rem;
  }

  .lpc-cta__subtext,
  .prequalify-text {
    margin-left: 0;
    text-align: center;
  }


}

/* ============================================================
   MOBILE: <= 380px
   ============================================================ */
@media (max-width: 380px) {
  .lpc-mobile-tabs select {
    max-width: 310px;
  }
}

