/* Base ------------------------------ */

@import url("https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap");

body {
    width: 100% !important;
    height: 100%;
    margin: 0;
    color: #0f172a;
    -webkit-text-size-adjust: none;
}

a[href] {
    color: #2563eb;
}

a img {
    border: none;
}

td {
    word-break: break-word;
}

.preheader {
    display: none !important;
    visibility: hidden;
    mso-hide: all;
    font-size: 1px;
    line-height: 1px;
    max-height: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
}

/* Type ------------------------------ */

body,
td,
th {
    font-family: "Nunito Sans", Helvetica, Arial, sans-serif;
}

h1 {
    margin-top: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: bold;
    text-align: left;
}

h2 {
    margin-top: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
}

td,
th {
    font-size: 16px;
}

p,
ul,
ol,
blockquote {
    margin: 0.4em 0 1.1875em;
    font-size: 16px;
    line-height: 1.625;
}

p.sub {
    font-size: 13px;
}

/* Utilities ------------------------------ */

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

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

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

p {
    color: #0f172a;
}

.email-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    -premailer-width: 100%;
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
}

.email-content {
    width: 100%;
    margin: 0;
    padding: 0;
    -premailer-width: 100%;
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
}

/* Buttons ------------------------------ */

a.button {
    background-color: #334155;
    border-top: 10px solid #334155;
    border-right: 18px solid #334155;
    border-bottom: 10px solid #334155;
    border-left: 18px solid #334155;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
    -webkit-text-size-adjust: none;
    box-sizing: border-box;
}

a.button--blue {
    color: #fff;
    background-color: #2563eb;
    border-top: 10px solid #2563eb;
    border-right: 18px solid #2563eb;
    border-bottom: 10px solid #2563eb;
    border-left: 18px solid #2563eb;
}

a.button--green {
    color: #fff;
    background-color: #22c55e;
    border-top: 10px solid #22c55e;
    border-right: 18px solid #22c55e;
    border-bottom: 10px solid #22c55e;
    border-left: 18px solid #22c55e;
}

a.button--red {
    color: #fff;
    background-color: #ef4444;
    border-top: 10px solid #ef4444;
    border-right: 18px solid #ef4444;
    border-bottom: 10px solid #ef4444;
    border-left: 18px solid #ef4444;
}

@media only screen and (max-width: 500px) {
    .button {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Attribute list ------------------------------ */

.attributes {
    margin: 0 0 21px;
}

.attributes_content {
    background-color: #f1f5f9;
    padding: 16px;
}

.attributes_item {
    padding: 0;
}

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

.email-masthead {
    padding: 25px 0;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.email-masthead_logo {
    width: 94px;
}

.email-masthead_name {
    font-size: 16px;
    font-weight: bold;
    color: #a8aaaf;
    text-decoration: none;
    text-shadow: 0 1px 0 white;
}

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

.email-body {
    width: 100%;
    margin: 0;
    padding: 0;
    -premailer-width: 100%;
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
}

.email-body_inner {
    width: 570px;
    margin: 0 auto;
    padding: 0;
    -premailer-width: 570px;
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    background-color: #ffffff;
}

.email-footer {
    width: 570px;
    margin: 0 auto;
    padding: 0;
    -premailer-width: 570px;
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    text-align: center;
}

.email-footer p {
    color: #64748b;
}

.body-action {
    width: 100%;
    margin: 30px auto;
    padding: 0;
    text-align: center;
    -premailer-width: 100%;
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
}

.body-sub {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #cbd5e1;
}

.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: #333333 !important;
        color: #f1f5f9 !important;
    }

    a {
        color: #bfdbfe;
    }

    p,
    ul,
    ol,
    blockquote,
    h1,
    h2,
    h3 {
        color: #f1f5f9 !important;
    }

    .attributes_content {
        background-color: #334155 !important;
    }

    .email-masthead_name {
        text-shadow: none !important;
    }
}
