/* Overlay that covers the entire page */
#firebase-sms-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

/* The modal container styled to appear at the top center with a 0% top margin */
#firebase-sms-login-modal {
    position: relative;
    margin: 0 auto 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* Make buttons full width */
#firebase-sms-login-form button {
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

/* Input fields styling */
#firebase-sms-login-form input[type="text"],
#firebase-sms-login-form input[type="email"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    box-sizing: border-box;
    font-size: 16px; /* Prevents zoom on iOS Safari */
}

/* Message styling */
#firebase-sms-login-message {
    margin-top: 10px;
    color: red;
}

/* reCAPTCHA container styling */
#firebase-recaptcha-container {
    margin-top: 10px;
}

/* Additional text block styling */
.firebase-popup-text {
    margin-bottom: 15px;
    font-size: 16px;
}

.firebase-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#firebase-country-code-wrapper {
    min-width: 150px;
    position: relative;
}

/* Country dropdown display styling */
#firebase-country-code-display {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    background: #fff;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 20px;
    transition: border-color 0.2s ease;
}

#firebase-country-code-display:hover {
    border-color: #999;
}

#firebase-country-code-display:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Dropdown arrow */
#firebase-country-code-display::after {
    content: "▼";
    font-size: 10px;
    color: #666;
    margin-left: 8px;
}

/* Dropdown container styling */
#firebase-country-code-list-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Filter input styling */
#firebase-country-code-filter {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    outline: none;
}

#firebase-country-code-filter:focus {
    border-bottom-color: #007cba;
}

/* Country list styling */
#firebase-country-code-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#firebase-country-code-list li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.1s ease;
}

#firebase-country-code-list li:hover {
    background-color: #f8f9fa;
}

#firebase-country-code-list li:last-child {
    border-bottom: none;
}

.firebase-select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.firebase-phone-group {
    flex: 1;
}

#firebase-step-message {
    padding-left: 5px !important;
    padding-right: 5px !important;
}
