/* Wrapper for relative positioning */
.otp-phone-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* Country code styling */
.otp-country-code {
    position: absolute;
    top: 50%;
    left: 15px; /* Adjust based on Avada's input padding */
    transform: translateY(-50%);
    font-weight: bold;
    color: #333;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to the input */
}

/* Input field styling adjustments */
input.otp-has-country-code {
    padding-left: 50px !important; /* Make room for +91 */
}

/* Error styling */
input.otp-input-error {
    border-color: red !important;
}

.otp-error-message {
    display: block;
    margin-top: 5px;
}

/* OTP Popup Styling */
.otp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

.otp-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.otp-close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.otp-popup-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.otp-popup-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.otp-digit {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.otp-digit:focus {
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.otp-resend-wrapper {
    margin-bottom: 20px;
    font-size: 13px;
}

.otp-resend-wrapper a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

.otp-verify-button {
    background-color: #00d084;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.otp-verify-button:hover {
    background-color: #00a065;
}

.otp-change-number {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.otp-loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 100000;
}

.otp-loader-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background-image: url('/wp-content/uploads/2025/12/WiniYog-Logo-vector.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
