/* Map Container Styles */
.waa-map-container {
    height: 300px;
    width: 100%;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none; /* JS will toggle this to block */
}

.waa-map-toggle {
    display: inline-block;
    cursor: pointer;
    color: #007cba;
    text-decoration: underline;
    font-size: 0.95em;
    margin-top: 5px;
}

.waa-map-toggle:hover {
    color: #005a8c;
}

/* Ensure the map controls don't overlap WooCommerce tooltips */
.gm-style .gm-style-iw-c {
    padding: 10px !important;
}

/* Force Hide State Field (Checkout & My Account) */
.waa-hide-state, 
#billing_state_field.waa-hide-state, 
#shipping_state_field.waa-hide-state,
.woocommerce-address-fields__field-wrapper #billing_state_field.waa-hide-state,
.woocommerce-address-fields__field-wrapper #shipping_state_field.waa-hide-state {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Make the web component span the full field width */
gmp-place-autocomplete.waa-gmp-element {
    display: block;
    width: 100%;
    margin-top: 0; /* adjust if needed */
	
}

gmp-place-autocomplete{	
	background-color:#fff !important;
}

gmp-place-autocomplete .focus-ring{border:0 none !important;display:none !important;opacity:0 !important}

/* Keep Woo's original input in DOM for value/validation, but visually hidden */
.waa-hidden-input {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/*28012026*/
/* Hide WooCommerce input when Google widget is active */
.waa-hidden-input {
    display: none !important;
}

/* Style WooCommerce city input to match Google widget */
#billing_city,
#shipping_city,
#billing_address_1,
#shipping_address_1 {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

#billing_city:focus,
#shipping_city:focus,
#billing_address_1:focus,
#shipping_address_1:focus {
    outline: none;
    border-color: #4285f4 !important;
    box-shadow: 0 0 0 1px #4285f4;
}

/* Match Google widget styling */
.waa-gmp-element {
    width: 100% !important;
    display: block;
}

/* Ensure consistent field heights */
.woocommerce-input-wrapper {
    position: relative;
}

/* Add clear icon when field has value */
.waa-city-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.waa-clear-city {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #999;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.waa-clear-city:hover {
    opacity: 1;
    background: #666;
}

.waa-clear-city:focus {
    outline: 2px solid #4285f4;
}

/* Make room for clear button */
.waa-city-wrapper input {
    padding-right: 40px !important;
}

/* Map styling */
.waa-map-wrapper {
    margin-bottom: 20px;
}

.waa-map-toggle {
    display: inline-block;
    padding: 10px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.waa-map-toggle:hover {
    background: #005a87;
    color: white;
}

.waa-map-container {
    width: 100%;
    height: 400px;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.waa-hide-state {
    display: none !important;
}

/* Hide country field when option enabled */
.waa-hide-country {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}