/*--------------------------------------------------------------------------
| Popup Overlay
*--------------------------------------------------------------------------*/

#geo-otp-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
}

/*--------------------------------------------------------------------------
| Popup Container
*--------------------------------------------------------------------------*/

.geo-otp-container {
    width: 420px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-sizing: border-box;
}

/*--------------------------------------------------------------------------
| Close Button
*--------------------------------------------------------------------------*/

#geo-popup-close {
    position: absolute;
    top: 12px;
    right: 18px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

/*--------------------------------------------------------------------------
| Heading
*--------------------------------------------------------------------------*/

.geo-otp-container h3 {
    margin: 0 0 10px;
}

.geo-otp-container p {
    margin: 0 0 20px;
}

/*--------------------------------------------------------------------------
| Mobile Number Field
*--------------------------------------------------------------------------*/

.geo-mobile-box {
    display: flex;
    border: 1px solid #dddddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.geo-mobile-box span {
    padding: 14px 16px;
    background: #f5f5f5;
    white-space: nowrap;
}

#geo-mobile {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px;
    min-width: 0;
}

/*--------------------------------------------------------------------------
| OTP Area
*--------------------------------------------------------------------------*/

#geo-otp-area {
    display: none;
}

#geo-otp {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 14px;
    margin-top: 15px;
    box-sizing: border-box;
}

/*--------------------------------------------------------------------------
| Countdown Timer
*--------------------------------------------------------------------------*/

#geo-otp-timer {
    text-align: center;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #495057;
}

/*--------------------------------------------------------------------------
| Buttons
*--------------------------------------------------------------------------*/

#geo-send-otp,
#geo-verify-otp,
#geo-resend-otp,
#geo-popup-cancel {
    width: 100%;
    border: 0;
    padding: 14px;
    margin-top: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

/*--------------------------------------------------------------------------
| Button Colors
*--------------------------------------------------------------------------*/

#geo-send-otp {
    background: #28a745 !important;
    color: #ffffff !important;
}

#geo-verify-otp {
    background: #007bff !important;
    color: #ffffff !important;
}

#geo-resend-otp {
    background: #ff9800 !important;
    color: #ffffff !important;
}

#geo-popup-cancel {
    background: #6c757d !important;
    color: #ffffff !important;
}

/*--------------------------------------------------------------------------
| Hover Effects
*--------------------------------------------------------------------------*/

#geo-send-otp:hover:not(:disabled) {
    background: #218838 !important;
}

#geo-verify-otp:hover:not(:disabled) {
    background: #0069d9 !important;
}

#geo-resend-otp:hover:not(:disabled) {
    background: #f57c00 !important;
}

#geo-popup-cancel:hover:not(:disabled) {
    background: #5a6268 !important;
}

/*--------------------------------------------------------------------------
| Disabled Buttons
*--------------------------------------------------------------------------*/

#geo-send-otp:disabled,
#geo-verify-otp:disabled,
#geo-resend-otp:disabled,
#geo-popup-cancel:disabled {
    background: #e5e5e5 !important;
    color: #9a9a9a !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    box-shadow: none !important;
    transform: none !important;
}

/*--------------------------------------------------------------------------
| Disabled Hover
*--------------------------------------------------------------------------*/

#geo-send-otp:disabled:hover,
#geo-verify-otp:disabled:hover,
#geo-resend-otp:disabled:hover,
#geo-popup-cancel:disabled:hover {
    background: #e5e5e5 !important;
    color: #9a9a9a !important;
    box-shadow: none !important;
    transform: none !important;
}

/*--------------------------------------------------------------------------
| Message Area
*--------------------------------------------------------------------------*/

#geo-otp-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

/*--------------------------------------------------------------------------
| Checkout Fields
*--------------------------------------------------------------------------*/

.woocommerce form .optional {
    display: none !important;
}

.woocommerce-billing-fields #billing_phone {
    display: block !important;
}

.woocommerce-billing-fields #billing_email {
    display: block !important;
}

/*--------------------------------------------------------------------------
| Mobile View
*--------------------------------------------------------------------------*/

@media (max-width: 480px) {

    .geo-otp-container {
        padding: 25px;
    }

    #geo-popup-close {
        right: 15px;
    }

    .geo-mobile-box {
        flex-direction: row;
    }
}