.workshop-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    margin: 0 0 16px;
    background-color: var(--background-primary, rgba(15, 132, 64, 0.02));
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.workshop-card__stats {
    display: flex;
    justify-content: space-between;
}

.workshop-card__stat {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 0 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--foreground-secondary, #3e4843);
}

.workshop-card__stat svg {
    height: 15px;
    width: auto;
    opacity: 0.85;
}

/* Hairline between neighbours of the same tier, so three green tiles still read as three
   figures. Matches the ::before rule on the Vue row. */
.workshop-card__stats .tier-green + .tier-green::before,
.workshop-card__stats .tier-yellow + .tier-yellow::before,
.workshop-card__stats .tier-red + .tier-red::before,
.workshop-card__stats .tier-neutral + .tier-neutral::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.workshop-card__stat.tier-green {
    background-color: rgba(213, 245, 227, 0.35);
    border-bottom: 2px solid rgba(46, 204, 113, 0.75);
}

.workshop-card__stat.tier-yellow {
    background-color: rgba(255, 255, 185, 0.35);
    border-bottom: 2px solid rgba(255, 213, 79, 0.75);
}

.workshop-card__stat.tier-red {
    background-color: rgba(250, 219, 216, 0.35);
    border-bottom: 2px solid rgba(231, 76, 60, 0.75);
}

.workshop-card__stat.tier-neutral {
    background-color: rgba(200, 200, 200, 0.15);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

.workshop-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
}

.workshop-card__workshop {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    /* Takes the slack so the buttons stay hard right and the name has room to sit on one
       line with its pill instead of wrapping the pill under it. */
    flex: 1;
}

.workshop-card__workshop img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: content-box;
    flex-shrink: 0;
}

.workshop-card__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.workshop-card__name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.2px;
    line-height: 1.3;
    color: var(--foreground-primary, #0e1a14);
}

/* The name links to the workshop's own page where one exists. Inherits the name's weight
   and colour rather than looking like body-copy link, so the card reads the same as the
   cards for workshops that have no page yet. */
.workshop-card__name-link {
    color: inherit;
    text-decoration: none;
}

.workshop-card__name-link:hover,
.workshop-card__name-link:focus-visible {
    color: var(--action-primary);
    text-decoration: underline;
}

.workshop-card__badge {
    display: inline-block;
    white-space: nowrap;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background-color: rgba(17, 144, 74, 0.1);
    color: var(--action-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    vertical-align: 2px;
}

.workshop-card__address {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.1px;
    color: var(--foreground-secondary, #3e4843);
}

.workshop-card__actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-shrink: 0;
}

/* Mirrors UserActionButton.vue's .order-now-button__link. */
.workshop-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--action-primary);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.05));
    color: var(--white, #fff);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(17, 144, 74, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.12s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.workshop-card__button svg {
    height: 14px;
    width: auto;
}

.workshop-card__button:hover {
    background-color: #0e7c3f;
    box-shadow: 0 4px 12px rgba(17, 144, 74, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.workshop-card__button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(17, 144, 74, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 560px) {
    .workshop-card__bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .workshop-card__actions {
        width: 100%;
    }

    .workshop-card__button {
        flex: 1;
    }
}
