html{
    overflow-x:hidden;
}

body{
    overflow-x:visible;
}

.ms-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ms-plans-section,
.ms-compare-section,
.ms-addons-section {
    background: #ffffff;
    color: #1e293b;
    font-family: Montserrat, sans-serif;
    width: 100%;
    max-width: 100%;
    /* overflow:hidden; */
    position: relative;
    box-sizing: border-box;
}

/* .ms-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    background: #ffffff;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(7, 28, 99, 0.08);
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #0B5FFF #e3e8ee;
} */

.ms-table-wrap {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e4ebf5;
    border-radius: 14px;

    box-shadow: 0 8px 30px rgba(7, 28, 99, 0.08);

    /*
     * IMPORTANT:
     * Horizontal scrolling is required for mobile/tablet.
     * Do NOT use overflow-y:auto here because it creates a
     * vertical scrolling container and interferes with the
     * sticky table header.
     */
    overflow-x: auto;
    overflow-y: visible;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #0B5FFF #e3e8ee;
}



.ms-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.ms-table-wrap::-webkit-scrollbar-track {
    background: #eef2f8;
    border-radius: 999px;
}

.ms-table-wrap::-webkit-scrollbar-thumb {
    background: #0B5FFF;
    border-radius: 999px;
}

.ms-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #084bc9;
}

.ms-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
    font-weight: 700;
    color: #0B5FFF;
    margin-bottom: 12px;
}

/* ---------- Section heads ---------- */
.ms-section-head {
    text-align: center;
    /*max-width: 680px;*/
    margin: 0 auto 30px;
}

.ms-section-head h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #071C63;
}

.ms-section-head p {
    color: #4b5c6b;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* ---------- Buttons ---------- */
.ms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ms-btn-primary {
    background: linear-gradient(135deg, #0B5FFF, #4DA3FF);
    color: #ffffff;
    box-shadow: 0 10px 24px -8px rgba(11, 95, 255, 0.4);
}

.ms-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(11, 95, 255, 0.35);
}

.ms-btn-ghost {
    background: #ffffff;
    border-color: #e3e8ee;
    color: #071C63;
}

.ms-btn-ghost:hover {
    border-color: #0B5FFF;
    color: #0B5FFF;
    background: #eef4ff;
}

.ms-btn-block {
    width: 100%;
}

/* ---------- Plans section ---------- */
.ms-plans-section {
    padding: 20px 0;
}

/* ==========================================================
   PLAN FILTER ROW
   Business | Enterprise | With Teams | Without Teams
   All four controls stay on one horizontal line.
========================================================== */

.ms-plan-filter-row {
    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: nowrap;
    gap: 14px;

    margin: 0 auto 48px;

    box-sizing: border-box;
}

/* Business / Enterprise group */
.ms-category-tabs {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    flex-wrap: nowrap;

    gap: 8px;

    margin: 0;
}

/* Business / Enterprise buttons */
.ms-category-tab {
    flex: 0 0 auto;

    min-width: 82px;
    height: 36px;

    padding: 8px 18px;

    border: 2px solid #e3e8ee;
    border-radius: 10px;

    background: #ffffff;
    color: #071C63;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.ms-category-tab:hover {
    border-color: #0B5FFF;
    color: #0B5FFF;
    background: #ffffff;
    transform: translateY(-1px);
}

.ms-category-tab.is-active {
    background: linear-gradient(135deg, #0B5FFF, #4DA3FF);
    border-color: transparent;
    color: #ffffff;

    box-shadow: 0 8px 18px -8px rgba(11, 95, 255, .40);
}

/* Teams group */
.ms-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    flex-wrap: nowrap;

    gap: 2px;

    margin: 0;
    padding: 4px;

    max-width: none;
    width: auto;

    border: 1px solid #e3e8ee;
    border-radius: 999px;

    background: #ffffff;

    box-shadow: 0 6px 20px rgba(7, 28, 99, .08);

    box-sizing: border-box;
}

/* Teams buttons */
.ms-toggle-btn {
    flex: 0 0 auto;

    min-width: 92px;
    height: 30px;

    padding: 7px 14px;

    border: 1px solid transparent;
    border-radius: 999px;

    background: transparent;
    color: #4b5c6b;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.ms-toggle-btn:hover {
    border-color: #0B5FFF;
    color: #0B5FFF;
    background: #f5f8ff;
}

.ms-toggle-btn.is-active {
    background: #0B5FFF;
    border-color: #0B5FFF;
    color: #ffffff;

    box-shadow: 0 3px 8px rgba(11, 95, 255, .18);
}

.ms-category-note {
    text-align: center;
    color: #4b5c6b;
    font-size: 13px;
    margin: -14px 0 28px;
}

.ms-plan-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch; 
    overflow-x: auto;
    overflow-y: visible;
    gap: 24px;
    width: 100%;
    padding: 20px 16px 16px; 
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #0B5FFF #e3e8ee;
}

.ms-plan-grid::-webkit-scrollbar {
    height: 10px;
}

.ms-plan-grid::-webkit-scrollbar-track {
    background: #eef2f8;
    border-radius: 999px;
}

.ms-plan-grid::-webkit-scrollbar-thumb {
    background: #0B5FFF;
    border-radius: 999px;
}

.ms-plan-grid::-webkit-scrollbar-thumb:hover {
    background: #084bc9;
}

.ms-plan-card {
    position: relative;

    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 14px;

    padding: 20px 16px;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    
    height: auto;
    min-height: 740px;
    overflow: visible;

    box-shadow: 0 8px 30px rgba(7, 28, 99, 0.08);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

    flex: 0 0 500px;
    width: 500px;

    scroll-snap-align: start;
}

.ms-plan-card:hover {
    transform: translateY(-6px);
    border-color: #0B5FFF;
    box-shadow: 0 16px 40px rgba(7, 28, 99, 0.14);
}


.ms-plan-card.ms-plan-hidden {
    display: none !important;
}

.ms-plan-badge {
    position: absolute;
    top: -13px;
    left: 26px;
    background: #FF7A00;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 18px -6px rgba(255, 122, 0, 0.45);
}

.ms-plan-name {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0 8px;
    line-height: 1.35;
    color: #071C63;
    /* Fixed min-height (~2 lines) so titles of different lengths don't
       push the CTA buttons to different vertical positions across cards. */
    /* min-height: 50px; */
}

.ms-plan-tagline {
    color: #4b5c6b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
    /* Fixed min-height (~3 lines) — same alignment purpose as above. */
    min-height: 40px;
}

.ms-plan-price {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    color: #071C63;
}

.ms-currency {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

.ms-amount {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.ms-plan-billing {
    font-size: 13px;
    color: #4b5c6b;
    margin: 6px 0 2px;
}

.ms-plan-note {
    font-size: 12px;
    color: #667085;
    margin: 0 0 10px;
    line-height: 1.5;
    /* min-height: 36px; */
}

/* .ms-plan-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
} */

.ms-plan-ctas {
    display: flex;
    flex-direction: row;       
    flex-wrap: wrap;          
    justify-content: center;   
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}   

.ms-plan-ctas .ms-btn {
    width: auto;                
    flex: 0 1 auto;
    min-width: 140px;
}

.ms-plan-subhead {
    width: 100%;

    font-size: 13px;

    text-transform: uppercase;
    letter-spacing: 0.04em;

    color: #4b5c6b;

    font-weight: 700;

    margin: 8px 0 14px;

    line-height: 1.4;

    box-sizing: border-box;
}

.ms-feature-list {
    list-style: none;

    margin: 0;
    padding: 0 6px 0 0; 

    display: flex;
    flex-direction: column;

    gap: 4px;

    width: 100%;
    flex: 0 0 auto;
    height:230px;
    max-height: 230px;
    overflow-y: auto;

    box-sizing: border-box;

    scrollbar-width: thin;
    scrollbar-color: #0B5FFF #e3e8ee;
}

.ms-feature-list::-webkit-scrollbar {
    width: 6px;
}

.ms-feature-list::-webkit-scrollbar-track {
    background: #eef2f8;
    border-radius: 999px;
}

.ms-feature-list::-webkit-scrollbar-thumb {
    background: #0B5FFF;
    border-radius: 999px;
}

.ms-feature-list::-webkit-scrollbar-thumb:hover {
    background: #084bc9;
}

.ms-feature-list li {
    display: flex;
    align-items: flex-start;

    width: 100%;

    gap: 10px;

    font-size: 14px;
    line-height: 1.6;

    color: #1e293b;
    font-weight: 500;

    box-sizing: border-box;

    overflow-wrap: anywhere;
}

.ms-feature-list li span {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ms-plan-apps {
    width: 100%;
    /* margin-top: auto; */
    padding-top: 28px;

    box-sizing: border-box;

    flex-shrink: 0;

    overflow: visible;
}

.ms-plan-apps .ms-plan-subhead {
    width: 100%;

    margin: 0 0 16px;

    box-sizing: border-box;
}

.ms-app-chips {
    width: 100%;

    display: flex;
    flex-wrap: wrap;

    align-items: flex-start;
    align-content: flex-start;

    gap: 9px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    overflow: visible;
}

.ms-chip {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 0;
    max-width: 100%;

    min-height: 36px;

    padding: 7px 14px;

    box-sizing: border-box;

    border: 1px solid #d9e8ff;
    border-radius: 999px;

    background: #eef4ff;

    color: #0B5FFF;

    font-size: 12px;
    line-height: 1.25;

    font-weight: 600;

    text-align: center;

    white-space: normal;

    overflow-wrap: anywhere;
    word-break: normal;

    flex: 0 1 auto;
}


.ms-check {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border-radius: 50%;
    background: #eef4ff;
    position: relative;
}

.ms-check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 5px;
    height: 8px;
    border: solid #0B5FFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Comparison table ---------- */
.ms-compare-section {
    padding: 50px 0;
    background: #f8fbff;
    border-top: 1px solid #e3e8ee;
    border-bottom: 1px solid #e3e8ee;

    position: relative;
    overflow: visible;
}

.ms-compare-section.is-hidden {
    display: none;
}

.ms-compare-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

tr.ms-section-row td {
    font-size: 18px;
    font-weight: 700!important;
}

/* ---------- Sticky comparison table header ----------
   Sticks to the top of the viewport (offset by --ms-sticky-offset, set
   this to the height of any fixed site header you have, 0 by default)
   as soon as the table scrolls under it, and stays stuck until the table
   itself (i.e. the whole comparison section) finishes scrolling past —
   position: sticky naturally releases once its containing table scrolls
   out of view, no JS required.

   Sticky is applied to each <th> (not <thead>) for the most reliable
   cross-browser support. A solid background is required on the sticky
   cells so table rows don't show through underneath while stuck. */
/* :root {
    --ms-sticky-offset: 0px; 
} */

/* .ms-compare-table thead th {
    position: -webkit-sticky;
    position: sticky;
    top: var(--ms-sticky-offset);
    z-index: 5;

    background: linear-gradient(180deg, #f8fbff, #edf4ff);
    color: #344054;
    text-align: left;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #dfe8f5;
    box-shadow: 0 1px 0 #dfe8f5; 
} */

.ms-compare-table thead th {
    position: relative;
    z-index: 1;

    background: linear-gradient(
        180deg,
        #f8fbff 0%,
        #edf4ff 100%
    );

    color: #344054;

    text-align: left;

    padding: 20px 22px;

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.05em;

    border-bottom: 1px solid #dfe8f5;

    box-shadow:
        0 2px 0 #dfe8f5,
        0 4px 12px rgba(7, 28, 99, 0.05);
}

.ms-th-label {
    min-width: 300px;
}

.ms-th-price {
    display: block;
    color: #0B5FFF;
    font-size: 16px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 4px;
}

.ms-th-price small {
    color: #667085;
    font-weight: 500;
    font-size: 14px;
}

/* .ms-compare-table tbody th {
    text-align: left;
    padding: 12px 20px;
    color: #4b5c6b;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #edf2f7;
    white-space: nowrap;
}

.ms-compare-table tbody td {
    padding: 12px 20px;
    text-align: center;
    color: #1e293b;
    font-weight: 500;
    border-bottom: 1px solid #edf2f7;
} */

.ms-compare-table tbody th {
    min-width: 300px;

    padding: 13px 22px;

    text-align: left;

    color: #4b5c6b;

    font-weight: 500;

    font-size: 14px;

    line-height: 1.5;

    border-bottom: 1px solid #edf2f7;

    white-space: normal;

    background: #ffffff;
}


.ms-compare-table tbody td {
    min-width: 220px;

    padding: 13px 22px;

    text-align: center;

    color: #1e293b;

    font-weight: 500;

    font-size: 14px;

    line-height: 1.5;

    border-bottom: 1px solid #edf2f7;

    background: #ffffff;

    vertical-align: middle;
}


.ms-compare-table tbody tr:hover td,
.ms-compare-table tbody tr:hover th {
    background: #f8fbff;
}

/* .ms-section-row td {
    background: #f7f9fc;
    color: #071C63;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 20px;
} */

.ms-section-row td {
    background: #f0f5ff;

    color: #071C63;

    font-weight: 800;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    padding: 12px 22px;

    border-bottom: 1px solid #dfe8f5;

    text-align: left;

    position: relative;

    z-index: 10;
}

.ms-section-row:hover td {
    background: #f7f9fc;
}

.ms-dash {
    color: #94a3b8;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Add-ons ---------- */
.ms-addons-section {
    padding: 20px 0;
}

.ms-addon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ms-addon-card {
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(7, 28, 99, 0.08);
    transition: all 0.25s ease;
}

.ms-addon-card:hover {
    border-color: #FF7A00;
    box-shadow: 0 10px 25px rgba(255, 122, 0, 0.12);
    transform: translateY(-4px);
}

.ms-addon-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #071C63;
}

.ms-addon-price {
    font-size: 20px;
    font-weight: 800;
    color: #0B5FFF !important;
    margin: 0 0 12px;
}

.ms-addon-price small {
    font-size: 14px;
    font-weight: 500;
    color: #667085;
}

.ms-strike {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 500;
    margin-right: 6px;
}

.ms-addon-card p {
    color: #4b5c6b;
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
    margin: 0 0 20px;
}

/* ---------- Content Source & Reference ---------- */
.ms-source-section {
    padding: 20px 0;
    font-family: Montserrat, sans-serif;
}

.ms-source-card {
    background: #f8fbff;
    border: 1px solid #e3e8ee;
    border-radius: 14px;
    padding: 30px 32px;
    /*max-width: 900px;*/
    margin: 0 auto;
}

.ms-source-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    color: #071C63;
}

.ms-source-card p {
    margin: 0 0 12px;
    color: #4b5c6b;
    font-size: 14px;
    line-height: 1.7;
}

.ms-source-card p:last-of-type {
    margin-bottom: 18px;
}

.ms-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0B5FFF;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.ms-source-link:hover {
    text-decoration: underline;
}

/* =====================================================================
   RESPONSIVE
   Breakpoints (desktop-first cascade, largest to smallest):
   3840 → 2560 → 1920 → 1440 → 1366 → 1280 → 1024 → 768 → 576 → 480 → 375 → 320

   Note: .ms-plan-grid no longer changes grid-template-columns at any
   breakpoint (it's a horizontal scroller now, not a grid). Card height is
   handled globally by align-items:stretch on .ms-plan-grid, so these
   breakpoints only adjust card WIDTH (flex-basis/width) and padding —
   the old fixed min-height per breakpoint has been removed.
   ===================================================================== */

/* ---------- 3840px — 4K / ultra-wide desktops ---------- */
@media (min-width: 3840px) {
    .ms-section-head h2 {
        font-size: 46px;
    }

    .ms-section-head {
        max-width: 820px;
    }

    .ms-amount {
        font-size: 48px;
    }

    .ms-plan-grid,
    .ms-addon-grid {
        gap: 32px;
    }

    .ms-plan-card {
        flex-basis: 500px;
        width: 380px;
        padding: 30px 20px;
    }

    .ms-compare-table {
        font-size: 16px;
    }

    .ms-category-tab {
        padding: 15px 40px;
        font-size: 16px;
    }
}

/* ---------- 2560px — large / QHD desktops ---------- */
@media (min-width: 2560px) and (max-width: 3839px) {
    .ms-section-head h2 {
        font-size: 40px;
    }

    .ms-amount {
        font-size: 44px;
    }

    .ms-plan-grid,
    .ms-addon-grid {
        gap: 28px;
    }

    .ms-plan-card {
        flex-basis: 500px;
        width: 360px;
        padding: 26px 18px;
    }
}

/* ---------- 1440px — laptop / small desktop ---------- */
@media (max-width: 1440px) {
    .ms-container {
        max-width: 1140px;
    }

    .ms-plan-grid {
        gap: 20px;
    }

    .ms-plan-card {
        flex-basis: 500px;
        width: 500px;
        padding: 18px 14px;
    }

    .ms-plan-apps {
        padding-top: 24px;
    }

    .ms-app-chips {
        gap: 8px;
    }

    .ms-chip {
        min-height: 35px;
        padding: 7px 13px;
    }

    .ms-addon-grid {
        gap: 20px;
    }
}

/* ---------- 1366px — common laptop resolution ---------- */
@media (max-width: 1366px) {
    .ms-container {
        max-width: 1080px;
    }

    .ms-section-head h2 {
        font-size: 36px;
    }

    .ms-amount {
        font-size: 36px;
    }
    
}

/* ---------- 1280px — small laptop / large tablet landscape ---------- */
@media (max-width: 1280px) {
    .ms-container {
        max-width: 1180px;
    }

    .ms-plan-grid {
        gap: 24px;
    }

    .ms-plan-card {
        flex-basis: 480px;
        width: 480px;
        padding: 18px 14px;
    }

    .ms-plan-apps {
        padding-top: 23px;
    }

    .ms-chip {
        font-size: 12px;
        min-height: 34px;
        padding: 7px 12px;
    }

    .ms-section-head h2 {
        font-size: 32px;
    }
    .ms-amount {
        font-size: 32px;
    }

    .ms-addon-grid {
        gap: 18px;
    }
}

/* ---------- 1100px — legacy breakpoint retained ---------- */
@media (max-width: 1100px) {
    .ms-addon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- 1024px — tablet landscape ---------- */
@media (max-width: 1024px) {
    .ms-container {
        padding: 0 18px;
    }

    .ms-plan-card {
        flex-basis: 460px;
        width: 460px;
        padding: 17px 14px;
    }

    .ms-plan-apps {
        padding-top: 22px;
    }

    .ms-plan-apps .ms-plan-subhead {
        margin-bottom: 14px;
    }

    .ms-app-chips {
        gap: 7px;
    }

    .ms-chip {
        min-height: 33px;
        padding: 6px 11px;
        font-size: 12px;
    }

    .ms-addon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ms-section-head h2 {
        font-size: 30px;
    }

    .ms-amount {
        font-size: 30px;
    }

    .ms-plans-section,
    .ms-compare-section,
    .ms-addons-section {
        padding: 20px 0;
    }
}

/* ---------- 768px — tablet portrait ---------- */
@media (max-width: 768px) {
    .ms-plans-section,
    .ms-compare-section,
    .ms-addons-section {
        padding: 50px 0;
    }

    .ms-plan-card {
        flex-basis: 80vw;
        width: 80vw;
        max-width: 500px;
        min-height: 700px;
        padding: 16px 14px;
    }

    .ms-feature-list {
        height:210px;
        max-height: 210px;
    }

    .ms-plan-name {
        min-height: 44px;
    }

    .ms-plan-tagline {
        min-height: 60px;
    }

    .ms-plan-apps {
        /* margin-top: auto; */
        padding-top: 22px;
    }

    .ms-plan-apps .ms-plan-subhead {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .ms-app-chips {
        gap: 7px;
    }

    .ms-chip {
        min-height: 33px;
        padding: 6px 10px;
        font-size: 11.5px;
    }

    .ms-addon-grid {
        grid-template-columns: 1fr;
    }

    .ms-category-tabs {
        gap: 8px;
    }

    .ms-category-tab {
        padding: 11px 22px;
        font-size: 14px;
    }

    .ms-toggle {
        flex-wrap: wrap;
        max-width: 92%;
        justify-content: center;
    }

    .ms-section-head h2 {
        font-size: 28px;
    }
}

/* ---------- 576px — large mobile / small tablet ---------- */
@media (max-width: 576px) {
    .ms-container {
        padding: 0 16px;
    }

    .ms-section-head {
        margin-bottom: 28px;
    }

    .ms-section-head h2 {
        font-size: 24px;
    }

    .ms-section-head p {
        font-size: 14px;
    }

    .ms-plan-card {
        flex-basis: 84vw;
        width: 84vw;
        max-width: 500px;
        min-height: 660px;
        padding: 15px 12px;
    }

    .ms-feature-list {
        height:190px;
        max-height: 190px;
    }

    .ms-plan-name {
        font-size: 18px;
        min-height: 42px;
    }

    .ms-plan-tagline {
        min-height: 56px;
    }

    .ms-plan-apps {
        /* margin-top: auto; */
        padding-top: 20px;
    }

    .ms-plan-apps .ms-plan-subhead {
        font-size: 12px;
        margin-bottom: 13px;
    }

    .ms-app-chips {
        gap: 6px;
    }

    .ms-chip {
        min-height: 31px;

        padding: 6px 9px;

        font-size: 11px;
    }

    .ms-amount {
        font-size: 28px;
    }

    .ms-addon-card {
        padding: 22px;
    }

    .ms-compare-table {
        min-width: 640px;
        font-size: 13px;
    }

    .ms-category-tab {
        flex: 1 1 auto;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ---------- 480px — small mobile ---------- */
@media (max-width: 480px) {
    .ms-section-head h2 {
        font-size: 22px;
    }

    .ms-plan-card {
        flex-basis: 86vw;
        width: 86vw;
        min-height: 640px;
        padding: 14px 11px;
    }

    .ms-feature-list {
        height:180px;
        max-height: 180px;
    }

    .ms-plan-apps {
        padding-top: 18px;
    }

    .ms-app-chips {
        gap: 6px;
    }

    .ms-chip {
        min-height: 30px;

        padding: 5px 8px;

        font-size: 10.5px;
    }

    .ms-amount {
        font-size: 26px;
    }

    .ms-toggle-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .ms-compare-table {
        min-width: 620px;
        font-size: 13px;
    }
}

/* ---------- 375px — standard modern phone (iPhone-class) ---------- */
@media (max-width: 375px) {
    .ms-container {
        padding: 0 14px;
    }

    .ms-eyebrow {
        font-size: 12px;
    }

    .ms-btn {
        padding: 11px 20px;
        font-size: 14px;
    }

    .ms-plans-section,
    .ms-compare-section,
    .ms-addons-section {
        padding: 40px 0;
    }

    .ms-section-head h2 {
        font-size: 20px;
    }

    .ms-section-head p {
        font-size: 13.5px;
    }

    .ms-toggle {
        padding: 5px;
        gap: 6px;
    }

    .ms-toggle-btn {
        padding: 8px 13px;
        font-size: 12.5px;
    }

    .ms-plan-card {
        flex-basis: 88vw;
        width: 88vw;
        min-height: 620px;
        padding: 13px 10px;
    }

    .ms-feature-list {
        height:170px;
        max-height: 170px;
    }

    .ms-plan-name {
        font-size: 17px;
        min-height: 40px;
    }

    .ms-plan-tagline {
        font-size: 13px;
        min-height: 52px;
    }

    .ms-plan-apps {
        padding-top: 17px;
    }

    .ms-plan-apps .ms-plan-subhead {
        font-size: 11.5px;
        margin-bottom: 12px;
    }

    .ms-app-chips {
        gap: 5px;
    }

    .ms-chip {
        min-height: 29px;

        padding: 5px 8px;

        font-size: 10px;
    }

    .ms-amount {
        font-size: 26px;
    }

    .ms-currency {
        font-size: 16px;
    }

    .ms-feature-list li {
        font-size: 13px;
    }

    .ms-addon-card {
        padding: 20px;
    }

    .ms-addon-card h3 {
        font-size: 16px;
    }

    .ms-addon-price {
        font-size: 20px;
    }

    .ms-compare-table {
        min-width: 560px;
        font-size: 12.5px;
    }

    .ms-compare-table thead th,
    .ms-compare-table tbody th,
    .ms-compare-table tbody td {
        padding: 10px 14px;
    }

    .ms-compare-table thead {
    position: relative;

    z-index: 100;
}

    .ms-compare-table tbody th {
    position: sticky;

    left: 0;

    z-index: 20;

    background: #ffffff;

    box-shadow: 4px 0 8px rgba(7, 28, 99, 0.03);
}

    .ms-compare-table thead th:first-child {
    min-width: 300px;

    width: 300px;

    position: sticky;

    left: 0;

    z-index: 110;

    background: linear-gradient(
        180deg,
        #f8fbff 0%,
        #edf4ff 100%
    );
}


/* Other plan columns */

.ms-compare-table thead th:not(:first-child) {
    min-width: 220px;
}

    .ms-category-tab {
        padding: 9px 14px;
        font-size: 12.5px;
    }
}

/* ---------- 320px — smallest supported phone (e.g. iPhone SE 1st gen) ---------- */
@media (max-width: 320px) {
    .ms-container {
        padding: 0 12px;
    }

    .ms-btn {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
    }

    .ms-plans-section,
    .ms-compare-section,
    .ms-addons-section {
        padding: 34px 0;
    }

    .ms-section-head h2 {
        font-size: 18px;
    }

    .ms-toggle {
        max-width: 100%;
        width: 100%;
    }

    .ms-toggle-btn {
        flex: 1 1 auto;
        padding: 8px 10px;
        font-size: 11.5px;
    }

    .ms-category-tabs {
        width: 100%;
    }

    .ms-category-tab {
        flex: 1 1 auto;
        padding: 9px 10px;
        font-size: 11.5px;
    }

    .ms-plan-card {
        flex-basis: 90vw;
        width: 90vw;
        min-height: 600px;
        padding: 12px 9px;
    }

    .ms-feature-list {
        height:160px;
        max-height: 160px;
    }

    .ms-plan-name {
        font-size: 16px;
        min-height: 38px;
    }

    .ms-plan-apps {
        padding-top: 16px;
    }

    .ms-plan-apps .ms-plan-subhead {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .ms-app-chips {
        gap: 5px;
    }

    .ms-chip {
        min-height: 28px;

        padding: 5px 7px;

        font-size: 9.5px;
    }

    .ms-amount {
        font-size: 24px;
    }

    .ms-plan-billing,
    .ms-plan-note {
        font-size: 11.5px;
    }

    .ms-feature-list li {
        font-size: 12.5px;
        gap: 8px;
    }

    .ms-addon-card {
        padding: 16px;
    }

    .ms-addon-price {
        font-size: 18px;
    }

    .ms-compare-table {
        min-width: 520px;
        font-size: 12px;
    }

    .ms-compare-table thead th,
    .ms-compare-table tbody th,
    .ms-compare-table tbody td {
        padding: 8px 12px;
    }
}

/* ==========================================================
   FIXED COMPARISON TABLE HEADER
   JavaScript creates a duplicate header when scrolling.
========================================================== */

.ms-fixed-compare-head {
    position: fixed;

    display: none;

    top: 0;
    left: 0;

    z-index: 99999;

    overflow: hidden;

    background: #ffffff;

    border-bottom: 1px solid #dfe8f5;

    box-shadow:
        0 4px 14px rgba(7, 28, 99, 0.12);

    pointer-events: none;

    box-sizing: border-box;
}

.ms-fixed-compare-head.is-active {
    display: block;
}

.ms-fixed-compare-head-inner {
    position: relative;

    width: max-content;

    will-change: transform;
}

.ms-fixed-compare-head table {
    border-collapse: separate;
    border-spacing: 0;

    margin: 0;

    table-layout: fixed;

    background: #ffffff;
}

.ms-fixed-compare-head th {
    box-sizing: border-box;

    background: linear-gradient(
        180deg,
        #f8fbff 0%,
        #edf4ff 100%
    );

    color: #344054;

    text-align: left;

    padding: 20px 22px;

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    border-bottom: 1px solid #dfe8f5;

    white-space: normal;

    vertical-align: middle;
}

.ms-fixed-compare-head .ms-th-price {
    display: block;

    margin-top: 4px;

    color: #0B5FFF;

    font-size: 16px;

    font-weight: 800;

    text-transform: none;

    letter-spacing: normal;
}

.ms-fixed-compare-head .ms-th-price small {
    color: #667085;

    font-size: 14px;

    font-weight: 500;
}


/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width: 769px) {

    .ms-fixed-compare-head th {
        padding: 20px 22px;
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 768px) {

    .ms-fixed-compare-head th {
        padding: 10px 14px;

        font-size: 12.5px;
    }

    .ms-fixed-compare-head .ms-th-price {
        font-size: 14px;
    }

    .ms-fixed-compare-head .ms-th-price small {
        font-size: 11px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 576px) {

    .ms-fixed-compare-head th {
        padding: 10px 14px;

        font-size: 12px;
    }

    .ms-fixed-compare-head .ms-th-price {
        font-size: 13px;
    }

    .ms-fixed-compare-head .ms-th-price small {
        font-size: 10px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 375px) {

    .ms-fixed-compare-head th {
        padding: 8px 12px;

        font-size: 11px;
    }

    .ms-fixed-compare-head .ms-th-price {
        font-size: 12px;
    }

}

/* ==========================================================
   FINAL COMPARISON TABLE RESPONSIVE OVERRIDES
   ----------------------------------------------------------
   IMPORTANT:
   - Only comparison table selectors are changed here.
   - Plan cards, feature lists, addons, tabs, buttons and
     all other Microsoft 365 sections remain unchanged.
   - The table intentionally remains wider than the viewport
     on mobile and scrolls horizontally inside .ms-table-wrap.
========================================================== */


/* ==========================================================
   COMPARISON SECTION
========================================================== */

.ms-compare-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    position: relative;

    padding: 50px 0;

    background: #f8fbff;

    border-top: 1px solid #e3e8ee;
    border-bottom: 1px solid #e3e8ee;

    overflow: visible !important;
}

.ms-compare-section.is-hidden {
    display: none;
}


/* ==========================================================
   COMPARISON TABLE WRAPPER
   Horizontal scrolling ONLY.
========================================================== */

.ms-compare-section .ms-table-wrap {
    position: relative;

    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    overflow-x: auto;
    overflow-y: visible;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior-x: contain;

    scrollbar-width: thin;
    scrollbar-color: #0B5FFF #e3e8ee;

    background: #ffffff;

    border: 1px solid #e4ebf5;

    border-radius: 14px;

    box-shadow:
        0 8px 30px rgba(7, 28, 99, 0.08);
}

.ms-compare-section .ms-table-wrap::-webkit-scrollbar {
    width: 0;
    height: 8px;
}

.ms-compare-section .ms-table-wrap::-webkit-scrollbar-track {
    background: #eef2f8;
    border-radius: 999px;
}

.ms-compare-section .ms-table-wrap::-webkit-scrollbar-thumb {
    background: #0B5FFF;
    border-radius: 999px;
}

.ms-compare-section .ms-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #084bc9;
}


/* ==========================================================
   COMPARISON TABLE
   IMPORTANT:
   width:max-content prevents the table collapsing into
   the narrow mobile column shown in the screenshot.
========================================================== */

.ms-compare-section .ms-compare-table {
    width: max-content;
    min-width: 1100px;
    max-width: none;

    margin: 0;

    border-collapse: separate;
    border-spacing: 0;

    table-layout: auto;

    font-size: 14px;

    box-sizing: border-box;
}


/* ==========================================================
   TABLE HEADER
========================================================== */

.ms-compare-section .ms-compare-table thead th {
    position: relative;

    box-sizing: border-box;

    width: 220px;
    min-width: 220px;

    padding: 20px 22px;

    background: linear-gradient(
        180deg,
        #f8fbff 0%,
        #edf4ff 100%
    );

    color: #344054;

    text-align: left;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.45;

    text-transform: uppercase;
    letter-spacing: 0.05em;

    border-bottom: 1px solid #dfe8f5;

    box-shadow:
        0 2px 0 #dfe8f5,
        0 4px 12px rgba(7, 28, 99, 0.05);

    vertical-align: middle;
}


/* Feature column */

.ms-compare-section .ms-compare-table thead th:first-child {
    width: 300px;
    min-width: 300px;
}


/* Plan columns */

.ms-compare-section .ms-compare-table thead th:not(:first-child) {
    width: 220px;
    min-width: 220px;
}


/* Existing header label */

.ms-compare-section .ms-th-label {
    min-width: 300px;
}


/* Header price */

.ms-compare-section .ms-th-price {
    display: block;

    margin-top: 4px;

    color: #0B5FFF;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.2;

    text-transform: none;
    letter-spacing: normal;
}

.ms-compare-section .ms-th-price small {
    color: #667085;

    font-size: 14px;
    font-weight: 500;
}


/* ==========================================================
   TABLE BODY
========================================================== */

.ms-compare-section .ms-compare-table tbody th {
    width: 350px;
    min-width: 350px;

    box-sizing: border-box;

    padding: 13px 22px;

    text-align: left;

    color: #4b5c6b;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;

    white-space: normal;

    background: #ffffff;

    border-bottom: 1px solid #edf2f7;

    vertical-align: middle;
}

.ms-compare-section .ms-compare-table tbody td {
    width: 240px;
    min-width: 240px;

    box-sizing: border-box;

    padding: 13px 22px;

    text-align: center;

    color: #1e293b;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;

    background: #ffffff;

    border-bottom: 1px solid #edf2f7;

    vertical-align: middle;
}


/* Hover */

.ms-compare-section .ms-compare-table tbody tr:hover td,
.ms-compare-section .ms-compare-table tbody tr:hover th {
    background: #f8fbff;
}


/* ==========================================================
   COMPARISON SECTION ROWS
========================================================== */

.ms-compare-section .ms-compare-table tr.ms-section-row td,
.ms-compare-section .ms-compare-table .ms-section-row td {
    width: auto;

    min-width: 0 !important;

    padding: 12px 22px !important;

    background: #f0f5ff !important;

    color: #071C63;

    font-size: 13px !important;
    font-weight: 800 !important;

    line-height: 1.4;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    border-bottom: 1px solid #dfe8f5;

    vertical-align: middle;
}


/* ==========================================================
   1440px
========================================================== */

@media (max-width: 1440px) {

    .ms-compare-section .ms-compare-table {
        min-width: 1060px;
    }

    .ms-compare-section .ms-compare-table thead th:first-child,
    .ms-compare-section .ms-compare-table tbody th {
        width: 350px;
        min-width: 350px;
    }

    .ms-compare-section .ms-compare-table thead th:not(:first-child),
    .ms-compare-section .ms-compare-table tbody td {
        width: 240px;
        min-width: 240px;
    }
}


/* ==========================================================
   1280px
========================================================== */

@media (max-width: 1280px) {

    .ms-compare-section .ms-compare-table thead th {
        padding: 18px;
    }

    .ms-compare-section .ms-compare-table tbody th,
    .ms-compare-section .ms-compare-table tbody td {
        padding: 12px 18px;
    }
}


/* ==========================================================
   1024px
========================================================== */

@media (max-width: 1024px) {

    .ms-compare-section {
        padding: 45px 0;
    }

    .ms-compare-section .ms-compare-table {
        min-width: 980px;
        font-size: 13px;
    }

    .ms-compare-section .ms-compare-table thead th {
        width: 180px;
        min-width: 180px;

        padding: 16px 15px;

        font-size: 13px;
    }

    .ms-compare-section .ms-compare-table thead th:first-child,
    .ms-compare-section .ms-compare-table tbody th {
        width: 350px;
        min-width: 350px;
    }

    .ms-compare-section .ms-compare-table thead th:not(:first-child),
    .ms-compare-section .ms-compare-table tbody td {
        width: 240px;
        min-width: 240px;
    }

    .ms-compare-section .ms-compare-table tbody th,
    .ms-compare-section .ms-compare-table tbody td {
        padding: 11px 15px;
        font-size: 13px;
    }

    .ms-compare-section .ms-compare-table .ms-section-row td {
        padding: 11px 15px !important;
        font-size: 12px !important;
    }
}


/* ==========================================================
   768px
========================================================== */

@media (max-width: 768px) {

    .ms-compare-section {
        padding: 40px 0;
    }

    .ms-compare-section .ms-table-wrap {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;
        overflow-y: visible;

        -webkit-overflow-scrolling: touch;

        border-radius: 10px;
    }

    .ms-compare-section .ms-compare-table {
        width: max-content;
        min-width: 900px;

        font-size: 12px;
    }

    .ms-compare-section .ms-compare-table thead th {
        width: 165px;
        min-width: 165px;

        padding: 13px 14px;

        font-size: 12px;

        line-height: 1.4;
    }

    .ms-compare-section .ms-compare-table thead th:first-child,
    .ms-compare-section .ms-compare-table tbody th {
        width: 350px;
        min-width: 350px;
    }

    .ms-compare-section .ms-compare-table thead th:not(:first-child),
    .ms-compare-section .ms-compare-table tbody td {
        width: 240px;
        min-width: 240px;
    }

    .ms-compare-section .ms-compare-table tbody th,
    .ms-compare-section .ms-compare-table tbody td {
        padding: 10px 14px;
        font-size: 12px;
    }

    .ms-compare-section .ms-compare-table .ms-section-row td {
        padding: 10px 14px !important;
        font-size: 11px !important;
    }
}


/* ==========================================================
   576px
========================================================== */

@media (max-width: 576px) {

    .ms-compare-section {
        padding: 35px 0;
    }

    .ms-compare-section .ms-table-wrap {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;
        overflow-y: visible;

        -webkit-overflow-scrolling: touch;

        border-radius: 8px;
    }

    .ms-compare-section .ms-compare-table {
        width: max-content;
        min-width: 820px;

        font-size: 11.5px;
    }

    .ms-compare-section .ms-compare-table thead th {
        width: 150px;
        min-width: 150px;

        padding: 11px 12px;

        font-size: 11.5px;
    }

    .ms-compare-section .ms-compare-table thead th:first-child,
    .ms-compare-section .ms-compare-table tbody th {
        width: 220px;
        min-width: 220px;
    }

    .ms-compare-section .ms-compare-table thead th:not(:first-child),
    .ms-compare-section .ms-compare-table tbody td {
        width: 220px;
        min-width: 220px;
    }

    .ms-compare-section .ms-compare-table tbody th,
    .ms-compare-section .ms-compare-table tbody td {
        padding: 9px 12px;
        font-size: 11.5px;
    }

    .ms-compare-section .ms-compare-table .ms-section-row td {
        padding: 9px 12px !important;
        font-size: 10.5px !important;
    }
}


/* ==========================================================
   480px
========================================================== */

@media (max-width: 480px) {

    .ms-compare-section .ms-compare-table {
        width: max-content;
        min-width: 780px;
    }

    .ms-compare-section .ms-compare-table thead th {
        width: 145px;
        min-width: 145px;

        padding: 10px 11px;

        font-size: 11px;
    }

    .ms-compare-section .ms-compare-table thead th:first-child,
    .ms-compare-section .ms-compare-table tbody th {
        width: 220px;
        min-width: 220px;
    }

    .ms-compare-section .ms-compare-table thead th:not(:first-child),
    .ms-compare-section .ms-compare-table tbody td {
        width: 220px;
        min-width: 220px;
    }

    .ms-compare-section .ms-compare-table tbody th,
    .ms-compare-section .ms-compare-table tbody td {
        padding: 8px 11px;
        font-size: 11px;
    }

    .ms-compare-section .ms-compare-table .ms-section-row td {
        padding: 8px 11px !important;
        font-size: 10px !important;
    }
}


/* ==========================================================
   375px
========================================================== */

@media (max-width: 375px) {

    .ms-compare-section {
        padding: 30px 0;
    }

    .ms-compare-section .ms-compare-table {
        width: max-content;
        min-width: 740px;

        font-size: 10.5px;
    }

    .ms-compare-section .ms-compare-table thead th {
        width: 140px;
        min-width: 140px;

        padding: 9px 10px;

        font-size: 10.5px;
    }

    .ms-compare-section .ms-compare-table thead th:first-child,
    .ms-compare-section .ms-compare-table tbody th {
        width: 220px;
        min-width: 220px;
    }

    .ms-compare-section .ms-compare-table thead th:not(:first-child),
    .ms-compare-section .ms-compare-table tbody td {
        width: 220px;
        min-width: 220px;
    }

    .ms-compare-section .ms-compare-table tbody th,
    .ms-compare-section .ms-compare-table tbody td {
        padding: 8px 10px;
        font-size: 10.5px;
    }

    .ms-compare-section .ms-compare-table .ms-section-row td {
        padding: 8px 10px !important;
        font-size: 10px !important;
    }
}


/* ==========================================================
   320px
========================================================== */

@media (max-width: 320px) {

    .ms-compare-section {
        padding: 28px 0;
    }

    .ms-compare-section .ms-compare-table {
        width: max-content;
        min-width: 700px;

        font-size: 10px;
    }

    .ms-compare-section .ms-compare-table thead th {
        width: 132px;
        min-width: 132px;

        padding: 8px 9px;

        font-size: 10px;
    }

    .ms-compare-section .ms-compare-table thead th:first-child,
    .ms-compare-section .ms-compare-table tbody th {
        width: 220px;
        min-width: 220px;
    }

    .ms-compare-section .ms-compare-table thead th:not(:first-child),
    .ms-compare-section .ms-compare-table tbody td {
        width: 220px;
        min-width: 220px;
    }

    .ms-compare-section .ms-compare-table tbody th,
    .ms-compare-section .ms-compare-table tbody td {
        padding: 7px 9px;
        font-size: 10px;
    }

    .ms-compare-section .ms-compare-table .ms-section-row td {
        padding: 7px 9px !important;
        font-size: 9.5px !important;
    }
}


/* ==========================================================
   FIXED COMPARISON HEADER
   Only the cloned comparison header is affected.
========================================================== */

.ms-fixed-compare-head {
    position: fixed;

    display: none;

    top: 0;
    left: 0;

    width: 100vw;
    max-width: 100vw;

    z-index: 99999;

    overflow: hidden;

    box-sizing: border-box;

    background: #ffffff;

    border-bottom: 1px solid #dfe8f5;

    box-shadow:
        0 4px 14px rgba(7, 28, 99, 0.12);

    pointer-events: none;
}

.ms-fixed-compare-head.is-active {
    display: block;
}

.ms-fixed-compare-head-inner {
    position: relative;

    width: max-content;
    min-width: max-content;

    will-change: transform;
}

.ms-fixed-compare-head table {
    width: max-content;
    min-width: 1100px;
    max-width: none;

    margin: 0;

    border-collapse: separate;
    border-spacing: 0;

    table-layout: auto;

    background: #ffffff;
}

.ms-fixed-compare-head th {
    box-sizing: border-box;

    width: 220px;
    min-width: 220px;

    background: linear-gradient(
        180deg,
        #f8fbff 0%,
        #edf4ff 100%
    );

    color: #344054;

    text-align: left;

    padding: 20px 22px;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.45;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    border-bottom: 1px solid #dfe8f5;

    white-space: normal;

    vertical-align: middle;
}

.ms-fixed-compare-head th:first-child {
    width: 300px;
    min-width: 300px;
}

.ms-fixed-compare-head .ms-th-price {
    display: block;

    margin-top: 4px;

    color: #0B5FFF;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.2;

    text-transform: none;

    letter-spacing: normal;
}

.ms-fixed-compare-head .ms-th-price small {
    color: #667085;

    font-size: 14px;

    font-weight: 500;
}


/* Fixed header — 1024px */

@media (max-width: 1024px) {

    .ms-fixed-compare-head table {
        min-width: 980px;
    }

    .ms-fixed-compare-head th {
        width: 180px;
        min-width: 180px;

        padding: 16px 15px;

        font-size: 13px;
    }

    .ms-fixed-compare-head th:first-child {
        width: 250px;
        min-width: 250px;
    }

    .ms-fixed-compare-head .ms-th-price {
        font-size: 15px;
    }

    .ms-fixed-compare-head .ms-th-price small {
        font-size: 12px;
    }
}


/* Fixed header — 768px */

@media (max-width: 768px) {

    .ms-fixed-compare-head {
        width: 100vw;
        max-width: 100vw;

        left: 0;
        right: 0;

        overflow: hidden;
    }

    .ms-fixed-compare-head-inner {
        width: max-content;
        min-width: max-content;
    }

    .ms-fixed-compare-head table {
        width: max-content;
        min-width: 900px;

        table-layout: auto;
    }

    .ms-fixed-compare-head th {
        width: 165px;
        min-width: 165px;

        padding: 13px 14px;

        font-size: 12px;
    }

    .ms-fixed-compare-head th:first-child {
        width: 230px;
        min-width: 230px;
    }

    .ms-fixed-compare-head .ms-th-price {
        font-size: 14px;
    }

    .ms-fixed-compare-head .ms-th-price small {
        font-size: 10px;
    }
}


/* Fixed header — 576px */

@media (max-width: 576px) {

    .ms-fixed-compare-head table {
        min-width: 820px;
    }

    .ms-fixed-compare-head th {
        width: 150px;
        min-width: 150px;

        padding: 11px 12px;

        font-size: 11.5px;
    }

    .ms-fixed-compare-head th:first-child {
        width: 210px;
        min-width: 210px;
    }

    .ms-fixed-compare-head .ms-th-price {
        font-size: 13px;
    }

    .ms-fixed-compare-head .ms-th-price small {
        font-size: 9px;
    }
}


/* Fixed header — 480px */

@media (max-width: 480px) {

    .ms-fixed-compare-head table {
        min-width: 780px;
    }

    .ms-fixed-compare-head th {
        width: 145px;
        min-width: 145px;

        padding: 10px 11px;

        font-size: 11px;
    }

    .ms-fixed-compare-head th:first-child {
        width: 195px;
        min-width: 195px;
    }

    .ms-fixed-compare-head .ms-th-price {
        font-size: 12px;
    }

    .ms-fixed-compare-head .ms-th-price small {
        font-size: 9px;
    }
}


/* Fixed header — 375px */

@media (max-width: 375px) {

    .ms-fixed-compare-head table {
        min-width: 740px;
    }

    .ms-fixed-compare-head th {
        width: 140px;
        min-width: 140px;

        padding: 9px 10px;

        font-size: 10.5px;
    }

    .ms-fixed-compare-head th:first-child {
        width: 180px;
        min-width: 180px;
    }

    .ms-fixed-compare-head .ms-th-price {
        font-size: 11px;
    }

    .ms-fixed-compare-head .ms-th-price small {
        font-size: 8.5px;
    }
}


/* Fixed header — 320px */

@media (max-width: 320px) {

    .ms-fixed-compare-head table {
        min-width: 700px;
    }

    .ms-fixed-compare-head th {
        width: 132px;
        min-width: 132px;

        padding: 8px 9px;

        font-size: 10px;
    }

    .ms-fixed-compare-head th:first-child {
        width: 170px;
        min-width: 170px;
    }

    .ms-fixed-compare-head .ms-th-price {
        font-size: 10.5px;
    }

    .ms-fixed-compare-head .ms-th-price small {
        font-size: 8px;
    }
}

/* ==========================================================
   FINAL FIX — NO WHITE SPACE BELOW FIXED COMPARISON HEADER
   ----------------------------------------------------------
   The sticky header is cloned by JavaScript. Its height must be
   determined by the cloned table content, not by a forced height.
   ========================================================== */

.ms-fixed-compare-head {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    line-height: normal !important;
}

.ms-fixed-compare-head-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: normal !important;
}

.ms-fixed-compare-head table {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border-spacing: 0 !important;
    border-collapse: separate !important;

    line-height: normal !important;
}

.ms-fixed-compare-head thead,
.ms-fixed-compare-head tr {
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}

.ms-fixed-compare-head th {
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;

    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.ms-fixed-compare-head::before,
.ms-fixed-compare-head::after,
.ms-fixed-compare-head-inner::before,
.ms-fixed-compare-head-inner::after {
    content: none !important;
    display: none !important;
}

/* ==========================================================
   FINAL — PLAN FILTER RESPONSIVE OVERRIDES
   ----------------------------------------------------------
   Keep all four filter buttons on one line.
   These selectors are intentionally last in the stylesheet.
========================================================== */

.ms-plan-filter-row {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;

    flex-wrap: nowrap !important;

    gap: 12px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    box-sizing: border-box !important;
}

.ms-category-tabs,
.ms-toggle {
    width: auto !important;
    max-width: none !important;

    flex: 0 0 auto !important;

    flex-wrap: nowrap !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ms-category-tabs {
    display: inline-flex !important;
}

.ms-toggle {
    display: inline-flex !important;
}

.ms-category-tab,
.ms-toggle-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {

    .ms-plan-filter-row {
        gap: 10px !important;
    }

    .ms-category-tabs {
        gap: 6px !important;
    }

    .ms-category-tab {
        min-width: 76px !important;
        height: 34px !important;
        padding: 7px 14px !important;
        font-size: 12px !important;
    }

    .ms-toggle {
        padding: 3px !important;
    }

    .ms-toggle-btn {
        min-width: 84px !important;
        height: 28px !important;
        padding: 6px 11px !important;
        font-size: 10px !important;
    }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {

    .ms-plan-filter-row {
        gap: 8px !important;
        overflow: visible !important;
    }

    .ms-category-tabs {
        gap: 5px !important;
    }

    .ms-category-tab {
        min-width: 70px !important;
        height: 32px !important;
        padding: 6px 11px !important;
        border-width: 1px !important;
        border-radius: 8px !important;
        font-size: 10px !important;
    }

    .ms-toggle {
        padding: 3px !important;
    }

    .ms-toggle-btn {
        min-width: 76px !important;
        height: 27px !important;
        padding: 5px 9px !important;
        font-size: 9px !important;
    }
}

/* ---------- 576px ---------- */
@media (max-width: 576px) {

    .ms-plan-filter-row {
        gap: 6px !important;
    }

    .ms-category-tabs {
        gap: 4px !important;
    }

    .ms-category-tab {
        min-width: 62px !important;
        height: 30px !important;
        padding: 5px 8px !important;
        font-size: 9px !important;
    }

    .ms-toggle {
        padding: 2px !important;
    }

    .ms-toggle-btn {
        min-width: 68px !important;
        height: 25px !important;
        padding: 5px 7px !important;
        font-size: 8px !important;
    }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {

    .ms-plan-filter-row {
        gap: 5px !important;
    }

    .ms-category-tabs {
        gap: 3px !important;
    }

    .ms-category-tab {
        min-width: 57px !important;
        height: 29px !important;
        padding: 5px 7px !important;
        font-size: 8px !important;
    }

    .ms-toggle {
        padding: 2px !important;
    }

    .ms-toggle-btn {
        min-width: 63px !important;
        height: 24px !important;
        padding: 5px 6px !important;
        font-size: 7.5px !important;
    }
}

/* ---------- 375px ---------- */
@media (max-width: 375px) {

    .ms-plan-filter-row {
        gap: 4px !important;
    }

    .ms-category-tabs {
        gap: 2px !important;
    }

    .ms-category-tab {
        min-width: 52px !important;
        height: 27px !important;
        padding: 4px 6px !important;
        border-radius: 7px !important;
        font-size: 7.5px !important;
    }

    .ms-toggle {
        padding: 2px !important;
    }

    .ms-toggle-btn {
        min-width: 58px !important;
        height: 23px !important;
        padding: 4px 5px !important;
        font-size: 7px !important;
    }
}

/* ---------- 320px ---------- */
@media (max-width: 320px) {

    .ms-plan-filter-row {
        gap: 3px !important;
    }

    .ms-category-tab {
        min-width: 48px !important;
        height: 26px !important;
        padding: 4px 5px !important;
        font-size: 7px !important;
    }

    .ms-toggle-btn {
        min-width: 53px !important;
        height: 22px !important;
        padding: 4px 4px !important;
        font-size: 6.5px !important;
    }
}

/* ==========================================================
   MICROSOFT 365 PLAN FILTER — STICKY
   ----------------------------------------------------------
   Business / Enterprise / With Teams / Without Teams
   stays visible while scrolling through the plan section.
   It automatically stops when #plans ends.
   ========================================================== */

#plans.ms-plans-section {
    position: relative;
    overflow: visible !important;
}

/* Sticky filter row */
#plans .ms-plan-filter-row {
    position: sticky !important;

    /* Website header height */
    top: 85px !important;
    border-radius: 15px;

    z-index: 900 !important;

    width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    gap: 12px !important;

    margin-top: 0 !important;

    /*
     * Important:
     * Keep enough background so plan cards do not appear
     * through the sticky filter.
     */
    padding-top: 12px !important;
    padding-bottom: 12px !important;

    background: #ffffff !important;

    box-sizing: border-box !important;

    /*
     * Prevent content underneath from visually showing.
     */
    isolation: isolate;
}

/* Keep both button groups horizontal */
#plans .ms-category-tabs,
#plans .ms-toggle {
    flex: 0 0 auto !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex-wrap: nowrap !important;

    margin: 0 !important;
}

/* Keep buttons from wrapping */
#plans .ms-category-tab,
#plans .ms-toggle-btn {
    flex: 0 0 auto !important;

    white-space: nowrap !important;
}


/* ==========================================================
   SHADOW WHILE STICKY
   ========================================================== */

#plans .ms-plan-filter-row {
    box-shadow: 0 6px 16px rgba(7, 28, 99, 0.06);
}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 1200px) {

    #plans .ms-plan-filter-row {
        top: 85px !important;
    }

}


/* ==========================================================
   1024px
   ========================================================== */

@media (max-width: 1024px) {

    #plans .ms-plan-filter-row {
        top: 68px !important;

        gap: 10px !important;

        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

}


/* ==========================================================
   768px
   ========================================================== */

@media (max-width: 768px) {

    #plans .ms-plan-filter-row {
        top: 64px !important;

        gap: 8px !important;

        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

}


/* ==========================================================
   576px
   ========================================================== */

@media (max-width: 576px) {

    #plans .ms-plan-filter-row {
        top: 60px !important;

        gap: 6px !important;

        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

}


/* ==========================================================
   480px
   ========================================================== */

@media (max-width: 480px) {

    #plans .ms-plan-filter-row {
        top: 58px !important;

        gap: 5px !important;

        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }

}


/* ==========================================================
   375px
   ========================================================== */

@media (max-width: 375px) {

    #plans .ms-plan-filter-row {
        top: 56px !important;

        gap: 4px !important;

        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

}


/* ==========================================================
   320px
   ========================================================== */

@media (max-width: 320px) {

    #plans .ms-plan-filter-row {
        top: 54px !important;

        gap: 3px !important;

        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

}


/* ==========================================================
   MICROSOFT 365 PLAN CARD NAVIGATION
   ----------------------------------------------------------
   Previous / Next buttons for the horizontal plan scroller.

   IMPORTANT:
   - Existing .ms-plan-grid CSS is NOT changed.
   - Existing .ms-plan-card CSS is NOT changed.
   - Existing filter CSS is NOT changed.
   - Existing sticky filter is NOT changed.
========================================================== */


/* ==========================================================
   PLAN SLIDER WRAPPER
========================================================== */

.ms-plan-slider {
    position: relative;

    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    overflow: visible;

    isolation: isolate;
}


/* ==========================================================
   EXISTING PLAN GRID
   ----------------------------------------------------------
   Keep the existing grid exactly as it is.
========================================================== */

.ms-plan-slider .ms-plan-grid {
    position: relative;

    z-index: 1;
}


/* ==========================================================
   NAVIGATION BUTTONS
========================================================== */

.ms-plan-nav {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dce6f5;

    border-radius: 50%;

    background: #ffffff;

    color: #0B5FFF;

    font-family: inherit;

    font-size: 16px;

    line-height: 1;

    cursor: pointer;

    z-index: 20;

    box-sizing: border-box;

    box-shadow:
        0 8px 22px rgba(7, 28, 99, 0.16);

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease,
        opacity .25s ease;
}


/* ==========================================================
   LEFT / RIGHT POSITION
========================================================== */

.ms-plan-nav-prev {
    left: -23px;
}

.ms-plan-nav-next {
    right: -23px;
}


/* ==========================================================
   HOVER
========================================================== */

.ms-plan-nav:hover:not(:disabled) {
    background: #0B5FFF;

    border-color: #0B5FFF;

    color: #ffffff;

    box-shadow:
        0 12px 28px rgba(11, 95, 255, 0.28);

    transform:
        translateY(-50%) scale(1.06);
}


/* ==========================================================
   ACTIVE / CLICK
========================================================== */

.ms-plan-nav:active:not(:disabled) {
    transform:
        translateY(-50%) scale(.96);
}


/* ==========================================================
   DISABLED
========================================================== */

.ms-plan-nav:disabled {
    opacity: .35;

    cursor: default;

    box-shadow:
        0 5px 14px rgba(7, 28, 99, 0.07);

    background: #f7f9fc;

    border-color: #e5ebf3;

    color: #94a3b8;
}


/* ==========================================================
   FOCUS ACCESSIBILITY
========================================================== */

.ms-plan-nav:focus-visible {
    outline: 3px solid rgba(11, 95, 255, .25);

    outline-offset: 3px;
}


/* ==========================================================
   ICON
========================================================== */

.ms-plan-nav i {
    display: block;

    line-height: 1;

    pointer-events: none;
}


/* ==========================================================
   1440px
========================================================== */

@media (max-width: 1440px) {

    .ms-plan-nav {
        width: 44px;
        height: 44px;

        font-size: 15px;
    }

    .ms-plan-nav-prev {
        left: -20px;
    }

    .ms-plan-nav-next {
        right: -20px;
    }

}


/* ==========================================================
   1280px
========================================================== */

@media (max-width: 1280px) {

    .ms-plan-nav {
        width: 42px;
        height: 42px;

        font-size: 14px;
    }

    .ms-plan-nav-prev {
        left: -40px;
    }

    .ms-plan-nav-next {
        right: -40px;
    }

}


/* ==========================================================
   1024px
========================================================== */

@media (max-width: 1024px) {

    .ms-plan-nav {
        width: 40px;
        height: 40px;

        font-size: 13px;
    }

    .ms-plan-nav-prev {
        left: -14px;
    }

    .ms-plan-nav-next {
        right: -14px;
    }

}


/* ==========================================================
   768px
========================================================== */

@media (max-width: 768px) {

    .ms-plan-nav {
        width: 38px;
        height: 38px;

        font-size: 12px;
    }

    .ms-plan-nav-prev {
        left: -8px;
    }

    .ms-plan-nav-next {
        right: -8px;
    }

}


/* ==========================================================
   576px
========================================================== */

@media (max-width: 576px) {

    .ms-plan-nav {
        width: 36px;
        height: 36px;

        font-size: 11px;

        box-shadow:
            0 6px 16px rgba(7, 28, 99, 0.14);
    }

    .ms-plan-nav-prev {
        left: -5px;
    }

    .ms-plan-nav-next {
        right: -5px;
    }

}


/* ==========================================================
   480px
========================================================== */

@media (max-width: 480px) {

    .ms-plan-nav {
        width: 34px;
        height: 34px;

        font-size: 10px;
    }

    .ms-plan-nav-prev {
        left: -3px;
    }

    .ms-plan-nav-next {
        right: -3px;
    }

}


/* ==========================================================
   375px
========================================================== */

@media (max-width: 375px) {

    .ms-plan-nav {
        width: 32px;
        height: 32px;

        font-size: 9px;
    }

    .ms-plan-nav-prev {
        left: -2px;
    }

    .ms-plan-nav-next {
        right: -2px;
    }

}


/* ==========================================================
   320px
========================================================== */

@media (max-width: 320px) {

    .ms-plan-nav {
        width: 30px;
        height: 30px;

        font-size: 8px;
    }

    .ms-plan-nav-prev {
        left: -1px;
    }

    .ms-plan-nav-next {
        right: -1px;
    }

}

/* ==========================================================
   FINAL FIX — MICROSOFT 365 STICKY HEADER vs WEBSITE MEGA MENU
   ----------------------------------------------------------
   The website mega menu must always appear above the
   Microsoft comparison sticky header.
========================================================== */

.ms-fixed-compare-head {
    z-index: 1000 !important;
}

/*
 * Keep the Microsoft comparison header above normal page
 * content, but below the website navigation / mega menu.
 */
.ms-fixed-compare-head.is-active {
    z-index: 1000 !important;
}

/*
 * Datanet navigation / mega menus must remain above
 * the comparison sticky header.
 */
header,
.header,
.site-header,
.main-header,
.navbar,
.mega-menu,
.currency-dropdown {
    /* Existing header z-index values remain authoritative. */
}


