/* Estilos para el shortcode */
.store-locator-shortcode {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.store-locator-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

.store-locator-shortcode .store-locator-container {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.store-locator-shortcode .store-locator-input-group {
    max-width: 400px;
    margin: 0 auto;
}

.zipcode-input-shortcode {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.zipcode-input-shortcode:focus {
    border-color: #3498db;
}

.search-stores-btn-shortcode {
    padding: 12px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-stores-btn-shortcode:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
}

.store-results-shortcode {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    max-height: 400px;
    overflow-y: auto;
}

/* Estilos para los resultados */
.store-loading {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.store-error {
    padding: 15px 20px;
    text-align: center;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 8px;
    margin: 10px;
}

.store-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #7f8c8d;
}

.store-location-info {
    padding: 15px 20px;
    background: #e8f4fd;
    border-bottom: 1px solid #d1ecf1;
}

.store-location-info h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.stores-list {
    padding: 15px 20px;
}

.stores-list h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.store-item {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.store-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.store-item h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.store-item p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.store-item strong {
    color: #2c3e50;
}

/* Responsive para shortcode */
@media (max-width: 768px) {
    .store-locator-shortcode {
        margin: 15px 0;
        padding: 15px;
    }
    
    .store-locator-title {
        font-size: 20px;
    }
    
    .store-locator-shortcode .store-locator-input-group {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
    }
    
    .zipcode-input-shortcode,
    .search-stores-btn-shortcode {
        width: 100%;
        border-radius: 8px;
    }
    
    .search-stores-btn-shortcode {
        justify-content: center;
    }
}

/* Estilos para la administración */
.edit-input {
    width: 100%;
    padding: 3px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.edit-input[data-field="address"] {
    height: 60px;
    resize: vertical;
}

.button.edit-store-btn {
    margin-right: 5px;
}

.button.delete-store-btn {
    color: #a00;
}

.button.delete-store-btn:hover {
    color: #dc3232;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-results-shortcode,
.store-results {
    animation: fadeIn 0.3s ease;
}

/* Estados de carga */
.store-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e1e8ed;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.store-item {
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.store-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.store-item:hover {
    background-color: #f8f9fa;
}

.store-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.store-address {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.store-contact {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #3498db;
}

.store-phone, .store-email {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.store-phone:hover, .store-email:hover {
    color: #2980b9;
}

.no-results {
    padding: 30px 20px;
    text-align: center;
    color: #7f8c8d;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-results-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.no-results-text {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.loading {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ecf0f1;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    padding: 15px 20px;
    text-align: center;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 12px;
    margin: 10px 0;
}

/* Estados de focus */
.store-locator-container.focused {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Personalización por colores configurados */
.store-locator-container[data-primary-color] {
    background: var(--primary-color);
}

.store-locator-container[data-secondary-color] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-locator-wrapper {
        padding: 0 15px;
    }
    
    .store-locator-input-group {
        max-width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .zipcode-input, .search-stores-btn {
        width: 100%;
        justify-content: center;
    }
    
    .store-results {
        width: calc(100vw - 30px);
        max-width: none;
        left: 15px;
        transform: none;
    }
    
    /* Animaciones móviles */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Estilos móviles para compact */
    .store-locator-compact {
        margin: 10px;
        padding: 10px;
    }
    
    .store-locator-compact .store-locator-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Estilos móviles para full */
    .store-locator-full {
        margin: 10px;
        padding: 20px;
    }
    
    .store-locator-full .store-locator-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .store-locator-container {
        padding: 10px 0;
    }
    
    .store-item {
        padding: 12px 15px;
    }
    
    .store-contact {
        flex-direction: column;
        gap: 4px;
    }
    
    /* Ajustes para pantallas muy pequeñas */
    .store-locator-full .zipcode-input,
    .store-locator-full .search-stores-btn {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    .store-locator-compact .zipcode-input,
    .store-locator-compact .search-stores-btn {
        font-size: 14px;
        padding: 10px 1/* Store Locator Styles */
.store-locator-container {
    background: linear-gradient(135deg, #2980b9, #3498db);
    padding: 12px 0;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Estilo Header (por defecto) */
#store-locator-header {
    background: linear-gradient(135deg, #2980b9, #3498db);
    padding: 12px 0;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Estilo Compact para Shortcode */
.store-locator-compact {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 15px 0;
}

.store-locator-compact .store-locator-input-group {
    max-width: 100%;
}

.store-locator-compact .zipcode-input {
    border: 1px solid #ced4da;
    background: white;
}

.store-locator-compact .search-stores-btn {
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.store-locator-compact .search-stores-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Estilo Full para Shortcode */
.store-locator-full {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.store-locator-full .store-locator-title {
    text-align: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.store-locator-full .store-locator-input-group {
    max-width: 500px;
}

.store-locator-full .zipcode-input {
    font-size: 16px;
    padding: 15px 20px;
}

.store-locator-full .search-stores-btn {
    padding: 15px 25px;
    font-size: 16px;
}

/* Estilo Default para Shortcode */
.store-locator-default {
    background: linear-gradient(135deg, #2980b9, #3498db);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.store-locator-default .store-locator-title {
    text-align: center;
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.store-locator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.store-locator-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.zipcode-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.zipcode-input:focus {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.zipcode-input::placeholder {
    color: #7f8c8d;
    font-style: italic;
}

.search-stores-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-stores-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-stores-btn:active {
    transform: translateY(0);
}

.search-stores-btn svg {
    transition: transform 0.3s ease;
}

.search-stores-btn:hover svg {
    transform: scale(1.1);
}

.store-results {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

/* Resultados para estilos específicos */
.store-locator-compact .store-results {
    position: relative;
    left: auto;
    transform: none;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.store-locator-full .store-results {
    max-width: 600px;
    border-radius: 15px;
}

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

/* Animación para compact */
.store-locator-compact .store-results {
    animation: fadeIn 0.3s ease;
}

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

.store-results-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.store-results-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.store-results-subtitle {
    font-size: 12px;
    color: #7f8c8d;
    margin: 2px 0 0 0;
}

.store-item {
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
    transition/* Store Locator Styles */
.store-locator-container {
    background: linear-gradient(135deg, #2980b9, #3498db);
    padding: 12px 0;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.store-locator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.store-locator-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

#zipcode-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#zipcode-input:focus {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

#zipcode-input::placeholder {
    color: #7f8c8d;
    font-style: italic;
}

#search-stores-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#search-stores-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#search-stores-btn:active {
    transform: translateY(0);
}

#search-stores-btn svg {
    transition: transform 0.3s ease;
}

#search-stores-btn:hover svg {
    transform: scale(1.1);
}

.store-results {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

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

.store-results-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.store-results-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.store-results-subtitle {
    font-size: 12px;
    color: #7f8c8d;
    margin: 2px 0 0 0;
}

.store-item {
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.store-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.store-item:hover {
    background-color: #f8f9fa;
}

.store-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.store-address {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.store-contact {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #3498db;
}

.store-phone, .store-email {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.store-phone:hover, .store-email:hover {
    color: #2980b9;
}

.no-results {
    padding: 30px 20px;
    text-align: center;
    color: #7f8c8d;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-results-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.no-results-text {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.loading {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ecf0f1;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    padding: 15px 20px;
    text-align: center;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 12px;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-locator-wrapper {
        padding: 0 15px;
    }
    
    .store-locator-input-group {
        max-width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    #zipcode-input, #search-stores-btn {
        width: 100%;
        justify-content: center;
    }
    
    .store-results {
        width: calc(100vw - 30px);
        max-width: none;
        left: 15px;
        transform: none;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .store-locator-container {
        padding: 10px 0;
    }
    
    .store-item {
        padding: 12px 15px;
    }
    
    .store-contact {
        flex-direction: column;
        gap: 4px;
    }
}