/**
 * 補貨通知彈窗：白底、標題置中、資訊橫向、雙按鈕 50:50
 */
.sn-overlay[hidden] {
    display: none !important;
}

.sn-overlay {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 15, 15, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    touch-action: none;
    overscroll-behavior: none;
}

.sn-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sn-card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 20px;
    border: 1px solid #ececec;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    position: relative;
}

.sn-overlay.is-open .sn-card {
    transform: translateY(0) scale(1);
}

.sn-confirm-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.sn-confirm-close:active {
    transform: scale(0.94);
}

.sn-confirm-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 44px 0;
    text-align: center;
}

.sn-line-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #06c755;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sn-line-mark svg {
    width: 26px;
    height: 26px;
    display: block;
}

.sn-confirm-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
}

.sn-info {
    margin: 16px 18px 0;
    background: #f7f7f8;
    border-radius: 14px;
    padding: 12px 14px;
}

.sn-info-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    line-height: 1.45;
}

.sn-info-row + .sn-info-row {
    margin-top: 8px;
}

.sn-info-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #666;
}

.sn-info-value {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    word-break: break-word;
}

.sn-note {
    margin: 12px 18px 0;
    background: #fff6f4;
    border-left: 3px solid #ef4444;
    border-radius: 0 10px 10px 0;
    padding: 10px 12px;
}

.sn-note-title {
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.sn-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #6b6b6b;
}

.sn-confirm-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 16px;
    padding: 0 18px 16px;
}

.sn-confirm-actions button {
    flex: 1 1 50%;
    min-width: 0;
    height: 44px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
}

.sn-btn-push {
    background: #06c755;
    border: 0;
    color: #fff;
}

.sn-btn-join {
    background: #fff;
    border: 1.5px solid #2563eb;
    color: #2563eb;
}

.sn-confirm-actions button:active {
    transform: scale(0.97);
}

.sn-confirm-actions button:disabled {
    opacity: 0.55;
    cursor: wait;
}
