/* MM Admin feature tabs (screenshots) */

.mm-adm-tabs {
    max-width: 48rem;
    margin: 0 auto;
}

.mm-adm-tablist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 0 0 1.35rem;
}

.mm-adm-tab {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: rgba(26, 26, 26, 0.78);
    border-radius: 999px;
    padding: 0.48rem 0.95rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.mm-adm-tab:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    color: #1a1a1a;
}

/* Soft “try me” pulse on inactive tabs until the visitor explores */
.mm-adm-tabs:not(.has-explored) .mm-adm-tab:not(.is-active) {
    animation: mm-adm-tab-hint 3.6s ease-in-out infinite;
}

.mm-adm-tabs:not(.has-explored) .mm-adm-tab:nth-child(2):not(.is-active) {
    animation-delay: 0.35s;
}

.mm-adm-tabs:not(.has-explored) .mm-adm-tab:nth-child(3):not(.is-active) {
    animation-delay: 0.7s;
}

.mm-adm-tabs:not(.has-explored) .mm-adm-tab:nth-child(4):not(.is-active) {
    animation-delay: 1.05s;
}

.mm-adm-tabs:not(.has-explored) .mm-adm-tab:nth-child(5):not(.is-active) {
    animation-delay: 1.4s;
}

.mm-adm-tabs:not(.has-explored) .mm-adm-tab:nth-child(6):not(.is-active) {
    animation-delay: 1.75s;
}

.mm-adm-tabs:not(.has-explored) .mm-adm-tab:nth-child(7):not(.is-active) {
    animation-delay: 2.1s;
}

.mm-adm-tabs:not(.has-explored) .mm-adm-tab:nth-child(8):not(.is-active) {
    animation-delay: 2.45s;
}

@keyframes mm-adm-tab-hint {
    0%,
    12%,
    100% {
        transform: translateY(0) scale(1);
        border-color: rgba(0, 0, 0, 0.12);
        box-shadow: none;
    }
    6% {
        transform: translateY(-2px) scale(1.03);
        border-color: color-mix(in srgb, var(--primary-color) 55%, transparent);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 16%, transparent);
        color: #1a1a1a;
    }
}

.mm-adm-tab.is-active,
.mm-adm-tab[aria-selected="true"] {
    color: #141210;
    border-color: transparent;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color, var(--primary-color)) 100%
    );
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-color) 28%, transparent);
    animation: none;
}

.mm-adm-tab:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mm-adm-tabpanels {
    min-height: 18rem;
}

.mm-adm-tabpanel {
    display: none;
}

.mm-adm-tabpanel.is-active {
    display: grid;
    gap: 0.9rem;
    animation: mm-adm-tab-in 0.28s ease;
}

.mm-adm-tabpanel-copy {
    text-align: center;
    max-width: 34rem;
    margin: 0 auto;
}

.mm-adm-tabpanel-copy h3 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.mm-adm-tabpanel-copy p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(26, 26, 26, 0.72);
}

.mm-adm-tabpanel-shot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary-color) 16%, transparent);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
}

.mm-adm-tabpanel-chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(180deg, #f3f0ec 0%, #ebe6e0 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mm-adm-tabpanel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.14);
}

.mm-adm-tabpanel-dot:nth-child(1) {
    background: #ef4444;
}

.mm-adm-tabpanel-dot:nth-child(2) {
    background: #eab308;
}

.mm-adm-tabpanel-dot:nth-child(3) {
    background: #22c55e;
}

.mm-adm-tabpanel-url {
    flex: 1;
    margin-left: 0.55rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-adm-tabpanel-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.mm-adm-tabpanel-shot--placeholder {
    background: #ffffff;
}

.mm-adm-tabpanel-shot--placeholder img {
    min-height: 14rem;
    object-fit: cover;
    background:
        linear-gradient(
            165deg,
            color-mix(in srgb, var(--primary-color) 6%, #faf6f2) 0%,
            #f3f0ec 100%
        );
}

.mm-adm-tabpanel-shot--live {
    background: #faf8f6;
}

.mm-adm-order-flow-preview {
    margin: 0;
    max-width: none;
    padding: 1rem 0.9rem 1.1rem;
}

.mm-adm-order-flow-preview .mm-kiosk-preview-grid {
    gap: 0.85rem;
}

@media (min-width: 800px) {
    .mm-adm-order-flow-preview .mm-kiosk-preview-grid {
        gap: 1rem;
    }
}

@keyframes mm-adm-tab-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-adm-tabpanel.is-active {
        animation: none;
    }

    .mm-adm-tabs:not(.has-explored) .mm-adm-tab:not(.is-active) {
        animation: none;
    }
}
