.tpe-card {
display: grid;
grid-template-columns: 132px 1fr 240px;
gap: 24px;
align-items: stretch;
width: 100%;
box-sizing: border-box;
margin: 1.6em 0;
padding: 18px 20px;
border: 1px solid #e4e4e4;
border-radius: 12px;
background: #fff;
box-shadow: 0 2px 6px rgba(0,0,0,.05);
} .tpe-card__img {
width: 132px;
height: 132px;
border-radius: 8px;
overflow: hidden;
background: #f6f6f6;
display: flex;
align-items: center;
justify-content: center;
}
.tpe-card__img img {
width: 100%;
height: 100%;
object-fit: contain;
} .tpe-card__body {
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
}
.tpe-card__mfr {
display: inline-block;
align-self: flex-start;
font-size: 11px;
font-weight: 700;
color: #999;
letter-spacing: .06em;
text-transform: uppercase;
margin-bottom: 4px;
}
.tpe-card__name {
font-size: 17px;
font-weight: 700;
line-height: 1.4;
color: #1a1a1a;
margin-bottom: 4px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.tpe-card__name--link {
text-decoration: none !important;
}
.tpe-card__name--link:hover {
color: #e0392c;
}
.tpe-card__store {
font-size: 12.5px;
color: #999;
margin-bottom: 10px;
}
.tpe-card__price-label {
font-size: 12.5px;
font-weight: 800;
color: #e0392c;
margin-bottom: 4px;
}
.tpe-card__price-row {
display: flex;
align-items: baseline;
flex-wrap: wrap;
column-gap: 16px;
row-gap: 2px;
margin-bottom: 4px;
}
.tpe-card__price {
display: flex;
align-items: baseline;
gap: 10px;
width: fit-content;
}
.tpe-card__price--link {
text-decoration: none !important;
border-radius: 6px;
margin-left: -6px;
padding: 2px 6px;
transition: background-color .15s ease;
}
.tpe-card__price--link:hover {
background-color: #fff1ee;
}
.tpe-card__price-eff {
font-size: 28px;
font-weight: 800;
color: #e0392c;
letter-spacing: -.01em;
}
.tpe-card__price-orig {
font-size: 14px;
color: #aaa;
text-decoration: line-through;
}
.tpe-card__updated {
font-size: 11px;
color: #bbb;
margin-bottom: 10px;
}
.tpe-pt-total {
margin-bottom: 8px;
}
.tpe-card__breakdown summary {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11.5px;
font-weight: 700;
color: #888;
cursor: pointer;
list-style: none;
margin-bottom: 8px;
}
.tpe-card__breakdown summary::-webkit-details-marker { display: none; }
.tpe-card__breakdown summary::before {
content: "▸";
font-size: 10px;
color: #bbb;
transition: transform .15s ease;
}
.tpe-card__breakdown[open] summary::before {
transform: rotate(90deg);
}
.tpe-card__breakdown-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 4px;
}
.tpe-pt-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 8px;
border-radius: 5px;
background: #f4f4f4;
font-size: 11px;
line-height: 1.6;
color: #555;
white-space: nowrap;
}
.tpe-pt-badge .tpe-pt-lbl { color: #777; }
.tpe-pt-badge .tpe-pt-val { font-weight: 700; color: #333; }
.tpe-pt-total {
background: #fff1ee;
border: 1px solid #f3c8bd;
}
.tpe-pt-total .tpe-pt-lbl,
.tpe-pt-total .tpe-pt-val { color: #e0392c; }
.tpe-card__notes {
margin-top: auto;
padding-top: 6px;
}
.tpe-yahoo-note {
font-size: 10.5px;
line-height: 1.5;
color: #bbb;
white-space: nowrap;
}
.tpe-disclaimer {
font-size: 10.5px;
line-height: 1.5;
color: #d3a3a3;
} .tpe-card__actions {
display: flex;
flex-direction: column;
gap: 10px;
}
.tpe-card__badge {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
border-radius: 8px;
background: linear-gradient(135deg, #fff5f2, #ffe9e3);
border: 1px solid #f6c9bc;
text-decoration: none !important;
transition: filter .15s ease;
}
.tpe-card__badge:hover { filter: brightness(.97); }
.tpe-card__badge img {
width: 56px;
height: 56px;
object-fit: contain;
flex: 0 0 auto;
display: block;
}
.tpe-card__badge span {
font-size: 13px;
font-weight: 800;
color: #c8492f;
line-height: 1.35;
}
.tpe-card__btns {
display: flex;
flex-direction: column;
gap: 8px;
}
.tpe-btn {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
box-sizing: border-box;
padding: 11px 14px;
border-radius: 7px;
font-size: 13.5px;
font-weight: 700;
text-decoration: none !important;
color: #fff !important;
line-height: 1.2;
transition: opacity .15s ease;
}
.tpe-btn:hover { opacity: .86; }
.tpe-btn--amazon  { background: #ee9a3c; }
.tpe-btn--rakuten { background: #d3392c; }
.tpe-btn--yahoo   { background: #2f8fdb; } .tpe-not-found {
padding: 12px 16px;
background: #f8f8f8;
border: 1px dashed #ccc;
border-radius: 8px;
color: #999;
font-size: 13px;
} @media (max-width: 720px) {
.tpe-card {
grid-template-columns: 96px 1fr;
grid-template-areas:
"img body"
"actions actions";
row-gap: 16px;
}
.tpe-card__img    { grid-area: img; width: 96px; height: 96px; }
.tpe-card__body   { grid-area: body; }
.tpe-card__actions{ grid-area: actions; }
.tpe-card__btns   { flex-direction: row; flex-wrap: wrap; }
.tpe-btn          { width: auto; flex: 1 1 auto; }
.tpe-card__badge  { width: 100%; }
}
@media (max-width: 420px) {
.tpe-card { grid-template-columns: 1fr; grid-template-areas: "img" "body" "actions"; }
.tpe-card__img { width: 100%; height: 160px; }
} .tpe-pcb-embed {
width: 100%;
box-sizing: border-box;
margin: 1.6em 0;
border: 1px solid #e4e4e4;
border-radius: 12px;
background: #fff;
box-shadow: 0 2px 6px rgba(0,0,0,.05);
overflow: hidden;
}
.tpe-pcb-missing-note {
padding: 10px 18px;
background: #fff8e6;
border-bottom: 1px solid #f0dfa6;
color: #9a7207;
font-size: 12.5px;
} .tpe-pcb-parts { padding: 4px 18px; }
.tpe-pcb-part-row {
display: grid;
grid-template-columns: 76px 1fr auto;
align-items: center;
gap: 16px;
padding: 14px 0;
border-bottom: 1px solid #eee;
}
.tpe-pcb-part-row:last-child { border-bottom: none; }
.tpe-pcb-part-head {
padding: 0 0 8px;
border-bottom: 2px solid #e2e2e2;
}
.tpe-pcb-part-head-cat,
.tpe-pcb-part-head-body,
.tpe-pcb-part-head-price {
font-size: 13px;
font-weight: 700;
color: #999;
letter-spacing: .02em;
}
.tpe-pcb-part-head-cat { text-align: center; }
.tpe-pcb-part-head-price { text-align: right; }
.tpe-pcb-part-cat {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
color: #999;
}
.tpe-pcb-part-img {
width: 44px;
height: 44px;
object-fit: contain;
border: 1px solid #eee;
border-radius: 6px;
background: #fff;
}
.tpe-pcb-part-img--blank { background: #f5f5f5; }
.tpe-pcb-part-cat-label { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.tpe-pcb-part-body { min-width: 0; }
.tpe-pcb-part-name {
display: block;
font-size: 14.5px;
font-weight: 700;
color: #1a1a1a;
text-decoration: none !important;
line-height: 1.4;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
a.tpe-pcb-part-name:hover { color: #e0392c; }
.tpe-pcb-part-store { font-size: 11.5px; color: #999; margin-top: 2px; }
.tpe-pcb-part-price {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 10px;
text-align: right;
white-space: nowrap;
} .tpe-pcb-part-price-detail {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2px;
}
.tpe-pcb-part-price-row {
display: flex;
align-items: baseline;
gap: 6px;
}
.tpe-pcb-part-price-label { font-size: 10.5px; color: #999; font-weight: 700; }
.tpe-pcb-part-price-orig { font-size: 12.5px; color: #666; font-weight: 700; }
.tpe-pcb-part-price-pt-row { margin: 1px 0; }
.tpe-pcb-part-price-pt { font-size: 12px; font-weight: 800; color: #e0392c; }
.tpe-pcb-part-price-eff-row { margin-top: 2px; }
.tpe-pcb-part-price-eff { font-size: 18px; font-weight: 900; color: #e0392c; } .tpe-pcb-part-btns {
display: flex;
align-items: stretch;
gap: 8px;
}
.tpe-pcb-part-btn-divider {
width: 1px;
align-self: stretch;
background: #ddd;
flex: 0 0 1px;
}
.tpe-pcb-part-btns-other {
display: flex;
gap: 8px;
}
.tpe-pcb-part-btn {
padding: 6px 10px;
font-size: 10.5px;
border-radius: 5px;
width: auto;
white-space: nowrap;
} .tpe-pcb-summary {
margin: 8px 18px 18px;
padding: 16px 18px;
background: #fafafa;
border: 1px solid #ececec;
border-radius: 10px;
}
.tpe-pcb-summary-title { font-size: 13px; font-weight: 900; color: #1a1a1a; margin-bottom: 10px; line-height: 1.4; }
.tpe-pcb-sum-row {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 4px 0;
font-size: 12.5px;
}
.tpe-pcb-sum-label { color: #888; }
.tpe-pcb-sum-val { font-weight: 700; color: #333; }
.tpe-pcb-sum-pt { color: #e0392c; }
.tpe-pcb-breakdown { margin: 6px 0; padding: 8px 10px; background: #fff; border-radius: 6px; }
.tpe-pcb-breakdown-row {
display: flex;
justify-content: space-between;
font-size: 10.5px;
color: #777;
padding: 2px 0;
}
.tpe-pcb-breakdown-row span:last-child { font-weight: 700; color: #555; }
.tpe-pcb-sum-divider { height: 1px; background: #e2e2e2; margin: 10px 0 6px; }
.tpe-pcb-sum-eff-row { align-items: center; padding-top: 4px; }
.tpe-pcb-sum-eff { font-size: 26px; font-weight: 900; font-style: italic; color: #ff6b00; }
.tpe-pcb-source-link {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
text-align: center;
padding: 12px 18px;
background: linear-gradient(135deg, #fff5f2, #ffe9e3);
border-top: 1px solid #f6c9bc;
color: #c8492f !important;
font-weight: 800;
font-size: 13px;
text-decoration: none !important;
}
.tpe-pcb-source-link:hover { filter: brightness(.97); }
.tpe-pcb-source-icon { height: 30px; width: auto; border-radius: 4px; }
.tpe-pcb-not-found {
padding: 12px 16px;
background: #f8f8f8;
border: 1px dashed #ccc;
border-radius: 8px;
color: #999;
font-size: 13px;
}
@media (max-width: 560px) {
.tpe-pcb-part-head { display: none; }
.tpe-pcb-part-row {
grid-template-columns: 1fr;
grid-template-areas: "cat" "body" "price";
gap: 6px;
padding: 12px 0;
}
.tpe-pcb-part-cat { flex-direction: row; justify-content: flex-start; }
.tpe-pcb-part-price { align-items: flex-start; text-align: left; }
.tpe-pcb-part-price-detail { align-items: flex-start; }
.tpe-pcb-part-price-row { justify-content: flex-start; }
.tpe-pcb-part-btns { flex-wrap: wrap; }
.tpe-pcb-part-btn-divider { display: none; }
.tpe-pcb-part-btns-other { flex-wrap: wrap; }
}