/**
 * IOT Payment Failure Popup — Styles
 * @package Incomplete_Order_Tracker
 * @since   3.0.0 (Step 11)
 */

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.iot-pf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

body.iot-pf-open {
    overflow: hidden;
}

/* ── Modal Card ──────────────────────────────────────────────────────────── */
.iot-pf-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 460px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: iotPfSlideIn 0.35s ease;
}

@keyframes iotPfSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Close Button ────────────────────────────────────────────────────────── */
.iot-pf-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.iot-pf-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ── Icon ────────────────────────────────────────────────────────────────── */
.iot-pf-icon {
    font-size: 52px;
    margin-bottom: 12px;
    line-height: 1;
}

/* ── Title ───────────────────────────────────────────────────────────────── */
.iot-pf-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* ── Message ─────────────────────────────────────────────────────────────── */
.iot-pf-message {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* ── Action Buttons ──────────────────────────────────────────────────────── */
.iot-pf-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.iot-pf-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.iot-pf-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.iot-pf-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.iot-pf-btn-primary {
    background: #16a34a;
    color: #ffffff;
}
.iot-pf-btn-primary:hover:not(:disabled) {
    background: #15803d;
}

.iot-pf-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.iot-pf-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

/* ── Trust Line ──────────────────────────────────────────────────────────── */
.iot-pf-trust {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ── Inline Feedback ─────────────────────────────────────────────────────── */
.iot-pf-inline-success {
    background: #dcfce7;
    color: #15803d;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.iot-pf-error-msg {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .iot-pf-modal {
        padding: 28px 20px 22px;
    }
    .iot-pf-title {
        font-size: 19px;
    }
    .iot-pf-icon {
        font-size: 42px;
    }
}
