/* Product card only. Rakuten-generated anchors are intentionally not targeted. */
.motoshiru-product-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 1.75rem 0;
    padding: 1rem;
    border: 1px solid var(--ma-line, #dce4e3);
    border-radius: 12px;
    background: #f6f8f7;
    color: var(--ma-ink, #1d2b30);
    line-height: 1.7;
    overflow-wrap: anywhere;
    container-type: inline-size;
}
.motoshiru-product-card .motoshiru-product-card__pr {
    display: inline-block;
    margin: 0 0 .65rem;
    padding: .1rem .5rem;
    border: 1px solid #b6c9c6;
    border-radius: 4px;
    color: #244a48;
    background: #e8f2f1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.motoshiru-product-card .motoshiru-product-card__name {
    margin: 0 0 .75rem !important;
    color: var(--ma-ink, #1d2b30);
    font-size: 1.1rem;
    line-height: 1.6;
}
.motoshiru-product-card .motoshiru-product-card__details {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
}
.motoshiru-product-card .motoshiru-product-card__image { flex: 0 0 auto; text-align: center; }
.motoshiru-product-card .motoshiru-product-card__image img {
    display: inline-block;
    width: 144px;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 6px;
}
.motoshiru-product-card .motoshiru-product-card__description {
    min-width: 0;
    margin: 0 !important;
    color: var(--ma-text, #3f4e52);
    font-size: 16px;
    line-height: 1.8;
}
.motoshiru-product-card .motoshiru-product-card__links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: .65rem;
    margin-top: 1rem;
}
.motoshiru-product-card .motoshiru-product-card__store { min-width: 0; }
.motoshiru-product-card .motoshiru-product-card__button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    height: 100%;
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid #176b73;
    border-radius: 7px;
    background: #fff;
    color: #104e55;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}
.motoshiru-product-card .motoshiru-product-card__button:hover { background: #e8f2f1; }
.motoshiru-product-card .motoshiru-product-card__button:focus-visible { outline: 3px solid #176b73; outline-offset: 3px; }
/* Style the surrounding box only; preserve the generated anchor's presentation. */
.motoshiru-product-card .motoshiru-product-card__rakuten {
    box-sizing: border-box;
    padding: .6rem .8rem;
    border: 1px solid #c7d3d0;
    border-radius: 7px;
    background: #fff;
    line-height: 1.8;
    font-size: 16px;
    overflow-wrap: anywhere;
}
.motoshiru-product-card .motoshiru-product-card__store-label { display: block; color: #66767b; font-size: 14px; }
.motoshiru-product-card .motoshiru-product-card__rakuten-code { min-width: 0; padding: .35rem 0; }
.motoshiru-product-card .motoshiru-product-card__note { margin: .8rem 0 0 !important; color: #66767b; font-size: 14px; line-height: 1.7; }
.motoshiru-product-card .motoshiru-product-card__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (min-width: 640px) {
    .motoshiru-product-card .motoshiru-product-card__links { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .motoshiru-product-card .motoshiru-product-card__details { flex-direction: row; align-items: center; gap: 1rem; }
}
