/**
 * Checkout OTP Styles - Matching Login/Register Form Design
 */

.authyo-checkout-otp-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.authyo-checkout-otp-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.authyo-checkout-otp-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.authyo-checkout-otp-fields {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.authyo-checkout-otp-email-section,
.authyo-checkout-otp-phone-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 0 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

/* Ensure phone OTP wrapper appears directly below phone-input-wrapper */
.phone-input-wrapper+#authyo-checkout-otp-phone-wrapper,
.wc-block-components-address-form__phone .phone-input-wrapper+#authyo-checkout-otp-phone-wrapper,
.wc-block-components-text-input .phone-input-wrapper+#authyo-checkout-otp-phone-wrapper {
    margin-top: 10px !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
}

.authyo-checkout-otp-section label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.authyo-checkout-otp-section .required {
    color: #e74c3c;
}

/* Phone input wrapper styling */
.phone-input-wrapper {
    display: flex !important;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

/* Hide phone-input-wrapper inside OTP wrapper - it's only for country select storage */
#authyo-checkout-otp-phone-wrapper .phone-input-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.phone-input-wrapper select.authyo-country-select,
#checkout-country-code {
    width: auto;
    min-width: 150px;
    max-width: 200px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    flex-shrink: 0;
    position: relative !important;
    z-index: 1 !important;
}

.phone-input-wrapper input[type="text"],
.phone-input-wrapper input[type="tel"] {
    flex: 1;
    width: auto;
    min-width: 0;
}

/* Block-based checkout phone wrapper - Grid Layout */
.wc-block-components-text-input .phone-input-wrapper,
.wc-block-components-address-form__phone .phone-input-wrapper {
    display: grid !important;
    grid-template-columns: 35% auto !important;
    gap: 30px !important;
    align-items: stretch !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* Hide phone field label when phone OTP validation is enabled - handled via JavaScript */
/* Ensure label doesn't overlap with phone input wrapper (only when label is visible) */
.wc-block-components-text-input label[for="billing-phone"]:not([style*="display: none"]),
.wc-block-components-address-form__phone label[for="billing-phone"]:not([style*="display: none"]),
.wc-block-components-text-input.wc-block-components-address-form__phone label:not([style*="display: none"]),
label[for="billing_phone"]:not([style*="display: none"]),
.billing_phone_field label:not([style*="display: none"]),
.billing-phone-field label:not([style*="display: none"]) {
    display: block !important;
    margin-bottom: 8px !important;
    clear: both !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

.wc-block-components-text-input .phone-input-wrapper select.authyo-country-select,
.wc-block-components-address-form__phone .phone-input-wrapper select.authyo-country-select,
.wc-block-components-text-input #checkout-country-code,
.wc-block-components-address-form__phone #checkout-country-code {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

.wc-block-components-text-input .phone-input-wrapper input[type="text"],
.wc-block-components-text-input .phone-input-wrapper input[type="tel"],
.wc-block-components-address-form__phone .phone-input-wrapper input[type="text"],
.wc-block-components-address-form__phone .phone-input-wrapper input[type="tel"] {
    width: 100% !important;
}

.number-preview {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
    font-style: italic;
}

.authyo-checkout-otp-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
}

.authyo-checkout-otp-input-group input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.authyo-checkout-otp-input-group input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.authyo-send-otp-btn,
#authyo_send_email_otp,
#authyo_send_phone_otp {
    padding: 11px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    min-width: 150px;
    text-align: center;
    line-height: 1.5;
    height: auto;
}

.authyo-send-otp-btn:hover,
#authyo_send_email_otp:hover,
#authyo_send_phone_otp:hover {
    background: #135e96;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.authyo-send-otp-btn:active,
#authyo_send_email_otp:active,
#authyo_send_phone_otp:active {
    background: #0f4c75;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.authyo-send-otp-btn:disabled,
#authyo_send_email_otp:disabled,
#authyo_send_phone_otp:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.resend-otp-btn,
#authyo_resend_email_otp,
#authyo_resend_phone_otp {
    padding: 10px 18px;
    background: #f6f7f7;
    color: #2c3338;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
    height: auto;
}

.resend-otp-btn:hover:not(:disabled),
#authyo_resend_email_otp:hover:not(:disabled),
#authyo_resend_phone_otp:hover:not(:disabled) {
    background: #e8e8e8;
    border-color: #c3c4c7;
    color: #1d2327;
}

.resend-otp-btn:disabled,
#authyo_resend_email_otp:disabled,
#authyo_resend_phone_otp:disabled {
    background: #f6f7f7;
    cursor: not-allowed;
    opacity: 0.5;
    color: #999;
    border-color: #dcdcde;
}

/* Hide send OTP button after successful verification */
#authyo_send_email_otp.authyo-verified,
#authyo_send_email_otp[data-verified="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

#authyo_send_phone_otp.authyo-verified,
#authyo_send_phone_otp[data-verified="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Resend OTP Section (Fallback Methods) */
.resend-otp-section {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
}

.resend-otp-section.authyo-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure resend section can be shown when not hidden */
#authyo-checkout-otp-phone-wrapper .resend-otp-section:not(.authyo-hidden),
.authyo-checkout-otp-phone-section .resend-otp-section:not(.authyo-hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.resend-text {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #555;
    font-weight: 500;
    line-height: 1.4;
}

.resend-methods-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* Fallback for themes that don't support CSS Grid */
@supports not (display: grid) {
    .resend-methods-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    .resend-methods-grid .resend-method-btn {
        flex: 1 !important;
        min-width: calc(33.333% - 6px) !important;
        margin: 0 3px !important;
    }
}

.resend-method-btn {
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 36px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-family: inherit !important;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
    z-index: 1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.resend-method-btn:hover:not(:disabled) {
    background: #e9ecef !important;
    color: #495057 !important;
    border-color: #adb5bd !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

.resend-method-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.resend-method-btn:disabled {
    background: #f0f0f1 !important;
    color: #999 !important;
    border-color: #ddd !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.authyo-otp-status {
    display: block;
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 4px;
    min-height: 20px;
    line-height: 1.5;
    word-wrap: break-word;
}

.authyo-otp-status.success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.authyo-otp-status.error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

.authyo-otp-status.info {
    color: #0c5460;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
}

/* Verified status - persistent message */
.authyo-otp-status.verified {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    font-weight: 500;
    display: block !important;
    padding: 12px 14px;
    margin-top: 10px;
}

.authyo-otp-status.verified .verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 12px;
    vertical-align: middle;
}

/* Change email/phone link */
.authyo-change-email-link,
.authyo-change-phone-link {
    margin-left: 12px;
    color: #2271b1 !important;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-block;
}

.authyo-change-email-link:hover,
.authyo-change-phone-link:hover {
    color: #135e96 !important;
    background: rgba(34, 113, 177, 0.1);
    text-decoration: none;
}

/* Verified OTP input field */
.authyo-checkout-otp-input-group input.verified {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.authyo-checkout-otp-input-group input.verified:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Hide OTP field initially */
.authyo-checkout-otp-input-group input[type="text"][style*="display: none"] {
    display: none !important;
}

/* Theme Compatibility - Ensure OTP fields work with all themes */
.woocommerce-checkout .authyo-checkout-otp-email-section,
.woocommerce-checkout .authyo-checkout-otp-phone-section,
.wc-block-checkout .authyo-checkout-otp-email-section,
.wc-block-checkout .authyo-checkout-otp-phone-section {
    margin: 15px 0 !important;
    padding: 0 !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure OTP fields are visible and properly styled in all themes */
#authyo-checkout-otp-email-wrapper,
#authyo-checkout-otp-phone-wrapper {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: auto !important;
    opacity: 1 !important;
}

/* OTP input group - ensure it works in all themes */
.authyo-checkout-otp-input-group {
    display: flex !important;
    gap: 10px !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin: 10px 0 !important;
    flex-wrap: wrap !important;
}

.authyo-checkout-otp-input-group input[type="text"] {
    flex: 1 1 auto !important;
    min-width: 150px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.authyo-send-otp-btn,
#authyo_send_email_otp,
#authyo_send_phone_otp {
    flex: 0 0 auto !important;
    min-width: 140px !important;
    box-sizing: border-box !important;
}

/* Phone input wrapper - Grid Layout (25% country, 75% phone) */
.phone-input-wrapper {
    display: grid !important;
    grid-template-columns: 25% auto !important;
    gap: 30px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 8px 0 10px 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
    position: relative !important;
}

.phone-input-wrapper select.authyo-country-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.phone-input-wrapper input[type="text"],
.phone-input-wrapper input[type="tel"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Status messages - ensure visibility */
.authyo-otp-status {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
}

/* Resend button - Hidden by default, only show after timer expires */
#authyo_resend_email_otp,
#authyo_resend_phone_otp {
    display: none !important;
    visibility: hidden !important;
    width: auto !important;
    margin: 10px 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .authyo-checkout-otp-section {
        padding: 15px !important;
        margin: 15px 0 !important;
    }

    .authyo-checkout-otp-input-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .authyo-checkout-otp-input-group input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .authyo-send-otp-btn,
    #authyo_send_email_otp,
    #authyo_send_phone_otp {
        width: 100% !important;
        min-width: 100% !important;
        margin-top: 5px !important;
    }

    .phone-input-wrapper {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .phone-input-wrapper select.authyo-country-select {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .phone-input-wrapper input[type="text"],
    .phone-input-wrapper input[type="tel"] {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .resend-methods-grid {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .resend-method-btn {
        width: 100% !important;
    }

    #authyo_resend_email_otp,
    #authyo_resend_phone_otp {
        width: 100% !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .authyo-checkout-otp-section {
        padding: 10px !important;
        margin: 10px 0 !important;
    }

    .authyo-send-otp-btn,
    #authyo_send_email_otp,
    #authyo_send_phone_otp {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }

    .authyo-otp-status {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}

/* Ensure consistency with WooCommerce checkout form - All Themes */
.woocommerce-checkout .authyo-checkout-otp-section .form-row,
.woocommerce-checkout .authyo-checkout-otp-email-section.form-row,
.woocommerce-checkout .authyo-checkout-otp-phone-section.form-row,
.wc-block-checkout .authyo-checkout-otp-email-section,
.wc-block-checkout .authyo-checkout-otp-phone-section {
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .authyo-checkout-otp-section label,
.woocommerce-checkout .authyo-checkout-otp-email-section label,
.woocommerce-checkout .authyo-checkout-otp-phone-section label,
.wc-block-checkout .authyo-checkout-otp-email-section label,
.wc-block-checkout .authyo-checkout-otp-phone-section label {
    display: block !important;
    margin-bottom: 5px !important;
}

/* Ensure OTP buttons are visible when inline - All Themes */
.woocommerce-checkout .authyo-send-otp-btn,
.wc-block-checkout .authyo-send-otp-btn,
#authyo_send_email_otp,
#authyo_send_phone_otp {
    display: inline-block !important;
    visibility: visible !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    position: static !important;
}

/* Hide send OTP button after successful verification - Must override above rule */
.woocommerce-checkout #authyo_send_email_otp.authyo-verified,
.wc-block-checkout #authyo_send_email_otp.authyo-verified,
#authyo_send_email_otp.authyo-verified,
#authyo_send_email_otp[data-verified="true"],
.woocommerce-checkout #authyo_send_phone_otp.authyo-verified,
.wc-block-checkout #authyo_send_phone_otp.authyo-verified,
#authyo_send_phone_otp.authyo-verified,
#authyo_send_phone_otp[data-verified="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Style for inline OTP fields after form fields - All Themes */
.woocommerce-checkout .form-row+.authyo-checkout-otp-email-section,
.woocommerce-checkout .form-row+.authyo-checkout-otp-phone-section,
.wc-block-checkout .wc-block-components-text-input+.authyo-checkout-otp-email-section,
.wc-block-checkout .wc-block-components-text-input+.authyo-checkout-otp-phone-section {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #e0e0e0 !important;
    clear: both !important;
}

/* Override theme-specific styles that might hide our elements */
#authyo-checkout-otp-email-wrapper *,
#authyo-checkout-otp-phone-wrapper * {
    box-sizing: border-box !important;
}

/* Ensure inputs work in all themes */
#authyo_checkout_email_otp,
#authyo_checkout_phone_otp {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #333 !important;
}

/* Theme compatibility - prevent theme CSS from breaking our layout */
body.woocommerce-checkout #authyo-checkout-otp-email-wrapper,
body.woocommerce-checkout #authyo-checkout-otp-phone-wrapper,
body.wc-block-checkout #authyo-checkout-otp-email-wrapper,
body.wc-block-checkout #authyo-checkout-otp-phone-wrapper {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    clear: both !important;
    float: none !important;
}

/* Ensure country dropdown is always visible - override any theme CSS */
#checkout-country-code,
select#checkout-country-code,
.authyo-country-select,
select.authyo-country-select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    min-width: 115px !important;
    max-width: 200px !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #fff !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    cursor: pointer !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

/* When inside phone-input-wrapper, use full width */
.phone-input-wrapper #checkout-country-code,
.phone-input-wrapper select.authyo-country-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Force visibility even when inside hidden container (temporary state before JavaScript moves it) */
#authyo-checkout-otp-container #checkout-country-code,
#authyo-checkout-otp-container select#checkout-country-code {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    position: relative !important;
    z-index: 99999 !important;
}

/* Ensure visibility in classic checkout form rows */
.form-row #checkout-country-code,
.form-row select#checkout-country-code,
.woocommerce-billing-fields__field-wrapper #checkout-country-code,
.woocommerce-billing-fields__field-wrapper select#checkout-country-code,
.billing_phone_field #checkout-country-code,
.billing-phone-field #checkout-country-code,
p.form-row #checkout-country-code,
p.form-row select#checkout-country-code {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    min-width: 150px !important;
    max-width: 200px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure visibility in block-based checkout */
.wc-block-components-text-input #checkout-country-code,
.wc-block-components-text-input select#checkout-country-code,
.wc-block-components-address-form__phone #checkout-country-code,
.wc-block-components-address-form__phone select#checkout-country-code {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Override any theme CSS that might hide the dropdown */
body.woocommerce-checkout #checkout-country-code,
body.woocommerce-checkout select#checkout-country-code,
body.wc-block-checkout #checkout-country-code,
body.wc-block-checkout select#checkout-country-code {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* Print styles - hide OTP fields when printing */
@media print {

    #authyo-checkout-otp-email-wrapper,
    #authyo-checkout-otp-phone-wrapper,
    .authyo-checkout-otp-section {
        display: none !important;
    }
}