#orderguard-otp-verification {
    margin: 20px 0;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#orderguard-otp-verification h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.otp-verification-container {
    margin-top: 15px;
}

.otp-step {
    margin-bottom: 15px;
}

#otp-input {
    width: 200px;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    letter-spacing: 2px;
}

#send-otp-button,
#verify-otp-button {
    background-color: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#send-otp-button:hover,
#verify-otp-button:hover {
    background-color: #135e96;
}

#send-otp-button:disabled,
#verify-otp-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.resend-otp {
    margin-top: 10px;
    font-size: 14px;
}

.resend-otp a {
    color: #2271b1;
    text-decoration: none;
}

.resend-otp a:hover {
    text-decoration: underline;
}

.resend-otp a.disabled {
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.countdown {
    color: #666;
    margin-left: 5px;
}

.otp-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.otp-message.error {
    background-color: #fef2f2;
    border: 1px solid #f87171;
    color: #dc2626;
}

.otp-message.success {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
}

.otp-message.info {
    background-color: #eff6ff;
    border: 1px solid #93c5fd;
    color: #2563eb;
}

/* Order list verification status styles */
.verification-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.verification-status .dashicons {
    margin-right: 4px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.verification-status.verified {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
}

.verification-status.not-verified {
    background-color: #fef2f2;
    border: 1px solid #f87171;
    color: #dc2626;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    #otp-input {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    #send-otp-button,
    #verify-otp-button {
        width: 100%;
    }
}

/* OTP Verification Modal — matches report-popup design */
.orderguard-modal {
    display: none !important;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.orderguard-modal.is-open {
    display: flex !important;
}

.orderguard-modal-content {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.orderguard-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to right, #4f46e5, #6366f1);
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.orderguard-modal-title {
    margin: 0;
    padding: 0;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit;
    color: #ffffff !important;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0;
}

.orderguard-modal-body {
    padding: 24px;
    background: #f8fafc;
    color: #374151;
}

.otp-message-banner {
    background-color: #FFF9E5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #F8E7B9;
    color: #374151 !important;
}

.otp-message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.otp-message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #f87171;
}

.otp-message.success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #86efac;
}

.otp-message.info {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.otp-input-container {
    margin: 20px 0;
}

.orderguard-modal #otp-input,
.orderguard-modal .otp-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 5px;
    box-sizing: border-box;
}

.orderguard-modal .otp-button,
.orderguard-modal #verify-otp-button,
.orderguard-modal #flexible-verify-otp-button {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.orderguard-modal .otp-button:hover,
.orderguard-modal #verify-otp-button:hover,
.orderguard-modal #flexible-verify-otp-button:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.otp-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    color: #64748b !important;
}

.otp-footer span {
    color: #64748b !important;
}

.countdown,
.flexible-countdown {
    font-weight: bold;
    color: #4f46e5;
    margin-left: 0;
}

#resend-otp,
#flexible-resend-otp {
    color: #4f46e5;
    cursor: pointer;
    text-decoration: underline;
    display: none;
    margin-left: 5px;
}

#resend-otp:hover,
#flexible-resend-otp:hover {
    color: #4338ca;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 480px) {
    .orderguard-modal-content {
        width: 90%;
    }
    
    .orderguard-modal-title {
        font-size: 13px !important;
    }
    
    .orderguard-modal-body {
        padding: 20px;
    }
}

/* Focus styles for accessibility */
#otp-input:focus,
.otp-button:focus,
#resend-otp:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
} 