/* ==========================================================================
   VS Google Address Lookup — Checkout styles
   ========================================================================== */

.vs-gal-wrapper {
    background: #f9f9fb;
    border: 1px solid #d8dde7;
    border-radius: 6px;
    padding: 16px 18px 12px;
    margin-bottom: 24px;
    position: relative;
}

/* Subtle top accent bar matching typical WooCommerce primary colour */
.vs-gal-wrapper::before {
    content: '';
    display: block;
    height: 3px;
    background: #7f54b3;
    border-radius: 6px 6px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* Label */
.vs-gal-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #333;
}

.vs-gal-label .vs-gal-optional {
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
    margin-left: 4px;
}

/* Input wrapper */
.vs-gal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Search input */
.vs-gal-search.input-text {
    width: 100%;
    padding-right: 38px !important;
    box-sizing: border-box;
}

/* Search icon */
.vs-gal-icon {
    position: absolute;
    right: 10px;
    font-size: 1.1rem;
    color: #7f54b3;
    pointer-events: none;
    line-height: 1;
}

/* Hint text */
.vs-gal-hint {
    font-size: 0.78rem;
    color: #888;
    margin: 6px 0 0;
}

/* Google Places dropdown sits inside .pac-container — nudge z-index above WC overlays */
.pac-container {
    z-index: 99999 !important;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-family: inherit;
}

.pac-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1.4;
}

.pac-item:hover,
.pac-item-selected {
    background-color: #f3effe;
}

.pac-item-query {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
}

.pac-matched {
    font-weight: 700;
    color: #7f54b3;
}

/* Responsive — stack nicely on mobile */
@media ( max-width: 640px ) {
    .vs-gal-wrapper {
        padding: 14px 14px 10px;
    }
}

/* ==========================================================================
   "Enter address manually" link
   ========================================================================== */

.vs-gal-manual-link {
    font-size: 0.8rem;
    margin: 4px 0 0;
    text-align: right;
}

.vs-gal-manual-link a {
    color: #7f54b3;
    text-decoration: underline;
    cursor: pointer;
}

.vs-gal-manual-link a:hover {
    color: #6540a0;
}

