/*
 * Styles for Firebase prices frameboxes.
 */

/* overriding material slider styles for calculator */
.mdl-slider.is-upgraded.is-lowest-value::-webkit-slider-thumb {
    border: none;
    background: #039be5;
}

.mdl-slider.is-upgraded.is-lowest-value::-moz-range-thumb {
    border: none;
    background: #039be5;
}

.mdl-slider.is-upgraded.is-lowest-value:focus:not(:active)::-webkit-slider-thumb {
    background: #039be5;
}

.mdl-slider.is-upgraded.is-lowest-value:focus:not(:active)::-moz-range-thumb {
    background: #039be5;
}

.mdl-slider.is-upgraded.is-lowest-value:active::-webkit-slider-thumb {
    border: none;
}

.mdl-slider.is-upgraded.is-lowest-value:active::-moz-range-thumb {
    border: none;
}

.mdl-slider.is-upgraded.is-lowest-value::-ms-thumb {
    background: #039be5;
}

.mdl-slider.is-upgraded.is-lowest-value:focus:not(:active)::-ms-thumb {
    background: #039be5;
}

.mdl-slider.is-upgraded.is-lowest-value:active::-ms-thumb {
    background: #039be5;
}

.mdl-slider.is-upgraded.is-lowest-value::-ms-fill-lower {
    background: #039be5;
}
/* END overrides for material slider styles */

html {
  height: auto !important;
}

.gmp-icons {
  cursor: default;
  direction: ltr;
  display: inline-block;
  font-family: 'GMP Icons';
  -webkit-font-feature-settings: 'liga';
  -moz-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  font-size: 24px;
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  font-weight: 400;
  height: 1em;
  letter-spacing: normal;
  line-height: 1;
  -moz-osx-font-smoothing: grayscale;
  speak: none;
  text-decoration: none;
  text-rendering: optimizeLegibility;
  text-transform: none;
  user-select: none;
  white-space: nowrap;
  width: 1em;
  word-wrap: normal;
}

.firesite-feature-icon {
  background-color: #FFCA28;
  display: inline-block;
  font-size: 46px;
  width: 1em;
  height: 1em;
  margin-top: 8px;
  margin-bottom: 8px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.firesite-feature-icon.firesite-feature-icon--quality {
  background-color: #FFA000;
}

.firesite-feature-icon.firesite-feature-icon--grow {
  background-color: #FF8A65;
}


.firesite-feature-icon .gmp-icons {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  font-size: 50%;
  color: #fff;
}

.mdl-tooltip {
  will-change: auto !important;
}

.devsite-landing-row-item-description {
  width: 100% !important;
}

.fb-prices-clear {
  clear: both;
}

.fb-prices {
  display: block;
}

.fb-prices-resp {
  display: none;
}

.material-icons.green {
  color: #02bfa6
}

.material-icons.red {
  color: #f92953;
}

label {
  line-height: 16px;
}

.fb-price-row {
  display: flex;
  display: -ms-flexbox;
}

.fb-prices .fb-price-row {
  flex-direction: row;
  -ms-flex-direction: row;
  -webkit-flex-direction: row;
}

.fb-price-row > div {
  flex: 1 1 250px;
  -ms-flex: 1 1 250px;
  -webkit-flex: 1 1 250px;
  font-size: 16px;
}

.fb-price-row.features .feature,
.fb-price-row.features .aspect {
  flex: 0 1 250px;
  -ms-flex: 0 1 250px;
  -webkit-flex: 0 1 250px;
  min-width: 150px;
}

.fb-price-row.features .featuretitle, .fb-calculator-item .featuretitle {
  align-items: center;
  color: #424242;
  display: flex;
  display: -ms-flexbox;
  font-family: GoogleSans-Medium, sans-serif;
  font-size: 20px;
  line-height: 26px;
  padding-left: 16px;
}

.fb-price-row.features .featureicon, .fb-calculator-item .featureicon {
  margin-left: 20px;
}

.fb-price-row.features .feature {
  display: flex;
  display: -ms-flexbox;
  flex-direction: column;
  -ms-flex-direction: column;
  -webkit-flex-direction: column;
  justify-content: center;
}

.fb-price-row.features .feature > div {
  background-color: #fafbfc;
  border-bottom: 1px solid #cfd8dc;
  flex: 1 1;
  -ms-flex: 1 1;
  -webkit-flex: 1 1;
  text-align: left;
}

.fb-price-row .spacer {
  background-color: #fafbfc;
  display: inline-block;
  float: left;
  height: 100%;
  width: 24px;
}

.fb-price-row .header .spacer {
  background-color: #fff;
}

.fb-price-row.included .spacer {
  background-color: #e0f2f1;
  float: none;
  vertical-align: top;
}

.fb-price-row.features .feature > div,
.fb-price-row.features .aspect > div,
.fb-price-row.features .spark > div,
.fb-price-row.features .not-spark > div {
  border-bottom: 1px solid #cfd8dc;
  height: 48px;
  line-height: 48px;
}

.fb-price-row.features .material-icons {
  line-height: 48px;
}

.fb-price-row.features .aspect > div {
  background-color: #fafbfc;
  color: rgba(0, 0, 0, .54);
  font-size: 14px;
  text-align: left;
}

.fb-price-row.features .spark > div {
  background:#e1f3fb;
  line-height: 48px;
  text-align: center;
}

.fb-price-row.features .not-spark > div {
  background: #f2f5f6;
  line-height: 48px;
  text-align: center;
}

.fb-price-row.features .not-spark .footnote {
  line-height: 40px;
}

.fb-price-row .noshrink {
  flex: 0 1 250px;
  -ms-flex: 0 1 250px;
  -webkit-flex: 0 1 250px;
  min-width: 150px;
}

.fb-price-row.included {
  align-items: center;
  background: #e0f2f1;
  border-bottom: 1px solid #cfd8dc;
  border-top: 1px solid #cfd8dc;
  color: #00897b;
}

.fb-price-row.included .header-wrapper {
  flex: 0 1 500px;
  -ms-flex: 0 1 500px;
  -webkit-flex: 0 1 500px;
}

.fb-price-row.included .header {
  color: #00897b;
  font-size: 14px;
  font-weight: 400;
  padding: 16px;
}

.fb-price-row.included .header strong {
  font-weight: 500;
}

.fb-price-row.included .body {
  text-align: center;
}


.fb-price-row.headers .header {
  color: #fff;
  font-family: Roboto, sans-serif;
  font-weight: 400;
  height: 160px;
  text-align: center;
}

.fb-price-row.headers .header .padding {
  margin-left: 24px;
  padding: 12px;
  height: 100%;
  box-shadow: 0px 4px 4px 0px #ccc;
}

.fb-price-row.headers .header.spark, .fb-price-row.spark .header {
  background: #29b6f6;
  color: #fff;
}

.fb-price-row.headers .header.flame, .fb-price-row.flame .header {
  background: #78909c;
  color: #fff;
}

.fb-price-row.headers .header.blaze, .fb-price-row.blaze .header {
  background: #90a4ae;
  color: #fff;
}

.fb-price-row.headers .header .title,
.fb-price-row.feature .header .title {
  font-size: 18px;
  line-height: 24px;
  padding: 8px;
}

.fb-price-row.headers .header .price,
.fb-price-row.feature .header .price {
  font-size: 22px;
  line-height: 20px;
}

.fb-price-row.headers .header .description,
.fb-price-row.feature .header .description {
  font-size: 14px;
}

.fb-price-row.headers .header hr,
.fb-price-row.plan .header hr {
  border-top-width: 2px;
  color: #fff;
  margin-left: 36px;
  margin-right: 36px;
  opacity: .3;
}

/** Make deeply nested div structure look okay and fit well. */
.fb-price-row.features.cta-row div div {
  height: 100%;
}

/** center the buttons in their containers */
.cta-container {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

/** overide all bottom borders for CTA rows. */
.fb-price-row.cta-row div {
  border-bottom: none !important;
}

/** override background colors for CTA rows */
.fb-price-row.cta-row .feature > div,
.fb-price-row.cta-row .aspect > div,
.fb-price-row.cta-row .spacer {
  background-color: white !important;
}

.fb-price-header {
  font-family: Roboto, sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  width: 234px;
}

.fb-price-section-header {
  background-color: #fafbfc;
  border-bottom:1px solid #cfd8dc;
  color: #212121;
  font-size:18px;
  text-align: left;
  width: 190px;
}

.fb-price-subsection-header {
  background-color: #fafbfc;
  color: rgba(0, 0, 0, .54);
  font-family: Roboto, sans-serif;
  font-size: 14px;
  height: 32px;
  min-width: 187px;
  padding: 8px;
  text-align: left;
}

.fb-footnote {
  color: rgba(0, 0, 0, .54);
  font-size: 12px;
  font-style: italic;
  padding: 0px 16px 16px;
}

.fb-price-calculator-heading h2 {
  color: rgba(0, 0, 0, .87);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  margin-bottom: 0;
  margin-top: 40px;
}

.fb-price-calculator-heading p {
  color: rgba(0, 0, 0, .54);
  margin: 24px 0;
  max-width: 640px;
}

.fb-calculator {
  margin: 0 20px;
  border-radius: 8px;
  overflow: hidden;
}

.fb-calculator > section:not(:first-of-type):not(:last-of-type) {
  border: 1px solid #ECEFF1;
  border-bottom: 0;
}

.fb-calculator > section:last-of-type {
  border: 1px solid #ECEFF1;
}

.fb-calculator-item {
  display: flex;
  display: -ms-flexbox;
  flex: 1;
  -ms-flex: 1;
  -webkit-flex: 1;
}

.fb-calculator-item header {
  align-items: center;
  background-color: #ffffff;
  display: flex;
  display: -ms-flexbox;
  max-width: 250px;
  min-width: 180px;
  width: 250px;
}

.fb-calculator-item header.showalways {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 28px 0 36px;
}

.fb-calculator-item header h1 {
  margin: 0px;
  padding: 12px;
}

.fb-calculator-item .exw-control {
  display: none;
}

.fb-calculator-range {
  display: flex;
  display: -ms-flexbox;
  flex-direction: row;
  -ms-flex-direction: row;
  -webkit-flex-direction: row;
}

.fb-calculator-rangeholder {
  flex: 1;
  -ms-flex: 1;
  -webkit-flex: 1;
}

.fb-calculator .expandable > *:not(.showalways):not(.exw-control):not(.exw-expanded-content):not(.expand-control) {
  display: block;
}

.fb-calculator-reset-button {
  background-color: #039BE5;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: Roboto-Medium, sans-serif;
  font-size: 14px;
  letter-spacing: 0.15px;
  line-height: 16px;
  padding: 10px 20px;
  text-align: center;
  transition: all .15s linear;
}

.fb-calculator-reset-button:hover {
  background-color: #0288d1;
  color: #fff !important;
}

.fb-calculator-total {
  color: #424242;
  font-family: GoogleSans-Medium;
  font-size: 18px;
  line-height: 26px;
}

.fb-calculator-cell {
  background: #fff;
  padding: 12px;
  width: 200px;
}

.fb-calculator-total-cell {
  flex: 1;
  -ms-flex: 1;
  -webkit-flex: 1;
  max-width: 275px;
}

.fb-calculator-cell .mdl-slider__container {
  height: 24px;
  margin-left: 20px;
}

.fb-calculator-cell .mdl-slider__container::before {
  background-color: #039be5;
  content: '';
  height: 2px;
  left: -20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
}

.fb-calculator-cell .mdl-slider__background-lower {
  background: #ffca2b;
}

.fb-calculator-cell .mdl-slider__background-upper {
  background: #eceff1;
}

.fb-calculator-range-cell {
  flex: 1;
  -ms-flex: 1;
  -webkit-flex: 1;
}

.fb-calculator-cost-cell {
  align-items: center;
  background: #2e3a4d;
  color: #ffffff;
  display: flex;
  display: -ms-flexbox;
  font: 500 16px/24px Roboto, sans-serif;
  justify-content: center;
}

.fb-calculator-header > div {
  background: #f8f9fa;
  border: 1px solid #eceff1;
  border-bottom: 0;
  flex: 1;
  -ms-flex: 1;
  -webkit-flex: 1;
  overflow: hidden;
}

.fb-calculator-header-cell {
  align-items: center;
  display: flex;
  height: 70px;
  padding: 0 12px;
}

.fb-calculator-header-billing-cell {
  background: #2e3a4d;
  border: 1px solid #eceff1;
  color: #fff;
  font: 400 14px/20px Roboto-Regular, sans-serif;
  justify-content: center;
  overflow: hidden;
  width: 200px;
}

.fb-calculator-header-cell .label {
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  line-height: 16px;
}

.fb-calculator-grand-total > div {
  background: none;
  flex: 1;
  -ms-flex: 1;
  -webkit-flex: 1;
}

.fb-calculator-grandtotal-cell {
  background: #2e3a4d;
  color: #fff;
  font: 500 16px/24px Roboto, sans-serif;
  padding: 36px 12px;
  text-align: center;
  width: 200px;
}

.fb-calculator-grandtotal-cell .label {
  font-family: Roboto-Regular, sans-serif;
  font-size: 14px;
  color: #fff;
  line-height: 20px;
  text-align: center;
}

.fb-calculator-summary {
  font-family: Roboto-Regular;
  font-size: 14px;
  color: #757575;
  line-height: 20px;
}

.fb-calculator-item-cost {
  display: none;
}

.firebase-feature .expand-control.showalways {
  color: #757575;
  font-size: 16px;
  line-height: 24px;
  margin: 20px 0;
  padding-right: 44px;
}

.firebase-feature {
  border-bottom: 1px solid #cfd8dc;
}

.firebase-feature p {
  margin-right: 40px;
}

.firebase-feature .expand-control::after {
  color: #bdbdbd;
  content: 'expand_more';
  font: normal normal normal 24px/1 'Material Icons';
  font-feature-settings: 'liga';
  -moz-font-feature-settings: 'liga';
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  height: 20px;
  margin: 2px 0;
  position: absolute;
  right: 18px;
  text-rendering: optimizeLegibility;
  top: -2px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 20px;
  word-wrap: normal;
}

.firebase-feature .exw-expanded::after {
  content: "expand_less";
}

.firebase-pricing-page .devsite-main-content {
  padding: 0 80px;
}

.fb-calculator-body {
  background-color: transparent !important;
  font-family: Roboto, sans-serif;
  padding: 0 !important;
}

/* Emulate label styling */
.fb-calculator-footnote {
  border-top: none;
  color: #757575;
  font-size: 12px;
}

@media only screen and (max-width: 1000px) {
  .fb-price-row.headers .header .title {
    font-size: 16px;
    line-height: 24px;
  }

  .fb-price-row.headers .header .price {
    font-size: 18px;
    line-height: 16px;
  }

  .fb-price-row.headers .header .description {
    font-size: 12px;
  }

  .fb-price-row.features .aspect > div {
    font-size: 13px;
  }
}

/** Style explicitly for non-mobile devices */
@media only screen and (min-width: 901px) {
  .fb-calculator-item.expandable .exw-collapsed-content {
    display: block !important;
  }

  .fb-calculator-cost-cell:not(:last-of-type)::after {
    background: #2e3a4d;
    content: '';
    height: 200px;
    padding: 0 12px;
    position: absolute;
    right: 0;
    top: 0;
    width: 200px;
    z-index: -1;
  }
}

/** Styles explicitly for mobile/responsive devices */
@media only screen and (max-width: 900px) {
  .fb-prices {
    display: none;
  }

  .fb-prices-resp {
    display: block;
  }

  .fb-price-row, .fb-price-row > div {
    display: block;
    flex: none;
    -ms-flex: none;
    -webkit-flex: none;
  }

  .fb-price-row.included {
    border: none;
    display: block;
    height: auto;
    text-align: center;
  }

  .fb-price-row.included .free {
    padding: 16px;
  }

  .fb-price-row.included .apps {
    padding: 0 16px 16px;
  }

  .fb-price-row.plan {
    padding-top: 24px;
  }

  .fb-price-row.plan .header {
    padding: 24px;
    text-align: center;
  }

  .fb-price-row.plan .header .price {
    font-size: 24px;
    padding-top: 8px;
  }

  .fb-price-row.plan .features {
    background-color: #e6f7fe;
  }

  .fb-price-row.flame .features,
  .fb-price-row.blaze .features {
    background-color: #f2f5f6;
  }

  .fb-price-row.plan .features .expandable {
    clear: both;
  }

  .fb-price-row.plan .features header.showalways {
    border-top: 1px solid #dce9ef;
    padding-left: 0px;
  }

  .fb-price-row.plan .features .exw-control,
  .fb-price-row.plan .features .exw-control:hover {
    background: transparent;
    display: block;
    right: 16px;
    top: 16px;
  }

  .fb-price-row.plan .features header .title {
    color: #212121;
    font-size: 18px;
    padding: 16px;
  }

  .fb-price-row .features .feature {
    border-top: 1px solid #dce9ef;
    clear: both;
    line-height: 48px;
  }

  .fb-price-row .features .feature .name {
    color: rgba(0, 0, 0, .54);
    float: left;
    font-size: 16px;
    padding: 0 16px;
  }

  .fb-price-row .features .feature .value {
    float: right;
    font-size: 16px;
    padding: 0 24px;
  }

  .fb-price-row .features .feature .material-icons {
    position: relative;
    top: 8px;
  }

  .fb-calculator-range {
    display: inline;
    flex-direction: column;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    min-height: 192px;
  }

  .fb-calculator-range > div:not(.fb-calculator-footnote):first-of-type {
    border-top: 1px solid #cfd8dc;
    padding-bottom: 0px;
  }

  .fb-calculator-item {
    flex-direction: column;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    justify-content: center;
  }

  .fb-calculator-item .firesite-feature-icon {
    flex-shrink: 0;
    font-size: 34px;
    margin-bottom: 0;
    margin-left: 0;
    margin-top: 0;
  }

  .fb-price-row.features .featuretitle, .fb-calculator-item .featuretitle {
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    line-height: 18px;
  }

  .fb-calculator-item header.showalways {
    align-items: center;
    flex-direction: row;
    padding: 16px;
    max-width: inherit;
    width: inherit;
  }

  .fb-calculator-item .exw-control, .fb-calculator-item .exw-control:hover {
    background: transparent;
    display: block;
    right: 16px;
    top: 36px;
    transform: translate(0, -50%);
    margin: 0;
  }

  .fb-price-row.plan .features .exw-control::before,
  .fb-calculator-item .exw-control::before {
    color: #b5c0c5;
  }

  .fb-calculator-item-cost {
    display: flex;
    display: -ms-flexbox;
    flex: 1;
    -ms-flex: 1;
    -webkit-flex: 1;
    margin-right: 36px;
  }

  .fb-calculator-item-cost > span {
    flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    -webkit-flex: 1 1 auto;
    font: 400 14px/18px Roboto, sans-serif;
    text-align: right;
  }

  .fb-calculator-cell {
    width: auto;
    background: none;
  }

  .fb-calculator-total-cell {
    float: left;
    max-width: none;
  }

  .fb-calculator-cost-cell {
    background: none;
    color: #FFFFFF;
    float: right;
    font-family: GoogleSans-Medium;
    font-size: 20px;
    line-height: 26px;
    text-align: center;
  }

  .fb-calculator-clear {
    clear: both;
  }

  .fb-calculator-rangeholder {
    background: none;
  }

  .fb-calculator-item a.exw-control::before {
    content: "expand_more";
  }

  .fb-calculator-item a.exw-control {
    transition: all .2s ease-in-out;
  }

  .fb-calculator-item a.exw-control.exw-expanded {
    transform: translate(0, -50%) rotate(180deg);
  }

  .fb-calculator .expandable > *:not(.showalways):not(.exw-control):not(.exw-expanded-content):not(.expand-control) {
    display: none;
  }

  .fb-calculator-grand-total {
    flex-direction: row;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
  }

  .fb-calculator-grand-total > div {
    flex: 0 1;
    -ms-flex: 0 1;
    -webkit-flex: 0 1;
  }

  .fb-calculator-grand-total > section {
    flex: 1;
    -ms-flex: 1;
    -webkit-flex: 1;
  }

  .fb-calculator-header-reset-cell {
    justify-content: center;
  }

  .fb-calculator.fb-calculator-free .fb-calculator-header-reset-cell {
    display: none;
  }

  .fb-calculator-header-billing-cell {
    background-color: #F5F7F8;
    border: none;
    width: 100%;
  }

  .fb-calculator:not(.fb-calculator-free) .fb-calculator-header-billing-cell {
    display: none;
  }

  .fb-calculator-header-cell {
    padding: 0;
  }

  .fb-calculator-header-cell.fb-calculator-header-billing-cell .label {
    color: #424242;
  }
}

@media only screen and (max-width: 720px) {
  .firebase-pricing-page .devsite-main-content {
    padding: 0 16px;
  }
}
