/**
 * ------------------------------------------------------------
 * Wooptima Checkout > ARES Validation Styles
 * ------------------------------------------------------------
 * @updated    29/09/2025
 * @author     Wooptima
 * ------------------------------------------------------------
 */

 .form-field.ares-loading #billing_ic {
    cursor: not-allowed !important;
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 50 50'%3E%3Cpath fill='%23FF3D00' d='M25,5A20.14,20.14,0,0,1,45,22.88a2.51,2.51,0,0,0,2.49,2.26h0A2.52,2.52,0,0,0,50,22.33a25.14,25.14,0,0,0-50,0,2.52,2.52,0,0,0,2.5,2.81h0A2.51,2.51,0,0,0,5,22.88,20.14,20.14,0,0,1,25,5Z'%3E%3CanimateTransform attributeName='transform' type='rotate' values='0 25 25;360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 10px) center !important;
    background-size: 20px 20px !important;
    transition: none !important;
}

#billing_ic[readonly] {
    background-color: #ffffff !important;
    cursor: not-allowed;
}

/* ARES Notice Styles */
.ares-notice-container {
    margin-top: 8px;
}

.ares-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 6px;
    border: 2px solid;
    font-size: 14px;
    line-height: 1.4;
}

.ares-notice-success {
    background-color: #f0f9f0;
    border-color: #28a745;
    color: #155724;
}

.ares-notice-invalid,
.ares-notice-service-error {
    background-color: #fdf2f2;
    border-color: #dc3545;
    color: #721c24;
}

.ares-notice-text {
    flex: 1;
}

/* ARES Autocomplete Styles */
.ares-autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    max-height: 0px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ddd;
    transition: max-height 0.2s ease-in-out;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
}

.ares-autocomplete-container--visible {
    max-height: 250px;
}

.ares-autocomplete-list {
    margin: 0;
    list-style-type: none;
    padding: 0;
    height: auto;
    max-height: 250px;
    overflow-y: auto;
}

.ares-autocomplete-item {
    padding: 10px 14px;
    transition: background-color 0.15s ease-in-out;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.ares-autocomplete-item:last-child {
    border-bottom: none;
}

.ares-autocomplete-item:hover {
    background-color: #f5f5f5;
}

.ares-autocomplete-company-name {
    font-weight: 500;
    color: #333;
}

.ares-autocomplete-company-id {
    color: #666;
    font-size: 0.9em;
    margin-left: 6px;
}

.ares-autocomplete-item:hover .ares-autocomplete-company-name {
    color: #000;
}

.ares-autocomplete-item:hover .ares-autocomplete-company-id {
    color: #999;
}