.amzr {
    margin: 2.5em 0;
    padding: 1.2em 1.2em 0.6em;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
}
.amzr-heading {
    font-size: 1.25em;
    margin: 0 0 0.8em;
    padding: 0 0 0.4em;
    border-bottom: 3px solid #f0a202;
}
.amzr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1em;
}
.amzr-tab {
    appearance: none;
    border: 1px solid #ccc;
    background: #f7f7f7;
    color: #333;
    border-radius: 999px;
    padding: 0.45em 1.1em;
    font-size: 0.92em;
    cursor: pointer;
    line-height: 1.4;
}
.amzr-tab.is-active {
    background: #232f3e;
    border-color: #232f3e;
    color: #fff;
}
.amzr-panel {
    display: none;
}
.amzr-panel.is-active {
    display: block;
}
.amzr-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.amzr-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #eee;
}
.amzr-item:last-child {
    border-bottom: none;
}
.amzr-rank {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0a202;
    color: #fff;
    font-weight: bold;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}
.amzr-item:nth-child(1) .amzr-rank { background: #d4af37; }
.amzr-item:nth-child(2) .amzr-rank { background: #9aa5b1; }
.amzr-item:nth-child(3) .amzr-rank { background: #b08d57; }
.amzr-thumb {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amzr-thumb img {
    max-width: 92px;
    max-height: 92px;
    object-fit: contain;
}
.amzr-body {
    flex: 1 1 auto;
    min-width: 0;
}
.amzr-title {
    display: block;
    font-size: 0.95em;
    line-height: 1.5;
    color: #1a0dab;
    text-decoration: none;
    word-break: break-all;
}
.amzr-title:hover {
    text-decoration: underline;
}
.amzr-brand {
    font-size: 0.82em;
    color: #666;
    margin-top: 2px;
}
.amzr-price {
    margin-top: 4px;
    font-size: 0.95em;
}
.amzr-price-now {
    font-weight: bold;
    color: #b12704;
    font-size: 1.1em;
}
.amzr-off {
    color: #b12704;
    font-weight: bold;
    margin-left: 4px;
}
.amzr-price-basis {
    color: #888;
    margin-left: 4px;
}
.amzr-price-unknown {
    color: #888;
    font-size: 0.85em;
}
.amzr-note {
    font-size: 0.78em;
    color: #888;
    margin: 0.8em 0 0.4em;
}
@media (max-width: 600px) {
    .amzr {
        padding: 1em 0.8em 0.5em;
    }
    .amzr-thumb {
        width: 72px;
        height: 72px;
    }
    .amzr-thumb img {
        max-width: 72px;
        max-height: 72px;
    }
    .amzr-rank {
        width: 24px;
        height: 24px;
        font-size: 0.85em;
    }
}
