/*------------------
Variables
--------------------*/
.rewards-calculator {
  font-family: 'Nunito', sans-serif;
  --primary: #0088F3;
  --secondary: #B8CDDE;
  --light: #EFF4F7;
  --text: #4D6373;
}

/*------------------
Rewards Calculator
--------------------*/

.text-center {
  text-align: center;
}

.header {
  color: var(--text);
  font-weight: 400;
}

h1.header {
  font-size: 24px;
  background: #FFF;
  margin: 0;
  padding: 0.75em 0 0.75em 0;
}

h2.header {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 16px;
}

h3.header {
  font-size: 18px;
  margin-top: 26px;
  margin-bottom: 16px;
}

.container {
  max-width: 100%;
  margin: 0 auto;
}

@media screen and (min-width: 40em) {

  .container {
    max-width: 800px;
    margin: 0 auto;
  }

  h1.header {
    font-size: 40px;
    margin-bottom: 0;
    padding: 18px 0 0.25em 0;
  }

  h2.header {
    font-size: 26px;
  }
  
  h3.header {
    font-size: 26px;
  }

  .spend-headers h3.header {
    margin: 0.5em 0 3em 0;
  }

}

/*------------------
Spend
--------------------*/
.sliders {
  padding: 0 3em;
  margin: 0 auto 10px auto;
  max-width: 100%;
}

.slider-row {
  display: flex;
  flex-direction: column;
  margin: 0.5em 0;
}

.label {
  text-align: center;
  color: var(--text);
  font-size: 16px;
}

.label-description {
  color: var(--text);
  font-size: 11px;
}

.amount {
  padding: 0.3em 0em;
  font-size: 13px;
  position: absolute;
  background: var(--light);
  color: var(--text);
  top: -30px;
  left: 0;
  border-radius: 4px;
  width: 85px;
  margin-left: -40px;
  margin-top: -6px;
  display: flex;
  justify-content: center;
  z-index: 4;
}

.amount::after {
  position: absolute;
  color: var(--light);
  bottom: -10px;
  content: '\25bc'
}

.input {
  display: none;
  transition: all 300ms ease-in;
  
}

.input-spend {
  border: none;
  border-radius: 6px;
  max-width: 80px;
  padding: 0.25em;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  color: var(--primary);
}

@media screen and (min-width: 40em) {
  
  .slider-row {
    flex-direction: row;
    align-items: center;
    margin: 2em 0;
  }

  .label {
    margin-right: 1em;
    text-align: right;
    min-width: 150px;
  }

  .amount {
    top: -30px;
    font-size: 14px;
  }

}

.slider {
  position: relative;
  flex-grow: 1;
}

.slider-row:last-of-type {
  margin-bottom: 0;
}

.slider .slide {
  background: var(--primary);
  border-radius: 10px 0 0 10px;
  height: 10px;
  width: 0;
  max-width: 100%;
  position: absolute;
  left: 0;
  top: 6px;
  z-index: 2;
}
input[type=range] {
  position: relative;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100vw;
  height: 10px;
  border-radius: 10px;
  background: #ddd;
  outline: none;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 3;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.btn-increase {
  display: none;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  padding: 4px 8px;
  position: absolute;
  right: 0;
  background: var(--light);
  color: var(--text);
  border: 1px solid var(--primary);
  border-radius: 3px;
  margin-top: 6px;
  box-shadow: none;
  cursor: pointer;
}

.total-spend {
  display: flex;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.total-spend-montly {
  font-weight: 300;
}

.total-spend-output {
  background: var(--light);
  padding: 0.5em 1em;
  min-width: 100px;
  text-align: center;
  border-radius: 6px;
  margin-left: 1em
}

@media screen and (min-width: 40em) {

  .total-spend {
    justify-content: flex-end;
    padding-right: 3em;
  }

}

/*------------------
Subscription
--------------------*/

.card-sub {
  width: 70px;
  border-radius: 3px;
  display: flex;
  justify-content: center;
}

.card-sub-title {
  margin: 8px 0 6px 0;
  font-size: 14px;
  font-weight: bold;
}

.card-sub-title,
.card-sub-rate,
.card-cashback {
  color: var(--text);
}

.card-sub-rate {
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 600;
}

.card-cashback {
  text-transform: uppercase;
  letter-spacing: 0.85px;
  font-size: 11px;
}

/*------------------
Competitors
--------------------*/
.cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto 1em auto;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text);
  border: 1px solid var(--light);
  border-radius: 6px;
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.25);
  transition: all 250ms ease;
  cursor: pointer;
  opacity: 0.35;
  margin: 0 0.25em;
  width: calc(33% - 1em);
  box-sizing: border-box;
  min-height: 60px;
  padding: 1em;
  transform: scale(0.95);
}

.competitors {
  max-width: 85%;
  margin: 0 auto;
}


.comp-message {
  max-width: 50%;
  margin: 0 auto 4em auto;
  font-size: 12px;
  color: var(--text);
  display: none;
}

.pres-message {
  display: none;
}

.card.active {
  border: 2px solid var(--primary);
  transform: scale(1);
  opacity: 1;
}

.card-image {
  max-width: 50px;
}

.card-text-content {
  text-align: center;
}

@media screen and (min-width: 40em) {

  .cards {
    max-width: 85%;
  }

  .card {
    flex: 1;
    min-height: 112px;
  }

  .card-image {
    max-width: 80px;
  }

  .card-sub {
    width: 80px;
  }

  .cards-comp .card {
    min-height: 105px;
  }

  .card-sub-content {
    display: flex;
    align-items: center;
  }

  .card-text-content {
    text-align: left;
    margin-left: 16px;
  }

  .card-sub-title {
    margin: 0 0 4px 0;
  }

}

/*------------------
Rewards Progress
--------------------*/
.progress-section {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-direction: column;
  margin-bottom: 0.75em;
  padding: 0 2em;
}

.progress-section:first-of-type {
  margin-bottom: 0;
}

.progress-value {
  color: var(--text);
  font-weight: bold;
  margin-left: 0;
  margin-top: 10px;
  min-width: 0;
}

.progress-label-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.progress-label-sm {
  display: block;
  align-self: flex-start;
  color: var(--text);
  margin-bottom: 10px;
}

.progress {
  max-width: 95%;
  margin: 0 auto 0 auto;
}

.progress-paycertify {
  position: sticky;
  position: -webkit-sticky;
  position: -moz-sticky;
  position: -ms-sticky;
  position: -o-sticky;
  top: 0;
  z-index: 999;
}

.progress-paycertify .progress-section {
  margin-top: -1.15em;
}

@media screen and (orientation:landscape) {

  .container {
    padding-top: 0;
  }

  h1.header {
    font-size: 30px;
  }
  
}

@media screen and (min-width: 800px) {

  .progress {
    max-width: 100%;
    margin: 1em 0 2em 0;
  }

  .progress-section {
    flex-direction: row;
    align-items: center;
    margin-bottom: 2em;
    padding: 0;
  }

  .progress-label-sm {
    display: none;
  }

  .progress-value {
    margin-top: 0;
    margin-left: 40px;
    min-width: 210px;
  }

}

.progress-value.progress-pcl-value {
  font-size: 24px;
}

.pc-progress-labels {
  display: none;
}

.progress-label {
  color: var(--text);
  text-align: right;
  font-size: 20px;
}

.pc-progress-labels .progress-label {
  margin: 1em;
  min-height: 40px;
}

.pc-progress-labels .progress-label:first-of-type {
  margin-bottom: 0;
}

.progress-label-comp {
  margin-right: 0;
  min-width: 0;
  align-self: flex-start;
  font-size: 16px;
  margin-bottom: 10px;
}

.pc-progress {
  border-radius: 16px;
  display: flex;
  justify-content: center;
  position: relative;
}

.pc-progress-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 1.85em 0 0 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.15);
}

.pc-card-image {
  width: 100%;
  max-width: 88px;
  position: absolute;
  top: -16px;
  right: 30px;
  z-index: 1001;
}

@media screen and (min-width: 800px) {

  .progress-label-comp {
    margin: 0 1em 0 0;
    min-width: 265px;
  }

  .pc-card-image {
    display: block;
    max-width: 100%;
    left: -140px;
    width: 250px;
    top: -10px;
  }

  .pc-progress-labels {
    box-shadow: 18px 2px 20px -8px rgba(35, 31, 32, 0.25);
    border-radius: 16px 0 0 16px;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    background: #FFF;
    z-index: 1000;
  }

  .pc-progress {
    margin-top: 0;
  }

  .pc-progress-content {
    padding: 0 2em 0 0;
    border-radius: 0 16px 16px 0;
  }

  .pc-progress-content .progress-section {
    margin: 1em 0;
    min-height: 60px;
  }

}

progress[value] {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 100%;
}

progress[value]::-webkit-progress-bar {
  background-color: var(--light);
  border-radius: 10px;
}

@media screen and (min-width: 800px) {
    
  progress[value]::-webkit-progress-bar {
    background-color: var(--light);
    border-radius: 0 10px 10px 0;
  }

}

progress[value]::-webkit-progress-value {
  background: linear-gradient(to right, #516371, #B8CDDE);
  border-radius: 10px;
  transition: width 250ms ease;
}

.pc_unlimited progress[value]::-webkit-progress-value,
.pc_lifetime progress[value]::-webkit-progress-value {
  border-radius: 10px;
}

.pc_unlimited progress[value]::-webkit-progress-value {
  background: #B8CDDE;
}

.pc_lifetime progress[value]::-webkit-progress-value {
  background: var(--primary);
}

@media screen and (min-width: 800px) {

  progress[value] {
    width: 200px;
  }

  progress[value]::-webkit-progress-value,
  .pc_unlimited progress[value]::-webkit-progress-value,
  .pc_lifetime progress[value]::-webkit-progress-value {
    border-radius: 0 10px 10px 0;
  }

}

/*------------------
Legal
--------------------*/
.legal {
  font-size: 9px;
  color: var(--text);
  margin: 2em auto 2em auto;
  max-width: 800px;
}

.legal p {
  margin: 2px 0;
}
