/**
 * Main Stylesheet
 *
 * @author Brad Chen <brad.chen@70ms.com>
 */

.print {
  display: none;
}

body {
  background: #e8e5dd;
  font: 1em/1.5em Arial, sans-serif;
  margin: 0;
  padding: 0;
}

a {
  color: #9b1503;
  text-decoration: none;
}

a:hover {
  color: #b32512;
}

th, td {
  vertical-align: top;
}

sup {
  font-size: 0.75em;
  line-height: 0.8em;
}

#header {
  background: url(images/bg-header.png) no-repeat;
  width: 994px;
  height: 61px;
  margin: 0 auto;
  padding: 12px 0 0 15px;
}

#header #print-button {
  font-size: 0.875em;
  text-align: right;
  width: 100px;
  padding: 20px 15px 0 0;
  float: right;
}

#header #logo {
  background: url(images/logo-scotiabank.png) no-repeat;
  width: 200px;
  height: 34px;
}

#wrapper {
  background: url(images/bg-wrapper.png) repeat-y;
  width: 1009px;
  margin: 0 auto;
}

#wrapper .padding {
  padding: 0 14px 0 15px;
}

#wrapper h1 {
  background: url(images/h1-cash-back-calculator.png) no-repeat;
  height: 51px;
  margin: 0;
}

#wrapper .subtitle {
  background: url(images/subtitle-fill-in-purchases.png) no-repeat;
  height: 30px;
  margin: 0;
}

#wrapper #main {
  border: 5px solid #f1f1f1;
  border-bottom: none;
  background: url(images/bg-main.png) 180px bottom no-repeat;
  padding: 15px 90px 30px;
}

/**
 * Slider Bars
 */

#wrapper #main ul.input {
  list-style: none;
  margin: 0 0 15px;
  padding: 0;
}

#wrapper #main ul.input li {
  margin: 0 0 5px;
  padding: 0 0 0 100px;
}

#wrapper #main ul.input li .label {
  width: 125px;
  margin-right: 10px;
  float: left;
}

#wrapper #main ul.input li .slider {
  width: 327px;
  height: 38px;
  margin-right: 15px;
  float: left;
}

#wrapper #main ul.input li .slider ul.markings {
  list-style: none;
  color: #999999;
  font-size: 0.625em;
  line-height: 1em;
  height: 8px;
  margin: 0 0 -8px;
  padding: 0 0 0 13px;
}

#wrapper #main ul.input li .slider ul.markings li {
  margin: 0;
  padding: 0;
  width: 30px;
  float: left;
}

#wrapper #main ul.input li .slider ul.markings li.start {
  margin-right: 105px;
}

#wrapper #main ul.input li .slider ul.markings li.middle {
  text-align: center;
  margin-right: 104px;
}

#wrapper #main ul.input li .slider ul.markings li.end {
  text-align: right;
}

#wrapper #main ul.input li .slider .bar {
  background: url(images/bg-slider-bar.png) 15px 12px no-repeat;
  height: 31px;
  position: relative;
  z-index: 100;
}

#wrapper #main ul.input li .slider .knob {
  width: 31px;
  height: 31px;
  margin-bottom: -31px;
  position: relative;
  top: -2px;
  left: 0;
  z-index: 200;
}

#wrapper #main ul.input li .slider .knob:focus {
  border: 1px dotted #333;
  outline: none;
  margin-left: -1px;
  margin-bottom: -33px;
  top: -3px;
}

#wrapper #main ul.input li .amount-input {
  border: 1px solid #d8d8d8;
  background: url(images/bg-slider-amount.png) left bottom repeat-x;
  color: #333333;
  font-family: Arial, sans-serif;
  font-size: 1.125em;
  font-weight: bold;
  line-height: 1.1em;
  text-align: right;
  width: 67px;
  height: 24px;
  padding: 2px 9px 0;
  display: block;
  float: left;
}

#wrapper #main ul.input li.grocery-store .label {
  background: url(images/label-grocery-store.png) left 5px no-repeat;
  height: 22px;
}

#wrapper #main ul.input li.grocery-store .knob {
  background: url(images/bg-grocery-store-knob.png) no-repeat;
}

#wrapper #main ul.input li.gas-station .label {
  background: url(images/label-gas-station.png) left 4px no-repeat;
  height: 19px;
}

#wrapper #main ul.input li.gas-station .knob {
  background: url(images/bg-gas-station-knob.png) no-repeat;
}

#wrapper #main ul.input li.drug-store .label {
  background: url(images/label-drug-store.png) left 5px no-repeat;
  height: 22px;
}

#wrapper #main ul.input li.drug-store .knob {
  background: url(images/bg-drug-store-knob.png) no-repeat;
}

#wrapper #main ul.input li.recurring-bills .label {
  background: url(images/label-recurring-bills.png) left 5px no-repeat;
  height: 23px;
}

#wrapper #main ul.input li.recurring-bills .knob {
  background: url(images/bg-recurring-bills-knob.png) no-repeat;
}

#wrapper #main ul.input li.other .label {
  background: url(images/label-other.png) left 5px no-repeat;
  height: 20px;
}

#wrapper #main ul.input li.other .knob {
  background: url(images/bg-other-knob.png) no-repeat;
}

#wrapper #main #monthly-total {
  background: url(images/bg-monthly-total.png) no-repeat;
  height: 22px;
  padding: 6px 0 2px 430px;
}

#wrapper #main #monthly-total .label {
  background: url(images/label-monthly-total.png) left 2px no-repeat;
  width: 115px;
  height: 20px;
  margin-right: 25px;
  float: left;
}

#wrapper #main #monthly-total .amount {
  color: #333333;
  font-size: 1.125em;
  font-weight: bold;
  line-height: 1em;
  text-align: right;
  width: 83px;
  float: left;
}

/**
 * Result Box
 */

#wrapper #main #result-box h2 {
  background: url(images/bg-result-box-header.png) center top no-repeat;
  height: 46px;
  margin: 0;
  padding-top: 35px;
/*  position: relative;*/
  z-index: 100;
  top: 13px;
}

#wrapper #main #result-box h2 span.image-text {
  background: url(images/h2-estimated-cash-back.png) no-repeat;
  width: 447px;
  height: 14px;
  margin: 0 auto;
}

#wrapper #main #result-box #cards {
/*  padding-left: 5px;*/
}

/*#wrapper #main #result-box #cards .card {
  background: #f1f1f1 url(images/bg-card.png) repeat-x;
  width: 250px;
  height: 405px;
  margin-right: 16px;
  padding-top: 20px;
  float: left;
}*/

#wrapper #main #result-box #cards .special-offer {
  background: url(images/bg-special-offer.gif) right top no-repeat;
  width: 250px;
  height: 20px;
  margin-bottom: -20px;
  position: relative;
  top: -20px;
  z-index: 200;
}

/*#wrapper #main #result-box #cards #infinite h3,
#wrapper #main #result-box #cards #regular h3,
#wrapper #main #result-box #cards #no-fee h3 {
  height: 97px;
  margin: 0 0 15px;
  position: relative;
  left: -9px;
  z-index: 300;
}*/
/*
#wrapper #main #result-box #cards #infinite h3 {
  background: url(images/card-infinite.png) no-repeat;
}

#wrapper #main #result-box #cards #regular h3 {
  background: url(images/card-regular.png) no-repeat;
}

#wrapper #main #result-box #cards #no-fee h3 {
  background: url(images/card-no-fee.png) no-repeat;
}*/

#wrapper #main #result-box #cards .last {
  margin-right: 0 !important;
}

#wrapper #main #result-box #cards dl.rewards {
 /* height: 160px;*/
  margin: 15px 0;
  /*padding: 0 15px 0 25px;*/
}

#wrapper #main #result-box #cards dl.rewards dt,
#wrapper #main #result-box #cards dl.rewards dd {
  margin-bottom: 5px;
}

#wrapper #main #result-box #cards dl.rewards dt {
  background: url(images/bg-percent.gif) no-repeat;
  color: white;
  font-size: 0.9em;
  font-weight: bold;
  line-height: 1em;
  text-align: center;
  width: 33px;
  height: 25px;
  margin-right: 10px;
  padding: 8px 0 0 0;
  float: left;
  clear: left;
}

#wrapper #main #result-box #cards dl.rewards dd {
  width: 165px;
  float: left;
  height: 29px;
  margin-left: 0;
  padding: 4px 0 0;
}

#wrapper #main #result-box #cards dl.rewards .amount {
  background: url(images/bg-reward-amount.png) no-repeat;
  line-height: 1em;
  font-weight: bold;
  text-align: right;
  width: 58px;
  height: 20px;
  margin-right: 8px;
  padding: 4px 8px 2px;
  float: left;
}

#wrapper #main #result-box #cards dl.rewards dd .label {
  font-size: 0.875em;
  font-weight: bold;
  line-height: 1em;
  width: 65px;
  padding-top: 5px;
  float: left;
}

#wrapper #main #result-box #cards dl.rewards dd .overflow-tip {
  background: url(images/icon-help.png) left 5px no-repeat;
  width: 14px;
  height: 19px;
  float: left;
  cursor: pointer;
}

#wrapper #main #result-box #cards dl.rewards dd.grocery-gas .legend {
  background: url(images/icon-gg.png) no-repeat;
  width: 39px;
  height: 21px;
  float: left;
}

#wrapper #main #result-box #cards dl.rewards dd.drug-bills .legend {
  background: url(images/icon-db.png) no-repeat;
  width: 44px;
  height: 21px;
  float: left;
}

#wrapper #main #result-box #cards dl.rewards dd.ggdb .legend {
  background: url(images/icon-ggdb.png) no-repeat;
  width: 81px;
  height: 22px;
  float: left;
}

/*#wrapper #main #result-box #cards .annual-total {
  background: url(images/bg-annual-total.png) no-repeat;
  text-shadow: rgba(50, 50, 50, 0.2) 2px 2px 1px;
  height: 23px;
  padding: 15px 15px 10px 25px;
}*/

#wrapper #main #result-box #cards .annual-total .label {
  color: black;
  font-size: 0.9em;
  line-height: 1em;
  font-weight: bold;
  margin-right: 10px;
  padding: 3px 0 0;
}

#wrapper #main #result-box #cards .annual-total .amount {
  color: black;
  font-size: 1.7em;
  font-weight: bold;
  text-align: right;
  line-height: 2em;
  margin-right:10px;
}

#wrapper #main #result-box #cards .apply-now {
  background: url(images/btn-apply-now.png) no-repeat;
  width: 139px;
  height: 38px;
}


#wrapper #main #result-box #cards .branch-loc {
  background: url(images/btn-branch-loc.png) no-repeat;
  width: 139px;
  height: 38px;
}


#compare-cards-link {
  background: url(images/btn-compare-cards.png) no-repeat;
  width: 256px;
  height: 30px;
  margin: 20px auto 10px;
}

#wrapper #main #footer {
  color: #666666;
  font-size: 0.7em;
  text-align: center;
}

#wrapper #main #footer a {
  font-weight: bold;
}

/**
 * Tooltip
 */

.tooltip {
  background: url(images/bg-tooltip-bottom.png) center bottom no-repeat;
  width: 273px;
  padding-bottom: 28px;
  position: absolute;
  z-index: 500;
  display: none;
}

.tooltip p {
  background: url(images/bg-tooltip-top.png) no-repeat;
  font-size: 0.75em;
  line-height: 1.3em;
  margin: 0;
  padding: 20px 20px 10px;
}

/**
 * Modal Box
 */

#modal-box {
  display: none;
}

#modal-box .backdrop {
  background: black;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1000;
  opacity: 0.6;
  filter: alpha(opacity=60);
}

#modal-box .content-box {
/*  background: url(images/bg-modal-bottom.png) left bottom no-repeat;
  width: 777px;*/
  width:1020px;
  position: absolute;
  z-index: 2000;
  padding-bottom: 18px;
  display: none;
}

#modal-box .content-box .close-button {
  background: url(images/btn-modal-close.png) no-repeat;
  width: 41px;
  height: 41px;
  margin-bottom: -41px;
  position: relative;
  left: 997px;
  top: -19px;
  z-index: 2100;
}

#modal-box .content-box h2 {
  /*background: url(images/bg-modal-top.png) no-repeat;*/
  background-color:#D81E05;
  height: 47px;
  padding: 17px 25px 0;
  margin: 0;
}

#modal-box .content-box .content {
  /*background: url(images/bg-modal-body.png) repeat-y;*/
  background-color:white;
  padding: 0 25px 0 22px;
}

#card-comparison h2 span.image-text {
  background: url(images/h2-comparison-chart.png) no-repeat;
  height: 36px;
}

#card-comparison .column {
  background: url(images/bg-card-comparison-column.png) right top no-repeat;
  color: #666666;
  width: 232px;
  margin-right: 10px;
  padding: 15px 5px 10px 0;
  float: left;
}

#card-comparison .column ul {
  margin: 0;
  padding: 0 5px 0 30px;
}

#card-comparison .column ul li {
  line-height: 0.9em;
  margin-bottom: 16px;
}

#card-comparison .column ul li span {
  color: #333333;
  font-size: 0.75em;
}

#card-comparison .column ul li.last {
  margin-bottom: 0;
}

#card-comparison .column p {
  font-size: 0.8em;
  margin: 10px 0;
  padding-left: 10px;
}

#card-comparison .last {
  background: none !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

#card-comparison .infinite h3,
#card-comparison .regular h3,
#card-comparison .no-fee h3 {
  height: 97px;
  margin: 0 0 20px;
}

#card-comparison .infinite h3 {
  background: url(images/card-infinite.png) center no-repeat;
}

#card-comparison .regular h3 {
  background: url(images/card-regular.png) center no-repeat;
}

#card-comparison .no-fee h3 {
  background: url(images/card-no-fee.png) center no-repeat;
}

#card-comparison .mc h3 {
  background: url(images/card-mastercard.png) center no-repeat;
}

#legal-footnotes h2 {
  padding-top: 21px !important;
  height: 43px !important;
}

#legal-footnotes h2 span.image-text {
  background: url(images/h2-legal-footnotes.png) no-repeat;
  height: 29px;
}

#legal-footnotes .content {
  padding: 25px 35px 15px !important;
}

#legal-footnotes p {
  font-size: 0.6875em;
  line-height: 1.3em;
  margin: 0 0 15px;
}

#legal-footnotes p sup {
  font-size: 0.95em;
  line-height: 1em;
}

/**
 * Misc
 */

.image-text {
  display: block;
}

.image-text span {
  display: none;
}

/**
 * Clear fix (http://www.positioniseverything.net/easyclearing.html)
 */

.clear-block:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.clear-block {
  display: inline-block;
}

/* Hides from IE-mac \*/
* html .clear-block {
  height: 1%;
}
.clear-block {
  display: block;
}
/* End hide from IE-mac */

/* New MC addition styles */

.card-section {
  display:flex;
  padding: 20px 7px 4px 7px;
  margin:10px 0px;
  background-color:#f0f0f0;
}

.mid-section {
  padding-left:10px;
}

.mid-section h3 {
  font-size:1em;
  margin:0;
  padding-top:0px;
  padding-bottom:5px;
}

.mid-section h4 {
  font-size:0.9em;
  margin:0;
  padding-top:0px;
  padding-bottom:5px;
  color:grey;
  line-height: 1px;
}

.speanding-fields {
  display:flex;
}

.amount-total {
  display:flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left:10px;
}

.rewards-bottom {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: flex-end;
}

#wrapper #main #result-box #cards dl.rewards.bottom {
  margin-bottom:0px;
}

.visibility-none {
  visibility: hidden;
}