/* =============================================
   Stock Escalation Dialog — stationery-store
   ============================================= */

.ss-escalation-trigger-wrap {
    margin-top: 12px;
}

.ss-escalation-trigger {
    font-size: 0.9em;
    color: #555;
    text-decoration: underline;
    cursor: pointer;
}

.ss-escalation-trigger:hover {
    color: #333;
}

/* Backdrop */
.ss-escalation-dialog__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Dialog wrapper */
.ss-escalation-dialog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-escalation-dialog[hidden] {
    display: none;
}

/* Dialog box */
.ss-escalation-dialog__content {
    position: relative;
    background: #fff;
    border-radius: 4px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.ss-escalation-dialog__content h2 {
    margin-top: 0;
    font-size: 1.2em;
}

/* Product info table */
.ss-escalation-dialog__product-info dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin: 0 0 20px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 3px;
    font-size: 0.9em;
}

.ss-escalation-dialog__product-info dt {
    font-weight: 600;
    color: #555;
}

.ss-escalation-dialog__product-info dd {
    margin: 0;
}

/* Notice */
.ss-escalation-dialog__notice {
    padding: 10px 14px;
    border-radius: 3px;
    margin-bottom: 16px;
    font-size: 0.9em;
}

.ss-escalation-dialog__notice.is-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.ss-escalation-dialog__notice.is-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Form fields */
.ss-escalation-dialog__form p {
    margin-bottom: 16px;
}

.ss-escalation-dialog__form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.ss-escalation-dialog__form input[type="number"],
.ss-escalation-dialog__form textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Actions */
.ss-escalation-dialog__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ss-escalation-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}

.ss-escalation-close:hover {
    color: #333;
}

.ss-escalation-dialog__notice-close {
    margin-top: 12px;
}