/* fix.css — MachineB2B theme fixes + WooCommerce styling */

/* ── WooCommerce: Remove default WC wrappers ── */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
    display: none;
}

/* TranslatePress language switcher: keep public floating labels readable. */
.trp-language-item-name {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

.woocommerce .woocommerce-result-count {
    color: #646970;
    font-size: 14px;
    margin: 0;
    float: none;
}

.woocommerce .woocommerce-ordering {
    float: none;
    margin: 0;
}

.woocommerce .woocommerce-ordering select {
    border: none;
    padding: 6px 28px 6px 10px;
    font-size: 13px;
    background-color: transparent;
    border-radius: 2px;
    color: #1A1D1F;
    cursor: pointer;
    box-shadow: none;
}

/* ── WooCommerce: Shop page toolbar ── */
.woocommerce-before-shop-loop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 10px 16px 14px;
    margin-bottom: 20px;
}

/* ── WooCommerce: Product grid → use CSS grid ── */
.woocommerce .woocommerce-loop-product-wrapper ul.products,
.woocommerce-page .woocommerce-loop-product-wrapper ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.woocommerce .woocommerce-loop-product-wrapper ul.products.columns-4::before,
.woocommerce .woocommerce-loop-product-wrapper ul.products.columns-4::after,
.woocommerce .woocommerce-loop-product-wrapper ul.products.columns-5::before,
.woocommerce .woocommerce-loop-product-wrapper ul.products.columns-5::after,
.woocommerce-page .woocommerce-loop-product-wrapper ul.products.columns-4::before,
.woocommerce-page .woocommerce-loop-product-wrapper ul.products.columns-4::after,
.woocommerce-page .woocommerce-loop-product-wrapper ul.products.columns-5::before,
.woocommerce-page .woocommerce-loop-product-wrapper ul.products.columns-5::after {
    content: none !important;
    display: none !important;
}

.woocommerce .woocommerce-loop-product-wrapper ul.products li.product,
.woocommerce-page .woocommerce-loop-product-wrapper ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    clear: none !important;
    float: none !important;
}

.woocommerce .woocommerce-loop-product-wrapper ul.products li.product:nth-child(4n+1),
.woocommerce-page .woocommerce-loop-product-wrapper ul.products li.product:nth-child(4n+1),
.woocommerce .woocommerce-loop-product-wrapper ul.products li.product:nth-child(5n+1),
.woocommerce-page .woocommerce-loop-product-wrapper ul.products li.product:nth-child(5n+1) {
    clear: none !important;
}

@media (max-width: 1279px) {
    .woocommerce .woocommerce-loop-product-wrapper ul.products,
    .woocommerce-page .woocommerce-loop-product-wrapper ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .woocommerce .woocommerce-loop-product-wrapper ul.products,
    .woocommerce-page .woocommerce-loop-product-wrapper ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .woocommerce .woocommerce-loop-product-wrapper ul.products,
    .woocommerce-page .woocommerce-loop-product-wrapper ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .woocommerce .woocommerce-loop-product-wrapper ul.products,
    .woocommerce-page .woocommerce-loop-product-wrapper ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ── WooCommerce: Hide default product card elements (we handle them in content-product.php) ── */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    display: none;
}

/* ── WooCommerce: Pagination ── */
.woocommerce nav.woocommerce-pagination {
    margin-top: 32px;
    margin-bottom: 40px;
}

#wcfm_home {
    display: none !important;
}

.machineb2b-sidebar-flyout--wide {
    min-width: 300px !important;
    width: 320px !important;
    padding: 0 !important;
    border: 1px solid #dbe4ef !important;
    border-top: 4px solid #ff7900 !important;
    border-radius: 0 12px 12px 12px !important;
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
    overflow: hidden;
}

.machineb2b-sidebar-flyout--wide a {
    width: 100%;
}

.machineb2b-sidebar-flyout__head {
    margin: 0 !important;
    padding: 16px 20px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #e5ebf3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #003b87 !important;
    letter-spacing: 0;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

.machineb2b-sidebar-flyout__item {
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    color: #3f4651 !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
}

.machineb2b-sidebar-flyout__item + .machineb2b-sidebar-flyout__item {
    margin-top: 0;
}

.machineb2b-sidebar-flyout__item:hover {
    background: #f7f9fc !important;
    color: #003b87 !important;
}

.machineb2b-sidebar-flyout__icon {
    width: 18px;
    color: #ff7900 !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.machineb2b-sidebar-flyout__label {
    display: block;
    min-width: 0;
    overflow: visible;
    text-overflow: initial;
    white-space: normal;
    line-height: 1.25;
    color: inherit;
    font-weight: 650;
}

.machineb2b-sidebar-flyout__count {
    min-width: 26px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf2fa;
    color: #737b88 !important;
    font-weight: 700;
    font-size: 13px !important;
}

.machineb2b-sidebar-flyout__more {
    margin: 0 !important;
    padding: 13px 20px !important;
    border-top: 1px solid #e5ebf3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #003b87 !important;
    letter-spacing: 0;
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

.machineb2b-sidebar-flyout__more:hover {
    background: #f7f9fc !important;
    color: #ff7900 !important;
}

.machineb2b-search-type-shell {
    min-width: 74px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    overflow: visible;
}

.machineb2b-search-type-shell::after {
    content: "";
    position: absolute;
    inset: 6px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.machineb2b-search-type-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 0 14px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.machineb2b-search-type-display {
    display: inline-block;
    text-align: center;
    line-height: 1;
}

.machineb2b-search-type-caret {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.15s ease;
}

[data-search-type-panel] {
    min-width: 100%;
}

.machineb2b-search-type-shell.is-open .machineb2b-search-type-caret {
    transform: rotate(180deg);
}

.machineb2b-search-type-option.is-active {
    background: #d9ebff;
    color: #003b87;
}

.machineb2b-search-type-select:focus + .machineb2b-search-type-display,
.machineb2b-search-type-shell:focus-within .machineb2b-search-type-display {
    color: #0f5faf;
}

@media (min-width: 1101px) {
    .machineb2b-topbar-grid {
        grid-template-columns: minmax(300px, 342px) minmax(0, 1fr) auto !important;
        column-gap: 22px !important;
    }

    .machineb2b-topbar-search-wrap {
        max-width: 840px;
        justify-self: start;
    }

    .machineb2b-topbar-search-form {
        max-width: 840px;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .machineb2b-topbar-grid {
        grid-template-columns: minmax(260px, 290px) minmax(0, 1fr) minmax(168px, 188px) !important;
        column-gap: 20px !important;
    }

    .machineb2b-topbar-brand {
        width: 100% !important;
        min-width: 0;
        gap: 10px !important;
    }

    .machineb2b-topbar-logo {
        width: 160px !important;
        max-width: 160px !important;
    }

    .machineb2b-topbar-sublogo {
        padding-left: 10px !important;
    }

    .machineb2b-topbar-sublogo img {
        max-width: 88px !important;
        max-height: 42px !important;
    }

    .machineb2b-topbar-actions {
        width: 100% !important;
        gap: 8px !important;
    }

    .machineb2b-topbar-action {
        min-width: 44px !important;
    }

    .machineb2b-topbar-action-label {
        font-size: 11px !important;
        line-height: 1.1 !important;
        margin-top: 3px !important;
        white-space: nowrap !important;
    }

    .machineb2b-topbar-search-wrap,
    .machineb2b-topbar-search-form {
        min-width: 0;
    }

    .machineb2b-topbar-search-form input[name="s"] {
        min-width: 0;
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 14px !important;
    }

    .machineb2b-topbar-search-form input[name="s"]::placeholder {
        font-size: 12px !important;
        letter-spacing: -0.02em !important;
        line-height: 1 !important;
    }

    .machineb2b-topbar-search-submit {
        flex: 0 0 auto;
        min-width: 82px;
        justify-content: center;
        padding-left: 10px !important;
        padding-right: 10px !important;
        white-space: nowrap;
    }

    .machineb2b-search-type-shell {
        min-width: 64px;
    }

    .machineb2b-search-type-button {
        min-height: 44px;
        padding: 0 10px;
        gap: 4px;
        font-size: 13px !important;
    }
}

@media (min-width: 768px) and (max-width: 980px) {
    .machineb2b-topbar-grid {
        grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(170px, 196px) !important;
        column-gap: 14px !important;
    }

    .machineb2b-topbar-logo {
        width: 142px !important;
        max-width: 142px !important;
    }

    .machineb2b-topbar-sublogo img {
        max-width: 74px !important;
        max-height: 36px !important;
    }

    .machineb2b-topbar-action-label {
        font-size: 10px !important;
        letter-spacing: -0.01em !important;
    }

    .machineb2b-topbar-search-form input[name="s"]::placeholder {
        font-size: 11px !important;
        letter-spacing: -0.03em !important;
    }

    .machineb2b-topbar-search-submit {
        min-width: 74px;
        padding-left: 9px !important;
        padding-right: 9px !important;
        gap: 4px !important;
    }

    .machineb2b-topbar-search-submit .material-symbols-outlined {
        font-size: 20px !important;
    }
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    float: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #D1DBE5;
    border-radius: 2px;
    background: #fff;
    color: #1A1D1F;
    transition: all 0.15s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #003b87;
    color: #fff;
    border-color: #003b87;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #003b87;
    color: #fff;
    border-color: #003b87;
}

/* ── WooCommerce: Single product ── */
.woocommerce div.product {
    margin-bottom: 0;
}

.single-product .woocommerce div.product,
.single-product.woocommerce-page .woocommerce div.product {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.woocommerce div.product .woocommerce-product-gallery {
    margin-bottom: 0;
}

.woocommerce div.product .summary {
    margin-top: 0;
}

.single-product .woocommerce div.product .woocommerce-tabs,
.single-product .woocommerce-page .woocommerce div.product .woocommerce-tabs,
.single-product .woocommerce .related,
.single-product .woocommerce .upsells {
    max-width: none !important;
}

/* Hide default WC title (we use custom h1) */
.woocommerce div.product .product_title {
    display: none;
}

/* Style the excerpt */
.woocommerce-product-details__short-description {
    color: #646970;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ── WooCommerce: Tabs ── */
.woocommerce div.product .woocommerce-tabs {
    padding: 20px 24px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    margin: 0 0 20px;
    padding: 0;
    border-bottom: 2px solid #003b87;
    list-style: none;
    overflow: visible;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: #F4F7FA;
    border: 1px solid #D1DBE5;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
    margin: 0 2px 0 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #646970;
    background: transparent;
}

/* ── Homepage: footer news cards recovered from pre-rollback theme state ── */
.machineb2b-footer-news {
    position: relative;
}

.machineb2b-footer-news-grid {
    align-items: stretch;
}

.machineb2b-footer-news-card {
    --machineb2b-channel: #175ea6;
    --machineb2b-channel-soft: rgba(23, 94, 166, 0.12);
    --machineb2b-channel-wash: linear-gradient(180deg, rgba(23, 94, 166, 0.14) 0%, rgba(255, 255, 255, 0) 38%);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #d4dde7;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 252, 0.98) 100%);
    box-shadow: 0 16px 36px rgba(10, 37, 64, 0.06);
}

.machineb2b-footer-news-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--machineb2b-channel) 0%, rgba(255, 255, 255, 0.22) 100%);
}

.machineb2b-footer-news-card__glow {
    position: absolute;
    top: -72px;
    right: -48px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--machineb2b-channel-soft) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.machineb2b-footer-news-card__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 18px;
    background: var(--machineb2b-channel-wash);
    border-bottom: 1px solid rgba(209, 219, 229, 0.72);
}

.machineb2b-footer-news-card__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.machineb2b-footer-news-card__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: var(--machineb2b-channel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.machineb2b-footer-news-card__title {
    margin: 0;
    color: #132238;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.machineb2b-footer-news-card__more {
    position: relative;
    top: 2px;
    flex-shrink: 0;
    color: #48657f;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 0.18s ease, transform 0.18s ease;
}

.machineb2b-footer-news-card__more::after {
    content: "›";
    margin-left: 4px;
    font-size: 16px;
}

.machineb2b-footer-news-card__more:hover {
    color: var(--machineb2b-channel);
    transform: translateX(1px);
}

.machineb2b-footer-news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 16px;
    gap: 14px;
}

.machineb2b-footer-news-card__lead {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 251, 255, 0.98) 100%);
    border: 1px solid rgba(212, 221, 231, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.machineb2b-footer-news-card__lead:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 94, 166, 0.28);
    box-shadow: 0 12px 24px rgba(10, 37, 64, 0.08);
}

.machineb2b-footer-news-card__lead-kicker {
    color: var(--machineb2b-channel);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.machineb2b-footer-news-card__lead-title {
    color: #16283e;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
}

.machineb2b-footer-news-card__lead-date {
    color: #6e7f91;
    font-size: 14px;
    line-height: 1.4;
}

.machineb2b-footer-news-card__list {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.machineb2b-footer-news-card__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 9px 0;
    color: #3d5369;
    transition: color 0.16s ease, transform 0.16s ease;
}

.machineb2b-footer-news-card__item--divided {
    border-bottom: 1px dashed rgba(180, 193, 206, 0.72);
}

.machineb2b-footer-news-card__item:hover {
    color: #12263d;
    transform: translateX(2px);
}

.machineb2b-footer-news-card__item:hover .machineb2b-footer-news-card__item-title {
    color: var(--machineb2b-channel);
}

.machineb2b-footer-news-card__item-dot {
    width: 7px;
    height: 7px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--machineb2b-channel);
    box-shadow: 0 0 0 4px var(--machineb2b-channel-soft);
}

.machineb2b-footer-news-card__item-title {
    min-width: 0;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.16s ease;
}

.machineb2b-footer-news-card__item-date {
    color: #8091a2;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}

.machineb2b-footer-news-card--industry {
    --machineb2b-channel: #1d5fa8;
    --machineb2b-channel-soft: rgba(29, 95, 168, 0.14);
    --machineb2b-channel-wash: linear-gradient(180deg, rgba(215, 232, 252, 0.78) 0%, rgba(255, 255, 255, 0) 72%);
}

.machineb2b-footer-news-card--platform {
    --machineb2b-channel: #d86a1b;
    --machineb2b-channel-soft: rgba(216, 106, 27, 0.15);
    --machineb2b-channel-wash: linear-gradient(180deg, rgba(255, 231, 210, 0.82) 0%, rgba(255, 255, 255, 0) 72%);
}

.machineb2b-footer-news-card--market {
    --machineb2b-channel: #0f8a72;
    --machineb2b-channel-soft: rgba(15, 138, 114, 0.14);
    --machineb2b-channel-wash: linear-gradient(180deg, rgba(217, 246, 239, 0.86) 0%, rgba(255, 255, 255, 0) 72%);
}

.machineb2b-footer-news-card--tech {
    --machineb2b-channel: #4752a3;
    --machineb2b-channel-soft: rgba(71, 82, 163, 0.14);
    --machineb2b-channel-wash: linear-gradient(180deg, rgba(229, 233, 255, 0.85) 0%, rgba(255, 255, 255, 0) 72%);
}

@media (max-width: 1279px) {
    .machineb2b-footer-news-card__title {
        font-size: 18px;
    }

    .machineb2b-footer-news-card__lead-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .machineb2b-footer-news-card {
        border-radius: 12px;
    }

    .machineb2b-footer-news-card__header {
        padding: 18px 16px 16px;
    }

    .machineb2b-footer-news-card__body {
        padding: 16px;
    }
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #003b87;
    border-color: #003b87;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #fff;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: #fff;
    border: 1px solid #D1DBE5;
    border-top: none;
    padding: 20px;
    margin: 0;
    border-radius: 0 0 2px 2px;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1A1D1F;
    margin-bottom: 12px;
}

/* ── WooCommerce: Related products ── */
.woocommerce .related,
.woocommerce .upsells {
    padding: 20px 24px;
    border-top: 1px solid #D1DBE5;
    clear: both;
}

.woocommerce .related h2,
.woocommerce .upsells h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1A1D1F;
    margin-bottom: 16px;
}

.woocommerce .related ul.products,
.woocommerce .upsells ul.products {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 1023px) {
    .woocommerce .related ul.products,
    .woocommerce .upsells ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .woocommerce .related ul.products,
    .woocommerce .upsells ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── WooCommerce: Notices ── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border: 1px solid #D1DBE5;
    border-radius: 2px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    border-top: 3px solid;
}

.woocommerce-message {
    border-top-color: #003b87;
    background: #f0f6ff;
}

.woocommerce-info {
    border-top-color: #ff7900;
    background: #fff4e8;
}

.woocommerce-error {
    border-top-color: #ba1a1a;
    background: #fff0f0;
}

/* ── WooCommerce: Remove sidebars ── */
.woocommerce .widget-area,
.woocommerce-page .widget-area,
.woocommerce #secondary,
.woocommerce-page #secondary {
    display: none;
}

@media (max-width: 1599px) and (min-width: 768px) {
    .max-w-container-max {
        max-width: calc(100vw - 72px) !important;
    }

    .px-gutter,
    .md\:px-gutter {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .gap-gutter {
        gap: 20px !important;
    }
}

/* ── WooCommerce: Archive page header ── */
.woocommerce-products-header__title.page-title {
    display: none;
}

/* ── WooCommerce: single-product meta (SKU, etc.) ── */
.woocommerce .product_meta {
    font-size: 13px;
    color: #646970;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #D1DBE5;
}

.woocommerce .product_meta .posted_in,
.woocommerce .product_meta .tagged_as {
    display: block;
    margin-bottom: 4px;
}

/* ── Theme: Category list sidebar styling ── */
.widget_categories ul {
    list-style: none;
    padding: 0;
}

.widget_categories ul li {
    padding: 4px 0;
}

.widget_categories ul li a {
    color: #646970;
    font-size: 13px;
    transition: color 0.15s;
}

.widget_categories ul li a:hover {
    color: #003b87;
}

.widget_categories ul li.current-cat a {
    color: #003b87;
    font-weight: 600;
}

.widget_categories ul li .count {
    color: #a0a5aa;
    font-size: 11px;
    margin-left: 4px;
}

/* ── Theme: Pagination for news ── */
.wp-block-query-pagination,
.posts-navigation,
.pagination {
    margin-top: 24px;
}

.pagination .nav-links {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.pagination .nav-links a,
.pagination .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #D1DBE5;
    border-radius: 2px;
    background: #fff;
    color: #1A1D1F;
    transition: all 0.15s;
}

.pagination .nav-links a:hover {
    background: #003b87;
    color: #fff;
    border-color: #003b87;
}

.pagination .nav-links span.current {
    background: #003b87;
    color: #fff;
    border-color: #003b87;
}

/* ── WooCommerce: Related products in our custom card style ── */
.woocommerce .related .products .product,
.woocommerce .upsells .products .product {
    /* Our content-product.php handles the card styling */
}

/* ── Product image consistency ── */
.machineb2b-loop-card__image-link {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.machineb2b-loop-card__image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: auto !important;
    display: block !important;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    margin: 0;
}

.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
    display: none;
}

/* ── Product gallery on single product page ── */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
    border-radius: 2px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image a img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.woocommerce div.product div.images .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: 72px !important;
    height: 72px;
    border: 1px solid #D1DBE5;
    border-radius: 2px;
    overflow: hidden;
    float: none !important;
    margin: 0 !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
    opacity: 1;
}

/* ── Product description prose ── */
.woocommerce-Tabs-panel--description p,
.woocommerce-Tabs-panel p {
    color: #1A1D1F;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ── Store notice (WooCommerce) ── */
.woocommerce-store-notice {
    display: none;
}

/* ── Homepage news tabs ── */
.machineb2b-news-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.machineb2b-news-panel {
    display: none;
}

#home-news-tab-news:checked ~ .machineb2b-news-tab-list .machineb2b-news-tab-button--news,
#home-news-tab-platform:checked ~ .machineb2b-news-tab-list .machineb2b-news-tab-button--platform,
#home-news-tab-market:checked ~ .machineb2b-news-tab-list .machineb2b-news-tab-button--market {
    background: #ffffff;
}

#home-news-tab-news:checked ~ .machineb2b-news-tab-list .machineb2b-news-tab-button--news {
    color: #003b87;
}

#home-news-tab-platform:checked ~ .machineb2b-news-tab-list .machineb2b-news-tab-button--platform {
    color: #ff7900;
}

#home-news-tab-market:checked ~ .machineb2b-news-tab-list .machineb2b-news-tab-button--market {
    color: #d52b2b;
}

#home-news-tab-news:checked ~ .machineb2b-news-panels .machineb2b-news-panel--news,
#home-news-tab-platform:checked ~ .machineb2b-news-panels .machineb2b-news-panel--platform,
#home-news-tab-market:checked ~ .machineb2b-news-panels .machineb2b-news-panel--market {
    display: block;
}

@media screen and (min-width: 1024px) {
    .machineb2b-homepage [data-home-balance-left],
    .machineb2b-homepage [data-home-balance-center],
    .machineb2b-homepage [data-home-balance-right] {
        position: relative;
    }

    .machineb2b-homepage--en .machineb2b-sidebar-cat > a {
        padding-top: 7px;
        padding-bottom: 7px;
        font-size: 15px;
    }

    .machineb2b-homepage--en .machineb2b-sidebar-cat > a .line-clamp-1 {
        line-height: 1.28;
    }

    .machineb2b-homepage .machineb2b-home-top-ad-card-media {
        min-height: 170px;
    }

    .machineb2b-homepage .machineb2b-home-top-ad-card-content {
        justify-content: center;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .machineb2b-homepage--en .machineb2b-home-top-ad-card-media {
        height: 184px;
        min-height: 184px;
    }

    .machineb2b-homepage--en .machineb2b-home-top-ad-card-content {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .machineb2b-homepage--en .machineb2b-home-top-ad-card-content h3 {
        line-height: 1.2;
    }

    .machineb2b-homepage--en .machineb2b-home-top-ad-card-content p {
        line-height: 1.5;
    }

    .machineb2b-homepage--en #home-news-focus .machineb2b-news-tab-button {
        min-height: 60px;
        line-height: 1.25;
        text-align: center;
    }

    .machineb2b-homepage--en #home-news-focus .machineb2b-news-panel {
        min-height: 0;
    }

    .machineb2b-homepage--en #home-news-focus .machineb2b-news-panel > div:first-child > span:last-child {
        text-wrap: pretty;
    }

    .machineb2b-homepage--en #home-news-focus .machineb2b-news-panel p {
        line-height: 1.82;
        text-wrap: pretty;
    }

    .machineb2b-homepage--en #home-news-focus .machineb2b-news-panel ul {
        row-gap: 14px;
    }

    .machineb2b-homepage--en #home-news-focus .machineb2b-news-panel li a {
        align-items: flex-start;
        line-height: 1.35;
    }

    .machineb2b-homepage #home-news-focus .machineb2b-home-news-item.is-hidden-by-balance {
        display: none;
    }

    .machineb2b-homepage--en .machineb2b-home-procurement-panel {
        min-height: 0;
    }

    .machineb2b-homepage--en .machineb2b-home-procurement-row {
        min-height: 66px;
    }

    .machineb2b-homepage--en .machineb2b-home-procurement-row p {
        line-height: 1.45;
    }

    .machineb2b-homepage .machineb2b-home-procurement-row.is-hidden-by-balance {
        display: none;
    }

    .machineb2b-homepage--en .machineb2b-home-procurement-list {
        min-height: 0;
    }
}

/* ── Header search type select ── */
#machineb2b-search-type {
    border-radius: 0;
    background-image: none;
    padding-right: 30px;
    line-height: 1.2;
}

/* ── Mobile ── */
@media screen and (max-width: 767px) {
    .machineb2b-mobile-nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .machineb2b-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .machineb2b-floating-toolbar {
        display: none !important;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ── Tablet (≥768px) ── */
@media screen and (min-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Desktop (≥1024px) ── */
@media screen and (min-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Wide (≥1280px) ── */
@media screen and (min-width: 1280px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ── 2XL (≥1536px) ── */
@media screen and (min-width: 1536px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ── 2XL (≥1536px) ── */
@media screen and (min-width: 1536px) {
    /* no changes needed */
}

/* ═══════════════════════════════════════════════════════════════════
   My Account — Shell & Hero
   ═══════════════════════════════════════════════════════════════════ */

.machineb2b-account-shell {
    max-width: 1540px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.machineb2b-account-shell__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    margin-bottom: 32px;
}

.machineb2b-account-shell__hero-main {
    background: #fff;
    border: 1px solid #D1DBE5;
    border-radius: 4px;
    padding: 32px 36px;
    border-top: 4px solid #003b87;
}

.machineb2b-account-shell__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff7900;
    margin-bottom: 8px;
}

.machineb2b-account-shell__title {
    font-family: Inter, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1A1D1F;
    margin: 0 0 8px;
    line-height: 1.2;
}

.machineb2b-account-shell__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #646970;
    margin: 0;
}

.machineb2b-account-shell__hero-side {
    background: linear-gradient(135deg, #003b87, #002a61);
    border-radius: 4px;
    padding: 28px 28px 24px;
    color: #fff;
}

.machineb2b-account-shell__hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.machineb2b-account-shell__hero-badge .material-symbols-outlined {
    font-size: 18px;
    color: #ff7900;
}

.machineb2b-account-shell__hero-side > p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ── My Account: Layout (logged-in) ── */

.machineb2b-account-shell__layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.woocommerce-account .machineb2b-account-nav,
.woocommerce-account .machineb2b-account-content {
    float: none;
    width: auto;
    margin: 0;
    min-width: 0;
}

.machineb2b-account-content {
    width: 100%;
}

.machineb2b-account-content__panel {
    background: #fff;
    border: 1px solid #D1DBE5;
    border-radius: 4px;
    padding: 0;
}

.machineb2b-account-content__panel--new-procurement {
    border: 0;
    background: #fff;
}

.machineb2b-account-content__panel--buyer-workbench {
    border: 0;
    background: #fff;
}

.mic-buyer-procurement-editor {
    padding: 30px 34px 34px;
}

.mic-buyer-procurement-editor__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 24px;
    color: #1A1D1F;
}

.mic-buyer-procurement-form {
    width: 100%;
    max-width: none;
}

.mic-buyer-procurement-form p {
    margin: 0 0 16px;
}

.mic-buyer-procurement-form label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #1A1D1F;
}

.mic-buyer-procurement-form input,
.mic-buyer-procurement-form select,
.mic-buyer-procurement-form textarea {
    font-size: 16px;
    color: #1A1D1F;
}

.mic-buyer-procurement-form h3 {
    font-size: 17px !important;
}

.mic-required-mark {
    color: #ba1a1a;
    font-weight: 800;
}

.mic-buyer-phone-row {
    display: flex;
    gap: 10px;
}

.mic-buyer-phone-row input {
    min-width: 0;
}

.mic-buyer-procurement-editor__back {
    margin: 18px 0 0;
}

.mic-buyer-workbench {
    padding: 30px 34px 34px;
    width: 100%;
}

.mic-buyer-workbench__title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #1A1D1F;
}

.mic-buyer-workbench__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 2px;
    background: #003b87;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}

.mic-buyer-workbench__cta:hover {
    opacity: 0.92;
    color: #fff;
}

.mic-buyer-workbench__cta--secondary {
    background: #fff;
    color: #1A1D1F;
    border: 1px solid #D1DBE5;
}

.mic-buyer-workbench__cta--secondary:hover {
    color: #003b87;
    border-color: #003b87;
    opacity: 1;
}

.mic-buyer-workbench__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.mic-buyer-workbench__empty {
    margin: 0;
    color: #646970;
    font-size: 15px;
    line-height: 1.7;
}

.mic-buyer-workbench__notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #D1DBE5;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.8;
}

.mic-buyer-workbench__notice--info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.mic-buyer-workbench__notice--success {
    background: #e8f5e9;
    border-color: #1b8a3d;
    color: #1b8a3d;
}

.mic-buyer-workbench__notice--error {
    background: #ffebee;
    border-color: #ba1a1a;
    color: #ba1a1a;
}

.mic-buyer-workbench__notice-line {
    margin: 0 0 6px;
}

.mic-buyer-workbench__notice-line:last-child {
    margin-bottom: 0;
}

.mic-buyer-workbench__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.mic-buyer-workbench__table thead tr {
    background: #F4F7FA;
}

.mic-buyer-workbench__table th,
.mic-buyer-workbench__table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #D1DBE5;
}

.mic-buyer-workbench__table th {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.mic-buyer-workbench__table td {
    color: #1A1D1F;
    line-height: 1.65;
    word-break: break-word;
}

.mic-buyer-workbench__subcopy {
    margin-top: 6px;
    color: #475569;
    font-size: 12px;
    line-height: 1.75;
}

.mic-buyer-workbench__subcopy--danger {
    color: #ba1a1a;
}

.mic-buyer-workbench__status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.mic-buyer-workbench__status--pending {
    background: #fff3d8;
    color: #a15c00;
}

.mic-buyer-workbench__status--approved {
    background: #e7f6eb;
    color: #186c37;
}

.mic-buyer-workbench__status--rejected {
    background: #fde8ea;
    color: #a32232;
}

.mic-buyer-workbench-form {
    width: 100%;
    max-width: none;
}

.mic-buyer-workbench-form p {
    margin: 0 0 16px;
}

.mic-buyer-workbench-form label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #1A1D1F;
}

.mic-buyer-workbench-form input,
.mic-buyer-workbench-form textarea,
.mic-buyer-workbench-form select {
    width: 100%;
    margin-top: 4px;
    padding: 10px;
    border: 1px solid #D1DBE5;
    border-radius: 2px;
    font-size: 16px;
    color: #1A1D1F;
    box-sizing: border-box;
    background: #fff;
}

.mic-buyer-workbench-form textarea {
    resize: vertical;
}

.mic-buyer-workbench-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mic-buyer-workbench-form__section-title {
    margin: 20px 0 12px;
    padding-top: 16px;
    border-top: 1px solid #D1DBE5;
    font-size: 16px;
    font-weight: 700;
    color: #1A1D1F;
}

.mic-buyer-workbench-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.mic-buyer-workbench-form__actions button {
    background: #003b87;
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.mic-buyer-workbench-form__actions span {
    color: #646970;
    font-size: 13px;
    line-height: 1.7;
}

.machineb2b-account-content__panel--procurement .woocommerce-MyAccount-content > p,
.machineb2b-account-content__panel--buyer-inquiries .woocommerce-MyAccount-content > p,
.machineb2b-account-content__panel--new-buyer-inquiry .woocommerce-MyAccount-content > p,
.machineb2b-account-content__panel--edit-account .woocommerce-MyAccount-content > p,
.machineb2b-account-content__panel--inquiry .woocommerce-MyAccount-content > p {
    padding: 30px 34px;
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm,
.machineb2b-account-content__panel--inquiry .woocommerce-form,
.machineb2b-account-content__panel--inquiry .woocommerce-info,
.machineb2b-account-content__panel--inquiry .woocommerce-message,
.machineb2b-account-content__panel--inquiry .woocommerce-error {
    padding: 30px 34px;
    margin: 0;
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm .form-row,
.machineb2b-account-content__panel--inquiry .woocommerce-form .form-row {
    margin-bottom: 16px;
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm label,
.machineb2b-account-content__panel--inquiry .woocommerce-form label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #1A1D1F;
    margin-bottom: 6px;
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm input,
.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm textarea,
.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm select,
.machineb2b-account-content__panel--inquiry .woocommerce-form input,
.machineb2b-account-content__panel--inquiry .woocommerce-form textarea,
.machineb2b-account-content__panel--inquiry .woocommerce-form select {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #D1DBE5;
    border-radius: 2px;
    font-size: 16px;
    color: #1A1D1F;
    background: #fff;
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm button,
.machineb2b-account-content__panel--inquiry .woocommerce-form button,
.machineb2b-account-content__panel--edit-account .woocommerce-Button,
.machineb2b-account-content__panel--inquiry .woocommerce-Button {
    min-height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 2px;
    background: #003b87;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm .password-input {
    position: relative;
    display: block;
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm .password-input input {
    padding-right: 56px;
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm .show-password-input {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #64748b !important;
    box-shadow: none;
    transform: translateY(-50%);
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm .show-password-input:hover,
.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm .show-password-input:focus {
    background: transparent !important;
    color: #0f4aa8 !important;
}

.machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm .show-password-input::before {
    width: 13px;
    height: 13px;
}

.machineb2b-account-content__panel--view-inquiry,
.machineb2b-account-content__panel--inquiry {
    padding: 30px 34px;
}

.mic-account-inquiry__table-wrap {
    width: 100%;
    overflow-x: auto;
}

.mic-account-inquiry__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mic-account-inquiry__lead {
    margin: -6px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
}

.mic-account-inquiry__section {
    margin-bottom: 24px;
}

.mic-account-inquiry__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mic-account-inquiry__section-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #1a1d1f;
}

.mic-account-notice-list {
    display: grid;
    gap: 14px;
}

.mic-account-notice-card {
    padding: 20px 22px;
    border: 1px solid #dbe4f0;
    border-radius: 4px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.mic-account-notice-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mic-account-notice-card__meta time {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.mic-account-notice-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1d1f;
}

.mic-account-notice-card__body {
    color: #1a1d1f;
    font-size: 15px;
    line-height: 1.8;
}

.mic-account-notice-card__body p {
    margin: 0 0 8px;
}

.mic-account-notice-card__body p:last-child {
    margin-bottom: 0;
}

.mic-account-notice-card__actions {
    margin-top: 16px;
}

.mic-account-inquiry__table td:last-child,
.mic-account-inquiry__table th:last-child {
    white-space: nowrap;
}

.mic-account-inquiry__subject {
    color: #003b87;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.mic-account-inquiry__meta-list p {
    margin: 0 0 6px;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.mic-account-inquiry__meta-list p:last-child {
    margin-bottom: 0;
}

.mic-account-inquiry__muted {
    color: #64748b;
    font-size: 14px;
}

.mic-account-inquiry-detail__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mic-account-inquiry-detail__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.mic-account-inquiry-detail__section {
    margin-bottom: 18px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 4px;
}

.mic-account-inquiry-detail__section h3 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.35;
    color: #1a1d1f;
}

.mic-account-inquiry-detail__content,
.mic-account-inquiry-detail__stack {
    color: #1a1d1f;
    font-size: 15px;
    line-height: 1.8;
}

.mic-account-inquiry-detail__stack p {
    margin: 0 0 10px;
}

.mic-account-inquiry-detail__stack p:last-child {
    margin-bottom: 0;
}

.mic-account-inquiry-detail__replies {
    display: grid;
    gap: 14px;
}

.mic-account-inquiry-detail__reply {
    padding: 18px 20px;
    border: 1px solid #dbe4f0;
    border-radius: 4px;
    background: #f8fbff;
}

.mic-account-inquiry-detail__reply-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mic-account-inquiry-detail__reply-meta img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #dbe4f0;
}

.mic-account-inquiry-detail__reply-meta strong {
    display: block;
    font-size: 15px;
    color: #1a1d1f;
}

.mic-account-inquiry-detail__reply-meta p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.mic-account-inquiry-detail__reply-body {
    color: #1a1d1f;
    font-size: 15px;
    line-height: 1.8;
}

.mic-account-inquiry-detail__reply-form .wcfm_title,
.mic-account-inquiry-detail__reply-form label {
    display: block;
    margin-bottom: 6px;
    color: #1a1d1f;
    font-size: 15px;
    font-weight: 600;
}

.mic-account-inquiry-detail__reply-form input[type="text"],
.mic-account-inquiry-detail__reply-form input[type="file"],
.mic-account-inquiry-detail__reply-form textarea,
.mic-account-inquiry-detail__reply-form select,
.mic-account-inquiry-detail__reply-form .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.mic-account-inquiry-detail__reply-form input[type="text"],
.mic-account-inquiry-detail__reply-form textarea,
.mic-account-inquiry-detail__reply-form select {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d1dbe5;
    border-radius: 2px;
    background: #fff;
    color: #1a1d1f;
    font-size: 15px;
}

.mic-account-inquiry-detail__reply-form textarea {
    min-height: 160px;
}

.mic-account-inquiry-detail__reply-actions {
    margin-top: 18px;
}

.mic-account-inquiry-detail__reply-actions .wcfm_submit_button {
    min-height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 2px;
    background: #003b87;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

/* ── My Account: Navigation Sidebar ── */

.machineb2b-account-nav__card {
    background: #fff;
    border: 1px solid #D1DBE5;
    border-radius: 4px;
    overflow: hidden;
}

.machineb2b-account-nav__top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #E7EDF4;
    background: #F4F7FA;
}

.machineb2b-account-nav__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #003b87;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.machineb2b-account-nav__avatar .material-symbols-outlined {
    font-size: 24px;
}

.machineb2b-account-nav__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #646970;
    margin: 0;
}

.machineb2b-account-nav__name {
    font-size: 16px;
    font-weight: 600;
    color: #1A1D1F;
    margin: 2px 0 0;
}

.machineb2b-account-nav__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.machineb2b-account-nav__list li {
    margin: 0;
}

.machineb2b-account-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    font-size: 16px;
    font-weight: 500;
    color: #43474F;
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.machineb2b-account-nav__link:hover {
    background: #F4F7FA;
    color: #003b87;
    border-left-color: #D1DBE5;
}

.machineb2b-account-nav__link[aria-current="page"] {
    background: #f0f6ff;
    color: #003b87;
    font-weight: 600;
    border-left-color: #003b87;
}

.machineb2b-account-nav__link .material-symbols-outlined {
    font-size: 22px;
    flex-shrink: 0;
}

.machineb2b-account-nav__footer {
    padding: 14px 20px;
    border-top: 1px solid #E7EDF4;
    background: #F4F7FA;
}

.machineb2b-account-nav__footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #ff7900;
    text-decoration: none;
    transition: color 0.15s;
}

.machineb2b-account-nav__footer a:hover {
    color: #003b87;
}

.machineb2b-account-nav__footer .material-symbols-outlined {
    font-size: 20px;
}

/* ── My Account: Guest Grid (login / register) ── */

.machineb2b-account-guest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.machineb2b-account-guest-grid--single {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.machineb2b-account-guest-panel {
    background: #fff;
    border: 1px solid #D1DBE5;
    border-radius: 4px;
    overflow: hidden;
}

.machineb2b-account-guest-panel__head {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #E7EDF4;
    background: #F4F7FA;
}

.machineb2b-account-guest-panel__head h2 {
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A1D1F;
    margin: 0 0 6px;
}

.machineb2b-account-guest-panel__head p {
    font-size: 14px;
    line-height: 1.5;
    color: #646970;
    margin: 0;
}

.machineb2b-account-guest-panel__footer {
    display: flex;
    gap: 16px;
    padding: 18px 32px;
    border-top: 1px solid #E7EDF4;
    background: #F4F7FA;
}

.machineb2b-account-guest-panel__footer a {
    font-size: 13px;
    font-weight: 600;
    color: #003b87;
    text-decoration: none;
    transition: color 0.15s;
}

.machineb2b-account-guest-panel__footer a:hover {
    color: #ff7900;
}

/* ── My Account: Auth Forms ── */

.machineb2b-account-auth-form {
    padding: 28px 32px 24px;
}

.machineb2b-account-auth-form .form-row {
    margin-bottom: 18px;
}

.machineb2b-account-auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1D1F;
    margin-bottom: 6px;
}

.machineb2b-account-auth-form label .required {
    color: #d52b2b;
    text-decoration: none;
}

.machineb2b-account-auth-form input[type="text"],
.machineb2b-account-auth-form input[type="email"],
.machineb2b-account-auth-form input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    border: 1px solid #D1DBE5;
    border-radius: 3px;
    background: #fff;
    color: #1A1D1F;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.machineb2b-account-auth-form input[type="text"]:focus,
.machineb2b-account-auth-form input[type="email"]:focus,
.machineb2b-account-auth-form input[type="password"]:focus {
    border-color: #003b87;
    box-shadow: 0 0 0 3px rgba(0, 59, 135, 0.1);
    outline: none;
}

.machineb2b-account-auth-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.machineb2b-account-auth-form__remember {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #646970;
    cursor: pointer;
}

.machineb2b-account-auth-form__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #003b87;
}

.machineb2b-account-auth-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    background: #003b87;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.machineb2b-account-auth-form button[type="submit"]:hover {
    background: #002a61;
}

.machineb2b-account-auth-form .lost_password a {
    font-size: 13px;
    color: #646970;
    text-decoration: none;
    transition: color 0.15s;
}

.machineb2b-account-auth-form .lost_password a:hover {
    color: #003b87;
    text-decoration: underline;
}

.machineb2b-account-auth-form__hint {
    font-size: 13px;
    color: #646970;
    background: #FFF1E6;
    border: 1px solid rgba(255, 121, 0, 0.2);
    border-radius: 3px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.machineb2b-account-auth-form .woocommerce-privacy-policy-text {
    margin-bottom: 0;
}

.machineb2b-account-auth-form .woocommerce-privacy-policy-text p {
    font-size: 12px;
    line-height: 1.5;
    color: #646970;
    margin: 0;
}

.machineb2b-account-auth-form .woocommerce-privacy-policy-text a {
    color: #003b87;
    text-decoration: underline;
}

/* ── My Account: Dashboard ── */

.machineb2b-account-dashboard {
    padding: 0;
}

.machineb2b-account-dashboard__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 36px;
    border-bottom: 1px solid #E7EDF4;
}

.machineb2b-account-dashboard__hero-copy {
    flex: 1;
    min-width: 0;
}

.machineb2b-account-dashboard__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff7900;
    margin-bottom: 8px;
}

.machineb2b-account-dashboard__hero-copy h2 {
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1A1D1F;
    margin: 0 0 6px;
    line-height: 1.25;
}

.machineb2b-account-dashboard__hero-copy > p {
    font-size: 14px;
    line-height: 1.6;
    color: #646970;
    margin: 0;
}

.machineb2b-account-dashboard__hero-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.machineb2b-account-dashboard__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.15s;
}

.machineb2b-account-dashboard__button--primary {
    background: #003b87;
    color: #fff;
}

.machineb2b-account-dashboard__button--primary:hover {
    background: #002a61;
}

.machineb2b-account-dashboard__button--secondary {
    background: #fff;
    color: #003b87;
    border: 1px solid #003b87;
}

.machineb2b-account-dashboard__button--secondary:hover {
    background: #f0f6ff;
}

/* stats row */

.machineb2b-account-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 1px solid #E7EDF4;
}

.machineb2b-account-dashboard__stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    border-right: 1px solid #E7EDF4;
    transition: background 0.15s;
}

.machineb2b-account-dashboard__stat-card:last-child {
    border-right: none;
}

.machineb2b-account-dashboard__stat-card:hover {
    background: #F4F7FA;
}

.machineb2b-account-dashboard__stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f6ff;
    color: #003b87;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.machineb2b-account-dashboard__stat-icon .material-symbols-outlined {
    font-size: 22px;
}

.machineb2b-account-dashboard__stat-value {
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1A1D1F;
    line-height: 1.1;
}

.machineb2b-account-dashboard__stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* dashboard grid */

.machineb2b-account-dashboard__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.machineb2b-account-dashboard__section {
    padding: 28px 32px;
}

.machineb2b-account-dashboard__section:first-child {
    border-right: 1px solid #E7EDF4;
}

.machineb2b-account-dashboard__section--soft {
    background: #F4F7FA;
}

.machineb2b-account-dashboard__section-head {
    margin-bottom: 20px;
}

.machineb2b-account-dashboard__section-head h3 {
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1A1D1F;
    margin: 0 0 4px;
}

.machineb2b-account-dashboard__section-head p {
    font-size: 13px;
    color: #646970;
    margin: 0;
}

.machineb2b-account-dashboard__actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.machineb2b-account-dashboard__action-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid #D1DBE5;
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
    transition: all 0.15s;
}

.machineb2b-account-dashboard__action-card:hover {
    border-color: #003b87;
    box-shadow: 0 2px 8px rgba(0, 59, 135, 0.08);
    transform: translateY(-1px);
}

.machineb2b-account-dashboard__action-card .material-symbols-outlined {
    font-size: 22px;
    color: #003b87;
}

.machineb2b-account-dashboard__action-card strong {
    font-size: 14px;
    font-weight: 600;
    color: #1A1D1F;
}

.machineb2b-account-dashboard__action-card p {
    font-size: 12px;
    line-height: 1.5;
    color: #646970;
    margin: 0;
}

.machineb2b-account-dashboard__summary-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.machineb2b-account-dashboard__summary-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(180, 193, 206, 0.6);
    font-size: 14px;
    color: #43474F;
}

.machineb2b-account-dashboard__summary-list li:last-child {
    border-bottom: none;
}

.machineb2b-account-dashboard__summary-list strong {
    font-weight: 600;
    color: #003b87;
}

.machineb2b-account-dashboard__note {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #D1DBE5;
    border-radius: 3px;
}

.machineb2b-account-dashboard__note p {
    font-size: 12px;
    line-height: 1.6;
    color: #646970;
    margin: 0;
}

.machineb2b-account-dashboard__footer-links {
    display: flex;
    gap: 24px;
    padding: 20px 32px;
    border-top: 1px solid #E7EDF4;
    background: #F4F7FA;
}

.machineb2b-account-dashboard__footer-links a {
    font-size: 13px;
    font-weight: 600;
    color: #646970;
    text-decoration: none;
    transition: color 0.15s;
}

.machineb2b-account-dashboard__footer-links a:hover {
    color: #003b87;
}

/* ── My Account: WC core overrides ── */

.woocommerce-MyAccount-content .woocommerce-MyAccount-orders,
.woocommerce-MyAccount-content .woocommerce-MyAccount-downloads,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .woocommerce-EditAddressForm,
.woocommerce-MyAccount-content > p,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message {
    padding: 28px 32px;
    margin: 0;
}

/* ── My Account: Responsive ── */

@media (max-width: 1023px) {
    .machineb2b-account-shell__hero {
        grid-template-columns: 1fr;
    }

    .machineb2b-account-shell__layout {
        grid-template-columns: 1fr;
    }

    .machineb2b-account-guest-grid {
        grid-template-columns: 1fr;
    }

    .machineb2b-account-dashboard__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .machineb2b-account-dashboard__grid {
        grid-template-columns: 1fr;
    }

    .machineb2b-account-dashboard__section:first-child {
        border-right: none;
        border-bottom: 1px solid #E7EDF4;
    }

    .machineb2b-account-dashboard__hero {
        flex-direction: column;
    }

    .mic-buyer-procurement-editor,
    .mic-buyer-workbench,
    .machineb2b-account-content__panel--edit-account .woocommerce-EditAccountForm,
    .machineb2b-account-content__panel--view-inquiry,
    .machineb2b-account-content__panel--inquiry .woocommerce-form,
    .machineb2b-account-content__panel--inquiry .woocommerce-info,
    .machineb2b-account-content__panel--inquiry .woocommerce-message,
    .machineb2b-account-content__panel--inquiry .woocommerce-error {
        padding: 24px 22px 26px;
    }

    .mic-buyer-workbench-form__grid {
        grid-template-columns: 1fr;
        gap: 0 16px;
    }

    .mic-account-inquiry-detail__topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .mic-account-inquiry-detail__grid {
        grid-template-columns: 1fr;
    }

    .mic-account-inquiry__header,
    .mic-account-inquiry__section-head,
    .mic-account-notice-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .mic-buyer-workbench__table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 767px) {
    .machineb2b-account-shell {
        padding: 20px 16px 40px;
    }

    .machineb2b-account-shell__hero-main {
        padding: 24px 20px;
    }

    .machineb2b-account-shell__title {
        font-size: 24px;
    }

    .machineb2b-account-auth-form {
        padding: 20px 20px 16px;
    }

    .machineb2b-account-dashboard__stats {
        grid-template-columns: 1fr 1fr;
    }

    .machineb2b-account-dashboard__stat-card {
        padding: 16px 20px;
    }

    .machineb2b-account-dashboard__hero {
        padding: 24px 20px;
    }

    .machineb2b-account-dashboard__section {
        padding: 20px;
    }

    .machineb2b-account-dashboard__actions-grid {
        grid-template-columns: 1fr;
    }

    .machineb2b-account-dashboard__footer-links {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px;
    }
}

/* ── Membership: Hide WCFM default step indicator ── */
.wcfm_membership_registration_step_container,
.wcfm_registration_steps,
.wc-progress-steps {
    display: none !important;
}

/* ── Membership plan progress: separated steps with centered arrows ── */
.mic-membership-progress {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    min-width: max-content;
    padding: 2px 20px;
}

.mic-membership-progress__step {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 4px;
    background: #e9e9ef;
    color: #686d77;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.mic-membership-progress__step.is-current {
    background: #0f4a9c;
    color: #ffffff;
}

.mic-membership-progress__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 17px);
    width: 10px;
    height: 16px;
    background: #9da4af;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: translate(-50%, -50%);
}

/* ── Membership Registration Form (step=registration) ── */
/* Layout: two-column with sidebar + form */
.wcfm-membership-wrapper #wcfm_membership_registration_form_expander {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hide the duplicate plan guide at top */
.mic-membership-guide,
#wcfm_membership_registration_form_expander > div[style*="background: linear-gradient"] {
    display: none !important;
}

/* Wrap the form in a card */
.wcfm-membership-wrapper #wcfm_membership_registration_form {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #E7EDF4;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Page header */
body .wcfm-membership-wrapper .page_collapsible {
    display: none !important;
}

/* Style form rows */
.wcfm-membership-wrapper .wcfm-content {
    border: none !important;
    padding: 0 !important;
}

.wcfm-membership-wrapper .wcfm-content h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1d1f !important;
    margin-bottom: 8px !important;
    font-family: Inter, sans-serif !important;
}

.wcfm-membership-wrapper .wcfm-content p {
    font-size: 15px !important;
    color: #646970 !important;
    margin-bottom: 24px !important;
}

/* Form labels */
.wcfm-membership-wrapper form.wcfm label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a1d1f !important;
    margin-bottom: 4px !important;
    display: block !important;
}

/* Form inputs */
.wcfm-membership-wrapper form.wcfm input[type="text"],
.wcfm-membership-wrapper form.wcfm input[type="email"],
.wcfm-membership-wrapper form.wcfm input[type="password"],
.wcfm-membership-wrapper form.wcfm input[type="tel"],
.wcfm-membership-wrapper form.wcfm input[type="url"],
.wcfm-membership-wrapper form.wcfm textarea,
.wcfm-membership-wrapper form.wcfm select {
    width: 100% !important;
    border: 1px solid #c3c6d3 !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: 'Work Sans', sans-serif !important;
    background: #f7f9ff !important;
    color: #171c22 !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
}

.wcfm-membership-wrapper form.wcfm input:focus,
.wcfm-membership-wrapper form.wcfm textarea:focus,
.wcfm-membership-wrapper form.wcfm select:focus {
    border-color: #003b87 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #003b87 !important;
}

/* Style WCFM submit button */
.wcfm-membership-wrapper form.wcfm input.wcfm_submit_button,
.wcfm-membership-wrapper form.wcfm .wcfm_submit_button {
    background: #003b87 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: 'Work Sans', sans-serif !important;
    transition: opacity 0.2s !important;
}

.wcfm-membership-wrapper form.wcfm input.wcfm_submit_button:hover {
    opacity: 0.9 !important;
}

/* Double-column form rows */
.wcfm-membership-wrapper .wcfm-content .wcfm_ele,
.wcfm-membership-wrapper form.wcfm .form-row {
    margin-bottom: 16px !important;
}

/* Remove default WCFM borders and backgrounds */
.wcfm-membership-wrapper .wcfm-content .wcfm-field-group {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* WCFM file upload */
.wcfm-membership-wrapper form.wcfm .wcfm-file-upload {
    border: 1px dashed #c3c6d3 !important;
    border-radius: 4px !important;
    padding: 20px !important;
    text-align: center !important;
    background: #f7f9ff !important;
}

/* Hide breadcrumb / step on this page */
body.wcfm-membership-wrapper .wcfm_breadcrumb,
body .wcfm-membership-wrapper .wcfm_breadcrumb {
    display: none !important;
}

/* Store URL slug display */
.wcfm-membership-wrapper .wcfm_store_slug_verified {
    font-size: 13px !important;
    color: #646970 !important;
    padding: 8px 14px !important;
    background: #eaeef6 !important;
    border: 1px solid #c3c6d3 !important;
    border-radius: 4px !important;
    margin-bottom: 16px !important;
}

.wcfm-membership-wrapper .wcfm_store_slug_verified:before {
    content: "店铺地址：";
    font-weight: 600;
    color: #1a1d1f;
}

/* Form field spacing */
.wcfm-membership-wrapper .wcfm_ele.wcfm_title {
    margin-bottom: 2px !important;
}

.wcfm-membership-wrapper .wcfm_ele.wcfm_title + input,
.wcfm-membership-wrapper .wcfm_ele.wcfm_title + label + input {
    margin-bottom: 14px !important;
}

/* Submit buttons area */
.wcfm-membership-wrapper #wcfm_membership_registration_submit {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e7edf4;
}

.wcfm-membership-wrapper #wcfm_membership_registration_submit a.wcfm_submit_button {
    background: transparent !important;
    color: #003b87 !important;
    border: 1px solid #003b87 !important;
    border-radius: 4px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

/* Custom vendor registration fields */
.wcfm-membership-wrapper .wcfm_vendor_description + .screen-reader-text + textarea {
    min-height: 80px;
    resize: vertical;
}

.wcfm-membership-wrapper .wcfm_vendor_categories_wrapper .wcfm-cat-check-label:hover {
    background: #f0f4fc;
    border-color: #003b87;
}

.wcfm-membership-wrapper .wcfm_vendor_categories_wrapper input:checked + * {
    font-weight: 600;
}

.wcfm-membership-wrapper .wcfm_vendor_categories_wrapper label:has(input:checked) {
    background: #e8f0fe;
    border-color: #003b87;
    color: #003b87;
    font-weight: 600;
}

/* Password strength indicator */
.wcfm-membership-wrapper #password_strength {
    margin-top: -8px;
    margin-bottom: 8px;
}

/* Clearfix helpers */
.wcfm-membership-wrapper .wcfm-clearfix {
    display: none !important;
}

/* ── My Account: login form redesign ── */
.machineb2b-login-shell {
    display: flex;
    justify-content: center;
    background: #f4f7fa;
    padding-top: 48px;
    padding-bottom: 60px;
}

.machineb2b-login-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 0 !important;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 59, 135, 0.08);
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: auto;
}

.machineb2b-login-card .woocommerce-form-login {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.machineb2b-login-card > div:first-child {
    padding-top: 48px;
}

.machineb2b-login-card input.input-text,
.machineb2b-login-card input[type='text'],
.machineb2b-login-card input[type='password'] {
    min-height: 56px;
    box-shadow: none !important;
}

.machineb2b-login-password-field {
    position: relative;
}

.machineb2b-login-password-field input[type='password'],
.machineb2b-login-password-field input[type='text'] {
    padding-right: 52px !important;
}

.machineb2b-login-password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    z-index: 2;
}

.machineb2b-login-card__brand {
    padding: 20px 24px;
    background: #f0f4fc;
}

@media (max-width: 640px) {
    .machineb2b-login-shell {
        padding-top: 28px;
        padding-bottom: 40px;
    }

    .machineb2b-login-card {
        max-width: 100%;
    }
}

/* ── Product gallery mobile overflow fix ── */
@media (max-width: 640px) {
    .woocommerce-product-gallery,
    .woocommerce-product-gallery__wrapper,
    .woocommerce-product-gallery__image,
    .woocommerce-product-gallery img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .woocommerce-product-gallery .zoomImg {
        display: none !important;
    }

    /* Store slug URL bar: allow wrapping on small screens */
    .wcfm_store_slug_verified {
        flex-wrap: wrap;
        white-space: normal !important;
        word-break: break-all;
    }

    /* Floating product action button: prevent overflow */
    .mic-product-button {
        left: auto !important;
        right: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
    }

    /* Generic: prevent any fixed/absolute elements from overflowing */
    [class*='floating'], [class*='floating-toolbar'] {
        max-width: calc(100vw - 24px) !important;
    }

    /* Ensure body never exceeds viewport */
    body {
        overflow-x: hidden;
    }
}
