/* =============================================
   Store Finder Box - [dg-store-finder-box]
   ============================================= */

.dg-store-finder-box {
    background-color: var(--wp--preset--color--primary);
    border-radius: 0;
}


.dg-store-finder-box__columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

@media (min-width: 782px) {
    .dg-store-finder-box__columns {
        flex-wrap: nowrap;
    }
    .dg-store-finder-box__left,
    .dg-store-finder-box__right {
        flex: 1 1 50%;
    }
    .dg-store-finder-box__right {
        border-left: 1px solid rgba(112, 112, 112, 0.18);
        padding-left: 40px;
    }
}

.dg-store-finder-box__title {
    color: var(--wp--preset--color--secondary);
    font-style: italic;
    font-weight: 900;
    margin-bottom: 20px;
}

.dg-store-finder-box__subtitle {
    color: var(--wp--preset--color--secondary);
    font-style: italic;
    font-weight: 900;
    margin-bottom: 20px;
}

.dg-store-finder-box__actions {
    margin-top: 25px;
}

.dg-store-finder-box__actions .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dg-store-finder-box .dg-finder-field {
    margin-bottom: 15px;
}

/* =============================================
   Store Finder Box - Search results
   (rakenteellinen vastine alapalkin .dg-bottom-bar__results -dropdownille,
    eri selektorit → ei vaikuta alapalkin tyyleihin)
   ============================================= */

.dg-store-finder-box__results {
    margin-top: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.dg-sfb-result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.85rem 1rem;
    color: var(--wp--preset--color--dark-blue, #1a1a1a);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.15s ease;
}

.dg-sfb-result-item:last-of-type {
    border-bottom: none;
}

.dg-sfb-result-item:hover,
.dg-sfb-result-item:focus {
    background-color: var(--wp--preset--color--ice-blue, #f0f6ff);
    text-decoration: none;
}

.dg-sfb-result-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wp--preset--color--dark-blue, #1a1a1a);
}

.dg-sfb-result-meta {
    font-size: 0.825rem;
    color: var(--wp--preset--color--text-gray, #666);
}

.dg-sfb-no-results,
.dg-sfb-result-header {
    padding: 1rem;
    color: var(--wp--preset--color--text-gray, #666);
    font-size: 0.9rem;
    background: #fff;
    border-radius: 6px;
}

.dg-sfb-result-all {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wp--preset--color--dark-blue, #1a1a1a);
    background-color: var(--wp--preset--color--ice-blue, #f0f6ff);
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.15s ease;
}

.dg-sfb-result-all:hover,
.dg-sfb-result-all:focus {
    background-color: var(--wp--preset--color--primary, #cedc00);
    color: var(--wp--preset--color--dark-blue, #1a1a1a);
    text-decoration: none;
}
