.book-detail.book-detail-offers {
    row-gap: 28px;
}

.book-detail-offers .book-description {
    margin-top: 24px;
    padding-top: 22px;
}

.book-detail-offers .book-detail-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin-top: 4px;
    grid-column: 1/-1;
}

.book-detail-actions .book-best-buy,
.book-detail-offers .book-detail-actions .bookshelf-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 76px;
    padding: 16px 14px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.book-detail-actions .book-best-buy {
    background: linear-gradient(110deg,#29209f,#4035ff);
    color: #fff;
    box-shadow: 0 8px 22px #30279326;
}

.book-detail-actions .book-best-buy:hover {
    background: #241b92;
    color: #fff;
}

.book-detail-actions .book-best-buy:only-child,
.book-detail-actions .bookshelf-button:only-child {
    grid-column: 1/-1;
}

.book-best-buy .vz-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.book-shops {
    margin: 34px 0 0;
    padding: 26px;
    background: #f2efff;
    border: 1px solid #c9cced;
    border-top: 3px solid #3a25ff;
    scroll-margin-top: 24px;
}

.book-shops-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.book-shops h2,
.price-history h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #111827;
}

.shop-count {
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #c9cced;
    white-space: nowrap;
    color: #342a78;
    font-size: 13px;
    font-weight: 700;
}

.shop-offer-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-offer-list>li {
    display: grid;
    grid-template-columns: minmax(120px,1fr) minmax(160px,210px) minmax(185px,235px);
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #c9cced;
}

.shop-offer-list>li.is-best-price {
    border-color: #6a59df;
    box-shadow: inset 4px 0 #3a25ff;
}

.shop-offer-brand {
    width: 150px;
    max-width: 100%;
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.shop-offer-brand:hover {
    opacity: .8;
    text-decoration: none;
}

.shop-logo {
    display: block;
    width: 150px;
    max-width: 100%;
    height: 54px;
    object-fit: contain;
    object-position: center;
}

.shop-name {
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
    color: #111827;
    overflow-wrap: anywhere;
}

.shop-offer-price {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0;
    text-align: center;
}

.shop-offer-price strong {
    color: #111827;
    font-size: 22px;
    line-height: 1.1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.shop-price-badge {
    display: block;
    color: #352797;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.shop-price-updated {
    display: block;
    color: #526078;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.shop-offer-list .shop-offer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    min-width: 0;
    padding: 13px 12px;
    background: #3324db;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.shop-offer-list .shop-offer-cta:hover {
    background: #251b9f;
    color: #fff;
    text-decoration: none;
}

.shop-offer-cta .vz-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.shop-offer-brand:focus-visible,
.shop-offer-cta:focus-visible,
.book-best-buy:focus-visible,
.price-periods button:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px;
}

.shop-price-note {
    margin: 18px 0 0;
    color: #42516a;
    font-size: 13px;
    line-height: 1.55;
}

.card-buy-link>span {
    display: block;
    white-space: normal;
}

.book-card .card-buy-link {
    min-height: 38px;
    padding: 10px 14px;
    white-space: normal;
    line-height: 1.1;
}

.price-history {
    margin: 32px 0 0;
    padding: 28px 26px;
    border: 1px solid #c9cced;
    background: #fff;
}

.price-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.price-periods {
    display: flex;
    gap: 6px;
}

.price-periods button {
    padding: 10px 13px;
    min-height: 42px;
    border: 1px solid #c9cced;
    background: #fff;
    color: #3324b5;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.price-periods button[aria-pressed=true] {
    background: #3324db;
    color: #fff;
    border-color: #3324db;
}

.price-history-intro {
    margin: 16px 0 22px;
    color: #42516a;
    line-height: 1.6;
    font-size: 15px;
}

.price-chart-legend {
    display: flex;
    gap: 12px 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 700;
}

.price-chart-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-chart-legend i {
    display: block;
    width: 22px;
    height: 4px;
}

.price-color-martinus {
    background: #3824dc;
}

.price-color-pantarhei {
    background: #006b67;
}

.price-color-knihyprekazdeho {
    background: #b34420;
}

.price-chart-canvas {
    width: 100%;
    min-width: 0;
}

.price-chart-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.price-chart-svg text {
    font-family: inherit;
    font-size: 12px;
    fill: #42516a;
}

.price-grid-line {
    stroke: #e0e3ef;
    fill: none;
}

.price-history-empty {
    font-size: 13px;
    line-height: 1.65;
    color: #526078;
    margin: 18px 0 0;
}

@media (max-width:820px) {
    .shop-offer-price {
        align-items: flex-end;
        text-align: right;
    }

    .book-detail.book-detail-offers {
        grid-template-columns: 1fr;
    }

    .book-detail-offers .book-detail-cover.cover-frame {
        width: min(100%,350px);
        margin-inline: auto;
    }

    .shop-offer-list>li {
        grid-template-columns: minmax(105px,1fr) minmax(140px,1fr);
        gap: 14px;
    }

    .shop-offer-list .shop-offer-cta {
        grid-column: 1/-1;
    }

    .book-shops,
    .price-history {
        padding: 22px 20px;
    }
}

@media (max-width:600px) {
    .shop-offer-list>li {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 16px;
        padding: 16px;
    }

    .shop-offer-list .shop-offer-cta {
        min-height: 50px;
    }
}

@media (max-width:480px) {
    .book-shops,
    .price-history {
        padding: 20px 14px;
    }

    .book-shops h2,
    .price-history h2 {
        font-size: 24px;
    }

    .book-shops-heading {
        gap: 12px;
    }

    .shop-count {
        font-size: 11px;
        padding: 7px;
    }

    .book-detail-offers .book-detail-actions {
        gap: 8px;
    }

    .book-detail-actions .book-best-buy,
    .book-detail-offers .book-detail-actions .bookshelf-button {
        padding: 14px 10px;
        font-size: 13px;
        min-height: 80px;
    }

    .book-best-buy .vz-icon {
        display: none;
    }

    .price-chart-legend {
        gap: 12px;
        font-size: 12px;
    }
}
