.rfctabc-card {
    --rfctabc-accent: #bf0000;
    display: flex;
    gap: 16px;
    align-items: stretch;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 14px;
    margin: 1.5em 0;
    background: #fff;
    box-shadow: 0 3px 16px rgba(0,0,0,.06);
}
.rfctabc-card * { box-sizing: border-box; }
.rfctabc-image {
    flex: 0 0 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}
.rfctabc-image img {
    display: block;
    max-width: 128px;
    max-height: 128px;
    width: auto;
    height: auto;
}
.rfctabc-body {
    flex: 1 1 auto;
    min-width: 0;
}
.rfctabc-title {
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 10px;
}
.rfctabc-title a {
    color: inherit;
    text-decoration: none;
}
.rfctabc-title a:hover {
    text-decoration: underline;
}
.rfctabc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin: 8px 0 10px;
    font-size: .9em;
}
.rfctabc-info-item {
    display: flex;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
}
.rfctabc-info-label {
    flex: 0 0 auto;
    color: #777;
    font-size: .86em;
    white-space: nowrap;
}
.rfctabc-info-value {
    min-width: 0;
    color: #333;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.rfctabc-rating {
    color: #b26b00;
}
.rfctabc-price {
    font-size: 1.12em;
    font-weight: 800;
    color: var(--rfctabc-accent);
}
.rfctabc-note,
.rfctabc-stock {
    font-size: .86em;
    color: #666;
    margin-top: 6px;
}
.rfctabc-stock-out {
    color: #b00020;
}
.rfctabc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.rfctabc-button {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 12px;
    border-radius: 999px;
    background: var(--rfctabc-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: .95em;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: 0 3px 0 rgba(0,0,0,.16);
}
.rfctabc-button-amazon {
    --rfctabc-amazon: #ff9900;
    background: var(--rfctabc-amazon);
    color: #0f1111 !important;
    box-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.rfctabc-button-choice {
    --rfctabc-choice: #1aa058;
    background: var(--rfctabc-choice);
    color: #fff !important;
    box-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.rfctabc-button:hover {
    filter: brightness(.96);
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
@media (max-width: 640px) {
    .rfctabc-card {
        display: block;
        padding: 12px;
    }
    .rfctabc-image {
        margin: 0 auto 12px;
        max-width: 160px;
        min-height: 128px;
    }
    .rfctabc-info-grid {
        /* スマホでも2列を維持する。狭い幅でも値（長い店舗名など）が読めるように、
           各項目はラベルを上・値を下に積むレイアウトにする。 */
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }
    .rfctabc-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .rfctabc-info-label {
        font-size: .8em;
    }
    .rfctabc-button {
        /* スマホでは3つのボタンを縦に1列で全幅表示する。 */
        flex: 1 1 100%;
        width: 100%;
        font-size: 1em;
        padding: 12px 14px;
    }
}

/* 情報を取得できない/検索リンク返礼品向け: ボタンのみのコンパクトカード */
.rfctabc-card-compact {
    display: block;
}
.rfctabc-card-compact .rfctabc-body {
    width: 100%;
}
.rfctabc-card-compact .rfctabc-title {
    margin-bottom: 12px;
}
.rfctabc-card-compact .rfctabc-buttons {
    margin-top: 0;
}

/* ふるさと納税ランキング向け 厳選レイアウト（自治体・還元率・寄付額・定価・根拠ページ） */
.rfctabc-curated {
    margin: 4px 0 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.rfctabc-curated-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
}
.rfctabc-curated-row:first-child {
    border-top: 0;
}
.rfctabc-curated-label {
    flex: 0 0 88px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}
.rfctabc-curated-value {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: #222;
}
.rfctabc-curated-value.rfctabc-rate {
    color: #c0392b;
    font-weight: 800;
}
.rfctabc-curated-value.rfctabc-price {
    color: var(--rfctabc-accent, #1aa058);
    font-weight: 800;
}
.rfctabc-curated-value a {
    color: #1769aa;
    text-decoration: underline;
    font-weight: 600;
}
@media (max-width: 600px) {
    .rfctabc-curated-label { flex-basis: 76px; }
}
