/**
 * Styles for the reusable [shop_map] embedded map component.
 *
 * Mobile-first: a fluid, responsive iframe (16:9) with a clear "Get Directions"
 * call-to-action below it.
 */

.shop-map {
    margin: 2rem 0;
}

.shop-map__heading {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.shop-map__address {
    margin: 0 0 1rem;
    font-style: normal;
    color: #555;
}

.shop-map__frame-wrap {
    position: relative;
    width: 100%;
    /* 16:9 responsive aspect ratio. */
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.shop-map__frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.shop-map__actions {
    margin: 1rem 0 0;
}

.shop-map__directions {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #d32f2f;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.shop-map__directions:hover,
.shop-map__directions:focus {
    background-color: #b71c1c;
    color: #fff;
}

@media (min-width: 768px) {
    .shop-map__frame-wrap {
        /* Slightly shorter, wider map on larger screens. */
        padding-bottom: 45%;
    }
}
