/*
Theme Name: Aileron Shift Child Theme
Theme URI: http://aileronshift.com
Version: 1.0
Description: A child theme that can be used for custom development.
Author: Aileron Shift
Author URI: http://aileronshift.com
template: bb-theme
*/

/* SKYONE BUTTON CLASSES */
.skyone-btn-green {
    display: inline-block;
    background-color: #90C856; /* SkyOne Green */
    color: #FFFFFF;
    padding: 20px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skyone-btn:hover {
    background-color: #629E42; /* SkyOne Dark Green */
    color: #FFFFFF;
    text-decoration: none;
}

/* HEADER */
#mega-menu-wrap-header #mega-menu-header li.mega-main-login a.mega-menu-link {
    line-height: 1 ;
	height: inherit;
	background: #fff;
    color: #778E9A;
    border-radius: 20px;
	border: 1px solid #778E9A;
    padding: 10px 20px;
	font-size: 13px;
	font-weight: bold;
}

#mega-menu-wrap-header #mega-menu-header li.mega-main-login a.mega-menu-link:is(:hover, :active, :focus) {
	background: #778E9A;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
}

#mega-menu-wrap-header #mega-menu-header li.mega-main-join a.mega-menu-link {
	margin-left: 10px;
    line-height: 1;
	height: inherit;
	background: #4EA1D3;
    color: #fff;
    border-radius: 20px;
	border: 1px solid #4EA1D3;
    padding: 10px 25px;
	font-size: 13px;
	font-weight: bold;
}

#mega-menu-wrap-header #mega-menu-header li.mega-main-join a.mega-menu-link:is(:hover, :active, :focus) {
	background: #475973;
	border-color: #475973;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
}


.so-mega-menu-title {
	font-size: 1.2rem;
	font-weight: 700;
}

/* Item null links */
.mega-sub-menu .so-mega-menu-item-no-link > a.mega-menu-link {
	color: #f1f1f1 !important;
	font-weight: 700 !important;
}
.mega-sub-menu .so-mega-menu-item-no-link > a.mega-menu-link:is(:hover, :active, :focus) {
	text-decoration: none !important;
	border-bottom: none !important;
}

nav .fl-menu-mobile-flyout #menu-main-menu {
	text-align: left;
}

@media (max-width: 768px) {
     .flyout-menu .fl-col-group.fl-col-group-equal-height {
        display: flex;
        flex-wrap: nowrap;
    }
	
	.flyout-menu .fl-col-group.fl-col-group-equal-height .flyout-col-2 .fl-module-button {
		margin-right: 0 !important;
	}
	
	.flyout-menu .fl-col-group.fl-col-group-equal-height .flyout-col-3 .fl-module-icon .fl-module-content {
		margin-left: 0 !important;
	}
	
	#menu-main-menu-1 li.main-login,
	#menu-main-menu-1 li.main-join {
		display: none;
	}
	
	.uabb-offcanvas-close-icon-wrapper {
	top: 50px;
	}
}	
	

.menu .sub-menu .menu-item .uabb-has-submenu-container a::before {
	content: "+" !important;
	margin-left: -20px;
    padding-right: 10px;
}

/* STICKY MENU */
.so-sticky-subnav-row {
	position: sticky;
	top:  0;
	z-index: 99;	
}
.so-sticky-subnav ul {
	list-style: none;
	padding: 0;
    display: flex;
    justify-content: space-evenly;
	align-items:  center;
    margin-bottom: 0;
}

.so-sticky-subnav ul li a {
	padding: 20px 15px;
}

.so-sticky-subnav ul li a:is(.active, :hover, :active, :focus) {
	text-decoration: underline;
}

.so-sticky-subnav-row {
	position: sticky;
	top:  0;
	z-index: 99;
	background-color: #ececec;
  	box-shadow: 0 3px 10px rgba(204, 204, 204, 0.5);
 	transition: background-color 250ms linear;
  	width: 100%;
}

.so-sticky-subnav-row a {
  color: #0073b1;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
/*   padding: 0 25px; */
  display: block;
  transition: all 150ms linear;
}

.so-sticky-subnav-row a:hover,
.so-sticky-subnav-row a:focus {
  background-color: #00b6e3;
  color: #fff;
}

.so-sticky-subnav-row.is-scrolled {
  background-color: #00b6e3;
/* 	border-radius: 30px;
  width: 90%;
  margin: 5px auto; */
}

.so-sticky-subnav-row.is-scrolled a {
  color: #fff;
}

.so-sticky-subnav-row.is-scrolled a:is(:hover, :focus, :active, .active) {
  background-color: #fff;
  color: #0073b1;
} 

/*STICKY NAV LINK BUTTON STYLE*/
.so-sticky-subnav ul li a.btn {
	background: #90c856;
    border-radius: 50px;
    padding: 10px;
    color: #fff;
}

.so-sticky-subnav-row.is-scrolled .so-sticky-subnav ul li a.btn:is(:hover, :focus, :active, .active) {
	color: #fff;
}

.so-sticky-subnav ul li a.btn:is(:hover, :active, :focus) {
	background: #475973;
}


/* LIST STYLES */
.list-style-01 ul {
    list-style: none;
}

.list-style-01 ul li {
    display: flex;
    /* margin-bottom: 10px; */
}

/* BLUE CHECK */
.list-style-01.bullet-blue ul li::before {
    content: url("/wp-content/themes/bb-theme-child/images/ul-check-bullet-blue.svg");
    margin-right: 15px;
}

/* GREEN CHECK */
.list-style-01.bullet-green ul li::before {
    content: url("/wp-content/themes/bb-theme-child/images/ul-check-bullet-green.svg");
    margin-right: 15px;
}

/* GREEN FILLED CIRCLE + WHITE CHECK */
.list-style-01.bullet-green-filled ul li::before {
    content: url("/wp-content/themes/bb-theme-child/images/ul-check-bullet-green-filled.svg");
    margin-right: 15px;
}

/* BLUE FILLED CIRCLE + WHITE CHECK */
.list-style-01.bullet-blue-filled ul li::before {
    content: url("/wp-content/themes/bb-theme-child/images/ul-check-bullet-blue-filled.svg");
    margin-right: 15px;
}

.list-style-01.list-spaced ul li {
    margin-bottom: 20px;
}

.list-style-01.list-spaced ul li:last-child {
    margin-bottom: 0;
}

/* RATES MODULE */

.so-rates-table .table-wrapper {
  max-width: 100%;
  overflow-x: auto;
}

.so-rates-table .responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.so-rates-table .responsive-table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.5rem;
  caption-side: top;
	font-size: 1.7rem;
	color: #0273b1;
}

.so-rates-table .responsive-table caption span {
	display: block;
    font-size: .8rem;
    font-weight: 400;
	color: #535862;
}

.so-rates-table .responsive-table th,
.so-rates-table .responsive-table td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
}

.so-rates-table .responsive-table thead {
  background-color: #f5f5f5;
}

/* Mobile styles */
@media (max-width: 600px) {
.so-rates-table   .responsive-table thead {
    display: none;
  }

.so-rates-table   .responsive-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
  }

 .so-rates-table  .responsive-table th[scope="row"] {
    background: #f5f5f5;
    display: block;
    font-weight: 600;
  }

.so-rates-table   .responsive-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border: none;
    border-top: 1px solid #eee;
  }

.so-rates-table   .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1rem;
  }
}


/* CALCULATOR */

.calculator {
  border: 2px solid #dadada;
}

.calculator .calculator-header {
  text-align: center;
  height: 60%;
  padding: 30px 0 40px;
}

.calculator .calculator-body {
  padding: 30px 40px 0;
  border-top: 2px solid #dadada;
}

.calculator .calculator-header .output-result {
  color: #0273b1 !important;
  font-size: 50px !important;
  font-weight: 400;
  padding: 10px 10px 20px;
}

.calculator .calculator-section {
  margin-bottom: 30px;
}

.calculator .calculator-section .input-group {
  display: flex;
  width: 100%;
  border-bottom: 2px solid #d4d3d4;
}

.calculator .calculator-section .input-group .pre {
  color: #909ca1;
  font-size: 20px;
  text-align: center;
  padding: 0 10px;
  min-width: 30px;
}

.calculator .calculator-section .input-group input {
  font-size: 30px !important;
  color: #000;
  margin: 0;
  padding: 8px 10px;
  border: none;
  background-color: #fff;
}

.calculator .calculator-footer {
  padding: 0 40px 15px !important;
}

.calculator .calculator-footer a {
  display: block;
  width: 50%;
  margin: 0 auto;
  text-align: center;
  padding: 14px 18px;
  background-color: #0273b1;
  border: 1px solid transparent;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  width: 100%;
}

.calculator .calculator-footer a.button:is(.active, :focus, :hover, :active) {
  background-color: #475973;
}

.calculator .calculator-footer {
  font-size: 16px !important;
  text-align: center !important;
  padding: 0 0 20px;
}

/* LOGIN DESKTOP */
.login_frame {
    background-color: #fff;
	border-radius: 10px;
	padding: 0 20px 20px 20px;
	font-size: 18px;
}

.login_field {
	font-size: 18px;
	margin: 10px 0 10px 0;
	font-weight: 400;
}

.login_button {
    width: 100%;
	padding: 10px;
	font-weight: bold;
	margin: 20px 0 20px 0;
	background: #005482;
}

.login_button_business {
    width: 100%;
	padding: 10px;
	font-weight: bold;
	margin: 20px 0 20px 0;
	background: #629E42;
}


/* FAMILY STYLES */
.stacked-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.stacked-list li {
  list-style: none;
  padding: 15px;
  padding-left: 0 !important;
  margin-left: 0 !important;
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
}

.stacked-list li:last-child {
  border-bottom: none;/* remove line from last item */
}

/* BLOG STYLES */
/* Beaver Builder Card List */

.bb-card-list ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.bb-card-list ul li{
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 14px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    transition: all .15s ease;
	list-style: none;
	text-align: center;
	font-weight: bold;
}

.bb-card-list ul li:hover{
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/*.bb-card-list ul li:before{
    content: "•";
    position: absolute;
    left: 18px;
    top: 16px;
    font-size: 20px;
    color: #007bff;
}*/

/* FOOTER */
.footer-column .footer-menu ul {
	list-style: none;
    padding-left: 0;
}

.footer-column .footer-menu ul li {
	line-height: 2.0;
	font-size: 14px;
}


/* MEDIA QUERIES */

@media (max-width: 600px) {
	.footer-column .footer-menu ul  {
		text-align: center;
	}
	.footer-column .footer-menu ul li {
	line-height: 1.7;
	font-size: 14px;
}
}

/* =========================================================
   SKYONE LIGHTBOX AND APP FORK
   ========================================================= */

/* ---------- Overlay ---------- */

.mfp-bg {
  background: rgba(9, 24, 43, 0.34) !important;
  opacity: 1 !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 1;
}

.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

/* ---------- Popup shell ---------- */

.mfp-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999 !important;
  outline: none;
  -webkit-backface-visibility: hidden;
}

.mfp-container {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 24px;
  text-align: center;
  box-sizing: border-box;
}

.mfp-container:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left;
  overflow: visible !important;
}

/* Remove extra Beaver / Magnific wrapper shell */
.mfp-wrap .mfp-container .mfp-content > div:not(.skyone-lightbox-card):not(.skyone-membership-modal) {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ---------- Default close button ---------- */

.mfp-close {
  position: absolute !important;
  right: 15px !important;
  width: 60px !important;
  height: 60px !important;
  font-size: 40px !important;
  font-weight: 400 !important;
  color: #5d6c80 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mfp-close:hover {
  color: #173056 !important;
  opacity: 1 !important;
  transform: none !important;
}

.mfp-close:active {
  transform: none !important;
}

/* ---------- Reusable lightbox card ---------- */

.skyone-lightbox-card,
.skyone-membership-modal {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e6edf4;
  border-radius: 28px;
  padding: 40px 34px 34px;
  box-shadow: 0 28px 80px rgba(11, 31, 57, 0.24);
  text-align: left;
  box-sizing: border-box;
  margin: 0 !important;
}

/* ---------- Membership modal content ---------- */

.skyone-membership-modal .membership-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 54px 26px 0;
}

.skyone-membership-modal .membership-kicker {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: #ecf6ff;
  border: 1px solid #c8e0f2;
  border-radius: 999px;
  color: #0273b1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.skyone-membership-modal h2 {
  margin: 0 0 12px;
  color: #173056;
  font-size: 48px;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.skyone-membership-modal .membership-subtext {
  margin: 10px 0 35px;
  color: #5f7086;
  font-size: 20px;
  line-height: 1.5;
  max-width: 32ch;
}

.skyone-membership-modal .membership-options {
  display: grid;
  gap: 14px;
  margin: 0;
}

.skyone-membership-modal .membership-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 16px 22px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
  background: #0273b1;
  border: 2px solid #0273b1;
  color: #ffffff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.skyone-membership-modal .membership-option:hover {
  background: #4ea1d3;
  border-color: #0b7dbc;
}

.skyone-membership-modal .membership-option:focus,
.skyone-membership-modal .membership-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(2, 115, 177, 0.16);
}

.skyone-membership-modal .membership-option:visited {
  color: #ffffff !important;
}

/* ---------- Animation ---------- */

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .mfp-container {
    padding: 16px;
  }

  .mfp-content {
    max-width: 100%;
  }

  .mfp-close {
    top: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 30px !important;
  }

  .skyone-lightbox-card,
  .skyone-membership-modal {
    border-radius: 24px;
    padding: 36px 22px 24px;
  }

  .skyone-membership-modal .membership-top-row {
    margin: 0 40px 22px 0;
  }

  .skyone-membership-modal .membership-kicker {
    font-size: 15px;
  }

  .skyone-membership-modal h2 {
    font-size: 36px;
    line-height: 1.06;
  }

  .skyone-membership-modal .membership-subtext {
    font-size: 18px;
    max-width: none;
  }

  .skyone-membership-modal .membership-option {
    min-height: 56px;
    font-size: 18px;
    padding: 15px 18px;
  }
}


/* ALGOLIA STYLES */

.ais-InstantSearch,
.main-panel {
  width: 100%;
  max-width: 100%;
}

.right-panel,
#refinement-list,
#current-refinements,
#clear-refinements {
  display: none !important;
}

.ais-hits--title-link {
	font-size: 18px;
	color: #0073B1;
}

.ais-hits--content-snippet {
	font-size: 16px;
}

/* ========================================
   BREATHING GRADIENT BUTTONS
======================================== */


/* ---------- BLUE ---------- */

.breathing-gradient-btn-blue .fl-button {
    background: linear-gradient(
        120deg,
        #0068ff,
        #00b9ff,
        #0068ff,
        #0051c9
    ) !important;

    background-size: 300% 300% !important;
    border: none !important;

    animation:
        breathingGradient 5s ease-in-out infinite,
        breathingGlowBlue 3s ease-in-out infinite;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease !important;
}


/* ---------- GREEN ---------- */

.breathing-gradient-btn-green .fl-button {
    background: linear-gradient(
        120deg,
        #008f5a,
        #19c784,
        #008f5a,
        #006f47
    ) !important;

    background-size: 300% 300% !important;
    border: none !important;

    animation:
        breathingGradient 5s ease-in-out infinite,
        breathingGlowGreen 3s ease-in-out infinite;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease !important;
}


/* ---------- WHITE ---------- */

.breathing-gradient-btn-white .fl-button {
    background: linear-gradient(
        120deg,
        #ffffff,
        #f2f7f9,
        #ffffff,
        #e8eef2
    ) !important;

    background-size: 300% 300% !important;

    border: 1px solid rgba(255, 255, 255, 0.6) !important;

    animation:
        breathingGradient 5s ease-in-out infinite,
        breathingGlowWhite 3s ease-in-out infinite;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease !important;
}


/* ========================================
   SHARED GRADIENT MOVEMENT
======================================== */

@keyframes breathingGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }

}


/* ========================================
   BLUE GLOW
======================================== */

@keyframes breathingGlowBlue {

    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 4px 12px rgba(0, 104, 255, 0.15),
            0 0 0 0 rgba(0, 185, 255, 0.25);
    }

    50% {
        transform: scale(1.045);

        box-shadow:
            0 10px 28px rgba(0, 104, 255, 0.35),
            0 0 0 8px rgba(0, 185, 255, 0);
    }

}


/* ========================================
   GREEN GLOW
======================================== */

@keyframes breathingGlowGreen {

    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 4px 12px rgba(0, 143, 90, 0.15),
            0 0 0 0 rgba(25, 199, 132, 0.25);
    }

    50% {
        transform: scale(1.045);

        box-shadow:
            0 10px 28px rgba(0, 143, 90, 0.35),
            0 0 0 8px rgba(25, 199, 132, 0);
    }

}


/* ========================================
   WHITE GLOW
======================================== */

@keyframes breathingGlowWhite {

    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 4px 12px rgba(255, 255, 255, 0.15),
            0 0 0 0 rgba(255, 255, 255, 0.25);
    }

    50% {
        transform: scale(1.045);

        box-shadow:
            0 10px 28px rgba(255, 255, 255, 0.35),
            0 0 0 8px rgba(255, 255, 255, 0);
    }

}


/* ========================================
   HOVER STATES
======================================== */

.breathing-gradient-btn-blue .fl-button:hover {
    transform: scale(1.06);

    box-shadow:
        0 10px 30px rgba(0, 104, 255, 0.45);
}


.breathing-gradient-btn-green .fl-button:hover {
    transform: scale(1.06);

    box-shadow:
        0 10px 30px rgba(0, 143, 90, 0.45);
}


.breathing-gradient-btn-white .fl-button:hover {
    transform: scale(1.06);

    box-shadow:
        0 10px 30px rgba(255, 255, 255, 0.45);
}


/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {

    .breathing-gradient-btn-blue .fl-button,
    .breathing-gradient-btn-green .fl-button,
    .breathing-gradient-btn-white .fl-button {
        animation: none;
    }

}

/* =========================================================
   EARNINGS CALCULATOR
   Reusable calculator component
   ========================================================= */

.earnings-calc {
    width: 100%;
    background: transparent;
    color: #ffffff;
}

.earnings-calc * {
    box-sizing: border-box;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.earnings-calc .earnings-calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 426px);
    gap: 48px;
    align-items: center;
    width: 100%;
}

.earnings-calc .earnings-calc-controls {
    min-width: 0;
}


/* =========================================================
   INPUT LABEL
   ========================================================= */

.earnings-calc .earnings-calc-label {
    display: block;
    margin: 0 0 14px;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}


/* =========================================================
   DEPOSIT INPUT
   ========================================================= */

.earnings-calc .earnings-calc-input-wrap {
    position: relative;
    width: 100%;
}

.earnings-calc .earnings-calc-dollar {
    position: absolute;
    left: 21px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    color: #0273b1;

    font-size: 23px;
    line-height: 1;
    font-weight: 800;

    pointer-events: none;
}

.earnings-calc .earnings-calc-input {
    width: 100%;
    height: 75px;

    padding: 0 20px 0 45px;

    background: #ffffff;

    border: 2px solid #4ea1d3;
    border-radius: 8px;

    color: #0d4267;

    font-size: 27px;
    line-height: 1;
    font-weight: 800;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.earnings-calc .earnings-calc-input:focus {
    border-color: #005482;
    box-shadow: 0 0 0 4px rgba(78, 161, 211, 0.22);
}


/* =========================================================
   SLIDER
   ========================================================= */

.earnings-calc .earnings-calc-slider-wrap {
    margin-top: 28px;
}

.earnings-calc .earnings-calc-slider {
    --earnings-calc-fill: 0%;

    display: block;

    width: 100%;
    height: 27px;

    margin: 0;
    padding: 0;

    background: transparent;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}


/* Chrome / Edge / Safari */

.earnings-calc .earnings-calc-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 12px;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;

    background:
        linear-gradient(
            to right,
            #90c856 0%,
            #90c856 var(--earnings-calc-fill),
            #ffffff var(--earnings-calc-fill),
            #ffffff 100%
        );
}

.earnings-calc .earnings-calc-slider::-webkit-slider-thumb {
    width: 27px;
    height: 27px;

    margin-top: -8.5px;

    background: #90c856;

    border: 3px solid #ffffff;
    border-radius: 50%;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);

    appearance: none;
    -webkit-appearance: none;
}


/* Firefox */

.earnings-calc .earnings-calc-slider::-moz-range-track {
    width: 100%;
    height: 12px;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
}

.earnings-calc .earnings-calc-slider::-moz-range-progress {
    height: 12px;

    background: #90c856;

    border-radius: 999px;
}

.earnings-calc .earnings-calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;

    background: #90c856;

    border: 3px solid #ffffff;
    border-radius: 50%;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   RANGE LABELS
   ========================================================= */

.earnings-calc .earnings-calc-range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-top: 9px;

    color: #ffffff;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.earnings-calc .earnings-calc-range-labels span:last-child {
    text-align: right;
}


/* =========================================================
   RATE NOTE
   ========================================================= */

.earnings-calc .earnings-calc-rate-note {
    margin-top: 20px;

    color: #ffffff;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}


/* =========================================================
   RESULTS CARD
   DEFAULT WHITE VERSION
   ========================================================= */

.earnings-calc .earnings-calc-results {
    min-height: 264px;

    padding: 36px 30px 34px;

    background: #ffffff;

    border-radius: 17px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* =========================================================
   RESULT LABEL
   ========================================================= */

.earnings-calc .earnings-calc-result-label {
    margin-bottom: 13px;

    color: #0273b1;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


/* =========================================================
   RESULT VALUE
   ========================================================= */

.earnings-calc .earnings-calc-result-value {
    color: #06466f;

    font-size: 62px;
    line-height: 1;
    font-weight: 900;

    letter-spacing: -2px;

    white-space: nowrap;
}


/* =========================================================
   EARNINGS BOX
   ========================================================= */

.earnings-calc .earnings-calc-earned-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    width: 100%;
    max-width: 278px;

    margin-top: 24px;
    padding: 16px 18px;

    background: #eef5e9;

    border-radius: 8px;
}

.earnings-calc .earnings-calc-earned-amount {
    color: #629e42;

    font-size: 28px;
    line-height: 1;
    font-weight: 900;

    white-space: nowrap;
}

.earnings-calc .earnings-calc-earned-text {
    color: #4a6074;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
}


/* =========================================================
   GREEN RESULT CARD

   Add class:
   earnings-calc-results--green
   ========================================================= */

.earnings-calc .earnings-calc-results--green {
    background:
        linear-gradient(
            135deg,
            #90c856 0%,
            #629e42 100%
        );
}

.earnings-calc
.earnings-calc-results--green
.earnings-calc-result-label {
    color: #005482;
}

.earnings-calc
.earnings-calc-results--green
.earnings-calc-result-value {
    color: #ffffff;
}

.earnings-calc
.earnings-calc-results--green
.earnings-calc-earned-box {
    background: #ffffff;
}


/* =========================================================
   BLUE RESULT CARD

   Add class:
   earnings-calc-results--blue
   ========================================================= */

.earnings-calc .earnings-calc-results--blue {
    background:
        linear-gradient(
            135deg,
            #4ea1d3 0%,
            #0273b1 55%,
            #005482 100%
        );
}

.earnings-calc
.earnings-calc-results--blue
.earnings-calc-result-label {
    color: #ffffff;
}

.earnings-calc
.earnings-calc-results--blue
.earnings-calc-result-value {
    color: #ffffff;
}

.earnings-calc
.earnings-calc-results--blue
.earnings-calc-earned-box {
    background: #ffffff;
}

/* =========================================================
   LEFT SIDE COLOR VARIANTS

   Add to .earnings-calc:
   earnings-calc--blue
   earnings-calc--green

   Default remains white.
   ========================================================= */


/* ---------- BLUE ---------- */

.earnings-calc.earnings-calc--blue .earnings-calc-label,
.earnings-calc.earnings-calc--blue .earnings-calc-range-labels,
.earnings-calc.earnings-calc--blue .earnings-calc-rate-note {
    color: #005482;
}

/* Chrome / Edge / Safari */
.earnings-calc.earnings-calc--blue
.earnings-calc-slider::-webkit-slider-runnable-track {
    border: 1px solid #b7d4e5;

    background:
        linear-gradient(
            to right,
            #0273b1 0%,
            #0273b1 var(--earnings-calc-fill),
            #d9eaf4 var(--earnings-calc-fill),
            #d9eaf4 100%
        );
}

.earnings-calc.earnings-calc--blue
.earnings-calc-slider::-webkit-slider-thumb {
    background: #0273b1;
}

/* Firefox */
.earnings-calc.earnings-calc--blue
.earnings-calc-slider::-moz-range-track {
    background: #d9eaf4;
    border: 1px solid #b7d4e5;
}

.earnings-calc.earnings-calc--blue
.earnings-calc-slider::-moz-range-progress {
    background: #0273b1;
}

.earnings-calc.earnings-calc--blue
.earnings-calc-slider::-moz-range-thumb {
    background: #0273b1;
}


/* ---------- GREEN ---------- */

.earnings-calc.earnings-calc--green .earnings-calc-label,
.earnings-calc.earnings-calc--green .earnings-calc-range-labels,
.earnings-calc.earnings-calc--green .earnings-calc-rate-note {
    color: #629e42;
}

/* Chrome / Edge / Safari */
.earnings-calc.earnings-calc--green
.earnings-calc-slider::-webkit-slider-runnable-track {
    border: 1px solid #c6daad;

    background:
        linear-gradient(
            to right,
            #90c856 0%,
            #90c856 var(--earnings-calc-fill),
            #e2efd6 var(--earnings-calc-fill),
            #e2efd6 100%
        );
}

.earnings-calc.earnings-calc--green
.earnings-calc-slider::-webkit-slider-thumb {
    background: #90c856;
}

/* Firefox */
.earnings-calc.earnings-calc--green
.earnings-calc-slider::-moz-range-track {
    background: #e2efd6;
    border: 1px solid #c6daad;
}

.earnings-calc.earnings-calc--green
.earnings-calc-slider::-moz-range-progress {
    background: #90c856;
}

.earnings-calc.earnings-calc--green
.earnings-calc-slider::-moz-range-thumb {
    background: #90c856;
}

/* =========================================================
   HIDDEN RATE SOURCE
   ========================================================= */

.earnings-calc .earnings-calc-rate-source {
    display: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .earnings-calc .earnings-calc-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
        gap: 30px;
    }

    .earnings-calc .earnings-calc-result-value {
        font-size: 52px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .earnings-calc .earnings-calc-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .earnings-calc .earnings-calc-input {
        height: 68px;
        font-size: 24px;
    }

    .earnings-calc .earnings-calc-results {
        min-height: 235px;
        padding: 32px 22px;
    }

    .earnings-calc .earnings-calc-result-value {
        font-size: 50px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .earnings-calc .earnings-calc-result-value {
        font-size: 44px;
    }

    .earnings-calc .earnings-calc-earned-amount {
        font-size: 24px;
    }

    .earnings-calc .earnings-calc-range-labels {
        font-size: 12px;
    }

}

/* =========================================================
   EARNINGS CALCULATOR — MONTHLY CONTRIBUTIONS
   Extends existing .earnings-calc component
   ========================================================= */

/* Keep the two money inputs in the same row on desktop. */
.earnings-calc.earnings-calc--contributions .earnings-calc-controls {
    display: block;
    min-width: 0;
}

.earnings-calc.earnings-calc--contributions .earnings-calc-input-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px;
    align-items: start;
    width: 100%;
}

.earnings-calc.earnings-calc--contributions
.earnings-calc-input-row > .earnings-calc-field {
    min-width: 0;
    width: 100%;
    margin: 0;
}

.earnings-calc.earnings-calc--contributions
.earnings-calc-input-row .earnings-calc-input-wrap {
    width: 100%;
    min-width: 0;
}

.earnings-calc.earnings-calc--contributions
.earnings-calc-input-row .earnings-calc-input {
    width: 100%;
    min-width: 0;
    font-size: clamp(18px, 2vw, 27px);
    padding-right: 10px;
}

/* Separate the timeframe from the two money inputs. */
.earnings-calc.earnings-calc--contributions .earnings-calc-time-field {
    margin-top: 36px;
}

.earnings-calc.earnings-calc--contributions .earnings-calc-term-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.earnings-calc.earnings-calc--contributions
.earnings-calc-term-heading .earnings-calc-label {
    margin: 0;
}

.earnings-calc.earnings-calc--contributions .earnings-calc-term-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 8px 14px;
    background: #eef5e9;
    border-radius: 999px;
    color: #629e42;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.earnings-calc.earnings-calc--contributions
.earnings-calc-time-field .earnings-calc-slider-wrap {
    margin-top: 0;
}

.earnings-calc.earnings-calc--contributions .earnings-calc-rate-note {
    margin-top: 26px;
}

@media (max-width: 767px) {
    .earnings-calc.earnings-calc--contributions
    .earnings-calc-input-row .earnings-calc-input {
        height: 62px;
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .earnings-calc.earnings-calc--contributions .earnings-calc-input-row {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .earnings-calc.earnings-calc--contributions .earnings-calc-time-field {
        margin-top: 30px;
    }
}

/* =========================================================
   COMPARISON CHART
   Reusable rate comparison component

   Rates align directly after each bar.
   Chart background is always transparent.
   ========================================================= */

.comparison-chart {
    width: 100%;
    background: transparent;

    --comparison-chart-text: #4a6074;
    --comparison-chart-featured-text: #005482;
    --comparison-chart-competitor-bar: #adc0cf;

    --comparison-chart-featured-bar-start: #4ea1d3;
    --comparison-chart-featured-bar-mid: #0273b1;
    --comparison-chart-featured-bar-end: #005482;
}

.comparison-chart * {
    box-sizing: border-box;
}


/* =========================================================
   WHITE VERSION
   ========================================================= */

.comparison-chart.comparison-chart--white {

    --comparison-chart-text:
        rgba(255, 255, 255, 0.88);

    --comparison-chart-featured-text:
        #ffffff;

    --comparison-chart-competitor-bar:
        rgba(255, 255, 255, 0.60);

    --comparison-chart-featured-bar-start:
        #ffffff;

    --comparison-chart-featured-bar-mid:
        #fafafa;

    --comparison-chart-featured-bar-end:
        #f1f3f7;
}


/* =========================================================
   BLUE VERSION
   ========================================================= */

.comparison-chart.comparison-chart--blue {

    --comparison-chart-text:
        #4a6074;

    --comparison-chart-featured-text:
        #06466f;

    --comparison-chart-competitor-bar:
        #adc0cf;

    --comparison-chart-featured-bar-start:
        #4ea1d3;

    --comparison-chart-featured-bar-mid:
        #0273b1;

    --comparison-chart-featured-bar-end:
        #005482;
}


/* =========================================================
   GREEN VERSION
   ========================================================= */

.comparison-chart.comparison-chart--green {

    --comparison-chart-text:
        #4a6074;

    --comparison-chart-featured-text:
        #06466f;

    --comparison-chart-competitor-bar:
        #adc0cf;

    --comparison-chart-featured-bar-start:
        #90c856;

    --comparison-chart-featured-bar-mid:
        #90c856;

    --comparison-chart-featured-bar-end:
        #629e42;
}


/* =========================================================
   ROW GROUP
   ========================================================= */

.comparison-chart .comparison-chart-rows {

    display: flex;
    flex-direction: column;

    gap: 20px;
}


/* =========================================================
   INDIVIDUAL ROW
   ========================================================= */

.comparison-chart .comparison-chart-row {

    display: grid;

    grid-template-columns:
        220px
        minmax(0, 1fr);

    gap: 20px;

    align-items: center;

    min-height: 50px;
}


/* =========================================================
   PRODUCT / COMPANY NAME
   ========================================================= */

.comparison-chart .comparison-chart-name {

    color:
        var(--comparison-chart-text);

    font-size: 16px;

    line-height: 1.25;

    font-weight: 700;
}


/* Featured product */

.comparison-chart
.comparison-chart-row--featured
.comparison-chart-name {

    color:
        var(--comparison-chart-featured-text);

    font-weight: 900;
}


/* =========================================================
   BAR MEASUREMENT AREA
   ========================================================= */

.comparison-chart .comparison-chart-measure {

    width: 100%;
    min-width: 0;
}


/* =========================================================
   BAR WRAPPER

   We deliberately reserve space on the right for the
   largest rate label.

   The rate itself is positioned relative to the end
   of the individual bar.
   ========================================================= */

.comparison-chart .comparison-chart-bar-wrap {

    position: relative;

    width: calc(100% - 125px);

    height: 44px;
}


/* =========================================================
   BAR
   ========================================================= */

.comparison-chart .comparison-chart-bar {

    position: absolute;

    left: 0;
    top: 0;

    width: var(--comparison-chart-bar-width, 0%);

    height: 44px;

    min-width: 0;

    border-radius:
        0
        7px
        7px
        0;

    transition:
        width 0.5s ease;
}


/* =========================================================
   FEATURED BAR
   ========================================================= */

.comparison-chart
.comparison-chart-row--featured
.comparison-chart-bar {

    background:
        linear-gradient(
            90deg,

            var(
                --comparison-chart-featured-bar-start
            )
            0%,

            var(
                --comparison-chart-featured-bar-mid
            )
            55%,

            var(
                --comparison-chart-featured-bar-end
            )
            100%
        );
}


/* =========================================================
   COMPETITOR BARS
   ========================================================= */

.comparison-chart
.comparison-chart-row:not(
    .comparison-chart-row--featured
)
.comparison-chart-bar {

    min-width: 7px;

    background:
        var(--comparison-chart-competitor-bar);

    border-radius:
        0
        5px
        5px
        0;
}


/* =========================================================
   RATE TEXT

   The left position is calculated from the width of
   its corresponding bar.

   Example:
   short bar → rate appears near the beginning
   long bar  → rate appears near the end
   ========================================================= */

.comparison-chart .comparison-chart-rate {

    position: absolute;

    top: 50%;

    left:
        calc(
            var(--comparison-chart-bar-width, 0%)
            + 14px
        );

    transform:
        translateY(-50%);

    color:
        var(--comparison-chart-text);

    font-size: 17px;

    line-height: 1.15;

    font-weight: 900;

    white-space: nowrap;
}


/* Featured rate */

.comparison-chart
.comparison-chart-row--featured
.comparison-chart-rate {

    color:
        var(--comparison-chart-featured-text);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .comparison-chart
    .comparison-chart-row {

        grid-template-columns:
            180px
            minmax(0, 1fr);

        gap: 20px;
    }


    .comparison-chart
    .comparison-chart-bar-wrap {

        width:
            calc(100% - 110px);
    }


    .comparison-chart
    .comparison-chart-rate {

        font-size: 16px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .comparison-chart
    .comparison-chart-rows {

        gap: 22px;
    }


    .comparison-chart
    .comparison-chart-row {

        grid-template-columns: 1fr;

        gap: 6px;

        min-height: 0;
    }


    .comparison-chart
    .comparison-chart-name {

        font-size: 15px;
    }


    .comparison-chart
    .comparison-chart-bar-wrap {

        width:
            calc(100% - 100px);

        height: 38px;
    }


    .comparison-chart
    .comparison-chart-bar {

        height: 38px;
    }


    .comparison-chart
    .comparison-chart-rate {

        left:
            calc(
                var(--comparison-chart-bar-width, 0%)
                + 10px
            );

        font-size: 15px;
    }

}