/* Account only: contain the inherited page and replace float columns with grid. */
body.woocommerce-account.fkm-native #content.fkm-account-page {
    box-sizing: border-box;
    width: var(--fkm-content-width, calc(100% - 80px));
    max-width: var(--fkm-content-max, 1260px);
    min-width: 0;
    margin: 0 auto;
    padding: 48px 0 64px;
    min-height: 55vh;
}
body.woocommerce-account #content.fkm-account-page > h1 {
    margin: 0 0 28px;
    color: #123b60;
    font: 700 clamp(28px, 3vw, 40px)/1.2 Roboto, Arial, sans-serif;
    letter-spacing: -.025em;
}
body.woocommerce-account.logged-in #content.fkm-account-page > .woocommerce {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
body.woocommerce-account #content.fkm-account-page .woocommerce-MyAccount-navigation,
body.woocommerce-account #content.fkm-account-page .woocommerce-MyAccount-content {
    box-sizing: border-box;
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
}
body.woocommerce-account #content.fkm-account-page .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
body.woocommerce-account #content.fkm-account-page .woocommerce-MyAccount-navigation li {
    margin: 0;
}
body.woocommerce-account #content.fkm-account-page .woocommerce-MyAccount-content {
    padding: 28px;
    overflow-wrap: anywhere;
}
body.woocommerce-account.logged-in #content.fkm-account-page > .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-account.logged-in #content.fkm-account-page > .woocommerce > .woocommerce-message,
body.woocommerce-account.logged-in #content.fkm-account-page > .woocommerce > .woocommerce-info,
body.woocommerce-account.logged-in #content.fkm-account-page > .woocommerce > .woocommerce-error {
    grid-column: 1 / -1;
    margin: 0;
}
body.woocommerce-account #content.fkm-account-page .woocommerce-notices-wrapper:empty {
    display: none;
}
body.woocommerce-account.logged-in #content.fkm-account-page > .woocommerce::before,
body.woocommerce-account.logged-in #content.fkm-account-page > .woocommerce::after {
    display: none;
}
@media (max-width: 900px) {
    body.woocommerce-account.logged-in #content.fkm-account-page > .woocommerce {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}
@media (max-width: 760px) {
    body.woocommerce-account.fkm-native #content.fkm-account-page {
        width: var(--fkm-content-width, calc(100% - 36px));
        padding: 30px 0 42px;
    }
    body.woocommerce-account #content.fkm-account-page .woocommerce-MyAccount-content {
        padding: 22px 18px;
    }
}

/* R3: WooCommerce password visibility, inside the input rather than below it. */
body.woocommerce-account #content.fkm-account-page .password-input {
    display: block; position: relative; width: 100%;
}
body.woocommerce-account #content.fkm-account-page .password-input > input.input-text {
    box-sizing: border-box; padding-right: 58px; margin: 0;
}
body.woocommerce-account #content.fkm-account-page .password-input > button.show-password-input {
    position: absolute; top: 50%; right: 7px; transform: translateY(-50%);
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    display: grid; place-items: center; padding: 0; margin: 0;
    border: 0; border-radius: 8px; background: transparent; box-shadow: none;
    color: #527795; cursor: pointer; font-size: 0; line-height: 1;
}
body.woocommerce-account #content.fkm-account-page .password-input > button.show-password-input::before { content: none; }
body.woocommerce-account #content.fkm-account-page .password-input > button.show-password-input::after {
    content: ''; display: block; width: 22px; height: 22px; margin: 0;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23527795' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
body.woocommerce-account #content.fkm-account-page .password-input > button.show-password-input.display-password::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23527795' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 10.7a2 2 0 0 0 2.7 2.7M9 5.4A10 10 0 0 1 12 5c6.5 0 10 7 10 7a18 18 0 0 1-3 3.8M6.3 6.3C3.5 8.3 2 12 2 12s3.5 7 10 7a10.7 10.7 0 0 0 4.2-.9'/%3E%3C/svg%3E");
}
body.woocommerce-account #content.fkm-account-page .password-input > button.show-password-input:hover { background-color: #edf5fc; }
body.woocommerce-account #content.fkm-account-page .password-input > button.show-password-input:focus-visible { outline: 2px solid #0878d4; outline-offset: -2px; }

/* R9: Orders — separate WC verification and empty-state notices.
   Presentation only; retain WC's original links, nonce, text and role. */
body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0 0 20px;
    padding: 22px 24px;
    border: 1px solid #d6e5f2;
    border-radius: 12px;
    background: #f0f6fc;
    color: #153b60;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    box-shadow: none;
}
body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info:last-child {
    margin-bottom: 0;
}
body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info::before,
body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info::after {
    content: none;
    display: none;
}
body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info > a.button.wc-forward {
    order: 1;
    align-self: flex-start;
    float: none;
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 11px 20px;
    white-space: normal;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}
/* The WooCommerce empty-order CTA is a secondary action. */
body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info:has(> a.woocommerce-Button.wc-forward) {
    background: #fff;
}
body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info > a.woocommerce-Button.wc-forward {
    background: #edf5fc;
    color: #075da8;
    box-shadow: none;
}
body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info > a.woocommerce-Button.wc-forward:hover {
    background: #dcecfb;
    color: #064d8a;
}
@media (max-width: 760px) {
    body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info {
        padding: 18px 16px;
        gap: 12px;
        margin-bottom: 16px;
    }
    body.woocommerce-account.woocommerce-orders #content.fkm-account-page .woocommerce-MyAccount-content > .woocommerce-info > a.button.wc-forward {
        align-self: stretch;
        width: 100%;
        padding-inline: 12px;
    }
}
