@import 'scss/imports';

// --------------------------------
// Layout specific styles
// --------------------------------

body {
  background-color: $c-gray-50;
  color: $c-slate-500;
}
p {
  color: $c-slate-500;
}

.email-wrapper {
  @include table-scale();
  background-color: $c-gray-50;
}
.email-content {
  @include table-scale();
}


/* Masthead ----------------------- */

.email-masthead {
  padding: 25px 0;
  text-align: center;

  &_logo {
    width: 94px;
  }
  &_name {
    font-size: 16px;
    font-weight: bold;
    color: $c-slate-200;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255,255,255,1);
  }
}


/* Body ------------------------------ */

.email-body {
  @include table-scale();

  &_inner {
    @include table-scale($width: 570px, $margin: 0 auto);
    background-color: #FFFFFF;
  }
}

.email-footer {
  @include table-scale($width: 570px, $margin: 0 auto);
  text-align: center;

  p {
    color: $c-slate-200;
  }
}

.body-action {
  @include table-scale($margin: 30px auto);
  text-align: center;
}
.body-sub {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid $c-slate-50;
}
.content-cell {
  padding: 45px;
}


/*Media Queries ------------------------------ */

@media only screen and (max-width: 600px) {
  .email-body_inner,
  .email-footer {
    width: 100% !important;
  }
}

@media (prefers-color-scheme: dark) {
  body,
  .email-body,
  .email-body_inner,
  .email-content,
  .email-wrapper,
  .email-masthead,
  .email-footer {
    background-color: $c-gray-900 !important;
    color: #FFF !important;
  }
  p,
  ul,
  ol,
  blockquote,
  h1,
  h2,
  h3,
  span,
  .purchase_item {
    color: #FFF !important;
  }

  .attributes_content,
  .discount {
    background-color: #222 !important;
  }
  .email-masthead_name {
    text-shadow: none !important;
  }
}

:root {
  color-scheme: light dark;
  supported-color-schemes: light dark;
}
