/* OV Store Locator - Frontend Styles v2.0.2 */

:root {
    --ovsl-primary-color: #4285f4;
    --ovsl-secondary-color: #ff6b6b;
    --ovsl-accent-color: #51cf66;
    --ovsl-border-radius: 12px;
    --ovsl-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --ovsl-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --ovsl-shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --ovsl-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ovsl-search-module,
.ovsl-map-module,
.ovsl-stores-list-module {
    font-family: inherit;
    line-height: 1.6;
    color: inherit;
}

.ovsl-search-module *,
.ovsl-map-module *,
.ovsl-stores-list-module * {
    box-sizing: border-box;
}

.ovsl-search-module {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--ovsl-border-radius);
    box-shadow: var(--ovsl-shadow-md);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ovsl-search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.ovsl-search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

body .ovsl-search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: calc(var(--ovsl-border-radius) * 0.75);
    font-size: 1rem;
    transition: var(--ovsl-transition);
    background: #ffffff;
    color: inherit;
}

body .ovsl-search-input:focus {
    outline: none;
    border-color: var(--ovsl-primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
    transform: translateY(-1px);
}

body .ovsl-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ovsl-primary-color);
    color: white;
    border: none;
    padding: 0.725rem 0.875rem;
    border-radius: calc(var(--ovsl-border-radius) * 0.5);
    cursor: pointer;
    transition: var(--ovsl-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ovsl-search-btn:hover {
    background: color-mix(in srgb, var(--ovsl-primary-color) 85%, black);
    transform: translateY(-50%) scale(1.05);
}

.ovsl-location-btn {
    background: var(--ovsl-secondary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: calc(var(--ovsl-border-radius) * 0.75);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--ovsl-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: var(--ovsl-shadow-sm);
}

.ovsl-location-btn:hover {
    background: color-mix(in srgb, var(--ovsl-secondary-color) 85%, black);
    transform: translateY(-2px);
    box-shadow: var(--ovsl-shadow-md);
}

.ovsl-location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ovsl-filter-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ovsl-category-filter {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 2rem;
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ovsl-transition);
    color: #64748b;
    position: relative;
    overflow: hidden;
}

.ovsl-category-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.ovsl-category-filter:hover::before {
    left: 100%;
}

.ovsl-category-filter:hover {
    border-color: var(--ovsl-primary-color);
    transform: translateY(-2px);
    box-shadow: var(--ovsl-shadow-sm);
}

.ovsl-category-filter.ovsl-active {
    background: var(--ovsl-primary-color);
    color: white;
    border-color: var(--ovsl-primary-color);
    transform: translateY(-1px);
    box-shadow: var(--ovsl-shadow-md);
}

.ovsl-category-filter i {
    margin-right: 6px;
    font-size: 0.9em;
}

.ovsl-category-filter:not(:has(i)) {
    padding-left: 1rem;
    padding-right: 1rem;
}

.ovsl-category-badge i,
.ovsl-popup-category i {
    margin-right: 4px;
    font-size: 0.85em;
}

.ovsl-category-filter:hover i {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.ovsl-category-filter.ovsl-active i {
    animation: ovsl-icon-pulse 0.5s ease-in-out;
}

@keyframes ovsl-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.ovsl-map-module {
    border-radius: var(--ovsl-border-radius);
    overflow: hidden;
    box-shadow: var(--ovsl-shadow-lg);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ovsl-map {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.ovsl-stores-list-module {
    background: #ffffff;
    border-radius: var(--ovsl-border-radius);
    box-shadow: var(--ovsl-shadow-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ovsl-stores-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.ovsl-stores-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ovsl-stores-header i {
    color: var(--ovsl-primary-color);
}

.ovsl-stores-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
}

.ovsl-stores-container::-webkit-scrollbar {
    width: 6px;
}

.ovsl-stores-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.ovsl-stores-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.ovsl-stores-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ovsl-layout-modern .ovsl-store-card {
    background: #ffffff;
    border-radius: calc(var(--ovsl-border-radius) * 0.75);
    margin-bottom: 1.25rem;
    cursor: pointer;
    transition: var(--ovsl-transition);
    border: 2px solid transparent;
    box-shadow: var(--ovsl-shadow-sm);
    position: relative;
    overflow: hidden;
}

.ovsl-layout-modern .ovsl-store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: var(--ovsl-transition);
    z-index: 2;
}

.ovsl-layout-modern .ovsl-store-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ovsl-shadow-lg);
    border-color: rgba(66, 133, 244, 0.2);
}

.ovsl-layout-modern .ovsl-store-card:hover::before {
    background: var(--ovsl-primary-color);
}

.ovsl-layout-modern .ovsl-store-card.ovsl-active {
    border-color: var(--ovsl-primary-color);
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    transform: translateY(-2px);
    box-shadow: var(--ovsl-shadow-md);
}

.ovsl-layout-modern .ovsl-store-card.ovsl-active::before {
    background: var(--ovsl-primary-color);
}

.ovsl-store-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ovsl-store-content {
    padding: 1.25rem;
}

.ovsl-store-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ovsl-store-logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid #e2e8f0;
    background: #ffffff;
    padding: 8px;
    box-shadow: var(--ovsl-shadow-sm);
}

.ovsl-store-header-text {
    flex: 1;
}

.ovsl-store-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.ovsl-store-info {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.ovsl-store-info i {
    width: 16px;
    color: var(--ovsl-primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.ovsl-store-info a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: var(--ovsl-transition);
}

.ovsl-store-info a:hover {
    text-decoration: underline;
    color: color-mix(in srgb, var(--ovsl-primary-color) 80%, black);
}

.ovsl-store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

.ovsl-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: calc(var(--ovsl-border-radius) * 0.5);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--ovsl-transition);
    border: 2px solid;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ovsl-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ovsl-btn-google-maps {
    background: var(--ovsl-primary-color);
    color: white;
    border-color: var(--ovsl-primary-color);
}

.ovsl-btn-google-maps:hover {
    background: color-mix(in srgb, var(--ovsl-primary-color) 85%, black);
    border-color: color-mix(in srgb, var(--ovsl-primary-color) 85%, black);
}

.ovsl-btn-whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.ovsl-btn-whatsapp:hover {
    background: #20BA5A;
    border-color: #20BA5A;
}

.ovsl-btn-custom {
    background: var(--ovsl-accent-color);
    color: white;
    border-color: var(--ovsl-accent-color);
}

.ovsl-btn-custom:hover {
    background: color-mix(in srgb, var(--ovsl-accent-color) 85%, black);
    border-color: color-mix(in srgb, var(--ovsl-accent-color) 85%, black);
}

.ovsl-category-badge {
    background: color-mix(in srgb, var(--ovsl-primary-color) 10%, transparent) !important;
    color: var(--ovsl-primary-color);
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid color-mix(in srgb, var(--ovsl-primary-color) 20%, transparent);
}

.ovsl-distance-info {
    font-size: 0.75rem;
    color: var(--ovsl-accent-color);
    font-weight: 600;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(81, 207, 102, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
}

.ovsl-layout-compact .ovsl-store-card {
    background: #ffffff;
    border-radius: calc(var(--ovsl-border-radius) * 0.75);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--ovsl-transition);
    border: 2px solid #e2e8f0;
    box-shadow: var(--ovsl-shadow-sm);
    overflow: hidden;
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
}

.ovsl-layout-compact .ovsl-store-card:hover {
    border-color: var(--ovsl-primary-color);
    transform: translateY(-3px);
    box-shadow: var(--ovsl-shadow-md);
}

.ovsl-layout-compact .ovsl-store-card.ovsl-active {
    border-color: var(--ovsl-primary-color);
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: var(--ovsl-shadow-md);
}

.ovsl-layout-compact .ovsl-store-card.ovsl-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ovsl-primary-color);
    z-index: 2;
}

.ovsl-layout-compact .ovsl-store-cover {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.ovsl-layout-compact .ovsl-store-content {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ovsl-layout-compact .ovsl-store-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0;
}

.ovsl-layout-compact .ovsl-store-logo {
    width: 45px;
    height: 45px;
    min-width: 45px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    padding: 4px;
}

.ovsl-layout-compact .ovsl-store-header-text {
    flex: 1;
    min-width: 0;
}

.ovsl-layout-compact .ovsl-store-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9375rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ovsl-layout-compact .ovsl-store-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.ovsl-layout-compact .ovsl-category-badge {
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
    margin-top: 0;
}

.ovsl-layout-compact .ovsl-distance-info {
    font-size: 0.6875rem;
    margin-top: 0;
    padding: 0.2rem 0.5rem;
}

.ovsl-layout-compact .ovsl-store-info {
    display: none;
}

.ovsl-layout-compact .ovsl-store-actions {
    display: none;
}

.ovsl-layout-compact .ovsl-store-card::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--ovsl-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ovsl-transition);
    pointer-events: none;
}

.ovsl-layout-compact .ovsl-store-card:hover::after {
    opacity: 0.8;
    content: '\f061'; /* fa-arrow-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ovsl-layout-modern .ovsl-store-info:not(:nth-child(-n+2)) {
    display: none;
}

.ovsl-layout-modern .ovsl-store-actions .ovsl-action-btn:nth-child(n+3) {
    display: none;
}

.ovsl-layout-detailed .ovsl-store-card {
    background: #ffffff;
    border-radius: var(--ovsl-border-radius);
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: var(--ovsl-transition);
    border: 1px solid #e2e8f0;
    box-shadow: var(--ovsl-shadow-sm);
    position: relative;
    overflow: hidden;
}

.ovsl-layout-detailed .ovsl-store-card:hover {
    border-color: var(--ovsl-primary-color);
    transform: scale(1.02);
    box-shadow: var(--ovsl-shadow-lg);
}

.ovsl-layout-detailed .ovsl-store-card.ovsl-active {
    border-color: var(--ovsl-primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: var(--ovsl-shadow-md);
}

.ovsl-layout-detailed .ovsl-store-cover {
    height: 220px;
}

.ovsl-layout-detailed .ovsl-store-content {
    padding: 1.5rem;
}

.ovsl-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.ovsl-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--ovsl-primary-color);
}

.ovsl-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    padding: 1rem;
    border-radius: calc(var(--ovsl-border-radius) * 0.75);
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ovsl-no-results {
    text-align: center;
    color: #64748b;
    padding: 2rem 1rem;
    font-style: italic;
}

.mapboxgl-popup-content {
    padding: 0 !important;
    border-radius: var(--ovsl-border-radius) !important;
    box-shadow: var(--ovsl-shadow-lg) !important;
    border: none !important;
    max-width: 380px !important;
    overflow: hidden !important;
}

.ovsl-popup-content {
    overflow: hidden;
}

.ovsl-popup-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: var(--ovsl-border-radius) var(--ovsl-border-radius) 0 0;
}

.ovsl-popup-body {
    padding: 1.25rem;
}

.ovsl-popup-header-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ovsl-popup-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    padding: 6px;
}

.ovsl-popup-header {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    line-height: 1.4;
    flex: 1;
}

.ovsl-popup-info {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.ovsl-popup-info i {
    color: var(--ovsl-primary-color);
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ovsl-popup-info a {
    color: #64748b;
    text-decoration: none;
}

.ovsl-popup-info a:hover {
    color: color-mix(in srgb, var(--ovsl-primary-color) 80%, black);
    text-decoration: underline;
}

.ovsl-popup-category {
    background: color-mix(in srgb, var(--ovsl-primary-color) 8%, transparent);
    color: var(--ovsl-primary-color);
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid color-mix(in srgb, var(--ovsl-primary-color) 15%, transparent);
}

.ovsl-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

.ovsl-popup-actions .ovsl-action-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

#ovslErrorContainer {
    margin-top: 1rem;
}

.ovsl-mapbox-popup {
    z-index: 9999;
}

.mapboxgl-popup {
    z-index: 9999 !important;
}

.mapboxgl-popup-content * {
    pointer-events: auto;
}

.mapboxgl-popup-close-button {
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    right: 8px !important;
    top: 8px !important;
    transition: all 0.2s !important;
    border: none !important;
    outline: none !important;
}

.mapboxgl-popup-close-button i {
    font-size: 14px;
    color: #64748b;
}

.mapboxgl-popup-close-button:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
}

.mapboxgl-popup-close-button:hover i {
    color: #dc2626;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: white !important;
}

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    border-bottom-color: white !important;
}

.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: white !important;
}

.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: white !important;
}

@media (max-width: 768px) {
    .ovsl-search-module {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .ovsl-search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .ovsl-search-box {
        min-width: auto;
    }

    body .ovsl-search-input {
        font-size: 0.85rem;
    }

    .ovsl-filter-container {
        gap: 0.5rem;
    }

    .ovsl-category-filter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .ovsl-stores-header {
        padding: 1rem;
    }

    .ovsl-stores-container {
        padding: 0.75rem;
        max-height: 400px;
    }

    .ovsl-stores-header h3 {
        font-size: 1.1rem;
    }

    .ovsl-store-card {
        margin-bottom: 1rem !important;
    }

    .ovsl-store-cover {
        height: 140px !important;
    }

    .ovsl-store-logo {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
    }

    .ovsl-store-name {
        font-size: 1.0rem !important;
    }

    .ovsl-store-actions {
        flex-direction: column;
    }

    .ovsl-action-btn {
        width: 100%;
        justify-content: center;
    }

    .ovsl-popup-content {
        max-width: 320px !important;
    }

    .ovsl-popup-cover {
        height: 120px !important;
        border-radius: calc(var(--ovsl-border-radius) * 0.75) calc(var(--ovsl-border-radius) * 0.75) 0 0;
    }

    .ovsl-popup-logo {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
    }

    .ovsl-category-badge,
    .ovsl-popup-category {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }

    .ovsl-layout-compact .ovsl-store-card {
        height: 270px;
    }
    
    .ovsl-layout-compact .ovsl-store-cover {
        height: 75px;
    }
    
    .ovsl-layout-compact .ovsl-store-logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .ovsl-layout-compact .ovsl-store-name {
        font-size: 0.875rem;
    }
    
    .ovsl-layout-compact .ovsl-store-content {
        padding: 0.625rem;
    }
}

@media (max-width: 480px) {
    .ovsl-search-input {
        font-size: 16px;
    }

    .ovsl-stores-container {
        max-height: 300px;
    }

    .ovsl-store-content {
        padding: 1rem !important;
    }
    
    .ovsl-layout-compact .ovsl-store-cover {
        height: 70px;
    }

    .ovsl-popup-content {
        max-width: 280px !important;
    }
    .ovsl-category-badge, .ovsl-popup-category {
        font-size: 0.6rem;
    }
    .ovsl-popup-info {
        font-size: 0.85rem;
    }
    .ovsl-popup-info i {
        margin-top: 5px;
    }
}

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

.ovsl-store-card {
    animation: ovsl-fadeIn 0.3s ease-out;
}

.ovsl-search-btn:focus,
.ovsl-location-btn:focus,
.ovsl-category-filter:focus,
.ovsl-action-btn:focus {
    outline: 2px solid var(--ovsl-primary-color);
    outline-offset: 2px;
}

@media print {
    .ovsl-search-module,
    .ovsl-map-module {
        display: none;
    }

    .ovsl-stores-container {
        max-height: none;
        overflow: visible;
    }

    .ovsl-store-card {
        page-break-inside: avoid;
    }

    .ovsl-store-actions {
        display: none;
    }
}
/* =========================================================
   PRODUCTOS Y TIENDAS ONLINE - v2.4.0
========================================================= */
.ovsl-product-filter-module {
    width: 100%;
    margin: 0 0 28px;
}

.ovsl-product-filter-title {
    margin: 0 0 22px;
    color: #292929;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.ovsl-product-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.ovsl-product-filter-button {
    appearance: none;
    border: 2px solid transparent;
    background: #fff;
    color: #2c2c2c;
    cursor: pointer;
    font: inherit;
}

.ovsl-product-filter-grid .ovsl-product-filter-button {
    min-width: 0;
    padding: 11px 10px 12px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ovsl-product-filter-grid .ovsl-product-filter-button:hover,
.ovsl-product-filter-grid .ovsl-product-filter-button.is-active {
    transform: translateY(-4px);
    border-color: var(--ovsl-primary-color, #9d2d91);
    box-shadow: 0 13px 28px rgba(0, 0, 0, .14);
}

.ovsl-product-filter-image {
    display: flex;
    width: 100%;
    aspect-ratio: .74 / 1;
    align-items: center;
    justify-content: center;
}

.ovsl-product-filter-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ovsl-product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #999;
    font-size: 42px;
    background: #f3f3f3;
}

.ovsl-product-filter-name {
    display: block;
    margin-top: 10px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
}

.ovsl-product-filter-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ovsl-product-filter-all,
.ovsl-active-product-status button {
    padding: 9px 15px;
    border-radius: 5px;
    background: #242424;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.ovsl-product-filter-all.is-active {
    background: var(--ovsl-primary-color, #9d2d91);
}

.ovsl-active-product-status {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #333;
    font-size: 13px;
}

.ovsl-active-product-status.is-visible {
    display: flex;
}

.ovsl-active-product-status strong {
    padding: 7px 10px;
    border-radius: 4px;
    background: var(--ovsl-primary-color, #9d2d91);
    color: #fff;
}

.ovsl-active-product-status button {
    padding: 7px 11px;
    border: 0;
    cursor: pointer;
}

.ovsl-layout-online .ovsl-stores-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-height: none;
    overflow: visible;
}

.ovsl-online-store-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ovsl-online-store-card:hover,
.ovsl-online-store-card.ovsl-active {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .11);
}

.ovsl-online-store-main {
    min-height: 110px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ovsl-online-store-logo {
    width: 58px;
    height: 48px;
    flex: 0 0 58px;
    object-fit: contain;
}

.ovsl-online-store-main h3 {
    margin: 0;
    color: #242424;
    font-size: 16px;
    line-height: 1.25;
}

.ovsl-online-store-address {
    min-height: 48px;
    padding: 0 18px 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #5d6675;
    font-size: 12px;
    line-height: 1.35;
}

.ovsl-online-store-address i {
    margin-top: 2px;
    color: var(--ovsl-primary-color, #9d2d91);
}

.ovsl-locator-instance {
    width: 100%;
}

.ovsl-locator-instance > * + * {
    margin-top: 24px;
}

.ovsl-online-store-link {
    display: flex;
    min-height: 46px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ovsl-primary-color, #9d2d91);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
}

@media (max-width: 1024px) {
    .ovsl-product-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ovsl-layout-online .ovsl-stores-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ovsl-product-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ovsl-product-filter-grid .ovsl-product-filter-button {
        padding: 8px 7px 10px;
    }

    .ovsl-product-filter-name {
        font-size: 12px;
    }

    .ovsl-layout-online .ovsl-stores-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ovsl-online-store-main {
        min-height: 100px;
        padding: 14px 10px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .ovsl-online-store-logo {
        width: 70px;
        height: 42px;
        flex-basis: 42px;
    }

    .ovsl-online-store-main h3 {
        font-size: 13px;
    }

    .ovsl-online-store-address {
        min-height: 54px;
        padding: 0 10px 12px;
        justify-content: center;
        font-size: 10px;
        text-align: center;
    }

    .ovsl-online-store-link {
        min-height: 42px;
        padding: 8px;
        font-size: 11px;
    }
}

/* =========================================================
   Buscador avanzado, ubicación y sugerencias - v2.4.0
========================================================= */
.ovsl-control-group {
    position: relative;
    margin-bottom: 1rem;
}

.ovsl-control-label {
    display: block;
    margin: 0 0 .45rem;
    color: #273142;
    font-size: .9rem;
    font-weight: 700;
}

.ovsl-combobox-control,
.ovsl-location-autocomplete {
    position: relative;
}

body .ovsl-combobox-control .ovsl-search-input {
    padding-right: 5.5rem;
}

.ovsl-combobox-toggle,
.ovsl-combobox-clear,
.ovsl-location-search-btn {
    position: absolute;
    top: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--ovsl-transition);
}

.ovsl-combobox-toggle {
    right: 8px;
    background: var(--ovsl-primary-color);
    color: #fff;
}

.ovsl-combobox-clear {
    right: 50px;
    background: #edf1f5;
    color: #475569;
}

.ovsl-combobox-toggle:hover,
.ovsl-location-search-btn:hover {
    filter: brightness(.92);
}

.ovsl-combobox-options,
.ovsl-location-suggestions {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 310px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .16);
}

.ovsl-store-option,
.ovsl-location-suggestion {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
}

.ovsl-store-option:hover,
.ovsl-store-option[aria-selected="true"],
.ovsl-location-suggestion:hover {
    background: color-mix(in srgb, var(--ovsl-primary-color) 10%, #fff);
}

.ovsl-store-option img,
.ovsl-store-option-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: contain;
    background: #f5f7fa;
}

.ovsl-store-option-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ovsl-store-option-text strong {
    overflow: hidden;
    color: #111827;
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ovsl-store-option-text small {
    color: #64748b;
    font-size: .76rem;
}

.ovsl-store-option-note {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    background: #fff3cd;
    color: #7a5b00;
    font-size: .68rem;
    font-weight: 700;
}

.ovsl-combobox-empty {
    padding: 18px;
    color: #64748b;
    text-align: center;
}

.ovsl-location-controls {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 110px auto auto;
    gap: 10px;
    align-items: stretch;
}

body .ovsl-location-search-input,
body .ovsl-radius-select {
    width: 100%;
    min-height: 46px;
    border: 2px solid #e2e8f0;
    border-radius: calc(var(--ovsl-border-radius) * .75);
    background: #fff;
    color: inherit;
    font-size: .95rem;
}

body .ovsl-location-search-input {
    padding: .75rem 3rem .75rem .95rem;
}

body .ovsl-radius-select {
    padding: .65rem .75rem;
}

body .ovsl-location-search-input:focus,
body .ovsl-radius-select:focus {
    outline: 0;
    border-color: var(--ovsl-primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ovsl-primary-color) 15%, transparent);
}

.ovsl-location-search-btn {
    right: 6px;
    background: var(--ovsl-primary-color);
    color: #fff;
}

.ovsl-location-controls .ovsl-location-btn,
.ovsl-clear-location-btn {
    min-height: 46px;
    justify-content: center;
}

.ovsl-clear-location-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: calc(var(--ovsl-border-radius) * .75);
    background: #fff;
    color: #475569;
    font-weight: 700;
    cursor: pointer;
}

.ovsl-location-help {
    margin: .5rem 0 0;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.45;
}

.ovsl-filter-message {
    display: none;
    margin-top: 1rem;
    padding: .8rem 1rem;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 650;
}

.ovsl-filter-message.is-success,
.ovsl-filter-message.is-warning {
    display: block;
}

.ovsl-filter-message.is-success {
    border: 1px solid #a8e5bc;
    background: #edfdf2;
    color: #176b35;
}

.ovsl-filter-message.is-warning {
    border: 1px solid #f1d47b;
    background: #fff8df;
    color: #755800;
}

button.ovsl-action-btn {
    font: inherit;
    cursor: pointer;
}

.ovsl-btn-view-map {
    background: var(--ovsl-primary-color);
    color: #fff;
}

@media (max-width: 900px) {
    .ovsl-location-controls {
        grid-template-columns: minmax(0, 1fr) 100px;
    }

    .ovsl-location-controls .ovsl-location-btn,
    .ovsl-clear-location-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ovsl-search-module {
        padding: 1rem;
    }

    .ovsl-location-controls {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 8px;
    }

    .ovsl-location-controls .ovsl-location-btn,
    .ovsl-clear-location-btn {
        grid-column: span 1;
        padding: .7rem .6rem;
        font-size: .78rem;
    }

    .ovsl-store-option-note {
        display: none;
    }
}

/* Diagnóstico y recuperación de carga - v2.4.1 */
.ovsl-load-error {
    min-height: 190px;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    text-align: center;
    color: #7f1d1d;
    background: #fff7f7;
    border: 1px solid #fecaca;
    border-radius: calc(var(--ovsl-border-radius) * .75);
}

.ovsl-load-error > i {
    font-size: 1.65rem;
    color: #dc2626;
}

.ovsl-load-error strong {
    color: #991b1b;
    font-size: 1rem;
}

.ovsl-load-error span {
    max-width: 720px;
    color: #7f1d1d;
    font-size: .86rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ovsl-retry-load {
    margin-top: .4rem;
    padding: .7rem 1.05rem;
    border: 0;
    border-radius: 8px;
    background: var(--ovsl-primary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ovsl-map-error {
    position: absolute;
    inset: 0;
    z-index: 12;
    min-height: 220px;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    color: #334155;
}

.ovsl-map-error i {
    font-size: 2rem;
    color: var(--ovsl-primary-color);
}

.ovsl-map-error strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.ovsl-map-error span {
    max-width: 680px;
    font-size: .86rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/* =========================================================
   LISTADO ONLINE RESPONSIVE POR ANCHO REAL DEL CONTENEDOR
   v2.4.5
   Evita que Divi comprima 4 tarjetas dentro de una columna
   estrecha. En columnas pequeñas se apilan verticalmente.
========================================================= */

.ovsl-layout-online {
    width: 100%;
    min-width: 0;
    container-type: inline-size;
    container-name: ovsl-online-list;
}

.ovsl-layout-online .ovsl-stores-container {
    width: 100%;
    min-width: 0;
    max-height: 650px;
    padding: 2px 10px 2px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    align-items: stretch;
    align-content: start;
    gap: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.ovsl-layout-online .ovsl-online-store-card {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.ovsl-layout-online .ovsl-online-store-main {
    width: 100%;
    min-width: 0;
}

.ovsl-layout-online .ovsl-online-store-main h3,
.ovsl-layout-online .ovsl-online-store-address span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ovsl-layout-online .ovsl-online-store-address {
    width: 100%;
}

.ovsl-layout-online .ovsl-online-store-link {
    width: 100%;
    margin-top: auto;
}

/* Cuando el módulo ocupa una columna angosta junto al mapa,
   se usa una sola tarjeta por fila y scroll vertical. */
@container ovsl-online-list (max-width: 620px) {
    .ovsl-layout-online .ovsl-stores-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .ovsl-layout-online .ovsl-online-store-main {
        min-height: 92px;
        padding: 16px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .ovsl-layout-online .ovsl-online-store-logo {
        width: 64px;
        height: 52px;
        flex: 0 0 64px;
    }

    .ovsl-layout-online .ovsl-online-store-main h3 {
        font-size: 15px;
    }
}

/* Respaldo para navegadores sin Container Queries. */
@supports not (container-type: inline-size) {
    .ovsl-layout-online .ovsl-stores-container {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    }
}

/* En móvil el desplazamiento se integra a la página para no
   crear un scroll interno incómodo. */
@media (max-width: 767px) {
    .ovsl-layout-online .ovsl-stores-container {
        max-height: none;
        padding-right: 0;
        grid-template-columns: minmax(0, 1fr);
        overflow-y: visible;
        scrollbar-gutter: auto;
    }

    .ovsl-layout-online .ovsl-online-store-main {
        min-height: 92px;
        padding: 14px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .ovsl-layout-online .ovsl-online-store-logo {
        width: 60px;
        height: 48px;
        flex: 0 0 60px;
    }
}

/* =========================================================
   LOCALIZADOR DIVIDIDO: LISTADO + MAPA - v2.4.6
   En escritorio reproduce el diseño de referencia: filtros
   arriba, tarjetas a la izquierda y mapa a la derecha.
========================================================= */

.ovsl-locator-results-grid {
    --ovsl-locator-height: 650px;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(320px, 1fr);
    align-items: stretch;
    gap: clamp(18px, 2.4vw, 32px);
}

.ovsl-locator-list-column,
.ovsl-locator-map-column {
    min-width: 0;
    height: var(--ovsl-locator-height);
}

.ovsl-locator-list-column .ovsl-stores-list-module,
.ovsl-locator-map-column .ovsl-map-module {
    width: 100%;
    height: 100% !important;
    min-height: 0;
}

.ovsl-locator-list-column .ovsl-stores-list-module {
    display: flex;
    flex-direction: column;
}

.ovsl-locator-list-column .ovsl-stores-header {
    flex: 0 0 auto;
}

.ovsl-locator-list-column .ovsl-stores-container {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

/* Dos tarjetas por fila como en el diseño de referencia. */
.ovsl-locator-results-grid .ovsl-layout-modern .ovsl-stores-container,
.ovsl-locator-results-grid .ovsl-layout-compact .ovsl-stores-container,
.ovsl-locator-results-grid .ovsl-layout-online .ovsl-stores-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    align-items: stretch;
    gap: 16px;
}

.ovsl-locator-results-grid .ovsl-store-card,
.ovsl-locator-results-grid .ovsl-online-store-card {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
}

.ovsl-locator-results-grid .ovsl-layout-modern .ovsl-store-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ovsl-locator-results-grid .ovsl-layout-modern .ovsl-store-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px;
}

.ovsl-locator-results-grid .ovsl-layout-modern .ovsl-store-header {
    gap: 10px;
    margin-bottom: 10px;
}

.ovsl-locator-results-grid .ovsl-layout-modern .ovsl-store-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 5px;
    border-width: 1px;
    border-radius: 50%;
}

.ovsl-locator-results-grid .ovsl-layout-modern .ovsl-store-name {
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ovsl-locator-results-grid .ovsl-layout-modern .ovsl-store-info {
    font-size: 12px;
    line-height: 1.4;
}

.ovsl-locator-results-grid .ovsl-layout-modern .ovsl-store-actions {
    margin-top: auto;
}

.ovsl-locator-map-column .ovsl-map-module {
    box-shadow: var(--ovsl-shadow-lg);
}

/* Portátiles y tablets horizontales: se conserva el mapa al lado,
   pero el listado pasa a una tarjeta por fila para no comprimirlo. */
@media (max-width: 1180px) {
    .ovsl-locator-results-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr);
        gap: 18px;
    }

    .ovsl-locator-results-grid .ovsl-layout-modern .ovsl-stores-container,
    .ovsl-locator-results-grid .ovsl-layout-compact .ovsl-stores-container,
    .ovsl-locator-results-grid .ovsl-layout-online .ovsl-stores-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Tablet vertical y móvil: listado arriba y mapa debajo. */
@media (max-width: 900px) {
    .ovsl-locator-results-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ovsl-locator-list-column {
        height: auto;
    }

    .ovsl-locator-list-column .ovsl-stores-list-module {
        height: auto !important;
    }

    .ovsl-locator-list-column .ovsl-stores-container {
        max-height: 560px;
        overflow-y: auto;
    }

    .ovsl-locator-map-column {
        height: min(var(--ovsl-locator-height), 520px);
        min-height: 420px;
    }

    .ovsl-locator-results-grid .ovsl-layout-modern .ovsl-stores-container,
    .ovsl-locator-results-grid .ovsl-layout-compact .ovsl-stores-container,
    .ovsl-locator-results-grid .ovsl-layout-online .ovsl-stores-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ovsl-locator-results-grid {
        gap: 16px;
    }

    .ovsl-locator-list-column .ovsl-stores-container {
        max-height: none;
        padding: 12px;
        overflow-y: visible;
        scrollbar-gutter: auto;
    }

    .ovsl-locator-results-grid .ovsl-layout-modern .ovsl-stores-container,
    .ovsl-locator-results-grid .ovsl-layout-compact .ovsl-stores-container,
    .ovsl-locator-results-grid .ovsl-layout-online .ovsl-stores-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ovsl-locator-map-column {
        height: 380px;
        min-height: 380px;
    }

    .ovsl-locator-results-grid .ovsl-layout-modern .ovsl-store-content {
        padding: 14px;
    }
}


/* =========================================================
   AJUSTE 2.4.7: CAMPOS OPCIONALES + ONLINE ADAPTABLE
   - Los datos de contacto solo ocupan espacio si existen.
   - El shortcode online responde al ancho real disponible.
   - En espacios reducidos mantiene scroll vertical interno.
========================================================= */

.ovsl-online-store-details {
    display: grid;
    gap: 7px;
    padding: 0 18px 14px;
    color: #5d6675;
    font-size: 12px;
    line-height: 1.35;
}

.ovsl-online-store-detail {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ovsl-online-store-detail i {
    width: 14px;
    flex: 0 0 14px;
    margin-top: 2px;
    color: var(--ovsl-primary-color, #9d2d91);
    text-align: center;
}

.ovsl-online-store-detail a,
.ovsl-online-store-detail span {
    min-width: 0;
    color: inherit;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.ovsl-online-store-detail a:hover,
.ovsl-online-store-detail a:focus-visible {
    color: var(--ovsl-primary-color, #9d2d91);
}

/* El alto se limita de forma flexible: si la columna o la ventana
   dispone de poco espacio, el listado conserva el scroll. */
.ovsl-layout-online .ovsl-stores-container {
    width: 100%;
    min-width: 0;
    max-height: clamp(300px, 68vh, 650px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.ovsl-layout-online .ovsl-online-store-card {
    height: auto;
    min-height: 0;
}

@container ovsl-online-list (max-width: 420px) {
    .ovsl-layout-online .ovsl-stores-container {
        gap: 12px;
        padding-right: 6px;
    }

    .ovsl-layout-online .ovsl-online-store-main {
        min-height: 0;
        padding: 13px;
    }

    .ovsl-layout-online .ovsl-online-store-address,
    .ovsl-layout-online .ovsl-online-store-details {
        padding-right: 13px;
        padding-left: 13px;
    }
}

@media (max-width: 767px) {
    .ovsl-layout-online .ovsl-stores-container {
        max-height: min(520px, 70vh);
        padding-right: 6px;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }

    .ovsl-online-store-details {
        padding: 0 14px 13px;
        font-size: 11px;
    }
}
