/*
 * 2026 ALCALINK E-COMMERCE & SEO, S.L.L.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * @author ALCALINK E-COMMERCE & SEO, S.L.L. <info@alcalink.com>
 * @copyright  2026 ALCALINK E-COMMERCE & SEO, S.L.L.
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 *
 * Registered Trademark & Property of ALCALINK E-COMMERCE & SEO, S.L.L.
 */

#alcacifvalidator-status {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
}

#alcacifvalidator-status .alcacif-ok { color: #2c8a3d; font-weight: 600; }
#alcacifvalidator-status .alcacif-ko { color: #c0392b; font-weight: 600; }
#alcacifvalidator-status .alcacif-warn { color: #b8860b; font-weight: 600; }

#alcacifvalidator-status .alcacif-flag {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 6px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-weight: 700;
}

.alcacifvalidator-field-wrap { position: relative; }

/* ─── Combined input (nationality prefix + ID) ─── */
.alcacif-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.alcacif-input-group .alcacif-prefix {
    flex: 0 0 auto;
    min-width: 52px;
    border: 1px solid #d6d4d4;
    border-right: 0;
    border-radius: 0;
    background: #f1f1f1;
    color: #333;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    padding: 0 10px;
    line-height: 1.5;
}

.alcacif-input-group .alcacif-prefix:hover {
    background: #e6e6e6;
}

.alcacif-input-group input {
    flex: 1 1 auto;
    border-radius: 0;
}

/* Success/failure indicator as a fixed addon on the right (always visible) */
.alcacif-indicator {
    flex: 0 0 auto;
    min-width: 34px;
    border: 1px solid #d6d4d4;
    border-left: 0;
    border-radius: 0;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.alcacif-indicator-none { display: none; }
.alcacif-indicator-ok { color: #2c8a3d; }
.alcacif-indicator-ko { color: #c0392b; }
.alcacif-indicator-warn { color: #b8860b; }

.alcacif-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    background: #fff;
    border: 1px solid #d6d4d4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 260px;
    overflow-y: auto;
}

.alcacif-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alcacif-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.alcacif-dropdown-item:hover {
    background: #f5f5f5;
}

/* ─── Live validation status (error message below) ─── */
.alcacif-status {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.alcacif-status .alcacif-ok { color: #2c8a3d; font-weight: 600; }
.alcacif-status .alcacif-ko { color: #c0392b; font-weight: 600; }
.alcacif-status .alcacif-warn { color: #b8860b; font-weight: 600; }
.alcacif-status .alcacif-vies-name { color: #555; font-size: 12px; }