/**
 * Store Locator Public Styles - Modern Version
 */

/* Store Locator - Modern Design */
:root {
    --sl-primary: #2563eb;
    --sl-primary-hover: #1d4ed8;
    --sl-gray-50: #f9fafb;
    --sl-gray-100: #f3f4f6;
    --sl-gray-200: #e5e7eb;
    --sl-gray-300: #d1d5db;
    --sl-gray-400: #9ca3af;
    --sl-gray-500: #6b7280;
    --sl-gray-600: #4b5563;
    --sl-gray-700: #374151;
    --sl-gray-800: #1f2937;
    --sl-gray-900: #111827;
    --sl-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --sl-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --sl-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --sl-radius-sm: 0.375rem;
    --sl-radius: 0.5rem;
    --sl-radius-lg: 0.75rem;
    --sl-header-height: 60px;
    --sl-transition: all 0.2s ease-out;
    
    /* Spacing System */
    --sl-spacing-xs: 0.75rem;
    --sl-spacing-sm: 1rem;
    --sl-spacing-md: 1.5rem;
    --sl-spacing-lg: 2rem;
}

/* Main Container */
.store-locator-container {
    max-width: 1400px;
    margin: var(--sl-spacing-md) auto;
    padding: var(--sl-spacing-md);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: white;
    border-radius: var(--sl-radius-lg);
    box-shadow: var(--sl-shadow-md);
}

.store-locator-container *,
.store-locator-container *:before,
.store-locator-container *:after {
    box-sizing: inherit;
}

/* Search Form Container */
.store-locator-search {
    background: white;
    border: 1px solid var(--sl-gray-200);
    border-radius: var(--sl-radius);
    margin-bottom: 1rem;
    box-shadow: var(--sl-shadow-sm);
}

/* Primary Search Section */
.primary-search {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 140px 120px;
    gap: 1rem;
    padding: 1.25rem;
    align-items: start;
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
    flex: 1;
}

/* Search Input Styling */
.store-search-input {
    height: 44px !important;
    padding: 0 1rem !important;
    border: 1px solid var(--sl-gray-200) !important;
    border-radius: var(--sl-radius) !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    background: white !important;
    margin: 0 !important;
}

.store-search-input:hover {
    border-color: var(--sl-gray-300) !important;
}

.store-search-input:focus {
    border-color: var(--sl-primary) !important;
    box-shadow: 0 0 0 3px rgba(246, 138, 51, 0.1) !important;
    outline: none !important;
}

/* Radius Selector */
.radius-selector {
    position: relative;
}

.radius-selector select {
    width: 100%;
    height: 44px;
    padding: 0 2rem 0 1rem;
    border: 1px solid var(--sl-gray-200);
    border-radius: var(--sl-radius);
    font-size: 0.9375rem;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5l-4-4h8l-4 4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: var(--sl-transition);
}

.radius-selector select:hover {
    border-color: var(--sl-gray-300);
}

.radius-selector select:focus {
    border-color: var(--sl-primary);
    box-shadow: 0 0 0 3px rgba(246, 138, 51, 0.1);
    outline: none;
}

/* Find Stores Button */
button.store-locator-submit,
input[type="submit"].store-locator-submit {
    width: 100%;
    height: 44px;
    padding: 0 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #F68A33 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--sl-radius);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--sl-transition);
}

button.store-locator-submit:hover,
input[type="submit"].store-locator-submit:hover {
    background-color: #e07a2d !important;
}

/* Filter Toggle */
.filter-toggle {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border-top: 1px solid var(--sl-gray-200);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sl-gray-700);
    transition: var(--sl-transition);
    user-select: none;
}

.filter-toggle:hover {
    background-color: var(--sl-gray-50);
    color: var(--sl-gray-900);
}

.filter-toggle.active {
    background-color: var(--sl-gray-50);
    color: var(--sl-primary);
    border-bottom: none;
}

.filter-toggle-icon {
    color: var(--sl-gray-400);
    transition: transform 0.2s ease;
}

.filter-toggle.active .filter-toggle-icon {
    transform: rotate(180deg);
    color: var(--sl-primary);
}

/* Filters Section */
.filters-section {
    padding: 1rem;
    border-top: 1px solid var(--sl-gray-200);
    background: var(--sl-gray-50);
    display: none;
}

.filters-section.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sl-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.filter-select {
    width: 100%;
    height: 38px;
    padding: 0 2rem 0 0.75rem;
    border: 1px solid var(--sl-gray-200);
    border-radius: var(--sl-radius);
    font-size: 0.875rem;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5l-4-4h8l-4 4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: var(--sl-transition);
}

.filter-select:hover {
    border-color: var(--sl-gray-300);
}

.filter-select:focus {
    border-color: var(--sl-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    outline: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Container */
.store-locator-results-container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: var(--sl-spacing-md);
    height: 600px;
    margin-top: var(--sl-spacing-md);
    position: relative;
}

/* Map Container */
.store-locator-map {
    border-radius: var(--sl-radius);
    overflow: hidden;
    height: 600px !important;
    min-height: 600px !important;
    max-height: 600px !important;
    border: 1px solid var(--sl-gray-200);
    background: var(--sl-gray-50);
    position: sticky;
    top: 20px;
}

/* Results List */
.store-locator-results {
    display: flex;
    flex-direction: column;
    border-radius: var(--sl-radius);
    overflow: hidden;
    background: white;
    border: 1px solid var(--sl-gray-200);
    height: 600px !important;
}

/* Results Title */
.results-title {
    padding: var(--sl-spacing-sm);
    background-color: var(--sl-gray-50);
    border-bottom: 1px solid var(--sl-gray-200);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sl-gray-700);
    margin: 0;
    letter-spacing: 0.02em;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.store-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sl-gray-300) var(--sl-gray-100);
    padding: var(--sl-spacing-sm);
    height: calc(600px - 50px) !important; /* Subtract header height */
}

/* Store Items */
.store-item {
    margin-bottom: var(--sl-spacing-sm);
    transition: var(--sl-transition);
}

.store-item:last-child {
    margin-bottom: 0;
}

/* Store Card Styles */
.store-card {
    background: white;
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-gray-200);
    overflow: hidden;
    transition: var(--sl-transition);
}

.store-item:hover .store-card {
    transform: translateY(-2px);
    box-shadow: var(--sl-shadow-md);
    border-color: var(--sl-gray-300);
}

.store-item.active .store-card {
    border-color: var(--sl-primary);
    background-color: var(--sl-gray-50);
}

/* Store Card Header */
.store-card-header {
    padding: var(--sl-spacing-md);
    border-bottom: 1px solid var(--sl-gray-100);
}

.store-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sl-spacing-sm);
    margin-bottom: var(--sl-spacing-sm);
}

.store-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sl-spacing-sm);
    width: 100%;
}

.store-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--sl-gray-900);
    line-height: 1.3;
    flex: 1;
}

/* Store Distance Badge */
.store-distance {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: #01295A;
    color: white;
    border-radius: var(--sl-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.store-distance .store-icon {
    color: white;
}

/* Store Metadata */
.store-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--sl-gray-100);
}

.store-metadata-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.store-metadata-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sl-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.store-metadata-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

.store-category,
.store-secondary-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--sl-radius-sm);
    font-weight: 500;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-category {
    background: rgba(var(--sl-primary-rgb), 0.1);
    color: var(--sl-primary);
}

.store-secondary-category {
    background: var(--sl-gray-100);
    color: var(--sl-gray-600);
}

/* Store Card Content */
.store-card-content {
    padding: var(--sl-spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--sl-spacing-md);
}

.store-info-group {
    display: flex;
    flex-direction: column;
    gap: var(--sl-spacing-sm);
}

.store-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--sl-gray-700);
    line-height: 1.5;
}

.store-info-text {
    flex: 1;
}

.store-info-text a {
    color: var(--sl-primary);
    text-decoration: none;
    transition: var(--sl-transition);
}

.store-info-text a:hover {
    color: var(--sl-primary-hover);
    text-decoration: underline;
}

.store-icon {
    width: 18px;
    height: 18px;
    color: var(--sl-gray-400);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.store-hours {
    white-space: pre-line;
}

/* Store Card Actions */
.store-card-actions {
    padding: var(--sl-spacing-md);
    border-top: 1px solid var(--sl-gray-100);
    display: flex;
    gap: var(--sl-spacing-sm);
}

.store-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--sl-radius);
    cursor: pointer;
    transition: var(--sl-transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.store-action-primary {
    background-color: #F68A33;
    color: white;
}

.store-action-primary:hover {
    background-color: #e07a2d;
}

.store-action-primary .store-icon {
    color: white;
}

.store-action-secondary {
    background-color: white;
    color: var(--sl-gray-700);
    border-color: var(--sl-gray-200);
}

.store-action-secondary:hover {
    background-color: var(--sl-gray-50);
    border-color: var(--sl-gray-300);
    color: var(--sl-gray-900);
}

.store-action-secondary .store-icon {
    color: var(--sl-gray-500);
}

/* Store Content Layout */
.store-header {
    margin-bottom: 1rem;
}

.store-distance {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--sl-gray-100);
    border-radius: var(--sl-radius-sm);
    font-size: 0.875rem;
    color: var(--sl-gray-700);
    margin-bottom: 0.75rem;
}

.store-distance i {
    margin-right: 0.375rem;
    color: var(--sl-gray-500);
}

.store-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

/* Store Information */
.store-address-info,
.store-contact-info {
    font-size: 0.875rem;
    color: var(--sl-gray-600);
    line-height: 1.5;
}

.store-address-info > div,
.store-contact-info > div {
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-address-info i,
.store-contact-info i {
    color: var(--sl-gray-400);
    width: 1rem;
    text-align: center;
}

/* Store Actions */
.store-actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sl-gray-200);
    display: flex;
    gap: 0.75rem;
}

.store-view-details {
    background-color: var(--sl-gray-100);
    color: var(--sl-gray-700);
    border: 1px solid var(--sl-gray-200);
}

.store-view-details:hover {
    background-color: var(--sl-gray-200);
    color: var(--sl-gray-900);
}

.store-directions {
    background-color: white;
    color: var(--sl-primary);
    border: 1px solid var(--sl-primary);
}

.store-directions:hover {
    background-color: var(--sl-gray-50);
}

/* Loading and Error States */
.store-locator-loading,
.store-locator-error,
.store-locator-no-results,
.store-locator-initial-message {
    padding: var(--sl-spacing-lg);
    text-align: center;
    color: var(--sl-gray-600);
    font-size: 0.9375rem;
}

.store-locator-error {
    color: #dc2626;
    background-color: #fee2e2;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--sl-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .store-locator-submit {
        border: 2px solid ButtonText;
    }
    
    .store-actions a {
        border: 1px solid ButtonText;
    }
    
    .store-item.active {
        outline: 2px solid ButtonText;
    }
}

/* Custom Scrollbar */
.store-list::-webkit-scrollbar {
    width: 6px;
}

.store-list::-webkit-scrollbar-track {
    background: var(--sl-gray-100);
    border-radius: 3px;
}

.store-list::-webkit-scrollbar-thumb {
    background: var(--sl-gray-300);
    border-radius: 3px;
}

.store-list::-webkit-scrollbar-thumb:hover {
    background: var(--sl-gray-400);
}

/* Print Styles */
@media print {
    .store-locator-container {
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .store-locator-search,
    .store-actions {
        display: none;
    }

    .store-locator-results-container {
        display: block;
        height: auto;
    }

    .store-locator-map {
        height: 400px;
        page-break-inside: avoid;
    }

    .store-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* Google Places Autocomplete Styling */
.store-search-input {
    height: 44px !important;
    padding: 0 1rem !important;
    border: 1px solid var(--sl-gray-200) !important;
    border-radius: var(--sl-radius) !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    background: white !important;
    margin: 0 !important;
}

.store-search-input:hover {
    border-color: var(--sl-gray-300) !important;
}

.store-search-input:focus {
    border-color: var(--sl-primary) !important;
    box-shadow: 0 0 0 3px rgba(246, 138, 51, 0.1) !important;
    outline: none !important;
}

/* Style Google Places Autocomplete dropdown */
.pac-container {
    margin-top: 4px !important;
    padding: 0.5rem 0 !important;
    border-radius: var(--sl-radius) !important;
    border: 1px solid var(--sl-gray-200) !important;
    box-shadow: var(--sl-shadow-md) !important;
    font-family: inherit !important;
    background: white !important;
    z-index: 9999 !important; /* Ensure dropdown is above other elements */
    width: auto !important;
    min-width: 300px !important;
    max-width: 100% !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
}

.pac-container:after {
    display: none !important; /* Remove Google's logo */
}

.pac-item {
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    border-top: 1px solid var(--sl-gray-100) !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
}

.pac-item:first-child {
    border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
    background-color: var(--sl-gray-50) !important;
}

.pac-icon {
    margin-right: 0.75rem !important;
    width: 20px !important;
    height: 20px !important;
}

.pac-item-query {
    font-size: 0.9375rem !important;
    color: var(--sl-gray-900) !important;
    font-weight: 500 !important;
    padding-right: 0.5rem !important;
    font-family: inherit !important;
    flex: 1 !important;
}

.pac-matched {
    font-weight: 600 !important;
    color: var(--sl-primary) !important;
}

.pac-secondary-text {
    font-size: 0.875rem !important;
    color: var(--sl-gray-500) !important;
    font-family: inherit !important;
}

/* Input styling when autocomplete is enabled */
.store-search-input.has-autocomplete {
    background-color: white !important;
}

/* Mobile optimizations for autocomplete */
@media (max-width: 768px) {
    .pac-container {
        width: calc(100% - 2rem) !important;
        min-width: auto !important;
        left: 1rem !important;
        right: 1rem !important;
        position: fixed !important;
        top: auto !important;
    }
    
    .pac-item {
        padding: 1rem !important; /* Larger touch targets */
    }
}

/* Fix for autocomplete dropdown in modals and overlays */
.pac-container {
    position: fixed !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: calc(100% - 2rem) !important;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .store-locator-results-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .store-locator-map {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
        position: relative;
    }

    .store-locator-results {
        height: 500px !important;
    }

    .store-list {
        height: calc(500px - 50px) !important;
    }

    .store-locator-search {
        margin: 0 0 1rem 0;
        border-radius: var(--sl-radius);
    }

    .primary-search {
        grid-template-columns: 1fr 120px;
        gap: 0.75rem;
        padding: 1rem;
    }

    .radius-selector {
        grid-column: 2;
        grid-row: 1;
    }

    button.store-locator-submit,
    input[type="submit"].store-locator-submit {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .store-locator-container {
        margin: 0;
        padding: 0;
    }

    .store-locator-results-container {
        gap: 1rem;
        margin-top: 0;
    }

    .store-locator-map {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
        margin-bottom: 1rem;
        width: 100%;
        position: relative !important;
    }

    .store-locator-results {
        height: auto !important;
        border: none;
        background: transparent;
    }

    .store-list {
        height: auto !important;
        overflow: visible;
        padding: 0.25rem;
    }

    .results-title {
        height: auto;
        padding: 0.75rem;
    }

    .store-item {
        margin-bottom: 0.75rem;
        background: transparent;
    }

    .store-item:last-child {
        margin-bottom: 0;
    }

    .store-card {
        box-shadow: var(--sl-shadow-sm);
        background: white;
    }

    .store-list::-webkit-scrollbar {
        display: none;
    }

    .store-list {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .store-card {
        border-radius: 0.5rem;
        margin: 0.75rem;
    }

    .store-card-header {
        padding: 0.875rem;
    }

    .store-header-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .store-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .store-distance {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    .store-metadata {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .store-metadata-group {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0;
    }

    .store-metadata-label {
        font-size: 0.6875rem;
        min-width: 60px;
    }

    .store-category,
    .store-secondary-category {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    .store-card-content {
        padding: 0.875rem;
    }

    .store-info-group {
        gap: 0.5rem;
    }

    .store-info-item {
        gap: 0.75rem;
    }

    .store-info-text {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    .store-icon {
        width: 16px;
        height: 16px;
    }

    .store-card-actions {
        padding: 0.875rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .store-action-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.875rem;
        justify-content: center;
        min-height: 44px;
    }

    .primary-search {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.875rem;
    }

    .search-input-wrapper {
        grid-column: 1;
        grid-row: 1;
    }

    .radius-selector {
        grid-column: 1;
        grid-row: 2;
    }

    button.store-locator-submit,
    input[type="submit"].store-locator-submit {
        grid-row: 3;
    }

    .store-search-input,
    .radius-selector select,
    button.store-locator-submit,
    input[type="submit"].store-locator-submit {
        height: 44px;
        font-size: 1rem;
    }

    .store-locator-loading,
    .store-locator-error,
    .store-locator-no-results {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .store-locator-found-count {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Sticky Map on Scroll (Desktop) */
@media (min-width: 1025px) {
    .store-locator-map {
        position: sticky;
        top: 20px;
    }
}

/* User location marker */
.user-location-marker {
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, 0 0 0 5px #4285F4, 0 0 8px rgba(0, 0, 0, 0.3);
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .store-card {
        border: 2px solid ButtonText;
    }

    .store-item.active .store-card {
        border: 2px solid Highlight;
    }

    .store-action-btn {
        border: 1px solid ButtonText;
    }
}

/* Store Count */
.store-locator-found-count {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: var(--sl-gray-600);
    background: var(--sl-gray-50);
    border-bottom: 1px solid var(--sl-gray-200);
}

/* Primary buttons and elements */
button.store-locator-submit,
input[type="submit"].store-locator-submit {
    background-color: #F68A33 !important;
    color: #ffffff !important;
    border: none !important;
}

button.store-locator-submit:hover,
input[type="submit"].store-locator-submit:hover {
    background-color: #e07a2d !important;
}

.store-item .store-distance {
    background-color: #01295A !important;
    color: #ffffff !important;
}

.store-item .store-distance .store-icon {
    color: #ffffff !important;
}

.store-card .store-action-primary,
button.store-action-primary {
    background-color: #F68A33 !important;
    color: #ffffff !important;
    border: none !important;
}

.store-card .store-action-primary:hover,
button.store-action-primary:hover {
    background-color: #e07a2d !important;
}

.store-card .store-action-primary .store-icon {
    color: #ffffff !important;
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .store-locator-results-container {
        grid-template-columns: 1fr;
    }

    .store-locator-map {
        height: 400px;
    }

    .store-list {
        max-height: 600px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .store-action-btn {
        -webkit-tap-highlight-color: transparent;
    }

    .store-action-btn:active {
        transform: scale(0.98);
    }
}

/* Store Locator Autocomplete Styles */
.store-locator-autocomplete-container {
    width: 100%;
    position: relative;
}

.store-locator-autocomplete-container .store-search-input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 1rem !important;
    border: 1px solid var(--sl-gray-200) !important;
    border-radius: var(--sl-radius) !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
    background: white !important;
    margin: 0 !important;
}

.store-locator-autocomplete-container .store-search-input:hover {
    border-color: var(--sl-gray-300) !important;
}

.store-locator-autocomplete-container .store-search-input:focus {
    border-color: var(--sl-primary) !important;
    box-shadow: 0 0 0 3px rgba(246, 138, 51, 0.1) !important;
    outline: none !important;
}

/* Google Places Autocomplete dropdown styles */
.store-locator-autocomplete-container .pac-container {
    margin-top: 4px;
    padding: 8px 0;
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-gray-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: white;
    font-family: inherit;
    z-index: 1000;
}

.store-locator-autocomplete-container .pac-item {
    padding: 8px 16px;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.store-locator-autocomplete-container .pac-item:hover {
    background-color: var(--sl-gray-50);
}

.store-locator-autocomplete-container .pac-item-selected {
    background-color: var(--sl-gray-100);
}

/* Hide the Google Places logo since we're using the new element */
.store-locator-autocomplete-container .pac-logo::after {
    display: none !important;
}

/* Map Info Window Styles */
.store-info-window,
.gm-info-window {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 320px;
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.store-header,
.gm-info-header {
    padding: 16px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #eee;
}

.store-title,
.gm-info-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #01295A;
    line-height: 1.3;
    flex: 1;
}

.store-distance,
.gm-distance {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #01295A;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.store-content,
.gm-info-content {
    padding: 16px;
}

.store-info-group,
.gm-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #4a4a4a;
}

.store-info-group:last-child,
.gm-info-row:last-child {
    margin-bottom: 0;
}

.store-info-group i,
.gm-info-row i {
    color: #F68A33;
    font-size: 15px;
    width: 16px;
    margin-top: 3px;
    text-align: center;
}

.store-info-text a,
.gm-info-row a {
    color: #F68A33;
    text-decoration: none;
    transition: color 0.2s ease;
}

.store-info-text a:hover,
.gm-info-row a:hover {
    color: #e07a2d;
    text-decoration: underline;
}

.store-hours,
.gm-hours {
    font-size: 13px;
    white-space: pre-line;
}

.store-actions,
.gm-info-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
    padding: 16px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.store-action-btn,
.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 36px;
    border: none;
    cursor: pointer;
}

.store-action-primary,
.gm-btn-primary {
    background: #F68A33;
    color: white;
}

.store-action-primary:hover,
.gm-btn-primary:hover {
    background: #e07a2d;
    color: white;
}

.store-action-secondary,
.gm-btn-outline {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.store-action-secondary:hover,
.gm-btn-outline:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

/* Google Maps InfoWindow Overrides */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    max-width: 320px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw {
    max-width: 320px !important;
    width: 100% !important;
}

.gm-style .gm-style-iw > button {
    top: 0 !important;
    right: 0 !important;
    width: 26px !important;
    height: 26px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
    margin: 8px !important;
    padding: 2px !important;
    opacity: 1 !important;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .store-info-window,
    .gm-info-window {
        max-width: calc(100vw - 32px) !important;
        min-width: 260px;
        width: calc(100vw - 32px) !important;
    }

    .gm-style .gm-style-iw-c {
        max-width: calc(100vw - 32px) !important;
        width: calc(100vw - 32px) !important;
    }

    .gm-style .gm-style-iw {
        max-width: calc(100vw - 32px) !important;
        width: calc(100vw - 32px) !important;
    }

    .store-header,
    .gm-info-header {
        padding: 12px;
    }

    .store-title,
    .gm-info-header h4 {
        font-size: 15px;
        line-height: 1.3;
    }

    .store-distance,
    .gm-distance {
        font-size: 11px;
        padding: 3px 6px;
    }

    .store-content,
    .gm-info-content {
        padding: 12px;
    }

    .store-info-group,
    .gm-info-row {
        font-size: 13px;
        margin-bottom: 10px;
        gap: 8px;
    }

    .store-info-text,
    .gm-info-content {
        word-break: break-word;
    }

    .store-hours,
    .gm-hours {
        font-size: 12px;
    }

    .store-actions,
    .gm-info-actions {
        margin-top: 12px;
        padding: 12px;
        gap: 8px;
        flex-direction: column;
    }

    .store-action-btn,
    .gm-btn {
        width: 100%;
        font-size: 13px;
        padding: 8px 12px;
        min-height: 36px;
        justify-content: center;
    }

    .primary-search {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.875rem;
    }

    .search-input-wrapper {
        grid-column: 1;
        grid-row: 1;
    }

    .radius-selector {
        grid-column: 1;
        grid-row: 2;
    }

    button.store-locator-submit,
    input[type="submit"].store-locator-submit {
        grid-row: 3;
    }

    .store-search-input,
    .radius-selector select,
    button.store-locator-submit,
    input[type="submit"].store-locator-submit {
        height: 44px;
        font-size: 1rem;
    }

    .store-locator-loading,
    .store-locator-error,
    .store-locator-no-results {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .store-locator-found-count {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Ensure info window is properly positioned on mobile */
@media (max-width: 480px) {
    .gm-style .gm-style-iw-tc {
        display: none !important;
    }

    .gm-style .gm-style-iw-c {
        transform: translate(-50%, -100%) !important;
        left: 50% !important;
    }
}

/* Prevent text overflow */
.store-info-window,
.gm-info-window {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.store-info-text,
.gm-info-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Store Info Window Styles */
.store-info-window {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 360px;
    min-width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.store-info-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.store-info-header .store-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.store-info-header .store-distance {
    display: inline-block;
    padding: 4px 8px;
    background: #01295A;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
}

.store-info-content {
    padding: 16px;
}

.store-image {
    margin: -16px -16px 16px -16px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.store-image img {
    width: 100%;
    height: auto;
    display: block;
}

.store-details {
    font-size: 14px;
    color: #666;
    padding: 0 16px;
}

.store-details > div {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.store-details > div:last-child {
    margin-bottom: 0;
}

.store-details i {
    color: #F68A33;
    font-size: 16px;
    width: 16px;
    text-align: center;
    margin-top: 3px;
}

.store-details a {
    color: #F68A33;
    text-decoration: none;
}

.store-details a:hover {
    text-decoration: underline;
}

.store-actions {
    padding: 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.store-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.store-actions .btn i {
    margin-right: 8px;
}

.store-actions .btn-view-details {
    background: #F68A33;
    color: #fff;
}

.store-actions .btn-view-details:hover {
    background: #e07a2d;
}

.store-actions .btn-directions {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.store-actions .btn-directions:hover {
    background: #e9ecef;
}

/* Responsive Styles */
@media screen and (max-width: 480px) {
    .store-info-window {
        max-width: 300px;
        min-width: 250px;
    }

    .store-info-header {
        padding: 12px;
    }

    .store-info-header .store-name {
        font-size: 16px;
    }

    .store-info-content {
        padding: 12px;
    }

    .store-details {
        padding: 0 12px;
    }

    .store-actions {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .store-actions .btn {
        width: 100%;
        padding: 8px 12px;
    }
}

/* Info Window Styles - Improved for better visibility and scrolling */
/* Only apply to Google Maps info windows and modals, not to store listing */
.gm-style .store-info-window,
.gm-style .store-info-window *,
.store-info-window.popup-modal,
.store-info-window.popup-modal * {
    box-sizing: border-box !important;
}

.gm-style .store-info-window,
.store-info-window.popup-modal {
    max-width: 320px;
    max-height: 400px;
    min-width: 280px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gm-style .store-info-window .store-header,
.gm-style .store-info-window .store-header *,
.store-info-window.popup-modal .store-header,
.store-info-window.popup-modal .store-header * {
    margin: 0 !important;
    padding: 0 !important;
}

.gm-style .store-info-window .store-header,
.store-info-window.popup-modal .store-header {
    padding: 16px 16px 12px 16px !important;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.gm-style .store-info-window .store-title,
.gm-style .store-info-window .store-title *,
.store-info-window.popup-modal .store-title,
.store-info-window.popup-modal .store-title * {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #212529 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    display: block !important;
}

.gm-style .store-info-window .store-distance,
.gm-style .store-info-window .store-distance *,
.store-info-window.popup-modal .store-distance,
.store-info-window.popup-modal .store-distance * {
    font-size: 13px !important;
    color: #6c757d !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.gm-style .store-info-window .store-content,
.gm-style .store-info-window .store-content *,
.store-info-window.popup-modal .store-content,
.store-info-window.popup-modal .store-content * {
    margin: 0 !important;
    padding: 0 !important;
}

.gm-style .store-info-window .store-content,
.store-info-window.popup-modal .store-content {
    padding: 16px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #ccc #f8f9fa !important;
}

/* Custom scrollbar for WebKit browsers - only for modals */
.gm-style .store-info-window .store-content::-webkit-scrollbar,
.store-info-window.popup-modal .store-content::-webkit-scrollbar {
    width: 6px !important;
}

.gm-style .store-info-window .store-content::-webkit-scrollbar-track,
.store-info-window.popup-modal .store-content::-webkit-scrollbar-track {
    background: #f8f9fa !important;
    border-radius: 3px !important;
}

.gm-style .store-info-window .store-content::-webkit-scrollbar-thumb,
.store-info-window.popup-modal .store-content::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 3px !important;
}

.gm-style .store-info-window .store-content::-webkit-scrollbar-thumb:hover,
.store-info-window.popup-modal .store-content::-webkit-scrollbar-thumb:hover {
    background: #999 !important;
}

.gm-style .store-info-window .store-info-group,
.gm-style .store-info-window .store-info-group *,
.store-info-window.popup-modal .store-info-group,
.store-info-window.popup-modal .store-info-group * {
    margin: 0 !important;
    padding: 0 !important;
}

.gm-style .store-info-window .store-info-group,
.store-info-window.popup-modal .store-info-group {
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    min-height: 20px !important;
}

.gm-style .store-info-window .store-info-group:last-child,
.store-info-window.popup-modal .store-info-group:last-child {
    margin-bottom: 0 !important;
}

.gm-style .store-info-window .store-info-group i,
.gm-style .store-info-window .store-info-group svg,
.store-info-window.popup-modal .store-info-group i,
.store-info-window.popup-modal .store-info-group svg {
    color: #6c757d !important;
    font-size: 14px !important;
    min-width: 14px !important;
    width: 14px !important;
    height: 14px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.gm-style .store-info-window .store-info-text,
.gm-style .store-info-window .store-info-text *,
.store-info-window.popup-modal .store-info-text,
.store-info-window.popup-modal .store-info-text * {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #495057 !important;
    margin: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    flex: 1 !important;
}

.gm-style .store-info-window .store-info-text a,
.gm-style .store-info-window .store-info-text a *,
.store-info-window.popup-modal .store-info-text a,
.store-info-window.popup-modal .store-info-text a * {
    color: #007bff !important;
    text-decoration: none !important;
    word-break: break-all !important;
}

.gm-style .store-info-window .store-info-text a:hover,
.gm-style .store-info-window .store-info-text a:hover *,
.store-info-window.popup-modal .store-info-text a:hover,
.store-info-window.popup-modal .store-info-text a:hover * {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

.gm-style .store-info-window .store-hours,
.gm-style .store-info-window .store-hours *,
.store-info-window.popup-modal .store-hours,
.store-info-window.popup-modal .store-hours * {
    white-space: pre-line !important;
    word-wrap: break-word !important;
}

.gm-style .store-info-window .store-actions,
.gm-style .store-info-window .store-actions *,
.store-info-window.popup-modal .store-actions,
.store-info-window.popup-modal .store-actions * {
    margin: 0 !important;
    padding: 0 !important;
}

.gm-style .store-info-window .store-actions,
.store-info-window.popup-modal .store-actions {
    padding: 12px 16px 16px 16px !important;
    border-top: 1px solid #e9ecef !important;
    background: #f8f9fa !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.gm-style .store-info-window .store-action-btn,
.gm-style .store-info-window .store-action-btn *,
.store-info-window.popup-modal .store-action-btn,
.store-info-window.popup-modal .store-action-btn * {
    font-size: 13px !important;
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    justify-content: center !important;
    min-width: 100px !important;
    flex: 1 !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
}

.gm-style .store-info-window .store-action-primary,
.gm-style .store-info-window .store-action-primary *,
.store-info-window.popup-modal .store-action-primary,
.store-info-window.popup-modal .store-action-primary * {
    background-color: #007bff !important;
    color: white !important;
}

.gm-style .store-info-window .store-action-primary:hover,
.gm-style .store-info-window .store-action-primary:hover *,
.store-info-window.popup-modal .store-action-primary:hover,
.store-info-window.popup-modal .store-action-primary:hover * {
    background-color: #0056b3 !important;
    color: white !important;
}

.gm-style .store-info-window .store-action-secondary,
.gm-style .store-info-window .store-action-secondary *,
.store-info-window.popup-modal .store-action-secondary,
.store-info-window.popup-modal .store-action-secondary * {
    background-color: #6c757d !important;
    color: white !important;
}

.gm-style .store-info-window .store-action-secondary:hover,
.gm-style .store-info-window .store-action-secondary:hover *,
.store-info-window.popup-modal .store-action-secondary:hover,
.store-info-window.popup-modal .store-action-secondary:hover * {
    background-color: #545b62 !important;
    color: white !important;
}

/* Google Maps specific styling improvements */
.gm-style .gm-style-iw-c {
    max-width: 320px !important;
    max-height: 400px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: 400px !important;
}

.gm-style .gm-style-iw {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Close button styling */
.gm-style .gm-style-iw > button {
    background: rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10 !important;
}

/* Mobile improvements for modal - only for popups */
@media (max-width: 480px) {
    .gm-style .store-info-window,
    .gm-style .store-info-window *,
    .store-info-window.popup-modal,
    .store-info-window.popup-modal * {
        max-width: 90vw !important;
        max-height: 70vh !important;
        min-width: 280px !important;
    }

    .gm-style .gm-style-iw-c {
        max-width: 90vw !important;
        max-height: 70vh !important;
    }

    .gm-style .gm-style-iw {
        max-width: 90vw !important;
        max-height: 70vh !important;
    }

    .gm-style .store-info-window .store-header,
    .gm-style .store-info-window .store-header *,
    .store-info-window.popup-modal .store-header,
    .store-info-window.popup-modal .store-header * {
        padding: 12px 12px 8px 12px !important;
    }

    .gm-style .store-info-window .store-title,
    .gm-style .store-info-window .store-title *,
    .store-info-window.popup-modal .store-title,
    .store-info-window.popup-modal .store-title * {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    .gm-style .store-info-window .store-distance,
    .gm-style .store-info-window .store-distance *,
    .store-info-window.popup-modal .store-distance,
    .store-info-window.popup-modal .store-distance * {
        font-size: 12px !important;
    }

    .gm-style .store-info-window .store-content,
    .gm-style .store-info-window .store-content *,
    .store-info-window.popup-modal .store-content,
    .store-info-window.popup-modal .store-content * {
        padding: 12px !important;
        max-height: calc(70vh - 120px) !important;
    }

    .gm-style .store-info-window .store-info-group,
    .gm-style .store-info-window .store-info-group *,
    .store-info-window.popup-modal .store-info-group,
    .store-info-window.popup-modal .store-info-group * {
        margin-bottom: 10px !important;
    }

    .gm-style .store-info-window .store-info-text,
    .gm-style .store-info-window .store-info-text *,
    .store-info-window.popup-modal .store-info-text,
    .store-info-window.popup-modal .store-info-text * {
        font-size: 13px !important;
    }

    .gm-style .store-info-window .store-actions,
    .gm-style .store-info-window .store-actions *,
    .store-info-window.popup-modal .store-actions,
    .store-info-window.popup-modal .store-actions * {
        padding: 8px 12px 12px 12px !important;
        gap: 6px !important;
    }

    .gm-style .store-info-window .store-action-btn,
    .gm-style .store-info-window .store-action-btn *,
    .store-info-window.popup-modal .store-action-btn,
    .store-info-window.popup-modal .store-action-btn * {
        font-size: 12px !important;
        padding: 6px 8px !important;
        min-width: 80px !important;
    }
}

/* Extra small screens - only for popups */
@media (max-width: 380px) {
    .gm-style .store-info-window,
    .gm-style .store-info-window *,
    .store-info-window.popup-modal,
    .store-info-window.popup-modal * {
        max-width: 95vw !important;
        min-width: 260px !important;
    }

    .gm-style .gm-style-iw-c {
        max-width: 95vw !important;
    }

    .gm-style .gm-style-iw {
        max-width: 95vw !important;
    }

    .gm-style .store-info-window .store-actions,
    .gm-style .store-info-window .store-actions *,
    .store-info-window.popup-modal .store-actions,
    .store-info-window.popup-modal .store-actions * {
        flex-direction: column !important;
    }

    .gm-style .store-info-window .store-action-btn,
    .gm-style .store-info-window .store-action-btn *,
    .store-info-window.popup-modal .store-action-btn,
    .store-info-window.popup-modal .store-action-btn * {
        width: 100% !important;
        flex: none !important;
    }
}

/* Ensure text doesn't break the layout - only for popups */
.gm-style .store-info-window,
.gm-style .store-info-window *,
.store-info-window.popup-modal,
.store-info-window.popup-modal * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

/* Force content to be visible and scrollable - only for popups */
.gm-style .store-info-window .store-content,
.store-info-window.popup-modal .store-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
} 