/**
 * Safe Order Pro - Checkout Frontend Styles
 * Handles Checkout Block/Notice Popups and Inline Validation
 */

/* Backdrop Overlay */
#sop-checkout-alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999999;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

#sop-checkout-alert-modal.sop-modal-open {
    display: flex;
}

/* Modal Card */
#sop-checkout-alert-card {
    background: #ffffff;
    border-radius: 18px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transform: scale(0.92);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    padding: 28px 24px;
    box-sizing: border-box;
}

#sop-checkout-alert-card.sop-card-visible {
    transform: scale(1);
    opacity: 1;
}

/* Icon Box */
.sop-alert-icon-wrap {
    width: 58px;
    height: 58px;
    background: #fff1f2;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 2px solid #ffe4e6;
}

/* Title */
.sop-alert-modal-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    font-family: inherit;
    line-height: 1.3;
}

/* Message Content */
#sop-alert-modal-content {
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 22px;
    font-family: inherit;
    word-break: break-word;
    font-weight: 500;
}

#sop-alert-modal-content .sop-modal-single-msg {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    font-weight: 500;
}

#sop-alert-modal-content ul,
#sop-alert-modal-content .woocommerce-error {
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border: none;
    color: inherit;
}

#sop-alert-modal-content .sop-modal-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
    text-align: left;
}

#sop-alert-modal-content .sop-modal-list li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

/* Action Buttons Group */
.sop-modal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Close/Confirm Button */
#sop-close-alert-modal {
    width: 100%;
    background: #f43f5e;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    font-family: inherit;
    box-sizing: border-box;
}

#sop-close-alert-modal:hover {
    background: #e11d48;
    transform: translateY(-1px);
}

/* Support Links (WhatsApp & Call) */
.sop-modal-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    box-sizing: border-box;
}

.sop-modal-support-btn:hover {
    transform: translateY(-1px);
    color: #ffffff;
}

.sop-modal-btn-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.sop-modal-btn-whatsapp:hover {
    background: #1eb857;
}

.sop-modal-btn-call {
    background: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.sop-modal-btn-call:hover {
    background: #0369a1;
}

/* Inline Phone Validation Feedback */
#sop-phone-val-msg {
    color: #f43f5e;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.sop-input-invalid {
    border-color: #f43f5e !important;
}

.sop-input-valid {
    border-color: #10b981 !important;
}
