/* Base */

body,
body *:not(html):not(style):not(br):not(tr):not(code) {
    box-sizing: border-box;
    font-family: {{ theme_font('font_family_body') }}, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    position: relative;
}

body {
    -webkit-text-size-adjust: none;
    background-color: #fefefe;
    color: {{ theme_color('text.primary') }};
    height: 100%;
    line-height: {{ theme_font('line_height_base') }};
    margin: 0;
    padding: 0;
    width: 100% !important;
}

p,
ul,
ol,
blockquote {
    line-height: {{ theme_font('line_height_base') }};
    text-align: left;
}

a {
    color: {{ theme_color('brand') }};
}

a img {
    border: none;
}

/* Typography */

h1 {
    color: {{ theme_color('text.primary') }};
    font-family: {{ theme_font('font_family_heading') }};
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    text-align: left;
    text-transform: {{ theme_font('heading_transform') }};
}

h2 {
    color: {{ theme_color('text.primary') }};
    font-family: {{ theme_font('font_family_heading') }};
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    text-align: left;
    text-transform: {{ theme_font('heading_transform') }};
}

h3 {
    color: {{ theme_color('text.primary') }};
    font-family: {{ theme_font('font_family_heading') }};
    font-size: 14px;
    font-weight: bold;
    margin-top: 0;
    text-align: left;
    text-transform: {{ theme_font('heading_transform') }};
}

p {
    font-size: 16px;
    line-height: 1.5em;
    margin-top: 0;
    text-align: left;
}

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

img {
    max-width: 100%;
}

/* Layout */

.wrapper {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 100%;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    width: 100%;
}

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

/* Header */

.header {
    padding: 25px 0;
    text-align: center;
}

.header a {
    color: {{ theme_color('brand') }};
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}

/* Logo */

.logo {
    height: 56px;
    max-height: 56px;
    width: 80px;
}

/* Body */

.body {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 100%;
    background-color: #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    border-top: 1px solid #f3f4f6;
    margin: 0;
    padding: 0;
    width: 100%;
}

.inner-body {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 570px;
    background-color: #ffffff;
    border-color: #e8e5ef;
    border-radius: 8px;
    border-width: 1px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    margin: 0 auto;
    padding: 0;
    width: 570px;
}

/* Subcopy */

.subcopy {
    border-top: 1px solid #e8e5ef;
    margin-top: 25px;
    padding-top: 25px;
}

.subcopy p {
    font-size: 14px;
    color: {{ theme_color('text.secondary') }};
}

/* Footer */

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

.footer p {
    color: {{ theme_color('text.secondary') }};
    font-size: 12px;
    text-align: center;
}

.footer a {
    color: {{ theme_color('brand') }};
    text-decoration: underline;
}

/* Tables */

.table table {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 100%;
    margin: 30px auto;
    width: 100%;
}

.table th {
    border-bottom: 1px solid #edeff2;
    margin: 0;
    padding-bottom: 8px;
    font-weight: bold;
    color: {{ theme_color('text.primary') }};
}

.table td {
    color: {{ theme_color('text.secondary') }};
    font-size: 15px;
    line-height: 18px;
    margin: 0;
    padding: 10px 0;
}

.content-cell {
    max-width: 100vw;
    padding: 32px;
}

/* Buttons */

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

.button {
    -webkit-text-size-adjust: none;
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
}

.button-blue,
.button-primary {
    background-color: {{ theme_color('brand') }};
    border-bottom: 8px solid {{ theme_color('brand') }};
    border-left: 18px solid {{ theme_color('brand') }};
    border-right: 18px solid {{ theme_color('brand') }};
    border-top: 8px solid {{ theme_color('brand') }};
}

.button-green,
.button-success {
    background-color: #48bb78;
    border-bottom: 8px solid #48bb78;
    border-left: 18px solid #48bb78;
    border-right: 18px solid #48bb78;
    border-top: 8px solid #48bb78;
}

.button-red,
.button-error {
    background-color: #e53e3e;
    border-bottom: 8px solid #e53e3e;
    border-left: 18px solid #e53e3e;
    border-right: 18px solid #e53e3e;
    border-top: 8px solid #e53e3e;
}

/* Panels */

.panel {
    border-left: {{ theme_color('brand') }} solid 4px;
    margin: 21px 0;
}

.panel-content {
    background-color: #f3f4f6;
    color: {{ theme_color('text.primary') }};
    padding: 16px;
}

.panel-content p {
    color: {{ theme_color('text.primary') }};
}

.panel-item {
    padding: 0;
}

.panel-item p:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Utilities */

.break-all {
    word-break: break-all;
}
