body.woocommerce-checkout {
    background: #fff;
    color: var(--iw-checkout-text, #171717);
}

body.iw-customer-surface {
    background: var(--iw-checkout-surface, #f6f6f3);
    color: var(--iw-checkout-text, #171717);
}

body.iw-customer-surface .wp-site-blocks > header.wp-block-template-part {
    border-bottom: 1px solid var(--iw-checkout-border, #d9d9d9);
    background: #fff;
}

body.iw-customer-surface .wp-site-blocks > header.wp-block-template-part a {
    color: var(--iw-checkout-text, #171717);
    text-underline-offset: 4px;
}

body.iw-customer-surface .wp-site-blocks > header.wp-block-template-part a[href*="/sample-page/"],
body.iw-customer-surface .wp-site-blocks > header.wp-block-template-part a[href*="/checkout/"] {
    display: none;
}

body.iw-customer-surface .wp-site-blocks > footer.wp-block-template-part {
    display: none;
}

body.iw-customer-surface:not(.woocommerce-checkout) main {
    box-sizing: border-box;
    width: min(100%, 1180px);
    margin-inline: auto;
    padding: clamp(36px, 6vw, 80px) clamp(18px, 4vw, 48px);
}

body.iw-customer-surface:not(.woocommerce-checkout) main h1 {
    color: var(--iw-checkout-text, #171717);
    font-family: var(--iw-checkout-font, Arial, Helvetica, sans-serif);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 500;
    letter-spacing: 0;
}

body.iw-customer-surface:not(.woocommerce-checkout) :where(button, .button, .wp-element-button) {
    border-radius: 2px;
}

/*
 * Twenty Twenty-Five expands alignfull content past the root padding. Keep that
 * treatment on editorial pages, but neutralize it inside the Woo account shell
 * so the private customer UI owns its responsive width.
 */
body.woocommerce-account main :where(.alignfull) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

body.woocommerce-account main :where(.entry-content, .woocommerce),
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(p, address, dd, a, strong, code),
body.woocommerce-account .iw-account-order-help {
    overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(input, select, textarea, fieldset),
body.woocommerce-account .woocommerce-address-fields,
body.woocommerce-account .woocommerce-EditAccountForm,
body.woocommerce-account .woocommerce-orders-table {
    box-sizing: border-box;
    max-width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
    select,
    textarea
) {
    width: 100%;
}

body.woocommerce-account .woocommerce-orders-table {
    width: 100%;
}

body.woocommerce-account .woocommerce-orders-table :where(th, td) {
    overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce-table--order-details {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

body.woocommerce-account .woocommerce-table--order-details :where(th, td) {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.woocommerce-checkout .wp-site-blocks > header.wp-block-template-part {
    display: none;
}

body.woocommerce-checkout main.wp-block-group,
body.woocommerce-checkout main > .wp-block-group {
    padding-inline: 0;
}

.iw-checkout-shell {
    box-sizing: border-box;
    width: min(100%, 1440px);
    margin-inline: auto;
    padding: 0 clamp(24px, 4vw, 64px) 48px;
    color: var(--iw-checkout-text, #171717);
    font-family: var(--iw-checkout-font, Inter, system-ui, sans-serif);
}

.iw-checkout-shell *,
.iw-checkout-shell *::before,
.iw-checkout-shell *::after {
    box-sizing: border-box;
}

.iw-checkout-header {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    min-height: 92px;
    border-bottom: 1px solid var(--iw-checkout-border, #d9d9d9);
    gap: 24px;
}

.iw-checkout-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

.iw-checkout-brand__logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 48px;
}

.iw-checkout-brand__name {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.iw-checkout-heading {
    text-align: center;
}

.iw-checkout-heading p {
    margin: 0 0 2px;
    color: var(--iw-checkout-muted, #5f6368);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.iw-checkout-heading h1 {
    margin: 0;
    font-size: clamp(22px, 2vw, 30px);
    letter-spacing: -0.03em;
}

.iw-checkout-utilities {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.iw-checkout-edit-cart,
.iw-checkout-support a,
.iw-checkout-policies a,
.iw-checkout-account a {
    color: inherit;
    text-underline-offset: 4px;
}

.iw-checkout-edit-cart {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
}

.iw-checkout-support {
    display: grid;
    justify-items: end;
    line-height: 1.3;
}

.iw-checkout-support > span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.iw-checkout-support small {
    color: var(--iw-checkout-muted, #5f6368);
}

.iw-checkout-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 28px 0 36px;
    border: 1px solid var(--iw-checkout-border, #d9d9d9);
}

.iw-checkout-account-notice {
    display: grid;
    gap: 4px;
    margin: -20px 0 32px;
    padding: 16px 18px;
    border-left: 3px solid var(--iw-checkout-action, #171717);
    background: var(--iw-checkout-surface, #f6f6f3);
    color: var(--iw-checkout-muted, #5f6368);
    line-height: 1.5;
}

.iw-checkout-account-notice strong {
    color: var(--iw-checkout-text, #171717);
}

.iw-checkout-account > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 16px;
}

.iw-checkout-account__active {
    border-bottom: 3px solid var(--iw-checkout-action, #171717);
    font-weight: 700;
}

.iw-checkout-shell .wp-block-woocommerce-checkout,
.iw-checkout-shell .wc-block-checkout {
    max-width: none;
    margin: 0;
    padding: 0;
}

.iw-checkout-shell .wc-block-components-sidebar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: clamp(36px, 5vw, 76px);
    align-items: start;
}

.iw-checkout-shell .wc-block-components-main.wc-block-checkout__main,
.iw-checkout-shell .wc-block-components-sidebar.wc-block-checkout__sidebar {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.iw-checkout-shell .wc-block-checkout__main {
    min-width: 0;
}

.iw-checkout-shell .wc-block-checkout__sidebar {
    position: sticky;
    top: 24px;
    min-width: 0;
    padding: clamp(24px, 3vw, 42px) !important;
    border: 1px solid var(--iw-checkout-border, #d9d9d9);
    background: var(--iw-checkout-surface, #f6f6f3);
}

.iw-checkout-shell .wc-block-components-checkout-step {
    padding: 0 0 30px;
    border-bottom: 1px solid var(--iw-checkout-border, #d9d9d9);
}

.iw-checkout-shell .wc-block-components-checkout-step + .wc-block-components-checkout-step {
    margin-top: 30px;
}

.iw-checkout-shell .wc-block-components-checkout-step__heading h2,
.iw-checkout-shell .wc-block-components-title,
.iw-checkout-shell .wc-block-components-checkout-step__title {
    color: var(--iw-checkout-text, #171717);
    font-size: clamp(20px, 2vw, 26px);
    letter-spacing: -0.025em;
}

.iw-checkout-shell .wc-block-components-text-input input,
.iw-checkout-shell .wc-block-components-address-form select,
.iw-checkout-shell .wc-block-components-combobox-control input,
.iw-checkout-shell .wc-block-components-textarea {
    min-height: 52px;
    border-color: var(--iw-checkout-border, #d9d9d9);
    border-radius: 2px;
    background: #fff;
}

.iw-checkout-shell .wc-block-components-checkbox label,
.iw-checkout-shell .wc-block-components-radio-control__option,
.iw-checkout-shell .wc-block-components-button,
.iw-checkout-shell button,
.iw-checkout-shell [role="button"] {
    min-height: 44px;
}

.iw-checkout-shell :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--iw-checkout-action, #171717) 65%, #fff);
    outline-offset: 3px;
}

.iw-checkout-shell .wc-block-components-validation-error,
.iw-checkout-shell .wc-block-store-notice {
    border-left: 4px solid #b42318;
    color: #7a271a;
}

.iw-checkout-shell .wc-block-components-radio-control-accordion-content,
.iw-checkout-shell .wc-block-components-radio-control-accordion-content iframe,
.iw-checkout-shell .wc-block-components-payment-methods {
    max-width: 100%;
    overflow: visible;
}

.iw-checkout-shell iframe {
    max-width: 100%;
}

.iw-checkout-shell .wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--iw-checkout-action, #171717);
    border-radius: 2px;
    background: var(--iw-checkout-action, #171717);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.iw-checkout-policies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--iw-checkout-border, #d9d9d9);
    color: var(--iw-checkout-muted, #5f6368);
    font-size: 14px;
}

@media (max-width: 1023px) {
    .iw-checkout-header {
        grid-template-columns: 1fr auto;
    }

    .iw-checkout-heading {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-bottom: 20px;
    }

    .iw-checkout-shell .wc-block-components-sidebar-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
        gap: 32px;
    }
}

@media (max-width: 781px) {
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .woocommerce-MyAccount-content,
    body.woocommerce-account .u-columns .col-1,
    body.woocommerce-account .u-columns .col-2,
    body.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
        float: none;
        width: 100%;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 32px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        clear: both;
    }

    body.woocommerce-account .woocommerce-orders-table {
        display: block;
        border: 0;
        background: transparent;
    }

    body.woocommerce-account .woocommerce-orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    body.woocommerce-account .woocommerce-orders-table tbody {
        display: grid;
        gap: 16px;
    }

    body.woocommerce-account .woocommerce-orders-table tr {
        display: block;
        border: 1px solid var(--iw-checkout-border, #d9d9d9);
        background: #fff;
    }

    body.woocommerce-account .woocommerce-orders-table td {
        display: grid !important;
        grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        padding: 12px;
        text-align: right !important;
    }

    body.woocommerce-account .woocommerce-orders-table td::before {
        float: none;
        text-align: left;
    }

    body.woocommerce-account .woocommerce-orders-table td:empty {
        display: none !important;
    }

    body.woocommerce-account .woocommerce-orders-table .button {
        justify-self: end;
        max-width: 100%;
        white-space: normal;
    }

    body.woocommerce-account .woocommerce-table--order-details {
        display: block;
        overflow: hidden;
        border-collapse: collapse;
    }

    body.woocommerce-account .woocommerce-table--order-details :where(thead, tbody, tfoot) {
        display: block;
        width: 100%;
    }

    body.woocommerce-account .woocommerce-table--order-details :where(tr) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
        gap: 12px;
        width: 100%;
    }

    body.woocommerce-account .woocommerce-table--order-details :where(th, td) {
        display: block;
        width: auto;
        max-width: 100%;
        padding: 12px 0;
    }

    body.woocommerce-account .woocommerce-table--order-details :where(tbody, tfoot) tr {
        border-top: 1px solid var(--iw-account-border);
    }

    body.woocommerce-account .woocommerce-table--order-details :where(tbody, tfoot) th {
        text-align: left;
    }

    body.woocommerce-account .woocommerce-table--order-details :where(tbody, tfoot) td {
        text-align: right;
    }

    body.woocommerce-account .woocommerce-Addresses,
    body.woocommerce-account .u-columns {
        display: grid;
        gap: 24px;
    }

    body.woocommerce-checkout.admin-bar {
        margin-top: 0;
    }

    .iw-checkout-shell {
        width: 100%;
        padding: 0 18px 32px;
    }

    .iw-checkout-header {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 72px;
        gap: 12px;
    }

    .iw-checkout-heading {
        justify-self: start;
        text-align: left;
    }

    .iw-checkout-heading p,
    .iw-checkout-support {
        display: none;
    }

    .iw-checkout-brand__name {
        font-size: 18px;
    }

    .iw-checkout-edit-cart {
        font-size: 14px;
    }

    .iw-checkout-account {
        margin: 20px 0 24px;
    }

    .iw-checkout-account-notice {
        margin: -8px 0 24px;
    }

    .iw-checkout-shell .wc-block-components-sidebar-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .iw-checkout-shell .wc-block-checkout__sidebar {
        order: -1;
        position: static;
        width: 100%;
        padding: 18px !important;
    }

    .iw-checkout-shell .wc-block-checkout__main {
        width: 100%;
    }

    .iw-checkout-shell .wc-block-components-checkout-step {
        padding-bottom: 24px;
    }

    .iw-checkout-shell .wc-block-components-checkout-step + .wc-block-components-checkout-step {
        margin-top: 24px;
    }
}

/*
 * My Account visual system
 *
 * Keep this shell isolated from checkout. WooCommerce still owns the account
 * markup and behavior; these rules only give the customer surface a coherent
 * layout, type scale, and responsive treatment.
 */
body.woocommerce-account {
    --iw-account-bg: #f7f5ef;
    --iw-account-surface: #ffffff;
    --iw-account-ink: #202522;
    --iw-account-muted: #68706b;
    --iw-account-action: #234536;
    --iw-account-action-hover: #183629;
    --iw-account-border: #e1ded5;
    --iw-account-soft: #efede6;
    --iw-account-shadow: 0 18px 48px rgba(32, 37, 34, 0.08);
    background: var(--iw-account-bg);
    color: var(--iw-account-ink);
    font-family: Arial, Helvetica, sans-serif;
}

body.woocommerce-account .wp-site-blocks > header.wp-block-template-part {
    background: var(--iw-account-surface);
    border-bottom-color: var(--iw-account-border);
}

body.woocommerce-account .wp-site-blocks > header.wp-block-template-part a {
    color: var(--iw-account-ink);
}

body.woocommerce-account .wp-site-blocks > header.wp-block-template-part :where(
    .wp-block-site-title,
    .wp-block-navigation-item__label
) {
    font-family: Arial, Helvetica, sans-serif;
}

body.woocommerce-account main {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-top: 0 !important;
    margin-inline: 0;
    padding: 0 clamp(16px, 4vw, 64px) 96px !important;
}

body.woocommerce-account main > .wp-block-group.alignfull {
    box-sizing: border-box;
    width: min(100%, 1180px);
    max-width: 1180px;
    margin-inline: auto;
    padding: clamp(52px, 7vw, 92px) 0 0 !important;
}

body.woocommerce-account main .wp-block-post-title {
    max-width: 760px;
    margin: 0 !important;
    color: var(--iw-account-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

body.woocommerce-account main .wp-block-post-title::before {
    display: block;
    margin-bottom: 16px;
    color: var(--iw-account-action);
    content: "ACCOUNT";
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
}

body.woocommerce-account main .entry-content.alignfull {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 36px 0 0;
    padding: 0 !important;
}

body.woocommerce-account main .entry-content > .woocommerce {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

body.woocommerce-account .woocommerce-notices-wrapper:empty {
    display: none;
}

body.woocommerce-account .woocommerce > h2 {
    max-width: 520px;
    margin: 0 0 22px;
    color: var(--iw-account-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login {
    box-sizing: border-box;
    width: min(100%, 520px);
    max-width: 520px;
    margin: 0;
    padding: 36px;
    border: 1px solid var(--iw-account-border);
    border-radius: 20px;
    background: var(--iw-account-surface);
    box-shadow: var(--iw-account-shadow);
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login::before {
    display: block;
    margin: -6px 0 28px;
    color: var(--iw-account-muted);
    content: "Sign in to view orders, account details, and saved addresses.";
    font-size: 15px;
    line-height: 1.55;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login p.form-row {
    margin: 0 0 20px;
    padding: 0;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login label {
    display: block;
    margin-bottom: 8px;
    color: var(--iw-account-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.35;
    text-transform: uppercase;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login :where(
    input[type="text"],
    input[type="email"],
    input[type="password"]
) {
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    border: 1px solid var(--iw-account-border);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--iw-account-ink);
    font: inherit;
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login :where(
    input[type="text"],
    input[type="email"],
    input[type="password"]
):focus {
    border-color: var(--iw-account-action);
    box-shadow: 0 0 0 3px rgba(35, 69, 54, 0.12);
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login p.form-row:last-of-type {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 0;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0;
    color: var(--iw-account-muted);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0 9px 0 0;
    accent-color: var(--iw-account-action);
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login input[type="hidden"] {
    display: none;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login button.woocommerce-form-login__submit {
    float: none;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 13px 20px;
    border: 1px solid var(--iw-account-action);
    border-radius: 10px;
    background: var(--iw-account-action);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login button.woocommerce-form-login__submit:hover,
body.woocommerce-account .woocommerce form.woocommerce-form-login.login button.woocommerce-form-login__submit:focus-visible {
    border-color: var(--iw-account-action-hover);
    background: var(--iw-account-action-hover);
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login button.woocommerce-form-login__submit:active {
    transform: translateY(1px);
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login p.lost_password {
    margin: 20px 0 0;
    color: var(--iw-account-muted);
    font-size: 14px;
    text-align: center;
}

body.woocommerce-account .woocommerce form.woocommerce-form-login.login p.lost_password a {
    color: var(--iw-account-action);
    font-weight: 700;
    text-underline-offset: 4px;
}

body.woocommerce-account .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--iw-account-border);
    border-radius: 18px;
    background: var(--iw-account-surface);
    box-shadow: 0 10px 28px rgba(32, 37, 34, 0.05);
}

body.woocommerce-account .woocommerce-MyAccount-navigation::before {
    display: block;
    margin: 0 12px 14px;
    color: var(--iw-account-muted);
    content: "Account menu";
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    gap: 4px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--iw-account-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible,
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active > a,
body.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
    background: var(--iw-account-action);
    color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    box-sizing: border-box;
    width: 100%;
    padding: 32px;
    border: 1px solid var(--iw-account-border);
    border-radius: 18px;
    background: var(--iw-account-surface);
    box-shadow: var(--iw-account-shadow);
}

body.woocommerce-account .woocommerce-MyAccount-content > :first-child {
    margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(h2, h3) {
    color: var(--iw-account-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(h2, h3) a {
    color: inherit;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(p, address, .woocommerce-info) {
    color: var(--iw-account-muted);
    line-height: 1.6;
}

body.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--iw-account-action);
    text-underline-offset: 4px;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(
    button,
    .button,
    .wp-element-button
) {
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--iw-account-action);
    border-radius: 9px;
    background: var(--iw-account-action);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-content :where(
    button,
    .button,
    .wp-element-button
):hover,
body.woocommerce-account .woocommerce-MyAccount-content :where(
    button,
    .button,
    .wp-element-button
):focus-visible {
    border-color: var(--iw-account-action-hover);
    background: var(--iw-account-action-hover);
    color: #fff;
}

body.woocommerce-account .iw-account-order-help {
    margin-top: 32px;
    padding: 22px 24px;
    border: 1px solid var(--iw-account-border);
    border-left: 4px solid var(--iw-account-action);
    border-radius: 12px;
    background: var(--iw-account-bg);
}

body.woocommerce-account .iw-account-order-help :where(h2, p) {
    margin-top: 0;
}

body.woocommerce-account .iw-account-order-help > :last-child {
    margin-bottom: 0;
}

body.woocommerce-account .woocommerce-orders-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--iw-account-border);
    border-radius: 12px;
    background: var(--iw-account-surface);
}

body.woocommerce-account .woocommerce-orders-table :where(th, td) {
    padding: 15px 16px;
    border-color: var(--iw-account-border);
    color: var(--iw-account-ink);
    vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table th {
    background: var(--iw-account-soft);
    color: var(--iw-account-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.woocommerce-account .woocommerce-Addresses,
body.woocommerce-account .u-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.woocommerce-account .woocommerce-Address,
body.woocommerce-account .u-column1,
body.woocommerce-account .u-column2 {
    box-sizing: border-box;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--iw-account-border);
    border-radius: 12px;
    background: var(--iw-account-bg);
}

body.woocommerce-account .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body.woocommerce-account .woocommerce-Address-title :where(h2, h3) {
    margin: 0;
}

body.woocommerce-account .woocommerce-EditAccountForm,
body.woocommerce-account .woocommerce-address-fields {
    max-width: 680px;
}

body.woocommerce-account .woocommerce-EditAccountForm :where(.form-row, p),
body.woocommerce-account .woocommerce-address-fields :where(.form-row, p) {
    margin-bottom: 18px;
    padding: 0;
}

body.woocommerce-account .woocommerce-EditAccountForm label,
body.woocommerce-account .woocommerce-address-fields label {
    display: block;
    margin-bottom: 7px;
    color: var(--iw-account-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.woocommerce-account .woocommerce-EditAccountForm :where(input, select, textarea),
body.woocommerce-account .woocommerce-address-fields :where(input, select, textarea) {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--iw-account-border);
    border-radius: 9px;
    background: #fff;
    color: var(--iw-account-ink);
    font: inherit;
}

body.woocommerce-account .woocommerce-EditAccountForm :where(input, select, textarea):focus,
body.woocommerce-account .woocommerce-address-fields :where(input, select, textarea):focus {
    border-color: var(--iw-account-action);
    outline: none;
    box-shadow: 0 0 0 3px rgba(35, 69, 54, 0.12);
}

@media (max-width: 781px) {
    body.woocommerce-account main {
        padding: 0 16px 52px !important;
    }

    body.woocommerce-account main > .wp-block-group.alignfull {
        padding-top: 44px !important;
    }

    body.woocommerce-account main .wp-block-post-title {
        font-size: clamp(40px, 12vw, 52px);
        line-height: 1;
    }

    body.woocommerce-account main .wp-block-post-title::before {
        margin-bottom: 14px;
        font-size: 11px;
    }

    body.woocommerce-account main .entry-content.alignfull {
        margin-top: 28px;
    }

    body.woocommerce-account .woocommerce > h2 {
        margin-bottom: 16px;
        font-size: 28px;
    }

    body.woocommerce-account .woocommerce form.woocommerce-form-login.login {
        width: 100%;
        max-width: none;
        padding: 24px 20px;
        border-radius: 16px;
    }

    body.woocommerce-account .woocommerce form.woocommerce-form-login.login::before {
        margin: -3px 0 24px;
        font-size: 14px;
    }

    body.woocommerce-account .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
        display: block;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 16px;
        padding: 16px;
        border-radius: 16px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation::before {
        margin: 0 10px 10px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation a {
        min-height: 44px;
        padding: 11px 12px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        padding: 22px 18px;
        border-radius: 16px;
    }

    body.woocommerce-account .woocommerce-Addresses,
    body.woocommerce-account .u-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    body.woocommerce-account .woocommerce-Address,
    body.woocommerce-account .u-column1,
    body.woocommerce-account .u-column2 {
        padding: 16px;
    }

    body.woocommerce-account .iw-account-order-help {
        margin-top: 24px;
        padding: 18px;
    }

    body.woocommerce-account .woocommerce-orders-table td {
        padding: 12px 13px;
    }
}
