/* Login and registration must not inherit the logged-in account navigation grid.
   The grid has a fixed 245px first track; when WooCommerce inserts a notice
   before #customer_login, the form otherwise lands in the narrow track. */
body.woocommerce-account .et_pb_text_inner > .woocommerce:has(#customer_login) {
    display: block !important;
    width: 100% !important;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}
body.woocommerce-account .et_pb_text_inner > .woocommerce:has(#customer_login) > #customer_login {
    width: 100%;
    min-width: 0;
}

/* ============================================================
   OlstaCORP | WooCommerce Account Notices
   Login, registration, account errors, success and information
   ============================================================ */
body.woocommerce-account .woocommerce-notices-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
    clear: both;
}
body.woocommerce-account .woocommerce-notices-wrapper:empty {
    display: none;
    margin: 0;
}
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px !important;
    padding: 18px 20px 18px 52px !important;
    border: 1px solid #f1c2c2 !important;
    border-left: 4px solid #cf3d42 !important;
    border-radius: 10px !important;
    background: #fff5f5 !important;
    color: #7b2428 !important;
    box-shadow: 0 2px 9px rgba(20, 35, 50, .045) !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.6 !important;
    list-style: none !important;
    text-align: left !important;
}
/* Keep full padding shorthand more specific than saved account CSS overrides.
   The icon is positioned at 18px, with a 52px left text inset. */
body.woocommerce-account .woocommerce .woocommerce-error,
body.woocommerce-account .woocommerce .woocommerce-message,
body.woocommerce-account .woocommerce .woocommerce-info {
    padding: 18px 20px 18px 52px !important;
}
body.woocommerce-account .woocommerce .woocommerce-error::before,
body.woocommerce-account .woocommerce .woocommerce-message::before,
body.woocommerce-account .woocommerce .woocommerce-info::before {
    left: 18px !important;
}
body.woocommerce-account .woocommerce-error li,
body.woocommerce-account .woocommerce-message li,
body.woocommerce-account .woocommerce-info li {
    padding: 0 !important;
    margin: 0 0 5px !important;
    list-style: none !important;
    color: inherit !important;
}
body.woocommerce-account .woocommerce-error li:last-child,
body.woocommerce-account .woocommerce-message li:last-child,
body.woocommerce-account .woocommerce-info li:last-child { margin-bottom: 0 !important; }
body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before {
    position: absolute !important;
    display: block !important;
    top: 17px !important;
    left: 18px !important;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
    text-align: center !important;
    border-radius: 50%;
    content: "!" !important;
    color: #fff !important;
    background: #cf3d42 !important;
}
body.woocommerce-account .woocommerce-message {
    border-color: #b5dfc4 !important;
    border-left-color: #258b52 !important;
    background: #f1fbf5 !important;
    color: #185b36 !important;
}
body.woocommerce-account .woocommerce-message::before {
    content: "✓" !important;
    background: #258b52 !important;
    font-size: 15px !important;
}
body.woocommerce-account .woocommerce-info {
    border-color: #c4d8ef !important;
    border-left-color: #2e70ad !important;
    background: #f3f8fe !important;
    color: #24517a !important;
}
body.woocommerce-account .woocommerce-info::before {
    content: "i" !important;
    background: #2e70ad !important;
    font-family: Georgia, serif !important;
}
body.woocommerce-account .woocommerce-error a,
body.woocommerce-account .woocommerce-message a,
body.woocommerce-account .woocommerce-info a { color: inherit !important; text-decoration: underline; }
@media (max-width: 767px) {
    body.woocommerce-account .woocommerce-error,
    body.woocommerce-account .woocommerce-message,
    body.woocommerce-account .woocommerce-info { padding: 15px 16px 15px 48px !important; font-size: 13px !important; }
    body.woocommerce-account .woocommerce-error::before,
    body.woocommerce-account .woocommerce-message::before,
    body.woocommerce-account .woocommerce-info::before { left: 16px !important; top: 15px !important; }
}

@media (max-width: 767px) {
    body.woocommerce-account .woocommerce .woocommerce-error,
    body.woocommerce-account .woocommerce .woocommerce-message,
    body.woocommerce-account .woocommerce .woocommerce-info {
        padding: 15px 16px 15px 48px !important;
    }
    body.woocommerce-account .woocommerce .woocommerce-error::before,
    body.woocommerce-account .woocommerce .woocommerce-message::before,
    body.woocommerce-account .woocommerce .woocommerce-info::before {
        left: 16px !important;
    }
}

/* Notice padding: match legacy page-ID selectors without hardcoding a site's page ID.
   The migration above updates the saved rule; these selectors also protect the
   live layout when a saved stylesheet has not yet been migrated. */
body.woocommerce-account #post-7 .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account #post-7 .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account #post-7 .woocommerce-MyAccount-content .woocommerce-error,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-error {
    padding: 18px 20px 18px 52px !important;
}
