/* HHP's measured pre-payment controls, preserving native Woo authentication. */
/* The reference's account buttons synthesize weight 600 from its regular Oswald face. */
@font-face {
    font-family: 'MGS Account Oswald';
    src: url('../fonts/oswald-regular-4.102.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
body.mgs-site #page .mgs-account-page form :is(.woocommerce-form-login__submit,.woocommerce-form-register__submit,.woocommerce-Button) {
    font-family: 'MGS Account Oswald', Oswald, Arial, sans-serif !important;
}
body.mgs-site :is(.mgs-account-page,.mgs-authenticated-account) .show-password-input {
    top: 0 !important;
    right: 0 !important;
    width: 23.125px;
    height: 100%;
    padding: 2px !important;
    transform: none !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #111;
    line-height: 27.506px;
}
body.mgs-site :is(.mgs-account-page,.mgs-authenticated-account) .show-password-input::before {
    content: none !important;
    display: none !important;
}
body.mgs-site :is(.mgs-account-page,.mgs-authenticated-account) .show-password-input::after {
    content: "" !important;
    display: inline-block !important;
    width: 19.125px;
    height: 17px;
    margin: 0;
    background: currentColor;
    -webkit-mask: url('../icons/eye.svg') center / contain no-repeat;
    mask: url('../icons/eye.svg') center / contain no-repeat;
}
body.mgs-site :is(.mgs-account-page,.mgs-authenticated-account) .show-password-input:focus-visible {
    outline: 2px solid #1379c4;
    outline-offset: 2px;
}
body.mgs-site .mgs-account-page form .woocommerce-form-login__submit {
    padding-left: 0 !important;
}
body.mgs-site .mgs-account-page .lost_password {
    margin: 24.0678px 0 55px !important;
}
body.mgs-site .mgs-account-page #customer_login > .u-column1 {
    margin-bottom: 55px;
}
body.mgs-site #page .mgs-resource-archive .mgs-resource-search input[type="search"] {
    border-radius: 5px !important;
}
body.mgs-site #page .mgs-resource-archive .mgs-resource-search button {
    width: 85.234375px;
    border-radius: 4px !important;
    padding: 9.88875px 22.652px;
    font: 600 16px/25.888px Oswald, Arial, sans-serif;
}
/* Match the account notice box in each native outcome, including rejected links. */
body.mgs-site .mgs-account-page :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) {
    border: 0;
    border-inline-start: .6180469716em solid rgb(0 0 0 / 15%);
    border-radius: 2px;
    margin-bottom: 2.617924em;
}
body.mgs-site .mgs-account-page form.woocommerce-ResetPassword .woocommerce-Button {
    margin-bottom: 15px;
}
body.mgs-site #page .mgs-account-page .woocommerce-ResetPassword:has(#user_login) .woocommerce-Button {
    padding-inline: 19.765625px !important;
}
body.mgs-site .mgs-article-pagination {
    width: fit-content;
    max-width: 100%;
    margin: 1em 0 0;
    padding: 2.617924em 0;
    border: 1px solid rgb(0 0 0 / 5%);
    border-width: 1px 0;
    text-align: start;
}
body.mgs-site .mgs-article-pagination .page-numbers:not(.dots) {
    padding: 14px 20px;
    border: 0;
    border-radius: 2px;
}
body.mgs-site .mgs-article-pagination .current { background: #003087; color: white; }
body.mgs-site .mgs-article-pagination a:focus-visible { outline: 2px solid #003087; outline-offset: 2px; }
/* On the error page the 200px frame surrounds an inline link. */
body.mgs-site #page .mgs-error-page .mgs-page-title {
    margin-bottom: 0 !important;
    letter-spacing: -1px;
}
body.mgs-site #page .mgs-error-actions {
    column-gap: 0;
    margin-block-start: 3rem;
    padding-block: .5rem 2.41575rem;
}
body.mgs-site #page .mgs-error-categories { margin-top: 2.617924em; }
body.mgs-site .mgs-not-found-actions .mgs-404-action {
    justify-self: center;
    width: 200px;
    max-width: 100%;
    height: 42px;
    margin: 0;
    padding: 5px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    outline: 2px solid #ccc;
    outline-offset: 6px;
    background: #003087;
    color: white;
    font: 400 16px/24px Oswald, Arial, sans-serif;
    text-align: center;
}
body.mgs-site .mgs-404-action > a {
    display: inline;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: none;
}
body.mgs-site .mgs-404-action > a:focus-visible { outline: 2px solid currentColor; }
body.mgs-site .mgs-not-found-actions .mgs-icon {
    width: 1em;
    height: 1em;
    margin: 4px 4px 0 0;
    vertical-align: text-top;
}
body.mgs-site .mgs-404-action a[href$="/get-a-quote/"] > .mgs-icon { width: .5625em; }
body.mgs-site .mgs-error-category-list li {
    position: relative;
    padding-inline-start: 1.618em;
    margin-bottom: 1em;
    line-height: 1.41576;
}
body.mgs-site .mgs-error-category-list li > svg { position: absolute; inset-inline-start: 0; top: .15em; }
body.mgs-site .mgs-error-category-list li > a { display: inline; overflow-wrap: anywhere; }
body.mgs-site .mgs-error-category-list .mgs-category-count { float: right; }
@media (min-width: 768px) {
    body.mgs-site .mgs-account-page .woocommerce-ResetPassword:has(#password_2) :is(.form-row-first,.form-row-last) {
        width: 47.0588235294%;
        margin-bottom: 24.0678px;
    }
    body.mgs-site .mgs-account-page .woocommerce-ResetPassword:has(#password_2) .form-row-first { float: left; }
    body.mgs-site .mgs-account-page .woocommerce-ResetPassword:has(#password_2) .form-row-last { float: right; margin-inline-start: 0; }
}
@media (max-width: 767px) {
    body.mgs-site #page .mgs-error-actions { padding-block-end: 2rem; }
    body.mgs-site .mgs-account-page .woocommerce-ResetPassword:has(#password_2) :is(.form-row-first,.form-row-last) {
        width: calc(100% + 10px);
        margin-bottom: 16px;
    }
    body.mgs-site .mgs-account-page .lost_password {
        margin: 16px 0 27.5px !important;
    }
    body.mgs-site .mgs-account-page #customer_login > .u-column1 {
        margin-bottom: 27.5px;
    }
}
