/* Base */

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

body {
    -webkit-text-size-adjust: none;
    background-color: #eef1f8;
    color: #384056;
    height: 100%;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: 100% !important;
}

p,
ul,
ol,
blockquote {
    line-height: 1.6;
    text-align: start;
}

a {
    color: #ff7a35;
    font-weight: 600;
}

a img {
    border: none;
}

/* Typography */

h1 {
    color: #0b2754;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 4px;
    text-align: start;
}

h2 {
    color: #0b2754;
    font-size: 17px;
    font-weight: 700;
    margin-top: 0;
    text-align: start;
}

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

p {
    font-size: 15.5px;
    line-height: 1.65em;
    margin-top: 0;
    color: #4b5468;
    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: #eef1f8;
    background-image: linear-gradient(180deg, #e4e9f6 0%, #eef1f8 220px);
    margin: 0;
    padding: 40px 16px;
    width: 100%;
}

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

/* Header */

.header {
    padding: 36px 0 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 16px 16px 0 0;
}

.header a {
    color: #0b2754;
    font-size: 19px;
    font-weight: bold;
    text-decoration: none;
}

/* Logo */

.logo {
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
    max-height: 36px;
    width: auto;
    max-width: 200px;
}

/* Body */

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

.inner-body {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 600px;
    background-color: #ffffff;
    border-color: #e7e9f2;
    border-radius: 0 0 16px 16px;
    border-width: 1px;
    box-shadow: 0 16px 40px -12px rgba(11, 39, 84, 0.18), 0 2px 8px rgba(11, 39, 84, 0.06);
    margin: 0 auto;
    padding: 0;
    width: 600px;
}

.inner-body a {
    word-break: break-all;
}

/* Subcopy */

.subcopy {
    border-top: 1px solid #edeff6;
    margin-top: 28px;
    padding-top: 22px;
}

.subcopy table td {
    background-color: #f7f9fd;
    border-radius: 10px;
    padding: 14px 16px;
}

.subcopy p {
    font-size: 13px;
    color: #8790a6;
}

/* Footer */

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

.footer p {
    color: #98a1b7;
    font-size: 12.5px;
    line-height: 1.7;
    text-align: center;
}

.footer a {
    color: #7e88a3;
    font-weight: 400;
    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 #e7e9f2;
    color: #0b2754;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    padding-bottom: 8px;
    text-align: left;
}

.table td {
    color: #4b5468;
    font-size: 15px;
    line-height: 18px;
    margin: 0;
    padding: 12px 0;
}

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

/* Buttons */

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

.button {
    -webkit-text-size-adjust: none;
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px -6px rgba(255, 122, 53, 0.55);
}

.button-blue,
.button-primary {
    background-color: #ff7a35;
    background-image: linear-gradient(135deg, #ff8c4d, #f8672a);
    border-bottom: 14px solid #ff7a35;
    border-left: 30px solid #ff7a35;
    border-right: 30px solid #ff7a35;
    border-top: 14px solid #ff7a35;
}

.button-green,
.button-success {
    background-color: #16a34a;
    border-bottom: 14px solid #16a34a;
    border-left: 30px solid #16a34a;
    border-right: 30px solid #16a34a;
    border-top: 14px solid #16a34a;
}

.button-red,
.button-error {
    background-color: #dc2626;
    border-bottom: 14px solid #dc2626;
    border-left: 30px solid #dc2626;
    border-right: 30px solid #dc2626;
    border-top: 14px solid #dc2626;
}

/* Panels */

.panel {
    border-left: #ff7a35 solid 3px;
    background-color: #f7f9fd;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
}

.panel-content {
    background-color: transparent;
    color: #4b5468;
    padding: 16px 20px;
}

.panel-content p {
    color: #4b5468;
}

.panel-item {
    padding: 0;
}

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

/* Utilities */

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

/* Dark mode */

@media (prefers-color-scheme: dark) {
    body,
    .wrapper {
        background-color: #0f1420 !important;
        background-image: none !important;
        color: #c7cede !important;
    }

    .header {
        background-color: #161c2b !important;
    }

    .inner-body {
        background-color: #161c2b !important;
        border-color: #232a3d !important;
    }

    h1,
    h2,
    h3,
    .header a {
        color: #f4f6fb !important;
    }

    p,
    .table td {
        color: #b7bfd3 !important;
    }

    .subcopy {
        border-top-color: #232a3d !important;
    }

    .subcopy table td {
        background-color: #1c2333 !important;
    }

    .panel {
        background-color: #1c2333 !important;
    }

    .panel-content p {
        color: #b7bfd3 !important;
    }

    .footer p {
        color: #6b7488 !important;
    }
}
