/**
 * Primtee — Mon compte [primtee_mon_compte]
 * Style aligné sur .primtee-cart (panier / checkout).
 */

/* Shell */
.primtee-mc.primtee-mc--shell {
    --mc-fg: #0b0b0b;
    --mc-muted: #6e7480;
    --mc-line: rgba(15, 15, 15, 0.08);
    --mc-line-strong: rgba(15, 15, 15, 0.14);
    --mc-bg-soft: #f4f4f2;
    --mc-surface: #ffffff;
    --mc-primary: #0b0b0b;
    --mc-radius-xl: 22px;
    --mc-radius-lg: 18px;
    --mc-radius-md: 14px;
    --mc-radius-pill: 999px;
    --mc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --mc-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --mc-focus: 0 0 0 3px rgba(15, 15, 15, 0.12);

    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(16px, 2.4vw, 40px) clamp(14px, 2vw, 32px);
    color: var(--mc-fg);
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    text-align: left;
    isolation: isolate;
}

.primtee-mc *,
.primtee-mc *::before,
.primtee-mc *::after {
    box-sizing: border-box;
}

.primtee-mc a {
    text-decoration: none;
    color: inherit;
}

body.primtee-mon-compte-shortcode #main,
body.primtee-mon-compte-shortcode .wf-wrap,
body.primtee-mon-compte-shortcode .wf-container-main,
body.primtee-mon-compte-shortcode .content,
body.primtee-mon-compte-shortcode .content-area,
body.primtee-mon-compte-shortcode .entry-content {
    width: 100% !important;
    max-width: none !important;
}

/* Hero */
.primtee-mc__hero {
    margin-bottom: clamp(20px, 2.5vw, 28px);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mc-line);
}

.primtee-mc__hero-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
}

.primtee-mc__hero-text {
    flex: 1 1 min(380px, 100%);
    min-width: 0;
}

.primtee-mc__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mc-muted);
}

.primtee-mc__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.primtee-mc__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.primtee-mc__subtitle {
    margin: 0;
    max-width: 42rem;
    font-size: 14px;
    line-height: 1.55;
    color: var(--mc-muted);
}

.primtee-mc__user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--mc-radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--mc-fg);
    background: var(--mc-bg-soft);
    border: 1px solid var(--mc-line);
}

.primtee-mc__user-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #047857;
}

/* Layout body */
.primtee-mc__body {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
    align-items: start;
}

@media (max-width: 900px) {
    .primtee-mc__body {
        grid-template-columns: 1fr;
    }
}

/* Navigation */
.primtee-mc__nav {
    position: sticky;
    top: 20px;
    padding: 10px;
    border-radius: var(--mc-radius-lg);
    background: var(--mc-surface);
    border: 1px solid var(--mc-line);
    box-shadow: var(--mc-shadow-xs);
}

.primtee-mc__nav-list,
.primtee-mc__nav .primtee-mc__nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.primtee-mc__nav-list > li,
.primtee-mc__nav .primtee-mc__nav-list > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.primtee-mc__nav-list > li::before,
.primtee-mc__nav-list > li::after,
.primtee-mc__nav .primtee-mc__nav-list > li::before,
.primtee-mc__nav .primtee-mc__nav-list > li::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 900px) {
    .primtee-mc__nav {
        position: static;
    }

    .primtee-mc__nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .primtee-mc__nav-list {
        grid-template-columns: 1fr;
    }
}

.primtee-mc__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--mc-radius-md);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--mc-muted);
    transition: background 0.2s var(--mc-ease), color 0.2s var(--mc-ease);
}

.primtee-mc__nav-link:hover {
    background: var(--mc-bg-soft);
    color: var(--mc-fg);
}

.primtee-mc__nav-link--active {
    background: var(--mc-bg-soft);
    color: var(--mc-fg);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--mc-line-strong);
}

.primtee-mc__nav-link--logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.primtee-mc__nav-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.72;
}

.primtee-mc__nav-link--active .primtee-mc__nav-icon,
.primtee-mc__nav-link:hover .primtee-mc__nav-icon {
    opacity: 1;
}

.primtee-mc__nav-label {
    flex: 1;
    min-width: 0;
}

.primtee-mc__nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--mc-radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.primtee-mc__nav-divider {
    height: 1px;
    margin: 6px 8px;
    background: var(--mc-line);
}

/* Main content */
.primtee-mc__main {
    min-width: 0;
}

.primtee-mc__section-head {
    margin-bottom: 20px;
}

.primtee-mc__section-title {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.primtee-mc__section-desc {
    margin: 0;
    font-size: 14px;
    color: var(--mc-muted);
    line-height: 1.5;
}

/* Buttons */
.primtee-mc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 0;
    border-radius: var(--mc-radius-md);
    cursor: pointer;
    transition: background 0.22s var(--mc-ease), color 0.22s var(--mc-ease), border-color 0.22s var(--mc-ease), box-shadow 0.22s var(--mc-ease);
}

.primtee-mc__btn:focus-visible {
    outline: none;
    box-shadow: var(--mc-focus);
}

.primtee-mc__btn--solid {
    background: var(--mc-primary);
    color: #fff;
    box-shadow: var(--mc-shadow-xs);
}

.primtee-mc__btn--solid:hover {
    background: #1a1a1a;
}

.primtee-mc__btn--ghost {
    background: var(--mc-surface);
    color: var(--mc-fg);
    border: 1px solid var(--mc-line-strong);
    box-shadow: var(--mc-shadow-xs);
}

.primtee-mc__btn--ghost:hover {
    border-color: rgba(15, 15, 15, 0.22);
    background: var(--mc-bg-soft);
}

.primtee-mc__btn--block {
    width: 100%;
}

.primtee-mc__btn--sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

/* Cards & panels */
.primtee-mc__panel {
    background: var(--mc-surface);
    border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius-lg);
    box-shadow: var(--mc-shadow-xs);
    overflow: hidden;
}

.primtee-mc__panel-body {
    padding: clamp(16px, 2vw, 24px);
}

.primtee-mc__panel-head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--mc-line);
    background: var(--mc-bg-soft);
}

.primtee-mc__panel-head p {
    margin: 0;
    font-size: 13px;
    color: var(--mc-muted);
    line-height: 1.5;
}

.primtee-mc__empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--mc-muted);
    font-size: 14px;
}

/* Stat cards grid */
.primtee-mc__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.primtee-mc__stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--mc-surface);
    border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius-lg);
    box-shadow: var(--mc-shadow-xs);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.22s var(--mc-ease), box-shadow 0.22s var(--mc-ease);
}

.primtee-mc__stat:hover {
    border-color: var(--mc-line-strong);
    box-shadow: var(--mc-shadow-md);
}

.primtee-mc__stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--mc-radius-md);
    background: var(--mc-bg-soft);
    border: 1px solid var(--mc-line);
    color: var(--mc-fg);
}

.primtee-mc__stat-icon svg {
    width: 22px;
    height: 22px;
}

.primtee-mc__stat-value {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.primtee-mc__stat-label {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--mc-muted);
}

.primtee-mc__stat-hint {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--mc-muted);
    opacity: 0.85;
}

.primtee-mc__stat-arrow {
    margin-left: auto;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--mc-muted);
    opacity: 0.5;
}

.primtee-mc__stat:hover .primtee-mc__stat-arrow {
    opacity: 1;
    color: var(--mc-fg);
}

/* Welcome block */
.primtee-mc__welcome {
    margin-bottom: 24px;
}

.primtee-mc__welcome-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--mc-muted);
}

.primtee-mc__welcome-text strong {
    color: var(--mc-fg);
    font-weight: 600;
}

.primtee-mc__welcome-links {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--mc-muted);
    line-height: 1.6;
}

.primtee-mc__welcome-links a {
    color: var(--mc-fg);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Order tracking bar */
.primtee-mc__tracking {
    display: block;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--mc-surface);
    border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius-lg);
    box-shadow: var(--mc-shadow-xs);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.22s var(--mc-ease), box-shadow 0.22s var(--mc-ease);
}

.primtee-mc__tracking:hover {
    border-color: var(--mc-line-strong);
    box-shadow: var(--mc-shadow-md);
}

.primtee-mc__tracking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.primtee-mc__tracking-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.primtee-mc__tracking-desc {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--mc-muted);
}

.primtee-mc__tracking-bar {
    display: flex;
    height: 6px;
    margin-bottom: 16px;
    border-radius: var(--mc-radius-pill);
    overflow: hidden;
    background: var(--mc-bg-soft);
}

.primtee-mc__tracking-bar span {
    display: block;
    height: 100%;
}

.primtee-mc__tracking-bar--pending { background: #fbbf24; }
.primtee-mc__tracking-bar--progress { background: #60a5fa; }
.primtee-mc__tracking-bar--shipped { background: #34d399; }

.primtee-mc__tracking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 640px) {
    .primtee-mc__tracking-grid {
        grid-template-columns: 1fr;
    }
}

.primtee-mc__tracking-cell {
    padding: 12px 14px;
    border-radius: var(--mc-radius-md);
    border: 1px solid var(--mc-line);
    background: var(--mc-bg-soft);
}

.primtee-mc__tracking-cell-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--mc-muted);
}

.primtee-mc__tracking-cell-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.primtee-mc__tracking-cell-value {
    margin: 4px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Alert banner */
.primtee-mc__alert {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: var(--mc-radius-lg);
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.primtee-mc__alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--mc-radius-md);
    background: #fef3c7;
    color: #92400e;
}

.primtee-mc__alert-icon svg {
    width: 20px;
    height: 20px;
}

.primtee-mc__alert-body {
    flex: 1;
    min-width: 0;
}

.primtee-mc__alert-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #78350f;
}

.primtee-mc__alert-text {
    margin: 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.primtee-mc__alert-list {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: #92400e;
}

.primtee-mc__alert-list li {
    margin: 2px 0;
}

/* Forms */
.primtee-mc__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.primtee-mc__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mc-fg);
}

.primtee-mc__field input,
.primtee-mc__field select,
.primtee-mc__field textarea {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--mc-fg);
    background: var(--mc-surface);
    border: 1px solid var(--mc-line-strong);
    border-radius: var(--mc-radius-md);
    transition: border-color 0.2s var(--mc-ease), box-shadow 0.2s var(--mc-ease);
}

.primtee-mc__field input:focus,
.primtee-mc__field select:focus,
.primtee-mc__field textarea:focus {
    outline: none;
    border-color: var(--mc-fg);
    box-shadow: var(--mc-focus);
}

.primtee-mc__field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.primtee-mc__field-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
    .primtee-mc__field-grid,
    .primtee-mc__field-grid--3 {
        grid-template-columns: 1fr;
    }
}

.primtee-mc__form-divider {
    padding-top: 16px;
    border-top: 1px solid var(--mc-line);
}

.primtee-mc__form-divider-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Tabs (addresses) */
.primtee-mc__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin-bottom: 20px;
    border-radius: var(--mc-radius-lg);
    background: var(--mc-bg-soft);
    border: 1px solid var(--mc-line);
}

.primtee-mc__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: var(--mc-radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--mc-muted);
    transition: background 0.2s var(--mc-ease), color 0.2s var(--mc-ease), box-shadow 0.2s var(--mc-ease);
}

.primtee-mc__tab:hover {
    color: var(--mc-fg);
}

.primtee-mc__tab--active {
    background: var(--mc-surface);
    color: var(--mc-fg);
    box-shadow: var(--mc-shadow-xs);
    border: 1px solid var(--mc-line-strong);
}

/* Structure badge */
.primtee-mc__structure {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: var(--mc-radius-md);
    border: 1px solid var(--mc-line);
    background: var(--mc-bg-soft);
}

.primtee-mc__structure--defined {
    border-color: rgba(15, 15, 15, 0.18);
}

.primtee-mc__structure-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mc-muted);
}

.primtee-mc__structure-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: var(--mc-radius-pill);
    font-size: 13px;
    font-weight: 600;
    background: var(--mc-surface);
    border: 1px solid var(--mc-line-strong);
}

/* Orders table */
.primtee-mc__orders-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.primtee-mc__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.primtee-mc__filters label {
    font-size: 13px;
    font-weight: 500;
    color: var(--mc-muted);
}

.primtee-mc__filters select {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid var(--mc-line-strong);
    border-radius: var(--mc-radius-md);
    background: var(--mc-surface);
}

.primtee-mc__table-wrap {
    overflow-x: auto;
}

.primtee-mc__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.primtee-mc__table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    color: var(--mc-muted);
    background: var(--mc-bg-soft);
    border-bottom: 1px solid var(--mc-line);
}

.primtee-mc__table th:last-child,
.primtee-mc__table td:last-child {
    text-align: center;
}

.primtee-mc__table td:nth-last-child(2) {
    text-align: right;
}

.primtee-mc__table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--mc-line);
    vertical-align: middle;
}

.primtee-mc__table tr:last-child td {
    border-bottom: 0;
}

.primtee-mc__table tr:hover td {
    background: rgba(244, 244, 242, 0.5);
}

.primtee-mc__order-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
}

.primtee-mc__badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: var(--mc-radius-pill);
    font-size: 11px;
    font-weight: 600;
}

.primtee-mc__badge--neutral { background: var(--mc-bg-soft); color: var(--mc-muted); }
.primtee-mc__badge--pending { background: #fef3c7; color: #92400e; }
.primtee-mc__badge--progress { background: #dbeafe; color: #1d4ed8; }
.primtee-mc__badge--done { background: #d1fae5; color: #047857; }
.primtee-mc__badge--sav { background: #fef3c7; color: #92400e; margin-left: 4px; }

.primtee-mc__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--mc-radius-md);
    background: transparent;
    color: var(--mc-muted);
    cursor: pointer;
    transition: background 0.2s var(--mc-ease), color 0.2s var(--mc-ease);
}

.primtee-mc__icon-btn:hover {
    background: var(--mc-bg-soft);
    color: var(--mc-fg);
}

.primtee-mc__icon-btn--warn:hover {
    background: #fffbeb;
    color: #92400e;
}

.primtee-mc__icon-btn svg {
    width: 18px;
    height: 18px;
}

.primtee-mc__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Dressing */
.primtee-mc__dressing-section {
    margin-bottom: 28px;
}

.primtee-mc__dressing-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}

.primtee-mc__dressing-title-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--mc-radius-md);
    background: var(--mc-bg-soft);
    border: 1px solid var(--mc-line);
}

.primtee-mc__dressing-title-icon svg {
    width: 16px;
    height: 16px;
}

.primtee-mc__dressing-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--mc-line);
}

.primtee-mc__dressing-item:last-child {
    border-bottom: 0;
}

.primtee-mc__dressing-item--warn {
    background: rgba(255, 251, 235, 0.6);
}

.primtee-mc__dressing-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--mc-radius-md);
    overflow: hidden;
    background: var(--mc-bg-soft);
    border: 1px solid var(--mc-line);
}

.primtee-mc__dressing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.primtee-mc__dressing-thumb svg {
    width: 24px;
    height: 24px;
    color: var(--mc-muted);
}

.primtee-mc__dressing-thumb--muted img {
    filter: grayscale(0.4);
    opacity: 0.75;
}

.primtee-mc__dressing-info {
    flex: 1;
    min-width: 0;
}

.primtee-mc__dressing-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.primtee-mc__dressing-meta {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--mc-muted);
}

.primtee-mc__dressing-status {
    margin: 4px 0 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primtee-mc__dressing-status--ok { color: #047857; }
.primtee-mc__dressing-status--warn { color: #92400e; }
.primtee-mc__dressing-status--danger { color: #b91c1c; }

.primtee-mc__dressing-group-label {
    padding: 10px 18px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mc-muted);
}

.primtee-mc__dressing-group-label--warn { color: #92400e; }
.primtee-mc__dressing-group-label--danger { color: #b91c1c; }
.primtee-mc__dressing-group-label--ok { color: #047857; }

/* Guest / auth */
.primtee-mc--guest .primtee-mc__auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--mc-radius-xl);
    overflow: hidden;
    border: 1px solid var(--mc-line);
    background: var(--mc-surface);
    box-shadow: var(--mc-shadow-md);
}

.primtee-mc--guest .primtee-mc__auth-aside .primtee-mc__eyebrow {
    margin: 0;
}

@media (max-width: 768px) {
    .primtee-mc--guest .primtee-mc__auth-layout {
        grid-template-columns: 1fr;
    }
}

.primtee-mc__auth-aside {
    padding: clamp(24px, 3vw, 40px);
    background: var(--mc-bg-soft);
    border-right: 1px solid var(--mc-line);
}

@media (max-width: 768px) {
    .primtee-mc__auth-aside {
        border-right: 0;
        border-bottom: 1px solid var(--mc-line);
    }
}

.primtee-mc__auth-aside-title {
    margin: 10px 0 12px;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.primtee-mc__auth-aside-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--mc-muted);
}

.primtee-mc__auth-features {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.primtee-mc__auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    font-size: 13px;
    color: var(--mc-muted);
    line-height: 1.45;
}

.primtee-mc__auth-features li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: #047857;
}

.primtee-mc__auth-main {
    padding: clamp(24px, 3vw, 36px);
}

.primtee-mc__auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 20px;
    border-radius: var(--mc-radius-lg);
    background: var(--mc-bg-soft);
    border: 1px solid var(--mc-line);
}

.primtee-mc__auth-tab-btn {
    padding: 10px 12px;
    border: 0;
    border-radius: var(--mc-radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--mc-muted);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s var(--mc-ease), color 0.2s var(--mc-ease), box-shadow 0.2s var(--mc-ease);
}

.primtee-mc__auth-tab-btn--active {
    background: var(--mc-surface);
    color: var(--mc-fg);
    box-shadow: var(--mc-shadow-xs);
}

.primtee-mc__auth-tab-panel {
    display: block;
}

.primtee-mc__auth-tab-panel--hidden {
    display: none;
}

.primtee-mc__notice {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--mc-radius-md);
    font-size: 13px;
    line-height: 1.45;
}

.primtee-mc__notice--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.primtee-mc__notice--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.primtee-mc__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mc-muted);
    cursor: pointer;
}

.primtee-mc__checkbox input {
    width: 16px;
    height: 16px;
    min-height: 0;
    accent-color: var(--mc-primary);
}

.primtee-mc__link-btn {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--mc-fg);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.primtee-mc__auth-footer {
    margin-top: 16px;
    text-align: center;
}

.primtee-mc__auth-footer a {
    font-size: 13px;
    color: var(--mc-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.primtee-mc__auth-footer a:hover {
    color: var(--mc-fg);
}

.primtee-mc__lost-form--hidden {
    display: none;
}

/* Modals */
.primtee-mc__modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
}

.primtee-mc__modal--open {
    display: block;
}

.primtee-mc__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0.45);
    backdrop-filter: blur(4px);
}

.primtee-mc__modal-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.primtee-mc__modal-dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--mc-surface);
    border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius-xl);
    box-shadow: var(--mc-shadow-md);
    overflow: hidden;
}

.primtee-mc__modal-dialog--lg {
    max-width: 720px;
}

.primtee-mc__modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mc-line);
}

.primtee-mc__modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.primtee-mc__modal-date {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--mc-muted);
}

.primtee-mc__modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.primtee-mc__modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--mc-radius-md);
    background: transparent;
    color: var(--mc-muted);
    cursor: pointer;
}

.primtee-mc__modal-close:hover {
    background: var(--mc-bg-soft);
    color: var(--mc-fg);
}

.primtee-mc__modal-close svg {
    width: 18px;
    height: 18px;
}

/* Loading spinner */
.primtee-mc__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    gap: 12px;
}

.primtee-mc__spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--mc-line-strong);
    border-top-color: var(--mc-fg);
    border-radius: 50%;
    animation: primtee-mc-spin 0.7s linear infinite;
}

@keyframes primtee-mc-spin {
    to { transform: rotate(360deg); }
}

.primtee-mc__loading-text {
    margin: 0;
    font-size: 13px;
    color: var(--mc-muted);
}

.primtee-mc__error-text {
    text-align: center;
    color: #b91c1c;
    font-size: 14px;
}

/* WooCommerce notices inside shell */
.primtee-mc .woocommerce-notices-wrapper {
    margin-bottom: 16px;
}

.primtee-mc .woocommerce-message,
.primtee-mc .woocommerce-info,
.primtee-mc .woocommerce-error {
    border-radius: var(--mc-radius-md) !important;
    font-size: 14px !important;
}

/* Trust footer (guest) */
.primtee-mc__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mc-line);
    font-size: 13px;
    color: var(--mc-muted);
}

.primtee-mc__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.primtee-mc__trust-item svg {
    width: 16px;
    height: 16px;
}

.primtee-mc__trust-dot {
    opacity: 0.4;
}

body.primtee-mc-modal-open {
    overflow: hidden;
}

/* Compatibilité thème (The7, etc.) — largeurs formulaires / vues */
.primtee-mc .primtee-mc__nav ul,
.primtee-mc .primtee-mc__nav-list {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
}

.primtee-mc .primtee-mc__nav li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.primtee-mc .primtee-mc__nav li::marker {
    content: none !important;
    display: none !important;
}

.primtee-mc .primtee-mc-view {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.primtee-mc .primtee-mc-view > div,
.primtee-mc .primtee-mc-view > form,
.primtee-mc .primtee-mc-view > section,
.primtee-mc .primtee-mc-view > a {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.primtee-mc .primtee-mc-address-form input,
.primtee-mc .primtee-mc-address-form select,
.primtee-mc .primtee-mc-account-form input,
.primtee-mc .primtee-mc-account-form select {
    max-width: 100% !important;
}

.primtee-mc__dressing-thumb--empty {
    display: grid;
    place-items: center;
}

/* Champs WooCommerce sur le formulaire d'inscription */
.primtee-mc__auth-main .woocommerce-form-row,
.primtee-mc__auth-main p.form-row {
    margin: 0 0 14px;
}

.primtee-mc__auth-main .woocommerce-form-row label,
.primtee-mc__auth-main p.form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.primtee-mc__auth-main .woocommerce-form-row input,
.primtee-mc__auth-main .woocommerce-form-row select,
.primtee-mc__auth-main p.form-row input,
.primtee-mc__auth-main p.form-row select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid var(--mc-line-strong);
    border-radius: var(--mc-radius-md);
}

/*
 * Détail commande AJAX (class-order-service.php) — classes Tailwind historiques
 * conservées côté serveur ; styles repliés ici après retrait du CDN Tailwind.
 */
.primtee-mc__modal-body .flex { display: flex; }
.primtee-mc__modal-body .inline-flex { display: inline-flex; }
.primtee-mc__modal-body .inline-block { display: inline-block; }
.primtee-mc__modal-body .flex-wrap { flex-wrap: wrap; }
.primtee-mc__modal-body .items-center { align-items: center; }
.primtee-mc__modal-body .items-start { align-items: flex-start; }
.primtee-mc__modal-body .justify-between { justify-content: space-between; }
.primtee-mc__modal-body .flex-1 { flex: 1 1 0%; min-width: 0; }
.primtee-mc__modal-body .gap-1 { gap: 4px; }
.primtee-mc__modal-body .gap-2 { gap: 8px; }
.primtee-mc__modal-body .gap-3 { gap: 12px; }
.primtee-mc__modal-body .gap-4 { gap: 16px; }
.primtee-mc__modal-body .min-w-0 { min-width: 0; }
.primtee-mc__modal-body .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.primtee-mc__modal-body .text-right { text-align: right; }
.primtee-mc__modal-body .uppercase { text-transform: uppercase; }
.primtee-mc__modal-body .italic { font-style: italic; }
.primtee-mc__modal-body .font-medium { font-weight: 500; }
.primtee-mc__modal-body .font-semibold { font-weight: 600; }
.primtee-mc__modal-body .font-bold { font-weight: 700; }
.primtee-mc__modal-body .text-xs { font-size: 12px; line-height: 1.4; }
.primtee-mc__modal-body .text-sm { font-size: 14px; line-height: 1.45; }
.primtee-mc__modal-body .text-base { font-size: 16px; line-height: 1.5; }
.primtee-mc__modal-body .mb-1 { margin-bottom: 4px; }
.primtee-mc__modal-body .mb-2 { margin-bottom: 8px; }
.primtee-mc__modal-body .mb-3 { margin-bottom: 12px; }
.primtee-mc__modal-body .mb-4 { margin-bottom: 16px; }
.primtee-mc__modal-body .mb-6 { margin-bottom: 24px; }
.primtee-mc__modal-body .mt-1 { margin-top: 4px; }
.primtee-mc__modal-body .mt-3 { margin-top: 12px; }
.primtee-mc__modal-body .ml-1 { margin-left: 4px; }
.primtee-mc__modal-body .py-3 { padding-top: 12px; padding-bottom: 12px; }
.primtee-mc__modal-body .px-2 { padding-left: 8px; padding-right: 8px; }
.primtee-mc__modal-body .px-3 { padding-left: 12px; padding-right: 12px; }
.primtee-mc__modal-body .px-4 { padding-left: 16px; padding-right: 16px; }
.primtee-mc__modal-body .px-5 { padding-left: 20px; padding-right: 20px; }
.primtee-mc__modal-body .py-1 { padding-top: 4px; padding-bottom: 4px; }
.primtee-mc__modal-body .py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.primtee-mc__modal-body .py-2 { padding-top: 8px; padding-bottom: 8px; }
.primtee-mc__modal-body .py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.primtee-mc__modal-body .p-3 { padding: 12px; }
.primtee-mc__modal-body .p-4 { padding: 16px; }
.primtee-mc__modal-body .pt-3 { padding-top: 12px; }
.primtee-mc__modal-body .pt-4 { padding-top: 16px; }
.primtee-mc__modal-body .rounded { border-radius: 6px; }
.primtee-mc__modal-body .rounded-lg { border-radius: var(--mc-radius-md); }
.primtee-mc__modal-body .rounded-xl { border-radius: var(--mc-radius-lg); }
.primtee-mc__modal-body .rounded-full { border-radius: var(--mc-radius-pill); }
.primtee-mc__modal-body .object-cover { object-fit: cover; }
.primtee-mc__modal-body .border { border: 1px solid var(--mc-line); }
.primtee-mc__modal-body .border-b { border-bottom: 1px solid var(--mc-line); }
.primtee-mc__modal-body .border-t { border-top: 1px solid var(--mc-line); }
.primtee-mc__modal-body .border-slate-100 { border-color: var(--mc-line); }
.primtee-mc__modal-body .border-slate-200 { border-color: var(--mc-line-strong); }
.primtee-mc__modal-body .last\:border-0:last-child { border-bottom: 0; }
.primtee-mc__modal-body .space-y-2 > * + * { margin-top: 8px; }
.primtee-mc__modal-body .w-4 { width: 16px; height: 16px; }
.primtee-mc__modal-body .w-5 { width: 20px; height: 20px; }
.primtee-mc__modal-body .h-4 { height: 16px; }
.primtee-mc__modal-body .h-5 { height: 20px; }
.primtee-mc__modal-body .w-10 { width: 40px; }
.primtee-mc__modal-body .h-10 { height: 40px; }
.primtee-mc__modal-body .w-10.h-10 { width: 40px; height: 40px; flex-shrink: 0; }
.primtee-mc__modal-body img.w-10.h-10 { border-radius: 8px; }
.primtee-mc__modal-body .bg-white { background: var(--mc-surface); }
.primtee-mc__modal-body .bg-slate-50 { background: var(--mc-bg-soft); }
.primtee-mc__modal-body .bg-slate-100 { background: var(--mc-bg-soft); }
.primtee-mc__modal-body .bg-slate-200 { background: #e8e8e6; }
.primtee-mc__modal-body .bg-amber-100 { background: #fef3c7; }
.primtee-mc__modal-body .bg-emerald-50 { background: #ecfdf5; }
.primtee-mc__modal-body .bg-violet-100 { background: #ede9fe; }
.primtee-mc__modal-body .text-slate-300 { color: #cbd5e1; }
.primtee-mc__modal-body .text-slate-400 { color: var(--mc-muted); }
.primtee-mc__modal-body .text-slate-500 { color: var(--mc-muted); }
.primtee-mc__modal-body .text-slate-600 { color: #475569; }
.primtee-mc__modal-body .text-slate-700 { color: #334155; }
.primtee-mc__modal-body .text-slate-800 { color: var(--mc-fg); }
.primtee-mc__modal-body .text-amber-600 { color: #d97706; }
.primtee-mc__modal-body .text-amber-700 { color: #b45309; }
.primtee-mc__modal-body .text-emerald-600 { color: #059669; }
.primtee-mc__modal-body .text-emerald-700 { color: #047857; }
.primtee-mc__modal-body .text-violet-600 { color: #7c3aed; }
.primtee-mc__modal-body .text-violet-700 { color: #6d28d9; }
.primtee-mc__modal-body .text-violet-800 { color: #5b21b6; }
.primtee-mc__modal-body .text-blue-700 { color: #1d4ed8; }
.primtee-mc__modal-body .text-primtee-600 { color: var(--mc-fg); font-weight: 700; }
.primtee-mc__modal-body .tracking-wider { letter-spacing: 0.08em; }
.primtee-mc__modal-body a.inline-flex {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: var(--mc-radius-md);
}
.primtee-mc__modal-body a[style*="background-color"] {
    background: var(--mc-primary) !important;
    color: #fff !important;
}
.primtee-mc__modal-body a[style*="background-color"]:hover {
    opacity: 0.92;
}
