/* Custom Infobox Styling for WP Store Locator */

/* Main infobox container */
#wpsl-gmap .wpsl-infobox {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
    max-width: 300px;
    font-family: inherit;
    transform: translateZ(0);
}

/* Close button - removed border-radius and background */
#wpsl-gmap .wpsl-infobox img[src*="close.gif"] {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    z-index: 10;
    transition: transform 0.2s ease;
}

#wpsl-gmap .wpsl-infobox img[src*="close.gif"]:hover {
    transform: scale(1.1);
}

/* Info window container */
#wpsl-gmap .wpsl-info-window {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Store name/title - green color for links */
#wpsl-gmap .wpsl-info-window strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

#wpsl-gmap .wpsl-info-window strong a {
    color: var(--ast-global-color-2);
    text-decoration: none;
}

#wpsl-gmap .wpsl-info-window strong a:hover {
    text-decoration: underline;
}

/* Address information */
#wpsl-gmap .wpsl-info-window p {
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.5;
}

#wpsl-gmap .wpsl-info-window span {
    display: block;
    margin-bottom: 3px;
    color: #444;
    font-size: 14px;
}

/* Contact information - kept black */
#wpsl-gmap .wpsl-info-window span strong {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 0;
    margin-right: 5px;
    color: #000;
}

/* Info window actions container */
#wpsl-gmap .wpsl-info-actions {
    display: flex;
    margin-top: 15px;
    gap: 10px;
    border-top: 1px solid #eaeaea;
    padding-top: 15px;
}

/* Since we're using the existing directions button class for the contact button */
#wpsl-gmap .wpsl-info-actions .wpsl-directions {
    display: inline-flex;
    align-items: center;
    background-color: var(--ast-global-color-2); /* Green background for contact */
    color: white;
    padding: 8px 15px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

/* Add contact icon instead of directions icon */
#wpsl-gmap .wpsl-info-actions .wpsl-directions:before {
    content: '\f0e0'; /* FontAwesome envelope icon */
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    margin-right: 8px;
    font-weight: 900;
}

#wpsl-gmap .wpsl-info-actions .wpsl-directions:hover {
    opacity: 0.9;
}

/* Add bottom arrow to infobox */
#wpsl-gmap .wpsl-infobox:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
    z-index: 2;
}

/* Shadow for the arrow */
#wpsl-gmap .wpsl-infobox:before {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Contact button styling */
#wpsl-gmap .wpsl-info-actions .wpsl-contact {
    display: inline-flex;
    align-items: center;
    background-color: #1d7e4d;
    color: white;
    padding: 8px 15px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

/* Add contact icon */
#wpsl-gmap .wpsl-info-actions .wpsl-contact:before {
    content: '\f0e0';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    margin-right: 8px;
    font-weight: 900;
}

#wpsl-gmap .wpsl-info-actions .wpsl-contact:hover {
    opacity: 0.9;
}

#wpsl-gmap .wpsl-street.category {
    font-style: italic;
    font-size: .8rem;
    color: #555;
}


#wpsl-gmap .wpsl-phone-track:before {
    content: '\f879'; /* FontAwesome envelope icon */
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    margin-right: 8px;
    font-weight: 900;
}

#wpsl-gmap .wpsl-phone-track a {
    color: var(--ast-global-color-2);
    font-weight: 600;
}