.sw-shop-search-page--compact {
    letter-spacing: 0;
}

.sw-shop-results-heading h1 {
    margin: 0 0 0.55rem;
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 800;
}

.sw-shop-results-heading p {
    margin: 0;
    color: var(--sw-quiet-copy);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.sw-shop-search-page--compact .sw-shop-search-results {
    gap: 0;
}

.sw-shop-search-page--compact .sw-shop-result-section {
    min-width: 0;
    gap: 1.4rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--sw-home-rule);
}

.sw-shop-search-page--compact .sw-shop-result-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.sw-shop-search-page--compact .sw-shop-result-section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 1.5rem;
}

.sw-shop-result-section__summary {
    min-width: 0;
}

.sw-shop-search-page--compact .sw-shop-result-section__head h2 {
    font-size: 1.2rem;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.sw-shop-search-page--compact .sw-shop-result-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sw-shop-result-section--error .sw-shop-result-status,
.sw-shop-result-section--unknown .sw-shop-result-status {
    font-weight: 700;
}

.sw-shop-search-page--compact .sw-shop-result-detail {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.sw-shop-result-actions {
    display: grid;
    justify-items: end;
    gap: 0.45rem;
    min-width: 0;
}

.sw-shop-result-action,
.sw-shop-result-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--bs-body-color);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.sw-shop-result-action {
    min-width: 10rem;
    min-height: 2.8rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--sw-home-rule) 70%, var(--bs-body-color) 30%);
    border-radius: 4px;
    background: transparent;
}

.sw-shop-result-action--retry {
    border-color: var(--sw-pagination-active-border);
    background: var(--sw-pagination-active-bg);
    color: var(--sw-pagination-active-ink);
}

.sw-shop-result-action:hover {
    border-color: currentColor;
    color: var(--bs-body-color);
    background: var(--sw-home-pill-bg);
}

.sw-shop-result-action--retry:hover {
    color: var(--sw-pagination-active-ink);
    background: var(--sw-pagination-active-bg);
    filter: brightness(0.9);
}

.sw-shop-result-external {
    min-height: 2.75rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.sw-shop-result-external:hover {
    color: var(--bs-body-color);
}

.sw-shop-result-action:focus-visible,
.sw-shop-result-external:focus-visible {
    outline: 2px solid var(--bs-body-color);
    outline-offset: 4px;
}

.sw-shop-search-page--compact .sw-member-ui-icon {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sw-shop-result-status .sw-member-ui-icon {
    color: #a16b0c;
}

[data-bs-theme="dark"] .sw-shop-result-status .sw-member-ui-icon {
    color: #e8b751;
}

.sw-shop-result-action--retry[aria-busy="true"] .sw-member-ui-icon {
    animation: sw-shop-retry-spin 0.9s linear infinite;
}

@keyframes sw-shop-retry-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 479.98px) {
    .sw-shop-results-heading h1 {
        font-size: 1.4rem;
    }

    .sw-shop-search-page--compact .sw-shop-result-section__head {
        gap: 0.75rem;
    }

    .sw-shop-search-page--compact .sw-shop-result-section__head h2 {
        font-size: 1rem;
    }

    .sw-shop-result-action {
        min-width: 7.5rem;
        padding-right: 0.6rem;
        padding-left: 0.6rem;
    }

    .sw-shop-result-action,
    .sw-shop-result-external {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw-shop-result-action--retry[aria-busy="true"] .sw-member-ui-icon {
        animation: none;
    }
}
