@font-face {
    font-family: "MSM Segoe UI Variable";
    src:
        local("Segoe UI Variable"),
        local("Segoe UI"),
        url("/presence/wp-content/uploads/2026/03/Segoe-UI-Variable.woff2") format("woff2"),
        url("/presence/wp-content/uploads/2026/03/Segoe-UI-Variable.woff") format("woff"),
        url("/presence/wp-content/uploads/2026/03/Segoe-UI-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
}

#msm-customize-modal {
    font-family: "MSM Segoe UI Variable", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.msm-empty-alert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 16px;
    background: rgba(17, 17, 17, 0.55);
    align-items: center;
    justify-content: center;
    font-family: "MSM Segoe UI Variable", "Inter", "Helvetica Neue", Arial, sans-serif;
}

.msm-empty-alert-box {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 26px;
    box-shadow: 0 22px 56px rgba(17, 13, 14, 0.12);
    padding: 24px 16px 18px;
}

.msm-empty-alert-header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
}

.msm-empty-alert-side {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.msm-empty-alert-side--left {
    justify-self: start;
}

.msm-empty-alert-side--right {
    justify-self: end;
}

.msm-empty-alert-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e9e3de;
    border-radius: 999px;
    background: #fff;
    color: #5e595c;
    cursor: pointer;
}

.msm-empty-alert-icon-btn:hover {
    background: #f7f3ef;
    border-color: #d8d0ca;
    color: #1f1a1d;
}

.msm-empty-alert-icon-btn--ghost {
    visibility: hidden;
    pointer-events: none;
}

.msm-empty-alert-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.msm-empty-alert-logo-img {
    max-width: 148px;
    width: auto;
    height: auto;
    display: inline-block;
}

.msm-empty-alert-logo-text {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 500;
    color: #111;
}

.msm-empty-alert-body {
    text-align: center;
}

.msm-empty-alert-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #232024;
}

.msm-empty-alert-copy {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #6f6668;
}

.msm-empty-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin: 18px 0 0;
    border: 1px solid #302d32;
    border-radius: 999px;
    background: #302d32;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.msm-empty-alert-btn:hover,
.msm-empty-alert-btn:active {
    background: #302d32;
    border-color: #302d32;
}

@media (min-width: 481px) {
    .msm-empty-alert-box {
        border-radius: 34px;
        padding: 32px 22px 22px;
    }

    .msm-empty-alert-header {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .msm-empty-alert-side,
    .msm-empty-alert-icon-btn {
        width: 40px;
        height: 40px;
    }

    .msm-empty-alert-logo-img {
        max-width: 190px;
    }
}

/* Typography: headings + paragraphs (scoped to MSM modal) */
#msm-customize-modal h1,
#msm-customize-modal h2,
#msm-customize-modal h3,
#msm-customize-modal h4,
#msm-customize-modal h5,
#msm-customize-modal h6{
    font-family:"MSM Segoe UI Variable", "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-weight:400 !important;
}

#msm-customize-modal p{
    font-family:"MSM Segoe UI Variable", "Outfit", "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-weight:300 !important;
}

/* MSM typography override (requested) */
#msm-customize-modal,
#msm-customize-modal * {
    font-family: "MSM Segoe UI Variable", "Inter", "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 300 !important;
}

/* MYSTYLE FX-style layout */
.msm-fx-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.msm-fx-shell {
    width: 100%;
    max-width: 925px;
    height: min(92vh, 820px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.msm-fx-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #777;
    font-size: 26px;
    line-height: 36px;
    cursor: pointer;
}

.msm-fx-header {
    padding: 18px 24px 0px;
    text-align: center;
}
@media (max-width: 760px) {
    .msm-fx-title {
        font-size: 16px !important;
    }
    .msm-fx-subtitle{
            font-size: 12px !important; 
    }
    .msm-fx-footer{
        display: block !important;
    }
    button.msm-close-modal.msm-fx-close{
        padding: 0px !important ;
        border:none !important;
        font-size: 20px !important;
    }
}
.msm-fx-selected{
    display: block !important;
}

.msm-fx-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.msm-fx-tab-text,
.msm-fx-group-title,
.msm-fx-group-inst,
.msm-fx-group-as,
.msm-fx-tile-label,
.msm-selected-options {
    display: inline-block;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.msm-fx-group-title,
.msm-fx-tab-text,
.msm-fx-tile-label,
.msm-selected-options {
    font-weight: 500 !important;
}

.msm-fx-tile-label {
    min-height: 28px;
}

.msm-fx-subtitle {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

.msm-fx-body {
    flex: 1;
    display: block;
    min-height: 0;
    overflow: auto;
}

.msm-fx-left {
    background: #fff;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 18px;
    padding-top: 0;
}

/* Ensure left preview images never inherit max-width:none from theme CSS */
#msm-customize-modal .msm-fx-left img{
    max-width: 100% !important;
    margin: 0 !important;
}
/* img.msm-preview-layer.msm-preview-layer--base{
    padding-top: 50px !important;
} */
/* Restored preview (previous behavior), but fit nicely in popup */
.msm-preview-container {
    width: 100%;
    /* max-width: 200px; */
    height: 100%;
    background: #fff;
    /* border: 1px solid #eee; */
    border-radius: 8px;
    padding: 16px;
    display: block;
    /* gap: 12px; */
    box-sizing: border-box;
    position: relative;
}

.msm-preview-container.msm-preview-loading .msm-preview-stage,
.msm-preview-container.msm-preview-loading .msm-preview-base-wrap,
.msm-preview-container.msm-preview-loading .msm-preview-top,
.msm-preview-container.msm-preview-loading .msm-preview-col,
.msm-preview-container.msm-preview-loading .msm-preview-img,
.msm-preview-container.msm-preview-loading .msm-preview-layer {
    opacity: 0 !important;
}

.msm-preview-container.msm-preview-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 8;
}

.msm-preview-container.msm-preview-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 3px solid rgba(17, 17, 17, 0.16);
    border-top-color: #111;
    border-radius: 50%;
    animation: msm-preview-spinner .7s linear infinite;
    z-index: 9;
}

@keyframes msm-preview-spinner {
    to { transform: rotate(360deg); }
}

/* Layered stage preview (client-side composition; no generation request) */
.msm-preview-stage-wrap{
    flex: 1;
    display: flex;
    margin-bottom: 10px;
    width: 100%;
    min-width: 0;
}

.msm-preview-stage-wrap .msm-preview-stage{
    flex: 1;
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
}

.msm-preview-base-wrap{
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: center;
}

.msm-preview-stage{
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    /* padding-top: 56px; */
    box-sizing: border-box;
}

/* Tabs centered at the top of the modal (moved into header via JS) */
.msm-fx-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: center;
    background: #f1f1f1;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    padding: 3px;
    width: 100%;
    max-width: 520px;
    margin: 12px auto 0;
}

/* Hide DEFAULT button (layout only) */
.msm-fx-default {
    display: none !important;
}

.msm-preview-layer{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.msm-preview-layer--base {
    object-position: center top;
}

.msm-preview-layer--neck,
.msm-preview-layer--sleeve-left,
.msm-preview-layer--sleeve-right {
    object-position: center top;
}

.msm-preview-layer--length {
    object-position: center bottom;
}

.msm-preview-stage-placeholder{
    position: relative;
    z-index: 2;
}

.msm-preview-top {
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 10px; */
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
}

.msm-preview-col {
    /* border: 1px solid #e5e5e5; */
    background: #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
    text-align: center;
}

/* Disabled special sizing for length preview */
/* .msm-preview-col.msm-preview-length {
    flex: 1;
    min-height: 220px;
} */

.msm-preview-placeholder {
    color: #bbb;
    font-size: 12px;
}

.msm-preview-col img,
.msm-preview-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    /* object-fit: contain; */
    display: block;
    margin: 0 auto;
}

.msm-preview-col.msm-preview-length,
.msm-preview-col.msm-preview-length .msm-preview-img {
    width: 100%;
}

.msm-fx-right {
    border-left: 1px solid #eee;
    padding: 10px 18px 18px;
    overflow: visible;
}

/* Tabs for Neck / Sleeve / Length */
.msm-fx-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 12px;
}

.msm-fx-tab {
    border: none;
    background: transparent;
    color: #333;
    padding: 6px 12px;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
}

button.msm-fx-tab {
    font-size: 13px;
    width: auto;
    border: none;
    padding: 6px 10px;
}

.msm-fx-tab.is-active {
    background: #111;
    color: #fff;
    font-weight: 500;
    box-shadow: none;
}

.msm-fx-tab-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    opacity: 1;
}

.msm-fx-tab.is-active .msm-fx-tab-icon {
    opacity: 1;
    filter: invert(1) brightness(2);
}

.msm-fx-tab[data-master="msm_neck"] .msm-fx-tab-icon {
    background-image: url("https://euctocampus.com/presence/wp-content/uploads/2026/03/Group-1321315340.png");
}

.msm-fx-tab[data-master="msm_sleeve"] .msm-fx-tab-icon {
    background-image: url("https://euctocampus.com/presence/wp-content/uploads/2026/03/Capa_1.png");
}

.msm-fx-tab[data-master="msm_length"] .msm-fx-tab-icon {
    background-image: url("https://euctocampus.com/presence/wp-content/uploads/2026/03/Group-1321315342.png");
}

.msm-fx-group[data-master="msm_neck"] .msm-fx-group-title::before,
.msm-fx-group[data-master="msm_sleeve"] .msm-fx-group-title::before,
.msm-fx-group[data-master="msm_length"] .msm-fx-group-title::before {
    content: "";
    width: 12px;
    height: 12px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.msm-fx-group[data-master="msm_neck"] .msm-fx-group-title::before {
    background-image: url("https://euctocampus.com/presence/wp-content/uploads/2026/03/Group-1321315340.png");
}

.msm-fx-group[data-master="msm_sleeve"] .msm-fx-group-title::before {
    background-image: url("https://euctocampus.com/presence/wp-content/uploads/2026/03/Capa_1.png");
}

.msm-fx-group[data-master="msm_length"] .msm-fx-group-title::before {
    background-image: url("https://euctocampus.com/presence/wp-content/uploads/2026/03/Group-1321315342.png");
}

/* Saved styles (FX) */
.msm-fx-saved-styles {
    padding: 12px 0 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.msm-fx-saved-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
    margin: 4px 0 12px;
}

.msm-fx-saved-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(107px, 1fr));
    gap: 12px;
    align-items: start;
}

.msm-fx-saved-card {
    width: auto;
    max-width: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msm-fx-saved-card:hover {
    border-color: transparent;
}

.msm-fx-saved-card.is-current {
    border-color: #111;
}

.msm-fx-saved-media {
    position: relative;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.msm-fx-saved-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.msm-fx-saved-noimg {
    color: #999;
    font-size: 12px;
}

.msm-fx-saved-caption {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.msm-fx-saved-check {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #2ea44f;
    background: #fff;
    color: #2ea44f;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.msm-fx-saved-card.is-current .msm-fx-saved-check {
    display: flex;
}

.msm-fx-saved-del {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, background 0.15s ease;
}

.msm-fx-saved-del:hover {
    background: #000;
    transform: scale(1.05);
}

.msm-fx-saved-media:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}

.msm-fx-saved-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.msm-fx-saved-btn {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    cursor: pointer;
    line-height: 1;
}

.msm-fx-saved-select {
    background: #111;
    color: #fff;
}

.msm-fx-saved-reject {
    background: #fff;
    color: #111;
}

.msm-fx-group {
    margin-top: 18px;
}

.msm-fx-group-head {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
}

.msm-fx-group-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #111;
}

.msm-fx-group-meta {
    display: flex;
    gap: 28px;
    color: #888;
    font-size: 13px;
}

.msm-fx-group-row {
    margin-top: 10px;
    display: grid;
    /* DEFAULT button is hidden; keep row tight like reference */
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
}

.msm-fx-default {
    width: 87px;
    height: 87px;
    border: 1px solid #ef6b6b;
    background: #f2f2f2;
    color: #bbb;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.msm-fx-arrow {
    height: 32px;
    width: 32px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.msm-fx-arrow::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid #1f1f1f;
    border-right: 2px solid #1f1f1f;
    display: block;
    transform: rotate(45deg);
}

.msm-fx-prev::before {
    transform: rotate(315deg);
}

.msm-fx-next::before {
    transform: rotate(135deg);
}

.msm-fx-arrow:hover {
    background: transparent;
    border: none;
    box-shadow: none;
}

.msm-fx-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 6px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.msm-fx-strip::-webkit-scrollbar {
    display: none;
}

/* Desktop: show 4 cards in view */
@media (min-width: 992px) {
    .msm-fx-body {
        display: flex;
        flex-direction: row;
    }

    /* Desktop: show tabs as heading row */
    .msm-fx-tabs {
        display: flex;
        margin: 0 auto 8px;
        pointer-events: none;
    }

    .msm-fx-tab {
        background: transparent;
        color: #333;
        box-shadow: none;
        cursor: default;
    }

    .msm-fx-tab.is-active {
        background: transparent;
        color: #333;
        box-shadow: none;
    }

    .msm-fx-tab.is-active .msm-fx-tab-icon {
        filter: none;
    }

    .msm-fx-right {
        overflow: visible;
        flex: 0 0 55%;
        max-width: 55%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .msm-fx-left {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .msm-fx-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        width: 400px;
        align-items: start;
    }

    .msm-fx-group {
        margin-top: 0;
    }

    .msm-fx-group-head {
        display: none;
    }

    h3.msm-fx-group-title {
        font-size: 12px;
        text-align: center;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .msm-fx-group-meta {
        display: none;
    }

    .msm-fx-group-row {
        grid-template-columns: 1fr;
        grid-template-rows: 30px auto 30px;
        gap: 10px;
        align-items: center;
        justify-items: center;
    }

    .msm-fx-default {
        display: none;
    }

    button.msm-fx-arrow.msm-fx-prev,
    button.msm-fx-arrow.msm-fx-next {
        width: 30px;
        padding: 0px !important;
        height: 30px;
        margin: auto;
    }

    .msm-fx-prev { grid-row: 1; }
    .msm-fx-strip { grid-row: 2; }
    .msm-fx-next { grid-row: 3; }

    .msm-fx-strip {
        display: flex;
        flex-direction: column;
        gap: 14px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 6px 0 0;
        margin: auto;
        /* At least 3 cards visible at a time */
        max-height: calc((56px + 6px + 16px) * 3 + 14px * 2);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .msm-fx-strip::-webkit-scrollbar { display: none; }

    /* Small square option cards (vertical stack) */
    #msm-customize-modal .msm-fx-tile {
        width: 86px;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #msm-customize-modal .msm-fx-tile-thumb,
    #msm-customize-modal .msm-fx-tile-thumb-img {
        width: 56px;
        height: 56px;
    }

    #msm-customize-modal .msm-fx-tile-thumb {
        margin: 0;
        border: 1px solid #e0e0e0;
        border-radius: 0;
    }

    #msm-customize-modal .msm-fx-tile-label {
        display: block;
        font-size: 11px;
        padding: 6px 0 0;
        text-align: center;
        color: #333;
    }

    .msm-fx-left {
        min-width: 0;
    }

    .msm-fx-right {
        min-width: 0;
    }

}

/* Mobile: show 3 cards in view */
@media (max-width: 768px) {
    .msm-fx-strip {
        gap: 12px;
    }

    .msm-fx-tabs {
        max-width: 340px;
        margin: 12px auto 6px;
    }

    .msm-fx-tab {
        font-size: 11px;
        padding: 6px 10px;
    }

    .msm-fx-tab-icon {
        width: 12px;
        height: 12px;
        background-size: 12px 12px;
    }

    .msm-fx-tabs {
        display: flex;
    }

    .msm-fx-saved-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .msm-fx-tile {
        width: auto;
        flex: 0 0 calc((100% - 24px) / 3);
        min-height: 0;
    }

    .msm-fx-tile-thumb,
    .msm-fx-tile-thumb-img {
        width: 96px;
        height: 96px;
    }

    .msm-fx-tile-label {
        font-size: 12px;
    }

    .msm-fx-arrow {
        width: 30px;
        height: 30px;
    }

    button.msm-fx-arrow.msm-fx-prev,
    button.msm-fx-arrow.msm-fx-next {
        rotate: 270deg !important;
        border: none !important;
    }

}

.msm-fx-tile {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 0;
    padding: 0;
    width: 87px;
    min-height: 87px;
    flex: 0 0 auto;
    cursor: pointer;
}

.msm-fx-tile:hover {
    background: none;
    border: none;
}

.msm-fx-tile.is-active {
    border-color: #ef6b6b;
    box-shadow: 0 0 0 1px #ef6b6b inset;
    color: white !important;
}

.msm-fx-tile-thumb{
    width:50px;
    height:50px;
    border:1px solid #e0e0e0;
    background:#fafafa;
    overflow:hidden;
    margin:6px auto 0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.msm-fx-tile-thumb-img{
    width:50px;
    height:50px;
    object-fit:cover;
    display:block;
}

.msm-fx-tile-thumb--empty{
    background:#f2f2f2;
    color:#999;
}

.msm-fx-tile-thumb-empty{
    font-size:9px;
    line-height:1.2;
}

.msm-fx-tile-label {
    padding: 8px 6px 10px;
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
}

.msm-fx-footer {
    border-top: 1px solid #eee;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.msm-fx-selected {
    color: #333;
    font-size: 14px;
}

.msm-fx-footer-right {
    display: flex;
    gap: 14px;
}

#msm-customize-modal .msm-save-style.button {
    background: #fff;
    border: 1px solid #ddd;
    color: #999;
    padding: 10px 18px;
}

#msm-customize-modal .msm-add-to-cart.button {
    background: #ef6b6b;
    border: 1px solid #ef6b6b;
    color: #fff;
    padding: 12px 22px;
    font-weight: 700;
}

#msm-customize-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

#msm-customize-modal h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #555;
    border-bottom: 2px solid #0071a1;
    padding-bottom: 5px;
}

.msm-preview-area {
    background: #f9f9f9;
}

.msm-preview-area .msm-area-label {
    color: #0071a1;
    font-size: 14px;
}

.msm-preview-area .msm-area-content {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.msm-item {
    cursor:pointer;
    padding:12px;
    border:1px solid #ddd;
    margin-bottom:8px;
    border-radius:6px;
    transition:all 0.2s ease;
    background:#fff;
    font-size:13px;
    line-height:1.4;
}

.msm-item:hover {
    border-color:#0071a1;
    background:#f9f9f9;
}

.msm-item strong {
    display:block;
    color:#333;
    font-weight:500;
}

.msm-item:has-selector(.msm-price-tag) {
    font-size:12px;
    color:#999;
    margin-top:4px;
}

.msm-option-group {
    margin-bottom:24px;
}

.msm-option-group h4 {
    margin:0 0 12px 0;
    font-size:13px;
    font-weight:600;
    color:#333;
    text-transform:uppercase;
    letter-spacing:0.5px;
    border-bottom:2px solid #0071a1;
    padding-bottom:10px;
}

.msm-close-modal:hover {
    background: #000 !important;
}

.msm-add-to-cart:hover {
    background: #005177 !important;
}

.msm-open-customize {
    margin-top: 10px;
    background: #0071a1 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 4px;
}

.msm-open-customize:hover {
    background: #005177 !important;
}

@media (max-width: 768px) {
    .msm-fx-modal {
        padding: 0;
    }

    .msm-fx-shell {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }

    .msm-fx-body {
        flex-direction: column;
    }

    .msm-fx-left,
    .msm-fx-right {
        flex: 0 0 auto;
        border-left: none;
    }

    .msm-fx-right {
        border-top: 1px solid #eee;
    }

    .msm-fx-group-head {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .msm-fx-group-row {
        /* DEFAULT button is hidden; keep row tight */
        grid-template-columns: 40px 1fr 40px;
        grid-template-rows: none;
    }

    .msm-fx-prev,
    .msm-fx-strip,
    .msm-fx-next {
        grid-row: auto;
    }

    .msm-fx-strip {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .msm-preview-container {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .msm-preview-stage-wrap {
        margin-bottom: 0;
    }

    .msm-preview-stage {
        width: 100%;
        aspect-ratio: 3 / 4;
        min-height: 280px;
    }

    .msm-preview-stage-wrap,
    .msm-preview-stage {
        display: none !important;
    }

    .msm-preview-base-wrap {
        display: flex;
        width: 100%;
    }

    .msm-preview-col {
        min-height: 110px;
    }

    /* Disabled special sizing for length preview on large screens */
    /* .msm-preview-col.msm-preview-length {
        min-height: 180px;
    } */

    .msm-fx-saved-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .msm-preview-stage-wrap {
            display: flex !important;
            width: 100% !important;
            margin-bottom: 0 !important;
        }

        .msm-preview-stage {
            display: flex !important;
            width: 100% !important;
            aspect-ratio: 3 / 4;
            min-height: 280px;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            will-change: transform;
            contain: paint;
        }

        .msm-preview-layer,
        .msm-preview-layer--base,
        .msm-preview-layer--length,
        .msm-preview-layer--sleeve-left,
        .msm-preview-layer--sleeve-right,
        .msm-preview-layer--neck {
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        #msm-customize-modal .msm-preview-base-wrap {
            display: none !important;
        }
    }
}

@media (max-width: 420px) {
    .msm-fx-saved-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
button.msm-fx-tab.is-active span {
    color: white !important;
}

button:focus:not(:focus-visible) > span {
    color: #000000 !important;
}

body.msm-customize-open .e-contact-buttons,
body.msm-customize-open .e-contact-buttons__chat-button-container,
body.msm-customize-open .intercom-lightweight-app,
body.msm-customize-open .intercom-launcher,
body.msm-customize-open .crisp-client,
body.msm-customize-open #tidio-chat,
body.msm-customize-open .tidio-chat,
body.msm-customize-open .tawk-min-container,
body.msm-customize-open #hubspot-messages-iframe-container,
body.msm-customize-open #chat-widget-container,
body.msm-customize-open [id*="chatbot"],
body.msm-customize-open [class*="chatbot"],
.msm-customize-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#msm-customize-modal .msm-fx-group-title,
#msm-customize-modal .msm-fx-selected {
    display: none !important;
}
