/* =============================================================
   POS — Edit Order Modal
   ============================================================= */
.mt-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.mt-edit-modal__box {
    background: var(--mf-color-surface);
    border: 1px solid var(--mf-color-surface-raised);
    padding: 28px;
    border-radius: var(--mf-r-md);
    width: 100%;
    max-width: 450px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#mt-ext-body, #mt-edit-body {
    flex-direction: column;
    gap: 16px;
}

.mt-edit-modal__title {
    margin: 0;
    color: var(--mf-color-base);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.mt-ext-current-end {
    margin: 0 0 4px;
    color: var(--mf-color-gray-text);
    font-size: var(--mf-text-xs);
    text-align: center;
}

.mt-edit-modal__price-diff {
    margin-top: 8px;
    font-size: var(--mf-text-lg);
    font-weight: 700;
}

.mt-edit-modal__price-diff--owe {
    color: var(--mf-color-warning);
}

.mt-edit-modal__price-diff--refund {
    color: var(--mf-color-info);
}

.mt-edit-modal__ext-current-end {
    margin: 0;
    color: var(--mf-color-gray-text);
    font-size: var(--mf-text-base);
    text-align: center;
}

.mt-ext-current-end__time {
    color: var(--mf-color-brand);
    font-weight: 700;
}

.mt-edit-modal__label {
    font-size: var(--mf-text-xs);
    color: var(--mf-color-gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

input.mt-edit-modal__input {
    width: 100%;
    padding: 10px;
    background: var(--mf-color-surface-raised);
    border: 1px solid #333;
    color: var(--mf-color-base);
    border-radius: var(--mf-r-sm);
    outline: none;
    transition: all 0.2s;
}

input.mt-edit-modal__input:focus {
    color: var(--accent);
    background-color: var(--base-2);
    border-color: var(--contrast-3);
}


.mt-edit-modal__row {
    display: flex;
    gap: 12px;
}

.mt-edit-modal__col {
    flex: 1;
}

.mt-edit-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.mt-edit-modal__btn {
    padding: 10px 20px;
    border-radius: var(--mf-r-sm);
    cursor: pointer;
    font-size: var(--mf-text-sm);
    transition: all 0.2s;
}

.mt-edit-modal__btn--cancel {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    font-weight: 600;
    transition: all 0.2s;
}

.mt-edit-modal__btn--cancel:is(:hover, :focus) {
    border: 1px solid #aaa;
    color: #fff;
}

.mt-edit-modal__btn--save {
    background: var(--mf-color-brand);
    border: none;
    color: var(--mf-color-base);
    font-weight: 700;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.mt-edit-modal__btn--save:is(:hover, :focus) {
    opacity: 1;
}

/* =============================================================
   Extensions Cards
   ============================================================= */
.mt-ext-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mt-ext-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: inherit;
    line-height: 1.4;
    text-align: left;
    padding: 12px 14px;
    border-radius: var(--mf-r-sm);
    border: 1px solid var(--mf-color-surface-raised);
    background: var(--mf-color-surface-raised);
    cursor: pointer;
    width: 100%;
    transition: border-color 0.2s, opacity 0.2s;
}
.mt-ext-card--avail:hover {
    border-color: var(--mf-color-brand);
}
.mt-ext-card--soldout {
    opacity: 0.5;
    cursor: not-allowed;
}
.mt-ext-card__title {
    color: var(--mf-color-base);
    font-weight: 700;
    font-size: var(--mf-text-sm);
}
.mt-ext-card__meta {
    color: var(--mf-color-gray-text);
    font-size: var(--mf-text-xs);
    margin-top: 2px;
}

.mt-ext-card__spots--free     { color: var(--mf-color-success); margin-left: 6px; }
.mt-ext-card__spots--limited  { color: var(--mf-color-warning); margin-left: 6px; }
.mt-ext-card__spots--critical { color: var(--mf-color-danger); margin-left: 6px; }
.mt-ext-card__spots--soldout  { color: var(--mf-color-gray-text); margin-left: 6px; }

.mt-ext-card__price {
    color: var(--mf-color-brand);
    font-weight: 700;
    font-size: var(--mf-text-sm);
    white-space: nowrap;
}