.authyo-otp-container .authyo-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

button.authyo-send-btn.button.nf-element {
    width: fit-content !important;
}

.authyo-otp-container .authyo-send-btn,
.authyo-otp-container .authyo-verify-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.authyo-otp-container .authyo-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.authyo-otp-group {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.authyo-timer-msg {
    font-style: italic;
}

.authyo-fallback-actions a {
    text-decoration: none;
    color: #0073aa;
    font-size: 0.9em;
}

.authyo-message {
    margin-top: 5px;
    font-weight: bold;
}

/* Phone Field Layout */
.authyo-phone-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    /* Align stretch to match heights */
}

/* Custom Select Styling */
.authyo-custom-select-wrapper {
    position: relative;
    user-select: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.authyo-select-selected {
    background-color: #fff;
    border: 1px solid #ccc;
    /* Match standard inputs */
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    height: auto;
    flex-grow: 1;
    /* Fill parent height */
    box-sizing: border-box;
}



.authyo-select-arrow {
    font-size: 10px;
    margin-left: 5px;
    color: #666;
}

/* Single Country Mode */
.authyo-single-country .authyo-select-arrow {
    display: none;
}

.authyo-single-country .authyo-select-selected {
    background-color: #f9f9f9;
    /* Visual cue that it's fixed */
    cursor: default;
}

/* Dropdown Container */
.authyo-select-items {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 9999;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hide helper */
.authyo-select-hide {
    display: none;
}

/* Search Box */
.authyo-search-box {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.authyo-select-search {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    outline: none;
}

/* List Items */
.authyo-select-list {
    max-height: 200px;
    overflow-y: auto;
}

.authyo-select-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
}

.authyo-select-item:hover,
.authyo-select-item.same-as-selected {
    background-color: #f1f1f1;
}

/* Phone Input Alignment */
.authyo-phone-input {
    height: auto;
    /* Let theme dictate height or stretch */
    box-sizing: border-box;
}

.authyo-phone-input {
    width: 100%;
}


/* Method Selector */
.authyo-method-selector {
    margin-top: 15px;
    border: 1px solid #0073aa;
    /* Ninja Forms Blue or generic blue */
    border-left: 4px solid #00da6e;
    /* Green accent */
    padding: 15px;
    border-radius: 4px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.authyo-method-label {
    margin: 0 0 10px 0;
    font-weight: 500;
    color: #333;
}

.authyo-method-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* Handle small screens */
}

.authyo-method-btn {
    flex: 1;
    background: #fff;
    border: 1px solid #0073aa;
    color: #0073aa;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
}

.authyo-method-btn:hover {
    background: #e6f7ff;
    color: #0073aa;
}

.authyo-method-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}