@import "../../sass/coke-bsna.module.scss";

@mixin forXsDownScreen {
  @media only screen and (max-width: $xs) {
    @content;
  }
}

$maxWidth: 600px;
$spacer: 16px;
$spacerLarge: 32px;
$fontSizeBase: 16px;
$fontSizeMedium: $fontSizeBase;
$lineHeightMedium: 26px;

$h1FontSize: 34px;
$h1LineHeight: 44px;

$h2FontSize: 30px;
$h2LineHeight: 40px;

$h3FontSize: 26px;
$h3LineHeight: 36px;

$h4FontSize: 22px;
$h4LineHeight: 32px;

$h5FontSize: 18px;
$h5LineHeight: 28px;

$h6FontSize: 14px;
$h6LineHeight: 24px;

img {
  max-width: 100%;
  -ms-interpolation-mode: bicubic;
}

body {
  -webkit-font-smoothing: subpixel-antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: $fontFamilyBase;
  font-size: $fontSizeMedium;
  line-height: $lineHeightMedium;
  background-color: $grayLightest;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  * {
    margin: 0;
    font-family: $fontFamilyBase;
    font-size: $fontSizeMedium;
    box-sizing: border-box;
  }
}

table {
  border-collapse: collapse;
  mso-table-lspace: 0pt;
  mso-table-rspace: 0pt;
  margin: 0;
  padding: 0;
}

table td {
  border-collapse: collapse;
  vertical-align: top;
}

@mixin mobileBlock {
  @include forXsDownScreen {
    display: block !important;
  }
}

.mobileBlock {
  @include mobileBlock;
}

.wrapper {
  background-color: $grayLightest;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  @include mobileBlock;
}

.container {
  max-width: $maxWidth;
  margin: 0 auto;
  padding: $spacer;
  clear: both;

  @include forXsDownScreen {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

.header {
  background-color: $black;

  .content {
    padding: $spacer;

    @include forXsDownScreen {
      padding: $spacer !important;
    }
  }
}

.logo {
  margin: 0;

  img {
    font-size: $h1FontSize;
    font-weight: $fontWeightLight;
    line-height: $h1LineHeight;
    color: $white;
    margin: 0;
    padding: 0;
    max-width: 260px;
    width: 260px;
    height: auto;
    @include forXsDownScreen {
      font-size: $h3FontSize !important;
      font-weight: $fontWeightLight !important;
      line-height: $h3LineHeight !important;
      max-width: 175px !important;
      width: 175px !important;
    }
  }
}

.main {
  background-color: $white;
  border-left: $borderBase $grayLight;
  border-right: $borderBase $grayLight;
  border-bottom: $borderThick $gray;
}

.primaryColor {
  color: $primaryColor;
}

.content {
  padding: $spacerLarge;

  @include forXsDownScreen {
    padding: $spacer !important;
  }
}

.cell {
  padding: 0 0 $spacerLarge;

  @include forXsDownScreen {
    padding: 0 0 $spacer !important;
  }
}

.cellLast {
  padding: 0 !important;
}

.footer {
  width: 100%;
  clear: both;
  color: $grayDark;

  p,
  a,
  td {
    font-size: 12px;
    color: $grayDark;
    text-align: center;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: $fontFamilyBase;
  font-weight: $fontWeightLighter;
  -webkit-font-smoothing: antialiased;
  color: $grayDarkest;
  margin: $spacerLarge 0 0;
  &:first-child {
    margin-top: 0;
  }

  @include forXsDownScreen {
    margin: $spacer 0 0 !important;

    &:first-child {
      margin-top: 0 !important;
    }
  }
}

h1 {
  font-size: $h1FontSize;
  line-height: $h1LineHeight;
  @include forXsDownScreen {
    font-size: $h1FontSize * 0.875 !important;
  }
}

h2 {
  font-size: $h2FontSize;
  line-height: $h2LineHeight;
  @include forXsDownScreen {
    font-size: $h2FontSize * 0.875 !important;
  }
}

h3 {
  font-size: $h3FontSize;
  font-weight: $fontWeightLight;
  line-height: $h3LineHeight;
  @include forXsDownScreen {
    font-size: $h3FontSize * 0.875 !important;
  }
}

h4 {
  font-size: $h4FontSize;
  font-weight: $fontWeightMedium;
  line-height: $h4LineHeight;
  @include forXsDownScreen {
    font-size: $h4FontSize * 0.875 !important;
  }
}

h5 {
  font-size: $h5FontSize;
  font-weight: $fontWeightBold;
  line-height: $h5LineHeight;
  @include forXsDownScreen {
    font-size: $h5FontSize * 0.875 !important;
  }
}

h6 {
  font-size: $h6FontSize;
  font-weight: $fontWeightBolder;
  line-height: $h6LineHeight;
  text-transform: uppercase;
}

p {
  font-weight: $fontWeightMedium;
  margin: $spacer 0 0;
  padding: 0;

  &:first-child {
    margin: 0;
  }

  h1 + &,
  h2 + &,
  h3 + &,
  h4 + &,
  h5 + & {
    margin: $spacer * 0.5 0 0;
  }

  h6 + & {
    margin: $spacer * 0.25 0 0;
  }

  p + & {
    margin: $spacer * 0.5 0 0;
  }
}

ul,
ol {
  font-weight: $fontWeightMedium;
  margin: $spacer 0 0;
  padding: 0 0 0 $spacer;

  &:first-child {
    margin: 0;
  }
}

ul li,
ol li {
  margin: 0 0 $spacer * 0.5;
  padding: 0;
  list-style-position: outside;

  &:last-child {
    margin: 0;
  }
}

a {
  color: $infoColor;
  cursor: pointer;
  text-decoration: underline;
  &:hover {
    color: $infoColorDark;
  }
}

.buttonPrimary {
  background-color: $primaryColor;
  border: 0;
  border-bottom: $borderThick $primaryColorDark;
  color: $white;
  cursor: pointer;
  display: inline-block;
  width: auto;
  padding: $spacer;
  font-size: $fontSizeBase;
  font-weight: $fontWeightBold;
  line-height: $lineHeightMedium;
  text-align: center;
  text-decoration: none;
  &:hover {
    color: $white;
  }
}

.textCenter {
  text-align: center;
}

.alert {
  font-weight: $fontWeightBold;
  padding: $spacer $spacerLarge;
  text-align: center;
  background-color: $grayLighter;
  border-left: $borderBase $grayLight;
  border-right: $borderBase $grayLight;
  border-bottom: $borderThick $gray;
  color: $grayDarkest;

  @include forXsDownScreen {
    padding: $spacer !important;
  }
}

.alert a {
  color: $white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.alertWarning {
  background-color: $warningColor;
  border-left: 0;
  border-right: 0;
  border-bottom: $borderThick $warningColorDark;
  color: $white;
}

.alertError {
  background-color: $errorColor;
  border-left: 0;
  border-right: 0;
  border-bottom: $borderThick $errorColorDark;
  color: $white;
}

.alertSuccess {
  background-color: $successColor;
  border-left: 0;
  border-right: 0;
  border-bottom: $borderThick $successColorDark;
  color: $white;
}

.alertInfo {
  background-color: $infoColor;
  border-left: 0;
  border-right: 0;
  border-bottom: $borderThick $infoColorDark;
  color: $white;
}

// email client fixes
// outlook.com
.ExternalClass {
  width: 100%;
}

.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
  line-height: 100%;
}
