:root {
    /* ── Neutrals (clean slate/cool undertone matching timetable) ── */
    --mp-bg: #f8fafc;
    --mp-surface: #ffffff;
    --mp-surface-soft: #f1f5f9;
    --mp-border: #e2e8f0;
    --mp-border-strong: #cbd5e1;
    --mp-ink: #0f172a;
    --mp-muted: #64748b;
    --mp-muted-strong: #334155;

    /* ── Primary: Maroon #8C1D2F (TaRangRian Maroon) ── */
    --mp-primary: #8C1D2F;
    --mp-primary-hover: #A82339;
    --mp-primary-soft: #F9EAEB;
    --mp-primary-glow: rgba(140, 29, 47, .18);
    --mp-primary-border: #f2ccd1;
    --mp-primary-border-hover: #e9a1ac;

    /* ── Accent: Teal #48ab9e (success / positive) ── */
    --mp-teal: #48ab9e;
    --mp-teal-soft: #eef9f7;

    /* ── Accent: Amber #ecaf53 (warning / highlight) ── */
    --mp-amber: #ecaf53;
    --mp-amber-soft: #fef8eb;

    /* ── Semantic ── */
    --mp-danger: #dc2626;

    /* ── Sidebar ── */
    --mp-sidebar-from: #2a1f1c;
    --mp-sidebar-to: #3d2a24;

    /* ── Shape & Motion ── */
    --mp-radius: 12px;
    --mp-radius-sm: 8px;
    --mp-shadow: 0 4px 24px rgba(42, 31, 28, .06);
    --mp-shadow-lg: 0 12px 40px rgba(42, 31, 28, .10);
    --mp-shadow-glow: 0 0 24px var(--mp-primary-glow);
    --mp-ease: cubic-bezier(.4, 0, .2, 1);

    /* Floating layer order */
    --mp-layer-confirm: 8800;
    --mp-layer-toast: 9000;
}

@font-face {
    font-family: "Sarabun";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/DtVjJx26TKEr37c9aAFJn2QN.woff2) format("woff2");
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@keyframes mp-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mp-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mp-pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

@keyframes mp-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.mp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--mp-bg);
    color: var(--mp-ink);
    font-family: "Inter", "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .01em;
}

h1, h2, h3, h4, h5, h6, .mp-storefront-brand strong {
    font-family: "Outfit", "Sarabun", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: .5;
}

button:disabled {
    cursor: not-allowed;
}

body.mp-busy button:disabled,
body.mp-busy input:disabled,
body.mp-busy select:disabled,
body.mp-busy textarea:disabled {
    cursor: wait;
}

.mp-btn.is-loading,
.mp-small-btn.is-loading,
.mp-icon-btn.is-loading,
button.is-loading {
    position: relative;
    cursor: wait;
}

.mp-btn-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    animation: mp-spin .75s linear infinite;
}

@keyframes mp-spin {
    to { transform: rotate(360deg); }
}

.mp-btn.is-success,
.mp-small-btn.is-success {
    border-color: #6ee7b7;
    background: #ecfdf5;
    color: #047857;
}

.mp-btn.is-error,
.mp-small-btn.is-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}

/* Mobile menu toggle */
.mp-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--mp-radius);
    background: linear-gradient(135deg, var(--mp-sidebar-from), var(--mp-sidebar-to));
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--mp-shadow);
}

.mp-menu-toggle svg {
    width: 22px;
    height: 22px;
}

.mp-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100dvh;
}

.mp-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--mp-sidebar-from), var(--mp-sidebar-to));
    color: #ffffff;
    padding: 20px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
}

.mp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 12px;
}

.mp-sidebar-brand img {
    width: 40px;
    height: 40px;
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.mp-brand-title {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
    background: linear-gradient(135deg, #f9c4bb, #f0a193);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mp-brand-subtitle {
    margin-top: 3px;
    color: #818cf8;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mp-sidebar-group {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 14px;
    padding-top: 14px;
}

.mp-sidebar-label {
    margin: 0 10px 8px;
    color: rgba(255,255,255,.42);
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mp-sidebar-help {
    margin: 0 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--mp-radius-sm);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .62);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.55;
}

.mp-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: var(--mp-radius-sm);
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    font-weight: 700;
    transition: all .2s var(--mp-ease);
    position: relative;
}

.mp-sidebar-link:hover,
.mp-sidebar-link:focus-visible {
    background: rgba(225, 113, 85, .15);
    color: #ffffff;
    outline: none;
}

.mp-sidebar-link.is-active {
    background: rgba(225, 113, 85, .2);
    color: #ffffff;
    font-weight: 900;
    box-shadow: inset 3px 0 0 var(--mp-primary);
}

.mp-sidebar-link svg {
    width: 18px;
    height: 17px;
    flex: 0 0 auto;
}

.mp-main {
    min-width: 0;
    padding: 28px 32px;
    animation: mp-fade-in .4s var(--mp-ease);
}

.mp-catalog-page {
    background: #f7f8fb;
}

.mp-storefront-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--mp-border);
    background: rgba(255, 255, 255, .94);
    padding: 10px clamp(14px, 3vw, 34px);
    backdrop-filter: blur(12px);
}

.mp-storefront-nav-compact {
    min-height: 62px;
}

.mp-storefront-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mp-storefront-brand img {
    width: 38px;
    height: 38px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 3px;
}

.mp-storefront-brand span {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.mp-storefront-brand strong {
    color: #101828;
    font-size: .94rem;
    font-weight: 950;
    line-height: 1.05;
}

.mp-storefront-brand small {
    color: var(--mp-primary);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mp-storefront-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 280px;
    min-width: 140px;
}

.mp-storefront-search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    color: var(--mp-muted);
    pointer-events: none;
}

.mp-storefront-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mp-ink);
    padding: 9px 14px 9px 40px;
    font-size: .9rem;
    font-weight: 750;
    outline: none;
    transition: border-color .2s var(--mp-ease), box-shadow .2s var(--mp-ease);
}

.mp-storefront-search input:focus {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px var(--mp-primary-glow);
}

.mp-storefront-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    justify-self: end;
    min-width: max-content;
}

.mp-user-menu {
    position: relative;
    min-width: 0;
}

.mp-user-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    max-width: 300px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mp-muted-strong);
    cursor: pointer;
    padding: 6px 10px 6px 7px;
    font-size: .84rem;
    font-weight: 900;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .2s var(--mp-ease), box-shadow .2s var(--mp-ease), color .2s var(--mp-ease);
}

.mp-user-menu-button:hover,
.mp-user-menu-button:focus-visible,
.mp-user-menu-button[aria-expanded="true"] {
    border-color: #f0b8aa;
    color: var(--mp-primary);
    box-shadow: 0 0 0 3px var(--mp-primary-glow);
    outline: none;
}

.mp-user-menu-button svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.mp-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mp-primary), var(--mp-teal));
    color: #ffffff;
    font-size: .78rem;
    font-weight: 950;
}

.mp-user-email {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 160;
    display: grid;
    gap: 4px;
    width: min(300px, calc(100vw - 28px));
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 8px;
    box-shadow: var(--mp-shadow-lg);
}

.mp-user-menu-dropdown.hidden {
    display: none;
}

.mp-user-menu-header {
    display: grid;
    gap: 2px;
    border-bottom: 1px solid var(--mp-border);
    padding: 8px 8px 10px;
}

.mp-user-menu-header span {
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 900;
}

.mp-user-menu-header strong {
    overflow: hidden;
    color: #101828;
    font-size: .86rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-user-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    width: 100%;
    border: 0;
    border-radius: var(--mp-radius-sm);
    background: transparent;
    color: var(--mp-muted-strong) !important;
    cursor: pointer;
    padding: 9px 10px;
    text-align: left;
    font-size: .84rem;
    font-weight: 850;
    transition: background .2s var(--mp-ease), color .2s var(--mp-ease);
}

.mp-user-menu-item:hover,
.mp-user-menu-item:focus-visible {
    background: var(--mp-surface-soft);
    color: var(--mp-primary) !important;
    outline: none;
}

.mp-user-menu-item svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.mp-user-menu-danger {
    border-top: 1px solid var(--mp-border);
    color: #b91c1c;
    margin-top: 4px;
}

.mp-user-menu-danger:hover,
.mp-user-menu-danger:focus-visible {
    background: #fef2f2;
    color: #b91c1c;
}

.mp-storefront-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 42px;
}

.mp-storefront-main-compact {
    padding-top: 10px;
}

.mp-storefront-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--mp-border);
    padding: 12px 0 20px;
}

.mp-storefront-intro h1 {
    margin: 0;
    max-width: 760px;
    color: #101828;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 950;
    line-height: 1.2;
}

.mp-storefront-intro p:last-child {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--mp-muted);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.6;
}

.mp-storefront-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 0 6px;
}

.mp-storefront-strip h1 {
    margin: 0;
    color: #101828;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.2;
}

.mp-storefront-strip p {
    margin: 3px 0 0;
    color: var(--mp-muted);
    font-size: .8rem;
    font-weight: 750;
}

.mp-storefront-strip-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.mp-storefront-status {
    margin-top: 8px;
}

.mp-storefront-main-compact .mp-section {
    margin-top: 8px;
}

.mp-marketplace-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.mp-marketplace-trust-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mp-muted-strong);
    padding: 8px 12px;
    font-size: .8rem;
    font-weight: 900;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.mp-marketplace-trust-row svg {
    width: 16px;
    height: 16px;
    color: var(--mp-teal);
    flex: 0 0 auto;
}

.mp-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mp-border);
}

.mp-kicker {
    margin: 0 0 6px;
    color: var(--mp-primary);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mp-title {
    margin: 0;
    color: #1a1f36;
    font-size: 1.8rem;
    font-weight: 950;
    line-height: 1.2;
}

.mp-subtitle {
    margin: 6px 0 0;
    color: var(--mp-muted);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
}

.mp-header-actions,
.mp-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mp-header-actions {
    justify-content: flex-end;
}

.mp-actions-spaced {
    margin-top: 16px;
}

.mp-account-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    color: var(--mp-muted-strong);
    padding: 7px 10px;
    font-size: .82rem;
    font-weight: 800;
}

.mp-account-pill:empty,
body:not(.mp-authenticated) [data-authenticated-only] {
    display: none;
}

body.mp-authenticated [data-guest-only] {
    display: none;
}

.mp-btn,
.mp-small-btn,
.mp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--mp-radius-sm);
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: all .2s var(--mp-ease);
}

.mp-btn {
    min-height: 42px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #e17155, #c8573e);
    color: #ffffff;
    font-size: .88rem;
    box-shadow: 0 2px 8px rgba(225, 113, 85, .25);
}

.mp-btn:hover:not(:disabled),
.mp-btn:focus-visible {
    background: linear-gradient(135deg, #c8573e, #a84530);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(225, 113, 85, .35);
    outline: none;
}

.mp-btn:active:not(:disabled) {
    transform: translateY(0);
}

.mp-btn-secondary {
    background: #ffffff;
    color: var(--mp-ink);
    border-color: var(--mp-border);
    box-shadow: var(--mp-shadow);
}

.mp-btn-secondary:hover:not(:disabled),
.mp-btn-secondary:focus-visible {
    background: var(--mp-surface-soft);
    border-color: var(--mp-primary);
    color: var(--mp-primary);
    transform: translateY(-1px);
}

.mp-btn-soft {
    background: var(--mp-primary-soft);
    color: var(--mp-primary);
    border-color: #f0b8aa;
}

.mp-btn-soft:hover:not(:disabled),
.mp-btn-soft:focus-visible {
    background: #fde4de;
    border-color: #e89684;
    color: var(--mp-primary);
}

.mp-btn-success {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, .25);
}

.mp-btn-success:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(5, 150, 105, .35);
}

.mp-small-btn {
    min-height: 34px;
    padding: 7px 12px;
    background: #ffffff;
    border-color: var(--mp-border);
    color: var(--mp-muted-strong);
    font-size: .78rem;
}

.mp-small-btn:hover:not(:disabled),
.mp-small-btn:focus-visible {
    background: var(--mp-surface-soft);
    border-color: var(--mp-primary);
    color: var(--mp-primary);
    outline: none;
}

.mp-small-btn-primary {
    background: var(--mp-primary-soft);
    border-color: #f0b8aa;
    color: var(--mp-primary);
    font-weight: 900;
}

.mp-small-btn-primary:hover:not(:disabled) {
    background: #fde4de;
    border-color: #e89684;
}

.mp-icon-btn {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-color: var(--mp-border);
    color: var(--mp-muted-strong);
    border-radius: 50%;
}

.mp-icon-btn:hover:not(:disabled) {
    background: var(--mp-primary-soft);
    color: var(--mp-primary);
    border-color: #f0b8aa;
}

.mp-btn svg,
.mp-small-btn svg,
.mp-icon-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.mp-section {
    margin-top: 24px;
    animation: mp-slide-up .5s var(--mp-ease) both;
}

.mp-admin-view-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 4px 0 18px;
    padding: 8px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: rgba(250, 248, 247, .94);
    box-shadow: 0 10px 24px rgba(42, 31, 28, .06);
    backdrop-filter: blur(12px);
}

.mp-admin-task-tabs {
    margin: -4px 0 20px;
    padding: 6px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 8px 20px rgba(42, 31, 28, .04);
}

.mp-admin-task-tabs.hidden {
    display: none;
}

.mp-admin-task-tabs .mp-tab {
    margin-bottom: 0;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.mp-admin-task-tabs .mp-tab.is-active {
    border-color: rgba(225, 113, 85, .28);
    background: var(--mp-primary-soft);
    box-shadow: inset 0 -2px 0 var(--mp-primary);
}

.mp-admin-view-section:not(.is-active),
.mp-admin-view-section.hidden {
    display: none !important;
}

.mp-admin-view-section.is-active:not(.hidden) {
    display: block !important;
}

.mp-admin-view-section.mp-grid-two.is-active:not(.hidden) {
    display: grid !important;
}

.mp-panel,
.mp-card {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    transition: box-shadow .2s var(--mp-ease), border-color .2s var(--mp-ease);
}

.mp-panel:hover,
.mp-card:hover {
    box-shadow: var(--mp-shadow-lg);
}

.mp-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: rgba(255, 255, 255, .76);
}

.mp-pagination-summary,
.mp-pagination-page {
    color: var(--mp-muted-strong);
    font-size: .82rem;
    font-weight: 800;
}

.mp-pagination-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mp-panel {
    padding: 18px;
}

.mp-panel.is-disabled {
    opacity: .58;
}

.mp-dependency-note,
.mp-disabled-reason {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    width: fit-content;
    max-width: min(100%, 680px);
    padding: 9px 12px;
    border: 1px solid #f7d08a;
    border-radius: var(--mp-radius-sm);
    background: #fffaf0;
    color: #8a4b0f;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.45;
}

.mp-dependency-note.hidden,
.mp-disabled-reason.hidden {
    display: none;
}

.mp-disabled-reason {
    margin-top: 6px;
    font-size: .76rem;
}

.mp-action-stack {
    display: grid;
    gap: 8px;
    align-items: start;
}

.mp-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.mp-panel-header-flush {
    margin-bottom: 0;
}

.mp-section-title {
    margin: 0;
    color: #101828;
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.25;
}

.mp-section-subtitle {
    margin: 5px 0 0;
    color: var(--mp-muted);
    font-size: .84rem;
    font-weight: 700;
}

.mp-dev-tool-panel {
    border-color: rgba(236, 175, 83, .58);
    background:
        linear-gradient(135deg, rgba(236, 175, 83, .08), rgba(225, 113, 85, .05)),
        var(--mp-surface);
}

.mp-dev-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px dashed rgba(236, 175, 83, .85);
    border-radius: var(--mp-radius-sm);
    background: var(--mp-amber-soft);
    color: #5f3b08;
}

.mp-dev-note svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
}

.mp-dev-note strong,
.mp-dev-note span {
    display: block;
}

.mp-dev-note strong {
    color: #3f2a08;
    font-size: .86rem;
    font-weight: 950;
}

.mp-dev-note span {
    margin-top: 3px;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.45;
}

.mp-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 14px;
}

.mp-next-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid #f0b8aa;
    border-radius: var(--mp-radius);
    background:
        linear-gradient(135deg, rgba(225, 113, 85, .06), rgba(236, 175, 83, .04)),
        #ffffff;
    box-shadow: var(--mp-shadow-lg);
    position: relative;
    overflow: hidden;
}

.mp-next-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 113, 85, .08), transparent);
    pointer-events: none;
}

.mp-next-card h2 {
    margin: 14px 0 8px;
    max-width: 680px;
    color: var(--mp-ink);
    font-size: 1.4rem;
    font-weight: 950;
    line-height: 1.3;
}

.mp-next-card p {
    margin: 0;
    max-width: 680px;
    color: var(--mp-muted-strong);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.65;
}

.mp-progress-card {
    padding: 18px;
    min-height: 210px;
}

.mp-step-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mp-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.mp-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    color: #667085;
}

.mp-step-dot svg {
    width: 15px;
    height: 15px;
}

.mp-step strong {
    display: block;
    overflow: hidden;
    color: #182230;
    font-size: .86rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-step span {
    display: block;
    margin-top: 1px;
    color: var(--mp-muted);
    font-size: .75rem;
    font-weight: 750;
}

.mp-step.is-complete .mp-step-dot {
    border-color: #6ee7b7;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.mp-step.is-active .mp-step-dot {
    border-color: #f0b8aa;
    background: linear-gradient(135deg, #fdf0ed, #f9d4cb);
    color: var(--mp-primary);
    box-shadow: 0 0 0 3px var(--mp-primary-glow);
}

.mp-step.is-locked {
    opacity: .62;
}

.mp-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.mp-admin-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mp-metric {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 90px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
    transition: all .2s var(--mp-ease);
}

.mp-metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--mp-shadow-lg);
    border-color: #f0b8aa;
}

.mp-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--mp-radius-sm);
    background: linear-gradient(135deg, #fdf0ed, #f9d4cb);
    color: var(--mp-primary);
}

.mp-metric-icon svg {
    width: 20px;
    height: 20px;
}

.mp-metric span {
    display: block;
    color: var(--mp-muted);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mp-metric strong {
    display: block;
    margin-top: 3px;
    color: var(--mp-ink);
    font-size: 1.5rem;
    font-weight: 950;
    line-height: 1.1;
}

.mp-metric small {
    display: block;
    margin-top: 2px;
    color: #a5b4cb;
    font-size: .72rem;
    font-weight: 700;
}

.mp-payment-ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.mp-payment-ops-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 92px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 15px;
    box-shadow: var(--mp-shadow);
}

.mp-payment-ops-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--mp-radius-sm);
    background: #f2f4f7;
    color: #475467;
}

.mp-payment-ops-icon svg {
    width: 20px;
    height: 20px;
}

.mp-payment-ops-card span:not(.mp-payment-ops-icon) {
    display: block;
    color: var(--mp-muted);
    font-size: .74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.mp-payment-ops-card strong {
    display: block;
    margin-top: 3px;
    color: var(--mp-ink);
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.mp-payment-ops-card small {
    display: block;
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .74rem;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mp-payment-ops-card-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.mp-payment-ops-card-success .mp-payment-ops-icon {
    background: #dcfce7;
    color: #047857;
}

.mp-payment-ops-card-warning {
    border-color: #fcd34d;
    background: #fffbeb;
}

.mp-payment-ops-card-warning .mp-payment-ops-icon {
    background: #fef3c7;
    color: #92400e;
}

.mp-payment-ops-card-danger {
    border-color: #fecdd3;
    background: #fff1f2;
}

.mp-payment-ops-card-danger .mp-payment-ops-icon {
    background: #ffe4e6;
    color: #be123c;
}

.mp-payment-ops-events {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 14px;
    margin-top: 14px;
}

.mp-finance-toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 12px;
    box-shadow: var(--mp-shadow);
}

.mp-finance-toolbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mp-finance-presets,
.mp-finance-date-fields {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mp-finance-date-fields label {
    display: grid;
    gap: 4px;
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.mp-finance-date-fields input {
    min-height: 34px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    color: var(--mp-ink);
    padding: 6px 10px;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    text-transform: none;
}

.mp-finance-range-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mp-muted-strong);
    font-size: .78rem;
    font-weight: 800;
}

.mp-finance-range-note i {
    width: 16px;
    height: 16px;
    color: var(--mp-primary);
}

.mp-finance-checks {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.mp-finance-drilldown {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.mp-payment-ops-column {
    display: grid;
    align-content: start;
    gap: 10px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 14px;
    box-shadow: var(--mp-shadow);
}

.mp-payment-ops-column h3 {
    margin: 0;
    color: #101828;
    font-size: .95rem;
    font-weight: 950;
}

.mp-finance-drilldown-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mp-finance-drilldown-header p {
    margin: 4px 0 0;
    color: var(--mp-muted-strong);
    font-size: .78rem;
    font-weight: 750;
}

.mp-finance-table td small {
    display: block;
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.mp-finance-formula {
    display: grid;
    gap: 10px;
}

.mp-finance-formula div {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: var(--mp-surface-soft);
    padding: 11px;
}

.mp-finance-formula span,
.mp-finance-formula strong,
.mp-finance-formula small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-finance-formula span {
    color: var(--mp-muted);
    font-size: .74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.mp-finance-formula strong {
    margin-top: 3px;
    color: #101828;
    font-size: 1rem;
    font-weight: 950;
}

.mp-finance-formula small {
    margin-top: 2px;
    color: var(--mp-muted-strong);
    font-size: .74rem;
    font-weight: 750;
}

.mp-production-gate-column {
    grid-column: 1 / -1;
}

.mp-production-gate-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mp-production-gate-header p {
    margin: 4px 0 0;
    color: var(--mp-muted);
    font-size: .8rem;
    font-weight: 750;
}

.mp-production-gate-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.mp-production-gate-warning {
    border-color: #fcd34d;
    background: #fffbeb;
}

.mp-production-gate-danger {
    border-color: #fecdd3;
    background: #fff1f2;
}

.mp-payment-ops-stack {
    display: grid;
    gap: 9px;
}

.mp-production-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 9px;
}

.mp-production-check {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 10px 11px;
}

.mp-production-check strong,
.mp-production-check span {
    display: block;
    overflow-wrap: anywhere;
}

.mp-production-check strong {
    color: #182230;
    font-size: .8rem;
    font-weight: 950;
}

.mp-production-check span {
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .74rem;
    font-weight: 750;
    line-height: 1.4;
}

.mp-production-check-pass {
    border-color: #bbf7d0;
}

.mp-production-check-fail {
    border-color: #fecdd3;
}

.mp-payment-ops-attention,
.mp-payment-ops-event {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--mp-border);
    border-left: 3px solid #cbd5e1;
    border-radius: var(--mp-radius-sm);
    background: #f8fafc;
    padding: 10px 11px;
}

.mp-payment-ops-attention p {
    margin: 7px 0 0;
    color: var(--mp-muted-strong);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.45;
}

.mp-payment-ops-attention-danger {
    border-left-color: #ef4444;
    background: #fff1f2;
}

.mp-payment-ops-attention-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.mp-payment-ops-event strong,
.mp-payment-ops-event small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payment-ops-event strong {
    color: #182230;
    font-size: .84rem;
    font-weight: 950;
}

.mp-payment-ops-event small {
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .74rem;
    font-weight: 750;
    line-height: 1.4;
}

.mp-payment-ops-event em {
    flex: 0 0 auto;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #ffffff;
    color: #344054;
    padding: 4px 8px;
    font-size: .7rem;
    font-style: normal;
    font-weight: 900;
}

.mp-status {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    width: fit-content;
    max-width: min(100%, 720px);
    min-height: 38px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--mp-muted-strong);
    background: #ffffff;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: all .3s var(--mp-ease);
}

.mp-status.hidden {
    display: none;
}

.mp-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.mp-status-icon svg {
    width: 14px;
    height: 14px;
}

.mp-status-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mp-status-body strong {
    color: inherit;
    font-size: .82rem;
    font-weight: 950;
    line-height: 1.45;
}

.mp-status-body small {
    color: inherit;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.45;
    opacity: .82;
}

.mp-status-info {
    background: #f8fafc;
    border-color: #d0d5dd;
    color: #344054;
}

.mp-status-success {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border-color: #6ee7b7;
    color: #047857;
}

.mp-status-error {
    border-radius: var(--mp-radius-sm);
    background: linear-gradient(135deg, #fff7f7, #fff1f2);
    border-color: #fca5a5;
    color: #b91c1c;
}

.mp-status-warning {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border-color: #fcd34d;
    color: #b45309;
}

.mp-status-large,
.mp-status[data-density="large"] {
    display: flex;
    width: 100%;
    max-width: 100%;
    border-radius: var(--mp-radius-sm);
    padding: 12px 14px;
}

.mp-upload-feedback {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 12px;
}

.mp-upload-feedback.is-info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.mp-upload-feedback.is-success {
    border-color: #86efac;
    background: #ecfdf5;
}

.mp-upload-feedback.is-error {
    border-color: #fca5a5;
    background: #fef2f2;
}

.mp-upload-feedback-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mp-upload-feedback-head strong {
    display: block;
    color: #101828;
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.35;
}

.mp-upload-feedback-head small {
    display: block;
    margin-top: 2px;
    color: var(--mp-muted);
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.4;
}

.mp-upload-feedback-percent {
    flex: 0 0 auto;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 999px;
    background: #ffffff;
    color: #344054;
    padding: 4px 8px;
    font-size: .76rem;
    font-weight: 950;
}

.mp-upload-progress-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(16, 24, 40, .10);
}

.mp-upload-progress-track span {
    display: block;
    width: var(--mp-upload-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mp-primary), var(--mp-teal));
    transition: width .24s var(--mp-ease);
}

.mp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .74rem;
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
}

.mp-badge-success {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.mp-badge-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
}

.mp-badge-danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.mp-badge-muted,
.mp-badge-neutral {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
}

.mp-badge-primary {
    background: var(--mp-primary-soft);
    border-color: #f0b8aa;
    color: var(--mp-primary);
}

.mp-grid-two {
    display: grid;
    grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
    gap: 14px;
}

.mp-grid-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    align-items: start;
    gap: 14px;
}

.mp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mp-field label {
    color: var(--mp-muted-strong);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.mp-field input,
.mp-field select,
.mp-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    color: var(--mp-ink);
    padding: 10px 12px;
    outline: none;
    transition: border-color .2s var(--mp-ease), box-shadow .2s var(--mp-ease);
}

.mp-field textarea {
    min-height: 118px;
    resize: vertical;
}

.mp-field input:focus,
.mp-field select:focus,
.mp-field textarea:focus {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px var(--mp-primary-glow);
}

.mp-field.is-invalid label,
.mp-terms-box.is-invalid strong {
    color: #b42318;
}

.mp-field.is-invalid input,
.mp-field.is-invalid select,
.mp-field.is-invalid textarea,
.mp-field input.is-invalid,
.mp-field select.is-invalid,
.mp-field textarea.is-invalid,
.mp-prompt-field input.is-invalid,
.mp-prompt-field textarea.is-invalid {
    border-color: #f04438;
    background: #fff8f7;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, .14);
}

.mp-field-message {
    display: none;
    color: #b42318;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.45;
}

.mp-field.is-invalid .mp-field-message,
.mp-terms-box.is-invalid .mp-field-message {
    display: block;
}

.mp-terms-box.is-invalid {
    border-color: #fda29b;
    background: #fff8f7;
}

.mp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mp-form-span {
    grid-column: 1 / -1;
}

.mp-search-field {
    min-width: min(320px, 100%);
}

.mp-form-submit {
    margin-top: 14px;
}

.mp-terms-box {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe8f6;
    border-radius: var(--mp-radius-sm);
    background: #f8fbff;
    cursor: pointer;
}

.mp-terms-box input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--mp-primary);
}

.mp-terms-box span {
    display: grid;
    gap: 4px;
}

.mp-terms-box strong {
    color: var(--mp-ink);
    font-size: .9rem;
}

.mp-terms-box small,
.mp-terms-box em {
    color: var(--mp-muted-strong);
    font-size: .78rem;
    font-style: normal;
    line-height: 1.45;
}

.mp-terms-box em {
    color: var(--mp-primary);
    font-weight: 800;
}

.mp-terms-box a,
.mp-policy-nav a,
.mp-policy-section a {
    color: var(--mp-primary);
    font-weight: 900;
    text-decoration: none;
}

.mp-terms-box a:hover,
.mp-policy-nav a:hover,
.mp-policy-section a:hover {
    text-decoration: underline;
}

.mp-policy-page {
    background: #f6f7fb;
}

.mp-policy-main {
    max-width: 1120px;
}

.mp-policy-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mp-policy-nav a {
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mp-muted-strong);
    font-size: .82rem;
    padding: 8px 12px;
}

.mp-policy-nav a:hover,
.mp-policy-nav a:focus-visible {
    border-color: var(--mp-primary);
    color: var(--mp-primary);
    text-decoration: none;
}

.mp-policy-hero {
    display: grid;
    gap: 10px;
    padding: 24px 0 18px;
    border-bottom: 1px solid var(--mp-border);
}

.mp-policy-hero h1 {
    color: var(--mp-ink);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 950;
    line-height: 1.1;
}

.mp-policy-hero p {
    max-width: 820px;
    color: var(--mp-muted-strong);
    font-size: 1rem;
    line-height: 1.8;
}

.mp-policy-version {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mp-policy-version span {
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mp-muted-strong);
    font-size: .82rem;
    font-weight: 800;
    padding: 8px 12px;
}

.mp-policy-section {
    display: grid;
    gap: 14px;
    padding: 24px 0;
    border-bottom: 1px solid var(--mp-border);
    scroll-margin-top: 88px;
}

.mp-policy-section h2 {
    color: var(--mp-ink);
    font-size: 1.45rem;
    font-weight: 950;
}

.mp-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mp-policy-grid article,
.mp-policy-callout {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    box-shadow: var(--mp-shadow-soft);
}

.mp-policy-grid article {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 16px;
}

.mp-policy-grid h3 {
    color: var(--mp-ink);
    font-size: 1rem;
    font-weight: 950;
}

.mp-policy-grid ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    color: var(--mp-muted-strong);
    font-size: .9rem;
    line-height: 1.65;
    list-style: disc;
}

.mp-policy-callout {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    color: var(--mp-muted-strong);
    line-height: 1.65;
}

.mp-policy-callout svg {
    width: 22px;
    height: 22px;
    color: var(--mp-primary);
    margin: 6px auto 0;
}

.mp-divider {
    height: 1px;
    margin: 18px 0;
    background: #edf1f7;
}

.mp-list {
    display: grid;
    gap: 10px;
}

.mp-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: stretch;
    gap: 16px;
}

.mp-product-card,
.mp-queue-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 16px;
    transition: all .25s var(--mp-ease);
}

.mp-product-card:hover,
.mp-queue-card:hover {
    border-color: var(--mp-primary-border-hover);
    box-shadow: 0 16px 36px rgba(140, 29, 47, 0.12);
    transform: translateY(-4px);
}

.mp-library-card {
    display: grid;
    gap: 14px;
}

.mp-order-card {
    display: grid;
    gap: 14px;
}

.mp-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 12px;
}

.mp-file-row strong,
.mp-file-row small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-file-row strong {
    color: #101828;
    font-size: .9rem;
    font-weight: 950;
}

.mp-file-row small {
    margin-top: 3px;
    color: #667085;
    font-size: .76rem;
    font-weight: 750;
}

.mp-product-main,
.mp-queue-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.mp-product-icon,
.mp-queue-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--mp-radius-sm);
    background: linear-gradient(135deg, #fdf0ed, #f9d4cb);
    color: var(--mp-primary);
}

.mp-product-icon svg,
.mp-queue-icon svg {
    width: 20px;
    height: 20px;
}

.mp-product-card h3,
.mp-queue-card h3 {
    margin: 0;
    color: #101828;
    font-size: .98rem;
    font-weight: 950;
    line-height: 1.35;
}

.mp-product-copy {
    margin: 0;
    min-height: 42px;
    color: var(--mp-muted-strong);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.mp-product-card small,
.mp-queue-card small {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #98a2b3;
    font-size: .72rem;
    font-weight: 750;
}

.mp-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.mp-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    padding: 4px 9px;
    font-size: .74rem;
    font-weight: 900;
}

.mp-chip-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.mp-chip-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #047857;
}

.mp-chip-danger {
    background: #fff1f3;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.mp-shop-section {
    display: grid;
    gap: 16px;
}

.mp-shop-quick-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 0 4px;
    scrollbar-width: thin;
}

.mp-shop-quick-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 36px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    color: #475467;
    padding: 7px 11px;
    font-size: .8rem;
    font-weight: 900;
    transition: border-color .2s var(--mp-ease), box-shadow .2s var(--mp-ease), background .2s var(--mp-ease);
}

.mp-shop-quick-filter:hover,
.mp-shop-quick-filter:focus-visible,
.mp-shop-quick-filter.is-active {
    border-color: #f0b8aa;
    background: var(--mp-primary-soft);
    color: var(--mp-primary);
    outline: none;
    box-shadow: 0 6px 18px rgba(225, 113, 85, .10);
}

.mp-shop-quick-filter svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.mp-shop-quick-filter strong {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    min-height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: inherit;
    padding: 2px 7px;
    font-size: .72rem;
}

.mp-shop-header {
    align-items: center;
    margin-bottom: 0;
}

.mp-shop-result-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mp-muted-strong);
    padding: 7px 12px;
    font-size: .8rem;
    font-weight: 950;
    white-space: nowrap;
}

.mp-shop-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.mp-shop-toolbar .mp-field {
    gap: 0;
}

.mp-shop-toolbar .mp-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.mp-shop-toolbar .mp-field select {
    min-height: 38px;
    padding: 8px 10px;
}

.mp-shop-search {
    min-width: 0;
}

.mp-active-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

.mp-active-filter-row.hidden {
    display: none;
}

.mp-shop-hint {
    color: var(--mp-muted);
    font-size: .82rem;
    font-weight: 750;
}

.mp-chip-active {
    background: var(--mp-primary-soft);
    color: var(--mp-primary);
}

.mp-shop-card {
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    min-height: 386px;
    overflow: hidden;
    padding: 0;
    border-radius: var(--mp-radius-sm);
}

.mp-shop-card:hover .mp-product-cover,
.mp-shop-card:focus-within .mp-product-cover {
    transform: translateY(-1px);
}

.mp-product-cover {
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 0;
    border-bottom: 1px solid var(--mp-border);
    background:
        linear-gradient(135deg, rgba(140, 29, 47, .12), rgba(72, 171, 158, .12)),
        linear-gradient(160deg, #ffffff 0 28%, #fff5f6 28% 44%, #eef9f7 44% 68%, #ffffff 68% 100%);
    color: var(--mp-primary);
    cursor: pointer;
    padding: 18px;
    text-align: center;
    transition: transform .2s var(--mp-ease);
}

.mp-product-cover svg {
    width: 42px;
    height: 42px;
}

.mp-cover-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid var(--mp-primary-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--mp-primary);
    padding: 4px 9px;
    font-size: .7rem;
    font-weight: 950;
    box-shadow: 0 2px 8px rgba(140, 29, 47, 0.08);
}

.mp-cover-title {
    display: block;
    max-width: 92%;
    overflow: hidden;
    color: #344054;
    font-size: .86rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-shop-card-body {
    display: grid;
    gap: 8px;
    padding: 12px 14px 10px;
}

.mp-shop-card-seller,
.mp-product-specs span,
.mp-product-detail-header p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mp-shop-card-seller {
    color: var(--mp-muted);
    font-size: .76rem;
    font-weight: 850;
}

.mp-shop-card-market-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: .74rem;
    font-weight: 850;
}

.mp-shop-card-market-row span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    border-radius: 999px;
    background: #f8fafc;
    padding: 3px 8px;
}

.mp-shop-card-market-row svg {
    width: 13px;
    height: 13px;
    color: var(--mp-primary);
}

.mp-shop-card-seller span,
.mp-product-specs span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-shop-card-seller svg,
.mp-product-specs svg,
.mp-product-detail-header svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.mp-link-button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.mp-link-button:hover,
.mp-link-button:focus-visible {
    color: var(--mp-primary);
    outline: none;
}

.mp-shop-card .mp-product-copy {
    display: none;
    min-height: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mp-product-specs {
    display: grid;
    gap: 6px;
    color: #667085;
    font-size: .75rem;
    font-weight: 800;
}

.mp-product-buy-row {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--mp-border);
    background: var(--mp-surface-soft);
    padding: 12px 14px 14px;
}

.mp-shop-card-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.mp-shop-card-price-row span {
    color: var(--mp-muted);
    font-size: .76rem;
    font-weight: 900;
}

.mp-shop-card-price-row strong {
    color: #101828;
    font-size: 1.24rem;
    font-weight: 950;
    line-height: 1.1;
}

.mp-shop-card-promise {
    display: grid;
    gap: 5px;
    color: #667085;
    font-size: .72rem;
    font-weight: 820;
}

.mp-shop-card-promise span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mp-shop-card-promise svg {
    width: 14px;
    height: 14px;
    color: var(--mp-teal);
    flex: 0 0 auto;
}

.mp-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, .75fr);
    gap: 8px;
}

.mp-card-actions .mp-small-btn {
    width: 100%;
}

.mp-card-cart-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--mp-primary);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .18);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.mp-card-cart-btn:hover,
.mp-card-cart-btn:focus-visible {
    background: #ffffff;
    transform: translateY(-1px);
}

.mp-card-cart-btn svg,
.mp-card-cart-btn i {
    width: 17px;
    height: 17px;
}

.mp-shop-empty {
    grid-column: 1 / -1;
}

.mp-catalog-loading-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 16px;
}

.mp-catalog-loading-shelf div {
    min-height: 390px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .72), rgba(255, 255, 255, 0)),
        linear-gradient(180deg, #f3f4f6 0 48%, #ffffff 48% 100%);
    background-size: 220% 100%, 100% 100%;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    animation: mp-shimmer 1.8s linear infinite;
}

body.mp-catalog-loaded .mp-catalog-loading-shelf {
    display: none;
}

.mp-product-drawer {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 640px);
}

.mp-product-drawer.hidden {
    display: none;
}

.mp-drawer-backdrop {
    border: 0;
    background: rgba(16, 24, 40, .46);
    backdrop-filter: blur(3px);
    padding: 0;
}

.mp-product-detail-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    height: 100dvh;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: -18px 0 48px rgba(16, 24, 40, .18);
}

.mp-product-detail-cover {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 230px;
    border-bottom: 1px solid var(--mp-border);
    background:
        linear-gradient(135deg, rgba(236, 175, 83, .16), rgba(72, 171, 158, .14)),
        linear-gradient(160deg, #ffffff 0 30%, #fdf0ed 30% 48%, #eef9f7 48% 70%, #ffffff 70% 100%);
    color: var(--mp-primary);
    padding: 22px;
    position: relative;
    text-align: center;
}

.mp-product-detail-cover svg {
    width: 64px;
    height: 64px;
}

.mp-product-detail-cover > span:last-child {
    color: #344054;
    font-size: 1rem;
    font-weight: 950;
}

.mp-product-detail-content {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 20px;
}

.mp-order-detail-drawer {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(520px, 760px);
}

.mp-order-detail-drawer.hidden {
    display: none;
}

.mp-order-detail-panel {
    min-width: 0;
    height: 100dvh;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: -18px 0 48px rgba(16, 24, 40, .2);
}

.mp-order-detail-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--mp-border);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    padding: 18px 20px;
}

.mp-order-detail-header span,
.mp-order-detail-summary span {
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mp-order-detail-header h2 {
    margin: 3px 0 0;
    color: #101828;
    font-size: 1.2rem;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.mp-order-detail-header p {
    margin: 4px 0 0;
    color: var(--mp-muted-strong);
    font-size: .82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mp-order-detail-body {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px 20px 24px;
}

.mp-order-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mp-order-detail-summary > div,
.mp-order-detail-section {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 13px;
    box-shadow: var(--mp-shadow);
}

.mp-order-detail-summary strong {
    display: block;
    margin-top: 4px;
    color: #101828;
    font-size: 1rem;
    font-weight: 950;
}

.mp-order-detail-section {
    display: grid;
    gap: 10px;
}

.mp-order-detail-section h3 {
    margin: 0;
    color: #101828;
    font-size: .95rem;
    font-weight: 950;
}

.mp-order-detail-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.mp-order-detail-dl div {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: var(--mp-surface-soft);
    padding: 10px;
}

.mp-order-detail-dl dt,
.mp-order-detail-dl dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.mp-order-detail-dl dt {
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.mp-order-detail-dl dd {
    margin-top: 3px;
    color: #101828;
    font-size: .82rem;
    font-weight: 850;
}

.mp-order-detail-table td small {
    display: block;
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.mp-order-detail-list {
    display: grid;
    gap: 8px;
}

.mp-order-detail-list article {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: var(--mp-surface-soft);
    padding: 10px;
}

.mp-order-detail-list strong,
.mp-order-detail-list small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-order-detail-list small {
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 750;
}

.mp-order-detail-empty {
    min-height: 120px;
}

.mp-product-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mp-product-detail-header h2 {
    margin: 0;
    color: #101828;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.mp-product-detail-header p {
    margin: 8px 0 0;
    color: var(--mp-muted);
    font-size: .82rem;
    font-weight: 850;
}

.mp-product-detail-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #f0b8aa;
    border-radius: var(--mp-radius-sm);
    background: var(--mp-primary-soft);
    padding: 14px;
}

.mp-product-detail-price span {
    color: var(--mp-muted-strong);
    font-size: .8rem;
    font-weight: 900;
}

.mp-product-detail-price strong {
    color: var(--mp-primary);
    font-size: 1.7rem;
    font-weight: 950;
    line-height: 1;
}

.mp-product-detail-description {
    margin: 0;
    color: var(--mp-muted-strong);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.mp-product-detail-list {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    padding: 12px;
}

.mp-product-detail-tags {
    padding-top: 2px;
}

.mp-product-detail-actions {
    display: grid;
    gap: 10px;
}

.mp-product-detail-actions .mp-btn,
.mp-product-detail-actions .mp-small-btn {
    width: 100%;
}

.mp-product-page-main {
    padding-top: 12px;
}

.mp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--mp-muted-strong);
    font-size: .84rem;
    font-weight: 850;
}

.mp-back-link:hover,
.mp-back-link:focus-visible {
    color: var(--mp-primary);
    outline: none;
}

.mp-back-link svg {
    width: 16px;
    height: 16px;
}

.mp-pdp-layout {
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.25fr) minmax(280px, .65fr);
    gap: 18px;
    align-items: start;
    margin-top: 14px;
}

.mp-pdp-gallery,
.mp-pdp-info,
.mp-pdp-buy-box,
.mp-pdp-section {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.mp-pdp-gallery {
    position: sticky;
    top: 84px;
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 420px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(225, 113, 85, .16), rgba(72, 171, 158, .16)),
        linear-gradient(160deg, #ffffff 0 28%, #fff7ed 28% 44%, #eef9f7 44% 68%, #ffffff 68% 100%);
    color: var(--mp-primary);
    padding: 28px;
    text-align: center;
}

.mp-pdp-gallery svg {
    width: 76px;
    height: 76px;
}

.mp-pdp-gallery strong {
    color: #344054;
    font-size: 1.05rem;
    font-weight: 950;
}

.mp-pdp-info {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.mp-pdp-info h1 {
    margin: 0;
    color: #101828;
    font-size: 1.75rem;
    font-weight: 950;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.mp-pdp-summary {
    margin: 0;
    color: var(--mp-muted-strong);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.mp-pdp-market-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mp-pdp-market-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    border: 1px solid #edf1f7;
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    padding: 6px 10px;
    font-size: .8rem;
    font-weight: 900;
}

.mp-pdp-market-row svg {
    width: 15px;
    height: 15px;
    color: var(--mp-primary);
}

.mp-pdp-facts {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--mp-border);
    padding-top: 14px;
}

.mp-pdp-facts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: .84rem;
    font-weight: 850;
}

.mp-pdp-facts svg {
    width: 17px;
    height: 17px;
    color: var(--mp-primary);
}

.mp-pdp-buy-box {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.mp-pdp-buy-box > span {
    color: var(--mp-muted);
    font-size: .78rem;
    font-weight: 900;
}

.mp-pdp-buy-box > strong {
    color: #101828;
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
}

.mp-pdp-buy-box p {
    margin: 0;
    color: var(--mp-muted-strong);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.55;
}

.mp-pdp-buy-safeguards {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--mp-border);
    padding-top: 12px;
}

.mp-pdp-buy-safeguards span {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    color: #475467;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1.45;
}

.mp-pdp-buy-safeguards svg {
    width: 16px;
    height: 16px;
    color: var(--mp-teal);
    margin-top: 1px;
}

.mp-pdp-buy-box .mp-btn,
.mp-pdp-buy-box .mp-small-btn {
    width: 100%;
}

.mp-pdp-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 18px;
    max-width: 880px;
}

.mp-pdp-section-nav {
    position: sticky;
    top: 74px;
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: rgba(255, 255, 255, .94);
    padding: 8px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
    backdrop-filter: blur(12px);
}

.mp-pdp-section-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    color: var(--mp-muted-strong);
    padding: 7px 12px;
    font-size: .82rem;
    font-weight: 900;
}

.mp-pdp-section-nav a:hover,
.mp-pdp-section-nav a:focus-visible {
    background: var(--mp-primary-soft);
    color: var(--mp-primary);
    outline: none;
}

.mp-pdp-section {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.mp-pdp-section h2 {
    margin: 0;
    color: #101828;
    font-size: 1rem;
    font-weight: 950;
}

.mp-pdp-section p {
    margin: 0;
    color: var(--mp-muted-strong);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.mp-pdp-seller-card > div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.mp-pdp-seller-card strong {
    color: #101828;
    font-size: .98rem;
    font-weight: 950;
}

.mp-pdp-seller-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--mp-radius-sm);
    background: var(--mp-primary-soft);
    color: var(--mp-primary);
}

.mp-pdp-seller-avatar svg {
    width: 20px;
    height: 20px;
}

.mp-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 18px;
}

.mp-checkout-modal.hidden {
    display: none;
}

.mp-checkout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .56);
    backdrop-filter: blur(4px);
}

.mp-checkout-dialog {
    position: relative;
    display: grid;
    gap: 18px;
    width: min(860px, 100%);
    max-height: min(720px, calc(100dvh - 36px));
    overflow: auto;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(16, 24, 40, .32);
    padding: 20px;
}

.mp-checkout-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mp-checkout-dialog-header h2 {
    margin: 0;
    color: #101828;
    font-size: 1.28rem;
    font-weight: 950;
    line-height: 1.25;
}

.mp-checkout-dialog-header span {
    display: block;
    margin-top: 4px;
    color: var(--mp-muted);
    font-size: .84rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mp-checkout-dialog-body {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.mp-checkout-qr-card {
    display: grid;
    place-items: center;
    min-height: 320px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 20px;
}

.mp-checkout-summary {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.mp-checkout-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d1fadf;
    border-radius: var(--mp-radius-sm);
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    padding: 14px;
}

.mp-checkout-total span {
    color: #047857;
    font-size: .82rem;
    font-weight: 900;
}

.mp-checkout-total strong {
    color: #067647;
    font-size: 1.9rem;
    font-weight: 950;
    line-height: 1;
}

.mp-checkout-dialog-body-simple,
.mp-payment-layout-simple {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    align-items: start;
}

.mp-checkout-primary,
.mp-checkout-guidance {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.mp-checkout-total-large {
    align-items: flex-start;
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.mp-checkout-total-large strong {
    font-size: 2.25rem;
}

.mp-checkout-qr-card-large {
    min-height: 360px;
    padding: 20px;
}

.mp-checkout-qr-card-large .mp-qr-image {
    width: min(282px, 100%);
}

.mp-checkout-scan-hint {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    border: 1px solid #bfdbfe;
    border-radius: var(--mp-radius-sm);
    background: #eff6ff;
    color: #1e3a8a;
    padding: 11px 12px;
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.5;
}

.mp-checkout-scan-hint svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.mp-checkout-product-summary {
    display: grid;
    gap: 5px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 12px;
}

.mp-checkout-product-summary span,
.mp-checkout-reference span {
    color: var(--mp-muted);
    font-size: .75rem;
    font-weight: 900;
}

.mp-checkout-product-summary strong {
    color: #101828;
    font-size: .96rem;
    font-weight: 950;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mp-checkout-product-list {
    gap: 10px;
}

.mp-checkout-line {
    display: grid;
    gap: 3px;
    border-top: 1px dashed var(--mp-border);
    padding-top: 10px;
}

.mp-checkout-line:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.mp-checkout-line small {
    color: var(--mp-muted);
    font-size: .76rem;
    font-weight: 850;
}

.mp-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 240;
}

.mp-cart-drawer.hidden {
    display: none;
}

.mp-cart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .48);
    backdrop-filter: blur(3px);
}

.mp-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    width: min(430px, 100%);
    height: 100%;
    border-left: 1px solid var(--mp-border);
    background: #ffffff;
    box-shadow: -24px 0 60px rgba(16, 24, 40, .24);
    padding: 18px;
}

.mp-cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mp-cart-header h2 {
    margin: 0;
    color: #101828;
    font-size: 1.2rem;
    font-weight: 950;
}

.mp-cart-list {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
}

.mp-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 12px;
}

.mp-cart-item > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.mp-cart-item > div:last-child {
    justify-items: end;
}

.mp-cart-item strong {
    color: #101828;
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mp-cart-item span,
.mp-cart-item small,
.mp-cart-summary span {
    color: var(--mp-muted);
    font-size: .76rem;
    font-weight: 820;
}

.mp-cart-summary {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--mp-border);
    padding-top: 14px;
}

.mp-cart-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mp-cart-summary strong {
    color: var(--mp-primary);
    font-size: 1.35rem;
    font-weight: 950;
}

.mp-cart-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    min-height: 280px;
    color: var(--mp-muted);
    text-align: center;
}

.mp-cart-empty svg {
    width: 44px;
    height: 44px;
    color: var(--mp-primary);
}

.mp-cart-empty strong {
    color: #101828;
    font-size: 1rem;
    font-weight: 950;
}

.mp-checkout-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-checkout-steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.mp-checkout-steps li > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #fff1ed;
    color: var(--mp-primary);
    font-size: .8rem;
    font-weight: 950;
}

.mp-checkout-steps strong,
.mp-checkout-steps p {
    display: block;
    margin: 0;
}

.mp-checkout-steps strong {
    color: #182230;
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.35;
}

.mp-checkout-steps p {
    margin-top: 3px;
    color: var(--mp-muted-strong);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.45;
}

.mp-checkout-reference {
    display: grid;
    gap: 5px;
    border: 1px dashed #d0d5dd;
    border-radius: var(--mp-radius-sm);
    background: #f9fafb;
    padding: 11px 12px;
}

.mp-checkout-reference strong {
    color: #182230;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .88rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.mp-checkout-expiry {
    margin: 0;
    color: var(--mp-muted);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.45;
}

.mp-payment-evidence-card,
.mp-payment-evidence-admin {
    display: grid;
    gap: 10px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 12px;
}

.mp-payment-evidence-card h3,
.mp-payment-evidence-card p {
    margin: 0;
}

.mp-payment-evidence-card h3,
.mp-payment-evidence-admin > strong {
    color: #101828;
    font-size: .92rem;
    font-weight: 950;
}

.mp-payment-evidence-card p {
    margin-top: 3px;
    color: var(--mp-muted-strong);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
}

.mp-payment-evidence-card textarea,
.mp-payment-evidence-card select,
.mp-payment-evidence-card input[type="file"] {
    width: 100%;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    color: #101828;
    font: inherit;
    font-size: .82rem;
}

.mp-payment-evidence-card textarea {
    min-height: 72px;
    padding: 10px 11px;
    resize: vertical;
}

.mp-payment-evidence-card select {
    min-height: 42px;
    padding: 9px 11px;
}

.mp-payment-evidence-card input[type="file"] {
    padding: 9px;
}

.mp-payment-evidence-card .mp-small-btn {
    width: 100%;
}

.mp-payment-success-card {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.mp-payment-live-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-size: .8rem;
    font-weight: 950;
}

.mp-payment-live-row svg {
    width: 16px;
    height: 16px;
}

.mp-spin-icon {
    animation: mp-spin 1s linear infinite;
}

@keyframes mp-spin {
    to {
        transform: rotate(360deg);
    }
}

.mp-payment-evidence-done {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 7px 10px;
    font-size: .78rem;
    font-weight: 900;
}

.mp-payment-evidence-done svg {
    width: 15px;
    height: 15px;
}

.mp-payment-evidence-admin {
    background: #f9fafb;
}

.mp-payment-evidence-empty {
    display: flex;
    align-items: center;
    color: var(--mp-muted);
    font-size: .82rem;
    font-weight: 800;
}

.mp-payment-evidence-empty svg {
    width: 17px;
    height: 17px;
}

.mp-payment-evidence-admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #edf1f7;
    padding-top: 10px;
}

.mp-payment-evidence-admin-item span,
.mp-payment-evidence-admin-item small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payment-evidence-admin-item span {
    color: #182230;
    font-size: .84rem;
    font-weight: 900;
}

.mp-payment-evidence-admin-item small {
    margin-top: 2px;
    color: var(--mp-muted);
    font-size: .76rem;
    font-weight: 700;
}

.mp-payment-event-list {
    display: grid;
    gap: 9px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 12px;
}

.mp-payment-event-list > strong {
    color: #101828;
    font-size: .88rem;
    font-weight: 950;
}

.mp-payment-event-empty {
    display: flex;
    align-items: center;
    color: var(--mp-muted);
    font-size: .82rem;
    font-weight: 800;
}

.mp-payment-event-empty svg {
    width: 17px;
    height: 17px;
}

.mp-payment-event-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-left: 3px solid #cbd5e1;
    border-radius: var(--mp-radius-sm);
    background: #f8fafc;
    padding: 10px 11px;
}

.mp-payment-event-item span,
.mp-payment-event-item small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payment-event-item span {
    color: #182230;
    font-size: .84rem;
    font-weight: 950;
}

.mp-payment-event-item small {
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.45;
}

.mp-payment-event-item em {
    flex: 0 0 auto;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #ffffff;
    color: #344054;
    padding: 4px 8px;
    font-size: .7rem;
    font-style: normal;
    font-weight: 900;
}

.mp-payment-event-success {
    border-left-color: #10b981;
    background: #ecfdf3;
}

.mp-payment-event-danger {
    border-left-color: #ef4444;
    background: #fff1f2;
}

.mp-payment-event-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.mp-order-payment-events {
    margin-top: 10px;
}

.mp-order-payment-events .mp-payment-event-list {
    gap: 7px;
    padding: 10px;
}

.mp-order-payment-events .mp-payment-event-item {
    display: grid;
    gap: 6px;
}

.mp-order-payment-events .mp-payment-event-item em {
    justify-self: start;
}

.mp-checkout-panel {
    border: 1px solid #6ee7b7;
    border-radius: var(--mp-radius);
    background:
        linear-gradient(135deg, rgba(236, 253, 243, .9), rgba(240, 253, 250, .9)),
        #ffffff;
    padding: 20px;
    box-shadow: var(--mp-shadow-lg);
    animation: mp-slide-up .4s var(--mp-ease);
}

.mp-payment-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.mp-order-payment-layout {
    border-top: 1px solid #edf1f7;
    padding-top: 14px;
}

.mp-qr-frame,
.mp-qr-placeholder {
    display: grid;
    place-items: center;
    min-height: 280px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 14px;
}

.mp-qr-image {
    display: block;
    width: min(236px, 100%);
    height: auto;
}

.mp-qr-frame.mp-checkout-qr-card-large,
.mp-qr-placeholder.mp-checkout-qr-card-large {
    min-height: 360px;
    padding: 20px;
}

.mp-qr-frame.mp-checkout-qr-card-large .mp-qr-image {
    width: min(282px, 100%);
}

.mp-qr-placeholder {
    gap: 8px;
    color: var(--mp-muted);
    text-align: center;
}

.mp-qr-placeholder svg {
    width: 42px;
    height: 42px;
    color: #98a2b3;
}

.mp-qr-placeholder strong {
    color: #344054;
    font-size: .98rem;
    font-weight: 950;
}

.mp-qr-placeholder span {
    max-width: 220px;
    font-size: .8rem;
    font-weight: 750;
    line-height: 1.45;
}

.mp-payment-details {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.mp-payment-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #d1fadf;
    padding-bottom: 12px;
}

.mp-payment-total span {
    color: var(--mp-muted);
    font-size: .86rem;
    font-weight: 900;
}

.mp-payment-total strong {
    color: #067647;
    font-size: 1.85rem;
    font-weight: 950;
    line-height: 1;
}

.mp-detail-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.mp-detail-list div {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 10px;
}

.mp-detail-list dt,
.mp-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: .84rem;
}

.mp-detail-list dt {
    color: var(--mp-muted);
    font-weight: 900;
}

.mp-detail-list dd {
    color: #182230;
    font-weight: 850;
}

.mp-payment-note {
    margin: 0;
    border: 1px solid #fcd34d;
    border-radius: var(--mp-radius-sm);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
    padding: 12px 14px;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.5;
}

.mp-payment-review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.mp-refund-review-summary {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.mp-refund-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mp-refund-summary-card {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 13px 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.mp-refund-summary-card span,
.mp-refund-summary-card strong,
.mp-refund-summary-card small {
    display: block;
}

.mp-refund-summary-card span {
    color: var(--mp-muted);
    font-size: .74rem;
    font-weight: 950;
}

.mp-refund-summary-card strong {
    margin-top: 4px;
    color: #101828;
    font-size: 1.35rem;
    font-weight: 950;
}

.mp-refund-summary-card small {
    margin-top: 2px;
    color: var(--mp-muted-strong);
    font-size: .76rem;
    font-weight: 750;
}

.mp-refund-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mp-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    color: #344054;
    padding: 7px 11px;
    font-size: .8rem;
    font-weight: 900;
}

.mp-filter-pill strong {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    min-height: 24px;
    border-radius: 999px;
    background: var(--mp-surface-soft);
    color: #101828;
    font-size: .74rem;
}

.mp-filter-pill.is-active {
    border-color: #fb6f55;
    background: #fff4ef;
    color: #b42318;
}

.mp-refund-timeline {
    display: grid;
    gap: 10px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 12px;
}

.mp-refund-timeline-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
}

.mp-refund-timeline-item > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #fff4ef;
    color: #d95b43;
}

.mp-refund-timeline-item svg {
    width: 15px;
    height: 15px;
}

.mp-refund-timeline-item strong,
.mp-refund-timeline-item p,
.mp-refund-timeline-item small {
    display: block;
    margin: 0;
    overflow-wrap: anywhere;
}

.mp-refund-timeline-item strong {
    color: #101828;
    font-size: .84rem;
    font-weight: 950;
}

.mp-refund-timeline-item p {
    margin-top: 2px;
    color: var(--mp-muted-strong);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.45;
}

.mp-refund-timeline-item small {
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 850;
}

.mp-refund-capability {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 12px;
}

.mp-refund-capability > svg {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.mp-refund-capability strong,
.mp-refund-capability span,
.mp-refund-capability small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-refund-capability strong {
    color: #101828;
    font-size: .84rem;
    font-weight: 950;
}

.mp-refund-capability span {
    margin-top: 2px;
    color: var(--mp-muted-strong);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.45;
}

.mp-refund-capability small {
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .7rem;
    font-weight: 850;
}

.mp-refund-capability-warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.mp-refund-capability-warning > svg {
    color: #ea580c;
}

.mp-refund-capability-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.mp-refund-capability-success > svg {
    color: #059669;
}

.mp-refund-evidence-panel {
    display: grid;
    gap: 12px;
    border: 1px solid #dbeafe;
    border-radius: var(--mp-radius);
    background: #f8fbff;
    padding: 12px;
}

.mp-refund-evidence-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mp-refund-evidence-header strong,
.mp-refund-evidence-header small {
    display: block;
}

.mp-refund-evidence-header strong {
    color: #101828;
    font-size: .86rem;
    font-weight: 950;
}

.mp-refund-evidence-header small {
    margin-top: 2px;
    color: var(--mp-muted-strong);
    font-size: .74rem;
    font-weight: 750;
    line-height: 1.4;
}

.mp-refund-evidence-header > span {
    flex: 0 0 auto;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 5px 9px;
    font-size: .72rem;
    font-weight: 950;
}

.mp-refund-evidence-list,
.mp-refund-evidence-form {
    display: grid;
    gap: 10px;
}

.mp-refund-evidence-item,
.mp-refund-evidence-empty {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 10px;
}

.mp-refund-evidence-empty {
    grid-template-columns: 30px minmax(0, 1fr);
    color: var(--mp-muted-strong);
    font-size: .8rem;
    font-weight: 850;
}

.mp-refund-evidence-item > svg,
.mp-refund-evidence-empty > svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

.mp-refund-evidence-item span,
.mp-refund-evidence-item small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-refund-evidence-item span {
    color: #101828;
    font-size: .82rem;
    font-weight: 950;
}

.mp-refund-evidence-item small {
    margin-top: 2px;
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 750;
}

.mp-refund-evidence-form {
    border-top: 1px dashed #bfdbfe;
    padding-top: 10px;
}

.mp-payout-evidence-panel {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    border: 1px solid #dbeafe;
    border-radius: var(--mp-radius-sm);
    background: #f8fbff;
    padding: 9px;
}

.mp-payout-evidence-list,
.mp-payout-evidence-form {
    display: grid;
    gap: 8px;
}

.mp-payout-evidence-item,
.mp-payout-evidence-empty {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
}

.mp-payout-evidence-empty {
    grid-template-columns: 24px minmax(0, 1fr);
    color: var(--mp-muted-strong);
    font-size: .74rem;
    font-weight: 850;
}

.mp-payout-evidence-item > svg,
.mp-payout-evidence-empty > svg {
    width: 16px;
    height: 16px;
    color: #2563eb;
}

.mp-payout-evidence-item span,
.mp-payout-evidence-item small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payout-evidence-item span {
    color: #101828;
    font-size: .76rem;
    font-weight: 950;
}

.mp-payout-evidence-item small {
    margin-top: 2px;
    color: var(--mp-muted);
    font-size: .68rem;
    font-weight: 750;
}

.mp-payout-evidence-form {
    border-top: 1px dashed #bfdbfe;
    padding-top: 8px;
}

.mp-payout-evidence-form textarea,
.mp-payout-evidence-form input[type="file"] {
    width: 100%;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    background: #ffffff;
    color: #101828;
    font: inherit;
    font-size: .76rem;
    font-weight: 750;
}

.mp-payout-evidence-form textarea {
    min-height: 62px;
    padding: 8px 9px;
    resize: vertical;
}

.mp-payout-evidence-form input[type="file"] {
    padding: 7px;
}

.mp-payment-review-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

@media (max-width: 860px) {
    .mp-refund-summary-grid {
        grid-template-columns: 1fr;
    }
}

.mp-payment-review-card.mp-attention {
    border-color: #fb6f55;
    box-shadow: 0 0 0 4px rgba(251, 111, 85, .16);
}

.mp-payment-review-card h3,
.mp-payment-review-card p {
    margin: 0;
    overflow-wrap: anywhere;
}

.mp-payment-review-card h3 {
    color: #101828;
    font-size: .98rem;
    font-weight: 950;
}

.mp-payment-review-card p {
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .8rem;
    font-weight: 750;
}

.mp-payment-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mp-payment-review-grid div {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: var(--mp-surface-soft);
    padding: 10px;
}

.mp-payment-review-grid span,
.mp-payment-review-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payment-review-grid span {
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 900;
}

.mp-payment-review-grid strong {
    margin-top: 3px;
    color: #182230;
    font-size: .9rem;
    font-weight: 950;
}

.mp-payout-batch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dbeafe;
    border-radius: var(--mp-radius);
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    padding: 12px;
    margin-bottom: 12px;
}

.mp-payout-batch-toolbar strong,
.mp-payout-batch-toolbar small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payout-batch-toolbar strong {
    color: #101828;
    font-size: .9rem;
    font-weight: 950;
}

.mp-payout-batch-toolbar small {
    margin-top: 2px;
    color: var(--mp-muted);
    font-size: .74rem;
    font-weight: 800;
}

.mp-payout-batch-payouts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mp-payout-batch-payouts span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    padding: 4px 8px;
    font-size: .68rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.mp-payout-expectation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 16px;
    align-items: stretch;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.mp-payout-expectation-success {
    border-color: #86efac;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.mp-payout-expectation-info {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.mp-payout-expectation-warning {
    border-color: #fedf89;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.mp-payout-expectation-muted {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.mp-payout-expectation-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.mp-payout-expectation-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--mp-primary);
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .08);
}

.mp-payout-expectation-icon svg {
    width: 22px;
    height: 22px;
}

.mp-payout-expectation-main strong,
.mp-payout-expectation-main p,
.mp-payout-expectation-amount span,
.mp-payout-expectation-amount strong,
.mp-payout-expectation-amount small,
.mp-payout-expectation-details span,
.mp-payout-expectation-details strong,
.mp-payout-expectation-details small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payout-expectation-main strong {
    color: #101828;
    font-size: 1.08rem;
    font-weight: 950;
}

.mp-payout-expectation-main p {
    margin: 4px 0 0;
    color: var(--mp-muted-strong);
    font-size: .84rem;
    font-weight: 760;
    line-height: 1.55;
}

.mp-payout-expectation-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mp-payout-expectation-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #fedf89;
    border-radius: 999px;
    background: #fffbeb;
    color: #93370d;
    padding: 5px 9px;
    font-size: .72rem;
    font-weight: 900;
}

.mp-payout-expectation-chip-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #067647;
}

.mp-payout-expectation-chip svg {
    width: 14px;
    height: 14px;
}

.mp-payout-expectation-amount {
    display: grid;
    align-content: center;
    border: 1px solid rgba(6, 118, 71, .18);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 14px;
}

.mp-payout-expectation-amount span,
.mp-payout-expectation-details span {
    color: var(--mp-muted);
    font-size: .74rem;
    font-weight: 900;
}

.mp-payout-expectation-amount strong {
    margin-top: 4px;
    color: #067647;
    font-size: 1.8rem;
    font-weight: 950;
}

.mp-payout-expectation-amount small,
.mp-payout-expectation-details small {
    margin-top: 3px;
    color: var(--mp-muted);
    font-size: .72rem;
    font-weight: 750;
}

.mp-payout-expectation-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.mp-payout-expectation-details div {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: var(--mp-surface-soft);
    padding: 10px;
}

.mp-payout-expectation-details strong {
    margin-top: 3px;
    color: #182230;
    font-size: .9rem;
    font-weight: 950;
}

.mp-payout-statement {
    display: grid;
    gap: 10px;
    border: 1px solid #dbeafe;
    border-radius: var(--mp-radius);
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    padding: 12px;
}

.mp-payout-statement-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mp-payout-statement-header strong,
.mp-payout-statement-header small,
.mp-payout-statement-header span {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payout-statement-header strong {
    color: #101828;
    font-size: .86rem;
    font-weight: 950;
}

.mp-payout-statement-header small {
    margin-top: 2px;
    color: var(--mp-muted);
    font-size: .7rem;
    font-weight: 750;
}

.mp-payout-statement-header > span {
    flex: 0 0 auto;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #175cd3;
    padding: 4px 8px;
    font-size: .68rem;
    font-weight: 900;
}

.mp-payout-statement-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mp-payout-statement-grid div {
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    background: #ffffff;
    padding: 9px;
}

.mp-payout-statement-grid span,
.mp-payout-statement-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payout-statement-grid span {
    color: var(--mp-muted);
    font-size: .68rem;
    font-weight: 900;
}

.mp-payout-statement-grid strong {
    margin-top: 3px;
    color: #182230;
    font-size: .82rem;
    font-weight: 950;
}

.mp-payout-reserve-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border: 1px solid #fedf89;
    border-radius: 10px;
    background: #fffbeb;
    padding: 8px;
    color: #93370d;
    font-size: .72rem;
    font-weight: 850;
}

.mp-payout-reserve-list strong {
    color: #7a2e0e;
    font-weight: 950;
}

.mp-payout-reserve-list span {
    border-radius: 999px;
    background: #ffffff;
    padding: 3px 7px;
}

.mp-payout-statement .mp-table-wrap {
    margin: 0;
}

.mp-payout-statement-table th,
.mp-payout-statement-table td {
    font-size: .72rem;
    vertical-align: top;
}

.mp-payout-statement-table td strong,
.mp-payout-statement-table td small {
    display: block;
    overflow-wrap: anywhere;
}

.mp-payout-statement-table td small {
    margin-top: 2px;
    color: var(--mp-muted);
    font-size: .66rem;
    font-weight: 750;
}

.mp-payout-statement-table .mp-link-button {
    color: #175cd3;
    font-weight: 900;
}

.mp-payout-statement-more {
    color: var(--mp-muted);
    font-size: .7rem;
    font-weight: 850;
}

.mp-copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.mp-copy-field code {
    display: block;
    max-height: 78px;
    overflow: auto;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    color: #344054;
    padding: 9px 10px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .72rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mp-empty-state {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 200px;
    padding: 32px;
    border: 2px dashed var(--mp-border);
    border-radius: var(--mp-radius);
    background: linear-gradient(135deg, var(--mp-surface-soft), #ffffff);
    color: var(--mp-muted);
    text-align: center;
}

.mp-empty-state-compact {
    min-height: 120px;
    padding: 20px;
}

.mp-empty-state svg {
    width: 36px;
    height: 36px;
    color: #f0b8aa;
}

.mp-empty-state strong {
    color: #344054;
    font-size: .98rem;
    font-weight: 950;
}

.mp-empty-state p {
    margin: 0;
    max-width: 360px;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.55;
}

.mp-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.mp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .86rem;
}

.mp-table th,
.mp-table td {
    border-bottom: 1px solid #edf1f7;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.mp-table th {
    background: #f8fafc;
    color: #667085;
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.mp-table strong,
.mp-table small {
    display: block;
}

.mp-table small {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #98a2b3;
    font-size: .72rem;
    font-weight: 750;
}

.mp-empty {
    color: #98a2b3;
    padding: 28px;
    text-align: center;
}

.mp-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mp-review-column {
    min-height: 220px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 14px;
}

.mp-review-column h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    color: #101828;
    font-size: .95rem;
    font-weight: 950;
}

.mp-review-column h3 svg,
.mp-panel-header > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.mp-toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: var(--mp-layer-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: min(420px, calc(100vw - 36px));
    width: 100%;
}

.mp-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    transform: translateX(120%);
    opacity: 0;
    pointer-events: auto;
    border-radius: var(--mp-radius);
    padding: 14px;
    color: #ffffff;
    font-size: .88rem;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, margin 0.28s ease, padding 0.28s ease, height 0.28s ease;
}

.mp-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.mp-toast.is-leaving {
    transform: translateX(120%);
    opacity: 0;
}

.mp-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.42);
    width: 100%;
    transform-origin: left;
    animation: mp-toast-progress-shrink var(--progress-duration, 4200ms) linear forwards;
}

.mp-toast:hover .mp-toast-progress {
    animation-play-state: paused;
}

@keyframes mp-toast-progress-shrink {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

body.mp-scroll-locked {
    overflow: hidden !important;
}

.mp-toast-success {
    background: linear-gradient(135deg, #059669, #047857);
}

.mp-toast-error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.mp-toast-info {
    background: linear-gradient(135deg, #334155, #1e293b);
}

.mp-toast-warning {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.mp-toast-icon,
.mp-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mp-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.mp-toast-icon svg {
    width: 19px;
    height: 19px;
}

.mp-toast-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mp-toast-body strong {
    color: #ffffff;
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.25;
}

.mp-toast-body small {
    color: rgba(255, 255, 255, .86);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.35;
}

.mp-toast-action {
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: .74rem;
    font-weight: 950;
    white-space: nowrap;
}

.mp-toast-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    cursor: pointer;
}

.mp-toast-close svg {
    width: 16px;
    height: 16px;
}

.mp-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--mp-layer-confirm);
    display: grid;
    place-items: center;
    padding: 18px;
}

.mp-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .56);
    backdrop-filter: blur(4px);
}

.mp-confirm-dialog {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    width: min(460px, 100%);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 24px 72px rgba(16, 24, 40, .28);
    animation: mp-slide-up .22s var(--mp-ease);
}

.mp-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--mp-amber-soft);
    color: #b45309;
}

.mp-confirm-error .mp-confirm-icon {
    background: #fef2f2;
    color: #b91c1c;
}

.mp-confirm-success .mp-confirm-icon {
    background: #ecfdf5;
    color: #047857;
}

.mp-confirm-icon svg {
    width: 21px;
    height: 21px;
}

.mp-confirm-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.mp-confirm-copy h2 {
    margin: 0;
    color: #101828;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.35;
}

.mp-confirm-copy p,
.mp-confirm-copy small {
    margin: 0;
    color: var(--mp-muted-strong);
    font-weight: 750;
    line-height: 1.55;
}

.mp-confirm-copy small {
    color: var(--mp-muted);
    font-size: .78rem;
}

.mp-confirm-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.mp-prompt-dialog {
    width: min(520px, 100%);
}

.mp-prompt-field {
    display: grid;
    gap: 7px;
    margin-top: 4px;
}

.mp-prompt-field span {
    color: #344054;
    font-size: .78rem;
    font-weight: 950;
}

.mp-prompt-field input,
.mp-prompt-field textarea {
    width: 100%;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    color: var(--mp-ink);
    padding: 11px 12px;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.45;
    outline: none;
}

.mp-prompt-field textarea {
    min-height: 118px;
    resize: vertical;
}

.mp-prompt-field input:focus,
.mp-prompt-field textarea:focus {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px var(--mp-primary-glow);
}

.mp-prompt-field .is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .18);
}

@media (max-width: 640px) {
    .mp-toast {
        right: 12px;
        bottom: 12px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        max-width: calc(100vw - 24px);
    }

    .mp-toast-action {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .mp-confirm-dialog {
        grid-template-columns: 1fr;
    }

    .mp-confirm-icon {
        justify-self: start;
    }

    .mp-confirm-actions {
        flex-direction: column-reverse;
    }

    .mp-confirm-actions .mp-small-btn {
        width: 100%;
    }
}

/* ── Tab bar ── */
.mp-tab-bar {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--mp-border);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mp-tab-bar::-webkit-scrollbar {
    display: none;
}

.mp-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    color: var(--mp-muted);
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s var(--mp-ease);
    border-radius: var(--mp-radius-sm) var(--mp-radius-sm) 0 0;
}

.mp-tab:hover {
    color: var(--mp-primary);
    background: var(--mp-primary-soft);
}

.mp-tab.is-active {
    color: var(--mp-primary);
    border-bottom-color: var(--mp-primary);
    font-weight: 900;
}

.mp-tab svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.mp-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--mp-border);
    color: var(--mp-muted-strong);
    font-size: .68rem;
    font-weight: 900;
}

.mp-tab.is-active .mp-tab-badge {
    background: var(--mp-primary-soft);
    color: var(--mp-primary);
}

.mp-seller-profile-tabs {
    margin-bottom: 14px;
    padding: 6px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: var(--mp-surface-soft);
}

.mp-profile-section-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dbe8f6;
    border-radius: var(--mp-radius-sm);
    background: #f8fbff;
    color: #344054;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.45;
}

#seller-form .mp-divider {
    display: none;
}

#seller-form [data-seller-profile-section] {
    display: none;
}

#seller-form [data-seller-profile-section].is-active:not(.hidden) {
    display: flex;
}

#seller-form label[data-seller-profile-section].is-active:not(.hidden) {
    display: grid;
}

.mp-tab-panel {
    display: none;
    animation: mp-fade-in .3s var(--mp-ease);
}

.mp-tab-panel.is-active {
    display: block;
}

/* ── Collapsible form panel ── */
.mp-collapsible {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s var(--mp-ease), opacity .25s var(--mp-ease), margin .25s var(--mp-ease);
    margin-top: 0;
}

.mp-collapsible.is-open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 14px;
}

/* ── Compact summary strip (replaces 6 metric cards) ── */
.mp-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

.mp-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #ffffff;
    font-size: .78rem;
    font-weight: 700;
    color: var(--mp-muted-strong);
}

.mp-summary-chip strong {
    color: var(--mp-ink);
    font-weight: 950;
}

.mp-summary-chip svg {
    width: 14px;
    height: 14px;
    color: var(--mp-primary);
}

@media (max-width: 1180px) {
    .mp-shell {
        grid-template-columns: 236px minmax(0, 1fr);
    }

    .mp-command-grid,
    .mp-grid-two,
    .mp-grid-product,
    .mp-payment-layout,
    .mp-review-grid,
    .mp-pdp-layout,
    .mp-checkout-dialog-body {
        grid-template-columns: 1fr;
    }

    .mp-pdp-gallery,
    .mp-pdp-buy-box {
        position: static;
    }

    .mp-admin-metric-grid,
    .mp-metric-grid,
    .mp-payment-ops-grid,
    .mp-payment-ops-events,
    .mp-finance-checks,
    .mp-policy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-shop-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-finance-toolbar-main {
        align-items: stretch;
        flex-direction: column;
    }

    .mp-order-detail-drawer {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 680px);
    }
}

@media (max-width: 760px) {
    .mp-storefront-nav {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .mp-storefront-intro,
    .mp-storefront-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .mp-marketplace-trust-row {
        display: flex;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .mp-marketplace-trust-row span {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .mp-storefront-actions {
        justify-content: stretch;
        justify-self: stretch;
    }

    .mp-storefront-actions > *,
    .mp-storefront-intro .mp-icon-btn,
    .mp-storefront-strip-actions,
    .mp-storefront-strip-actions .mp-icon-btn {
        width: 100%;
    }

    .mp-user-menu-button {
        max-width: none;
        width: 100%;
    }

    .mp-user-menu-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }

    .mp-storefront-strip-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .mp-storefront-main {
        width: min(100% - 24px, 1240px);
        padding-top: 8px;
    }

    .mp-shell {
        grid-template-columns: 1fr;
    }

    .mp-sidebar {
        position: static;
        height: auto;
        min-height: auto;
    }

    .mp-main {
        padding: 18px 14px 24px;
    }

    .mp-topbar,
    .mp-panel-header,
    .mp-payout-batch-toolbar,
    .mp-product-detail-header {
        align-items: stretch;
        flex-direction: column;
    }

    .mp-header-actions,
    .mp-actions {
        justify-content: stretch;
    }

    .mp-header-actions > *,
    .mp-actions > *,
    .mp-btn,
    .mp-small-btn {
        width: 100%;
    }

    .mp-account-pill {
        max-width: none;
        justify-content: center;
    }

    .mp-title {
        font-size: 1.55rem;
    }

    .mp-metric-grid,
    .mp-admin-metric-grid,
    .mp-payment-ops-grid,
    .mp-payment-ops-events,
    .mp-finance-checks,
    .mp-copy-field,
    .mp-payout-expectation,
    .mp-payout-expectation-details,
    .mp-payment-review-grid,
    .mp-payout-statement-grid,
    .mp-form-grid,
    .mp-policy-grid,
    .mp-card-actions,
    .mp-product-drawer {
        grid-template-columns: 1fr;
    }

    .mp-shop-toolbar,
    .mp-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-catalog-grid {
        gap: 10px;
    }

    .mp-shop-card {
        min-height: auto;
    }

    .mp-shop-card-body {
        gap: 7px;
        padding: 10px;
    }

    .mp-product-cover {
        aspect-ratio: 1 / 1;
        padding: 12px;
    }

    .mp-product-cover svg {
        width: 34px;
        height: 34px;
    }

    .mp-cover-title {
        font-size: .76rem;
    }

    .mp-shop-card h3 {
        font-size: .88rem;
    }

    .mp-shop-card .mp-product-copy {
        display: none;
    }

    .mp-shop-card-market-row {
        gap: 4px;
    }

    .mp-shop-card-market-row span {
        padding: 2px 6px;
        font-size: .66rem;
    }

    .mp-shop-card-market-row span:nth-child(2) {
        display: none;
    }

    .mp-shop-card-price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 1px;
    }

    .mp-shop-card-price-row strong {
        font-size: 1.08rem;
    }

    .mp-product-specs {
        font-size: .68rem;
    }

    .mp-product-buy-row {
        padding: 10px;
    }

    .mp-shop-card-promise {
        font-size: .66rem;
    }

    .mp-shop-card-promise span:nth-child(2),
    .mp-card-actions .mp-small-btn:first-child {
        display: none;
    }

    .mp-shop-result-count {
        justify-content: center;
        width: 100%;
    }

    .mp-product-drawer {
        grid-template-rows: minmax(0, 1fr);
    }

    .mp-drawer-backdrop {
        display: none;
    }

    .mp-product-detail-panel {
        width: 100%;
    }

    .mp-product-detail-price {
        align-items: flex-start;
        flex-direction: column;
    }

    .mp-order-detail-drawer {
        grid-template-columns: 1fr;
    }

    .mp-order-detail-panel {
        width: 100%;
    }

    .mp-order-detail-summary,
    .mp-order-detail-dl {
        grid-template-columns: 1fr;
    }

    .mp-finance-presets,
    .mp-finance-date-fields {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .mp-finance-date-fields input {
        width: 100%;
    }

    .mp-payment-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .mp-checkout-dialog {
        max-height: calc(100dvh - 20px);
        padding: 14px;
    }

    .mp-checkout-dialog-header,
    .mp-checkout-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .mp-checkout-qr-card {
        min-height: 260px;
    }

    .mp-payment-total strong {
        font-size: 1.55rem;
    }

    .mp-detail-list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .mp-next-card {
        min-height: auto;
    }

    .mp-next-card h2 {
        font-size: 1.25rem;
    }
}

/* ── Revamped Marketplace Hero Banner ── */
.mp-hero-banner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, #FFF9F5 0%, #F5FBF9 100%);
    border-radius: 24px;
    padding: 40px 60px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(140, 29, 47, 0.03);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.mp-hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.mp-hero-tagline {
    font-size: 2.45rem;
    font-weight: 900;
    line-height: 1.25;
    color: #1e293b;
    font-family: "Outfit", "Sarabun", sans-serif;
    margin: 0;
}

.mp-hero-tagline span {
    color: #f26b38; /* Accent color matching mockup */
}

.mp-hero-subtext {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 8px 0;
    font-weight: 600;
}

/* Large pill search box in hero */
.mp-hero-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    padding: 6px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.mp-hero-search-box:focus-within {
    border-color: var(--mp-primary);
    box-shadow: 0 8px 24px rgba(140, 29, 47, 0.08);
}

.mp-hero-search-box svg {
    margin-left: 16px;
    color: #64748b;
    width: 20px;
    height: 20px;
}

.mp-hero-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 0.92rem;
    background: transparent;
    color: #1e293b;
    font-weight: 600;
}

.mp-hero-search-btn {
    background: #008080; /* Teal search button matching mockup */
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.mp-hero-search-btn:hover {
    background: #006666;
}

/* Quick Action buttons under search in hero */
.mp-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.mp-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mp-hero-btn-buy {
    background: #ecaf53; /* Warm gold/yellow orange */
}

.mp-hero-btn-buy:hover {
    background: #db9d3e;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(236, 175, 83, 0.2);
}

.mp-hero-btn-sell {
    background: #f07b5a; /* Bright coral */
}

.mp-hero-btn-sell:hover {
    background: #d86241;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(240, 123, 90, 0.2);
}

.mp-hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mp-hero-illustration img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* ── Colorful Quick Filters (Mockup Styling) ── */
.mp-shop-quick-filters {
    margin-bottom: 24px;
    border-bottom: none;
}

.mp-shop-quick-filter {
    background: #ffffff;
    border: 1px solid var(--mp-border);
    transition: all 0.25s var(--mp-ease);
}

/* Dynamic Colorful Icons in Mockup */
.mp-shop-quick-filter[data-category="ใบงาน"] svg, 
.mp-shop-quick-filter[data-category=""] svg {
    color: #f26b38; /* Orange */
}
.mp-shop-quick-filter[data-category="แผนการสอน"] svg {
    color: #00a896; /* Teal */
}
.mp-shop-quick-filter[data-category="สไลด์"] svg {
    color: #e63946; /* Red */
}
.mp-shop-quick-filter[data-category="กิจกรรม"] svg {
    color: #ffb703; /* Yellow */
}
.mp-shop-quick-filter[data-category="เกมการศึกษา"] svg {
    color: #2a9d8f; /* Green */
}
.mp-shop-quick-filter[data-category="สื่อปฐมวัย"] svg {
    color: #ff85a1; /* Pink */
}
.mp-shop-quick-filter[data-category="ประถม"] svg {
    color: #023e8a; /* Blue */
}
.mp-shop-quick-filter[data-category="มัธยม"] svg {
    color: #7209b7; /* Purple */
}

/* Background Tints on hover/active based on category */
.mp-shop-quick-filter.is-active,
.mp-shop-quick-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.mp-shop-quick-filter[data-category=""].is-active,
.mp-shop-quick-filter[data-category=""].is-active:hover {
    background: #fff8f5;
    border-color: #f26b38;
    color: #f26b38;
}
.mp-shop-quick-filter[data-category="แผนการสอน"].is-active {
    background: #f0fbfc;
    border-color: #00a896;
    color: #00a896;
}
.mp-shop-quick-filter[data-category="สไลด์"].is-active {
    background: #fff5f5;
    border-color: #e63946;
    color: #e63946;
}
.mp-shop-quick-filter[data-category="กิจกรรม"].is-active {
    background: #fffdf5;
    border-color: #ffb703;
    color: #ffb703;
}
.mp-shop-quick-filter[data-category="เกมการศึกษา"].is-active {
    background: #f4faf9;
    border-color: #2a9d8f;
    color: #2a9d8f;
}
.mp-shop-quick-filter[data-category="สื่อปฐมวัย"].is-active {
    background: #fff5f7;
    border-color: #ff85a1;
    color: #ff85a1;
}
.mp-shop-quick-filter[data-category="ประถม"].is-active {
    background: #f5f8fc;
    border-color: #023e8a;
    color: #023e8a;
}
.mp-shop-quick-filter[data-category="มัธยม"].is-active {
    background: #f9f5fc;
    border-color: #7209b7;
    color: #7209b7;
}

/* ── Two-Column Marketplace Content Layout ── */
.mp-shop-layout-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 12px;
}

@media (max-width: 1200px) {
    .mp-shop-layout-container {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 860px) {
    .mp-shop-layout-container {
        grid-template-columns: 1fr;
    }
    .mp-shop-sidebar-filters {
        display: none !important; /* Hide left filters on mobile, use toolbar */
    }
}

/* Sidebar Filters Column */
.mp-shop-sidebar-filters {
    background: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 20px;
}

.mp-sidebar-filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-sidebar-filter-section h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px 0;
    font-family: "Outfit", sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-sidebar-filter-section h4 svg {
    width: 14px;
    height: 14px;
    color: var(--mp-primary);
}

.mp-sidebar-filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.mp-sidebar-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-sidebar-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
}

.mp-sidebar-checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--mp-primary);
    cursor: pointer;
}

.mp-sidebar-price-range {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mp-sidebar-price-range input[type="range"] {
    width: 100%;
    accent-color: #008080; /* Teal slider matching mockup */
    cursor: pointer;
}

.mp-sidebar-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 800;
}

.mp-sidebar-stars-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-sidebar-stars-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
}

.mp-sidebar-stars-label input[type="radio"],
.mp-sidebar-stars-label input[type="checkbox"] {
    accent-color: var(--mp-primary);
    cursor: pointer;
}

.mp-sidebar-stars-label .mp-star-rating {
    display: flex;
    gap: 1px;
    color: #fbbf24; /* Gold stars */
}

.mp-sidebar-stars-label .mp-star-rating svg {
    width: 12px;
    height: 12px;
    fill: #fbbf24;
}

/* Center Products Column */
.mp-shop-products-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-products-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-products-section-header h3 {
    font-size: 1.15rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
    font-family: "Outfit", sans-serif;
}

.mp-products-section-header a {
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    transition: color 0.2s;
}

.mp-products-section-header a:hover {
    color: var(--mp-primary);
}

/* Right Sidebar Recommended Sellers */
.mp-shop-sidebar-sellers {
    background: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.mp-sellers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--mp-border);
    padding-bottom: 12px;
}

.mp-sellers-header h3 {
    font-size: 0.92rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
    font-family: "Outfit", sans-serif;
}

.mp-sellers-header a {
    font-size: 0.74rem;
    font-weight: 800;
    color: #64748b;
}

.mp-sellers-header a:hover {
    color: var(--mp-primary);
}

.mp-seller-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-seller-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--mp-border);
}

.mp-seller-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mp-seller-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 1.5px solid var(--mp-border);
    background: #f1f5f9;
}

.mp-seller-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mp-seller-info strong {
    font-size: 0.8rem;
    color: #1e293b;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-seller-info span {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-seller-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mp-seller-meta .mp-seller-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    color: #ffb703;
    font-weight: 800;
}

.mp-seller-meta .mp-seller-rating svg {
    width: 10px;
    height: 10px;
    fill: #ffb703;
}

.mp-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.62rem;
    font-weight: 900;
    color: #d97706; /* Gold */
    background: #fef3c7;
    border: 1.5px solid #fde68a;
    border-radius: 4px;
    padding: 1px 4px;
    margin-top: 1px;
    width: max-content;
}

.mp-seller-badge svg {
    width: 8px;
    height: 8px;
}

/* Card Hearts Floating Button */
.mp-product-card {
    position: relative;
}

.mp-card-heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--mp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.mp-card-heart-btn:hover {
    color: #e63946;
    background: #fff5f5;
    border-color: #fca5a5;
    transform: scale(1.08);
}

/* ── Revamped Trust Badges Footer Row ── */
.mp-marketplace-trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #FFFBF8;
    border: 1px dashed #f2ccd1;
    border-radius: 16px;
    padding: 16px 24px;
    margin: 28px 0 40px;
}

@media (max-width: 768px) {
    .mp-marketplace-trust-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.mp-marketplace-trust-row span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: #334155;
    font-weight: 800;
}

.mp-marketplace-trust-row span i,
.mp-marketplace-trust-row span svg {
    background: #F9EAEB;
    color: var(--mp-primary);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    padding: 6px;
    flex-shrink: 0;
}

/* ── Revamped Modern Footer ── */
.mp-storefront-footer {
    background: #ffffff;
    border-top: 1px solid var(--mp-border);
    padding: 48px 0 32px 0;
    margin-top: 40px;
}

.mp-footer-container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .mp-footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.mp-footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Outfit", sans-serif;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 900;
}

.mp-footer-brand-logo img {
    height: 38px;
}

.mp-footer-brand-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
    font-weight: 600;
    margin: 0;
    max-width: 260px;
}

.mp-footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-footer-column h4 {
    font-size: 0.86rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Outfit", sans-serif;
}

.mp-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-footer-column ul li a {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    transition: color 0.2s;
}

.mp-footer-column ul li a:hover {
    color: var(--mp-primary);
}

.mp-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.mp-footer-contact-item svg {
    width: 14px;
    height: 14px;
    color: var(--mp-primary);
}

.mp-footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.mp-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s;
}

.mp-footer-socials a:hover {
    background: var(--mp-primary-soft);
    color: var(--mp-primary);
    transform: translateY(-2px);
}

/* ── Custom Navigation & Brand Header Styles ── */
.mp-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 990px) {
    .mp-nav-links {
        display: none !important; /* Hide links on tablet/mobile navigations */
    }
}

.mp-nav-link {
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    cursor: pointer;
}

.mp-nav-link:hover {
    color: var(--mp-primary);
}

.mp-nav-link svg,
.mp-nav-link i {
    width: 12px;
    height: 12px;
    color: #94a3b8;
    transition: color 0.2s;
}

.mp-nav-link:hover svg,
.mp-nav-link:hover i {
    color: var(--mp-primary);
}

/* Teal outline entry and orange start selling buttons */
.mp-btn-login-teal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1.5px solid #48ab9e;
    background: transparent;
    color: #48ab9e;
    font-size: 0.84rem;
    font-weight: 800;
    transition: all 0.2s;
    cursor: pointer;
}

.mp-btn-login-teal:hover {
    background: #eef9f7;
    transform: translateY(-1px);
}

.mp-btn-sell-orange {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 999px;
    background: #f07b5a;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(240, 123, 90, 0.18);
}

.mp-btn-sell-orange:hover {
    background: #d86241;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(240, 123, 90, 0.28);
}

/* ── Custom High-Fidelity Product Cover Variations ── */
.mp-product-cover.cover-green {
    background: linear-gradient(135deg, #eef9f5 0%, #d8f3e5 100%);
    border-color: #c2eed5;
}
.mp-product-cover.cover-green .mp-cover-title-mock {
    color: #10b981;
}

.mp-product-cover.cover-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
}
.mp-product-cover.cover-orange .mp-cover-title-mock {
    color: #f97316;
}

.mp-product-cover.cover-pink {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e6 100%);
    border-color: #fecdd3;
}
.mp-product-cover.cover-pink .mp-cover-title-mock {
    color: #ff85a1;
}

.mp-product-cover.cover-yellow {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: #fef08a;
}
.mp-product-cover.cover-yellow .mp-cover-title-mock {
    color: #d97706;
}

.mp-product-cover.cover-default {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}
.mp-product-cover.cover-default .mp-cover-title-mock {
    color: #0284c7;
}

.mp-cover-title-mock {
    font-family: "Outfit", "Sarabun", sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    text-align: center;
    padding: 0 16px;
    line-height: 1.35;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 62px;
}

.mp-card-heart-btn.active {
    background: #fff5f5;
    border-color: #fca5a5;
    color: #e63946;
}

/* Group container alignment elements */
.mp-nav-left-group {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.mp-nav-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    justify-content: flex-end;
    max-width: 620px;
    min-width: 0;
}

@media (max-width: 760px) {
    .mp-nav-left-group {
        width: 100%;
        justify-content: center;
    }
    .mp-nav-right-group {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }
}

/* ════════════════════════════════════════════════ */
/* ── Shopee-Style Marketplace Theme Integration ── */
/* ════════════════════════════════════════════════ */

.mp-shopee-header {
    background: var(--mp-primary);
    color: #ffffff;
    padding: 8px clamp(12px, 4vw, 48px) 16px;
    font-family: "Inter", "Sarabun", sans-serif;
}

.mp-shopee-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mp-shopee-topbar-left,
.mp-shopee-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-shopee-topbar-left a,
.mp-shopee-topbar-right a {
    color: inherit;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mp-shopee-topbar-left a:hover,
.mp-shopee-topbar-right a:hover {
    opacity: 0.8;
}

.mp-shopee-topbar-right svg,
.mp-shopee-topbar-right i {
    width: 13px;
    height: 13px;
}

.mp-shopee-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding-top: 14px;
}

.mp-shopee-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    flex-shrink: 0;
}

.mp-shopee-brand img {
    height: 44px;
    width: 44px;
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mp-shopee-brand span {
    display: flex;
    flex-direction: column;
    font-family: "Outfit", sans-serif;
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.1;
}

.mp-shopee-brand span small {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: #f07b5a;
    font-weight: 800;
}

.mp-shopee-search-group {
    flex-grow: 1;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mp-shopee-search-box {
    display: flex;
    background: #ffffff;
    border-radius: 4px;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mp-shopee-search-box input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 8px 14px;
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 600;
    border-radius: 4px 0 0 4px;
}

.mp-shopee-search-btn {
    background: #f07b5a; /* Coral/orange accent */
    color: #ffffff;
    border: none;
    outline: none;
    padding: 8px 24px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.mp-shopee-search-btn:hover {
    background: #d86241;
}

.mp-shopee-search-btn svg,
.mp-shopee-search-btn i {
    width: 16px;
    height: 16px;
}

.mp-shopee-search-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mp-shopee-search-tags::-webkit-scrollbar {
    display: none;
}

.mp-shopee-search-tags a {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    white-space: nowrap;
}

.mp-shopee-search-tags a:hover {
    color: #ffffff;
}

.mp-shopee-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mp-shopee-cart-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.05);
}

.mp-shopee-cart-btn svg,
.mp-shopee-cart-btn i {
    width: 20px;
    height: 20px;
}

.mp-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: .66rem;
    font-weight: 950;
    line-height: 1;
    padding: 0 5px;
}

.mp-cart-badge.hidden {
    display: none;
}

/* Shopee Sort Toolbar */
.mp-shopee-sortbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ededed;
    border-radius: 4px;
    padding: 10px 18px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: #555555;
    font-weight: 600;
}

.mp-shopee-sortbar span {
    margin-right: 6px;
}

.mp-sort-tab {
    background: #ffffff;
    color: #333333;
    border: none;
    outline: none;
    border-radius: 3px;
    padding: 7px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.mp-sort-tab.active {
    background: var(--mp-primary);
    color: #ffffff;
}

.mp-sort-price-select select {
    background: #ffffff;
    border: none;
    outline: none;
    border-radius: 3px;
    padding: 7px 16px;
    font-size: 0.8rem;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
}

/* Shopee Card Title Badge */
.mp-card-title-badge {
    background: #f07b5a;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Compact Shopee Product Grid Layout */
.mp-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.mp-product-card {
    border: 1px solid var(--mp-border);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: none;
    transition: all 0.2s;
}

.mp-product-card:hover {
    transform: translateY(-2px);
    border-color: var(--mp-primary);
    box-shadow: 0 4px 16px rgba(140, 29, 47, 0.08);
}

/* Secondary Policy sub-navigation */
.mp-shopee-policy-subnav {
    display: flex;
    justify-content: center;
    gap: 24px;
    background: #ffffff;
    border-bottom: 1.5px solid var(--mp-border);
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mp-shopee-policy-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 800;
    color: #475569;
    transition: color 0.2s;
}

.mp-shopee-policy-subnav a:hover {
    color: var(--mp-primary);
}

.mp-shopee-policy-subnav a svg,
.mp-shopee-policy-subnav a i {
    width: 14px;
    height: 14px;
    color: #64748b;
}

.mp-shopee-policy-subnav a:hover svg,
.mp-shopee-policy-subnav a:hover i {
    color: var(--mp-primary);
}

/* ── Shopee-Style PDP Main Card Container ── */
.mp-shopee-pdp-container {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 32px;
    background: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    margin-bottom: 20px;
}

.mp-shopee-pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-shopee-pdp-cover {
    height: 400px;
    border-radius: 4px;
    border: 1px solid var(--mp-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
    text-align: center;
}

.mp-shopee-pdp-cover.cover-green {
    background: linear-gradient(135deg, #eef9f5 0%, #d8f3e5 100%);
    border-color: #c2eed5;
}
.mp-shopee-pdp-cover.cover-green i,
.mp-shopee-pdp-cover.cover-green strong {
    color: #10b981;
}

.mp-shopee-pdp-cover.cover-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
}
.mp-shopee-pdp-cover.cover-orange i,
.mp-shopee-pdp-cover.cover-orange strong {
    color: #f97316;
}

.mp-shopee-pdp-cover.cover-pink {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e6 100%);
    border-color: #fecdd3;
}
.mp-shopee-pdp-cover.cover-pink i,
.mp-shopee-pdp-cover.cover-pink strong {
    color: #ff85a1;
}

.mp-shopee-pdp-cover.cover-yellow {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: #fef08a;
}
.mp-shopee-pdp-cover.cover-yellow i,
.mp-shopee-pdp-cover.cover-yellow strong {
    color: #d97706;
}

.mp-shopee-pdp-cover.cover-default {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}
.mp-shopee-pdp-cover.cover-default i,
.mp-shopee-pdp-cover.cover-default strong {
    color: #0284c7;
}

.mp-shopee-pdp-cover svg,
.mp-shopee-pdp-cover i {
    width: 84px;
    height: 84px;
    margin-bottom: 16px;
}

.mp-shopee-pdp-cover strong {
    font-family: "Outfit", "Sarabun", sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.3;
}

/* Right side info */
.mp-shopee-pdp-main-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-shopee-pdp-brand-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mp-shopee-pdp-badge {
    background: #f07b5a;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 5px;
    font-family: "Sarabun", sans-serif;
}

.mp-shopee-pdp-brand-row h1 {
    font-family: "Sarabun", "Outfit", sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.35;
    margin: 0;
}

/* Stats */
.mp-shopee-pdp-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 700;
}

.mp-pdp-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-pdp-stat-item.rating {
    color: #ffb703;
}

.mp-pdp-stat-item .stat-num {
    font-size: 0.95rem;
    font-weight: 900;
    color: #1e293b;
}

.mp-pdp-stat-item.rating .stat-num {
    color: #ffb703;
    border-bottom: 1.5px solid #ffb703;
}

.mp-pdp-stat-item .stat-stars {
    display: flex;
    align-items: center;
    gap: 1px;
}

.mp-pdp-stat-item .stat-stars svg,
.mp-pdp-stat-item .stat-stars i {
    width: 13px;
    height: 13px;
    fill: #ffb703;
    color: #ffb703;
}

.mp-pdp-stat-divider {
    color: #e2e8f0;
    font-weight: 300;
}

/* Price Panel */
.mp-shopee-pdp-price-panel {
    background: #FAF3F4;
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mp-shopee-pdp-price-panel .price-original {
    font-size: 0.88rem;
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 700;
}

.mp-shopee-pdp-price-panel .price-current {
    font-size: 2.2rem;
    font-weight: 950;
    color: var(--mp-primary);
    font-family: "Outfit", sans-serif;
    line-height: 1;
}

.mp-shopee-pdp-price-panel .price-discount-tag {
    background: #fde68a;
    color: #d97706;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 2px;
    font-family: "Outfit", sans-serif;
}

/* Attributes Grid */
.mp-shopee-pdp-details-grid {
    display: grid;
    gap: 14px;
    border-bottom: 1px solid var(--mp-border);
    padding-bottom: 20px;
    font-size: 0.86rem;
}

.mp-shopee-pdp-details-grid .detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 12px;
}

.mp-shopee-pdp-details-grid .detail-title {
    color: #64748b;
    font-weight: 700;
}

.mp-shopee-pdp-details-grid .detail-value {
    color: #1e293b;
    font-weight: 800;
}

.mp-shopee-pdp-details-grid .detail-value.text-primary {
    color: var(--mp-primary);
}

.mp-shopee-pdp-details-grid .detail-value.text-teal {
    color: #0d9488;
}

/* Purchase actions */
.mp-shopee-pdp-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.mp-shopee-pdp-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f07b5a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 14px 28px;
    font-size: 0.94rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(240, 123, 90, 0.22);
}

.mp-shopee-pdp-buy-btn:hover {
    background: #d86241;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(240, 123, 90, 0.32);
}

.mp-shopee-pdp-buy-btn svg,
.mp-shopee-pdp-buy-btn i {
    width: 18px;
    height: 18px;
}

.mp-shopee-pdp-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid var(--mp-border);
    background: #ffffff;
    color: #475569;
    border-radius: 4px;
    padding: 13px 24px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.mp-shopee-pdp-secondary-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.mp-shopee-pdp-secondary-btn svg,
.mp-shopee-pdp-secondary-btn i {
    width: 16px;
    height: 16px;
    color: #64748b;
}

/* Safeguards row */
.mp-shopee-pdp-safeguards {
    border-top: 1px solid var(--mp-border);
    padding-top: 16px;
}

.safeguard-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 750;
}

.safeguard-item svg,
.safeguard-item i {
    width: 14px;
    height: 14px;
    color: #10b981;
}

/* ── Shop Profile Section ── */
.mp-shopee-shop-profile {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    background: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    margin-bottom: 20px;
    align-items: center;
}

.shop-left {
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--mp-border);
    padding-right: 24px;
}

.shop-avatar {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: #FAF3F4;
    border: 2px solid var(--mp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-primary);
    flex-shrink: 0;
}

.shop-avatar svg,
.shop-avatar i {
    width: 32px;
    height: 32px;
}

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-info h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e293b;
    font-family: "Sarabun", sans-serif;
}

.shop-buttons {
    display: flex;
    gap: 10px;
}

.shop-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #475569;
    border: 1px solid var(--mp-border);
    padding: 6px 12px;
    border-radius: 4px;
    background: #ffffff;
    transition: all 0.2s;
}

.shop-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.shop-btn-outline svg,
.shop-btn-outline i {
    width: 12px;
    height: 12px;
    color: #64748b;
}

/* Dedicated seller storefront */
.mp-store-page-main {
    max-width: 1180px;
    padding-top: 18px;
}

.mp-store-hero-shell {
    margin-bottom: 18px;
}

.mp-store-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 20px;
    min-height: 250px;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(28, 25, 23, .82), rgba(140, 29, 47, .68)),
        linear-gradient(135deg, #8c1d2f 0%, #f07b5a 48%, #48ab9e 100%);
    background-position: center;
    background-size: cover;
    color: #ffffff;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .12);
    overflow: hidden;
}

.mp-store-identity {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.mp-store-avatar {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border: 4px solid rgba(255, 255, 255, .86);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mp-primary);
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .22);
    font-size: 2.4rem;
    font-weight: 950;
}

.mp-store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-store-title-block {
    min-width: 0;
}

.mp-store-badges,
.mp-store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mp-store-badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    padding: 5px 10px;
    color: #ffffff;
    font-size: .74rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.mp-store-badges svg,
.mp-store-actions svg,
.mp-store-outline-btn svg {
    width: 14px;
    height: 14px;
}

.mp-store-title-block h1 {
    margin: 10px 0 7px;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 950;
    line-height: 1.08;
}

.mp-store-title-block p {
    max-width: 720px;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .9);
    font-size: .96rem;
    font-weight: 650;
    line-height: 1.65;
}

.mp-store-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 4px;
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    padding: 8px 12px;
    font-size: .8rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.mp-store-outline-btn:hover {
    background: rgba(255, 255, 255, .22);
    color: #ffffff;
}

.mp-store-stat-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-self: center;
}

.mp-store-stat-panel div {
    min-height: 86px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 6px;
    background: rgba(255, 255, 255, .14);
    padding: 13px;
    backdrop-filter: blur(10px);
}

.mp-store-stat-panel strong,
.mp-store-stat-panel span {
    display: block;
}

.mp-store-stat-panel strong {
    color: #ffffff;
    font-family: "Outfit", sans-serif;
    font-size: 1.28rem;
    font-weight: 950;
}

.mp-store-stat-panel span {
    margin-top: 4px;
    color: rgba(255, 255, 255, .76);
    font-size: .76rem;
    font-weight: 850;
}

.mp-store-body {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.mp-store-sidebar,
.mp-store-products {
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.mp-store-sidebar {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 0;
}

.mp-store-sidebar-section {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--mp-border);
}

.mp-store-sidebar-section:last-child {
    border-bottom: 0;
}

.mp-store-sidebar-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #1e293b;
    font-size: .92rem;
    font-weight: 950;
}

.mp-store-sidebar-section h2 svg {
    width: 15px;
    height: 15px;
    color: var(--mp-primary);
}

.mp-store-sidebar-section p {
    margin: 0;
    color: var(--mp-muted);
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.55;
}

.mp-store-filter-label {
    color: #475569;
    font-size: .75rem;
    font-weight: 900;
}

.mp-store-sidebar select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--mp-border);
    border-radius: 4px;
    background: #ffffff;
    padding: 8px 10px;
    color: #1e293b;
    font-size: .82rem;
    font-weight: 800;
}

.mp-store-products {
    min-width: 0;
    padding: 14px;
}

.mp-store-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    border-bottom: 1px solid var(--mp-border);
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.mp-store-products-header h2,
.mp-store-products-header p {
    margin: 0;
}

.mp-store-products-header h2 {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 950;
}

.mp-store-products-header strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    background: var(--mp-primary-soft);
    color: var(--mp-primary);
    padding: 7px 12px;
    font-size: .78rem;
    font-weight: 950;
    white-space: nowrap;
}

.mp-store-product-link {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.mp-store-product-card h3 {
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    color: #1e293b;
    font-size: .84rem;
    font-weight: 760;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mp-store-card-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 850;
}

.mp-store-card-rating span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mp-store-card-rating svg {
    width: 13px;
    height: 13px;
    fill: #fbbf24;
    color: #fbbf24;
}

@media (max-width: 920px) {
    .mp-store-hero,
    .mp-store-body {
        grid-template-columns: 1fr;
    }

    .mp-store-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .mp-cart-panel {
        top: auto;
        bottom: 0;
        width: 100%;
        height: min(86dvh, 720px);
        border-top: 1px solid var(--mp-border);
        border-left: 0;
        border-radius: 16px 16px 0 0;
        padding: 16px;
    }

    .mp-store-page-main {
        padding-inline: 12px;
    }

    .mp-store-page .mp-shopee-main-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 12px;
    }

    .mp-store-page .mp-shopee-brand {
        min-width: 0;
    }

    .mp-store-page .mp-shopee-brand span {
        font-size: 1rem;
    }

    .mp-store-page .mp-shopee-search-group {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }

    .mp-store-page .mp-shopee-search-box,
    .mp-store-page .mp-shopee-search-tags {
        width: 100%;
        min-width: 0;
    }

    .mp-store-page .mp-shopee-cart-btn {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .mp-store-hero {
        padding: 18px;
    }

    .mp-store-identity {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .mp-store-avatar {
        width: 88px;
        height: 88px;
        font-size: 1.9rem;
    }

    .mp-store-title-block h1 {
        font-size: 1.55rem;
    }

    .mp-store-stat-panel {
        grid-template-columns: 1fr;
    }

    .mp-store-products-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.shop-right-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.shop-stat-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-stat-col .stat-label {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 700;
}

.shop-stat-col .stat-val {
    font-size: 0.94rem;
    font-weight: 900;
    color: var(--mp-primary);
}

/* ── Content Tab wrapper ── */
.mp-shopee-pdp-content-wrapper {
    background: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.pdp-detail-section {
    margin-bottom: 32px;
    border-bottom: 1.5px dashed var(--mp-border);
    padding-bottom: 24px;
}

.pdp-detail-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.pdp-detail-section .section-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 16px;
    background: #FAF3F4;
    padding: 10px 16px;
    border-left: 4px solid var(--mp-primary);
    font-family: "Sarabun", sans-serif;
}

.pdp-specs-list {
    display: grid;
    gap: 12px;
    font-size: 0.86rem;
}

.pdp-specs-list div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
}

.pdp-specs-list dt {
    color: #64748b;
    font-weight: 700;
}

.pdp-specs-list dd {
    color: #1e293b;
    font-weight: 800;
}

.pdp-description-text {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.75;
    font-weight: 650;
    white-space: pre-line;
}

/* Reviews */
.pdp-reviews-summary {
    display: flex;
    background: #FFFBF8;
    border: 1px solid #f2ccd1;
    border-radius: 6px;
    padding: 20px;
    gap: 32px;
    align-items: center;
    margin-bottom: 20px;
}

.summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.summary-score .score-num {
    font-size: 2.2rem;
    font-weight: 950;
    color: #ffb703;
    font-family: "Outfit", sans-serif;
    line-height: 1;
}

.summary-score .score-den {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
}

.summary-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-filters .filter-btn {
    border: 1px solid var(--mp-border);
    background: #ffffff;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.summary-filters .filter-btn.active {
    background: #FAF3F4;
    border-color: var(--mp-primary);
    color: var(--mp-primary);
}

.pdp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    border-bottom: 1px solid var(--mp-border);
    padding-bottom: 16px;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #FAF3F4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-primary);
    font-size: 0.74rem;
    font-weight: 850;
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-meta .username {
    font-size: 0.8rem;
    font-weight: 900;
    color: #1e293b;
}

.review-meta .date {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

.review-content {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.6;
    font-weight: 700;
    margin: 4px 0 0 48px;
}

/* Responsive details for Shopee PDP */
@media (max-width: 990px) {
    .mp-shopee-pdp-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mp-shopee-pdp-cover {
        height: 300px;
    }
    .mp-shopee-shop-profile {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .shop-left {
        border-right: none;
        padding-right: 0;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    .shop-right-stats {
        border-top: 1px solid var(--mp-border);
        padding-top: 16px;
    }
}

/* Premium Review Modal Styling */
.mp-review-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 18px;
}

.mp-review-modal.hidden {
    display: none !important;
}

.mp-review-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .56);
    backdrop-filter: blur(4px);
}

.mp-review-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(500px, 100%);
    max-height: min(600px, calc(100dvh - 36px));
    overflow: auto;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(16, 24, 40, .32);
    padding: 24px;
    font-family: 'Sarabun', 'Outfit', sans-serif;
    z-index: 230;
}

.mp-review-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mp-review-dialog-header h2 {
    margin: 0;
    color: #101828;
    font-size: 1.28rem;
    font-weight: 950;
    line-height: 1.25;
}

.mp-review-product-title {
    font-size: 0.95rem;
    font-weight: 850;
    color: #475569;
    margin-top: 4px;
}

.mp-review-stars-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.mp-review-star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.15s ease;
}

.mp-review-star-btn:hover {
    transform: scale(1.2);
}

.mp-review-star-btn svg {
    width: 36px;
    height: 36px;
    color: #cbd5e1;
    fill: none;
    transition: color 0.15s ease, fill 0.15s ease;
}

.mp-review-star-btn.selected svg {
    color: #fbbf24;
    fill: #fbbf24;
}

.mp-review-star-btn.hovered svg {
    color: #f59e0b;
    fill: #f59e0b;
}

.mp-review-rating-label {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--mp-primary);
    min-height: 20px;
}

.mp-review-comment-textarea {
    width: 100%;
    height: 120px;
    border: 1px solid var(--mp-border);
    border-radius: 6px;
    padding: 12px;
    font-size: 0.88rem;
    resize: none;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    font-weight: 650;
}

.mp-review-comment-textarea:focus {
    border-color: var(--mp-primary);
}

.mp-review-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: -8px;
    font-weight: 700;
}

.mp-review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* ── Seller Profile Store Header (Shopee Style) ── */
.mp-seller-profile-header {
    background: #ffffff;
    border: 1.5px solid var(--mp-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: all 0.3s var(--mp-ease);
}

.mp-seller-profile-header:hover {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.mp-seller-cover-banner {
    height: 140px;
    background: linear-gradient(135deg, #8C1D2F 0%, #d946ef 100%);
    position: relative;
    background-size: cover;
    background-position: center;
}

.mp-seller-info-bar {
    display: flex;
    padding: 20px 24px;
    gap: 24px;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    background: #ffffff;
}

.mp-seller-avatar-wrapper {
    position: relative;
    margin-top: -60px;
    z-index: 10;
    flex-shrink: 0;
}

.mp-seller-avatar-img {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    border: 4px solid #ffffff;
    background: #f1f5f9;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.mp-seller-avatar-fallback {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    border: 4px solid #ffffff;
    background: linear-gradient(135deg, var(--mp-primary) 0%, #ec4899 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.mp-seller-header-details {
    flex: 1;
    min-width: 200px;
}

.mp-seller-header-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-seller-header-badge {
    background: #fee2e2;
    color: var(--mp-primary);
    border: 1.5px solid #fecaca;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 900;
}

.mp-seller-header-bio {
    margin: 6px 0 0 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    font-weight: 600;
}

.mp-seller-header-stats {
    display: flex;
    gap: 24px;
    border-left: 1.5px dashed var(--mp-border);
    padding-left: 24px;
    min-width: max-content;
}

@media (max-width: 900px) {
    .mp-seller-header-stats {
        border-left: none;
        padding-left: 0;
        border-top: 1.5px dashed var(--mp-border);
        padding-top: 18px;
        width: 100%;
        min-width: 0;
        justify-content: space-between;
    }
}

.mp-seller-header-stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mp-seller-header-stat-val {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--mp-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.mp-seller-header-stat-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mp-seller-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 900px) {
    .mp-seller-header-actions {
        width: 100%;
        margin-top: 8px;
    }
    .mp-seller-avatar-wrapper {
        margin-top: -50px;
    }
}

.mp-seller-back-btn {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: var(--mp-radius-sm);
}
