/*
 * Pariksha Taiyari Store Design System v1
 *
 * Step 1 foundation, first applied to Product Detail in Step 2.
 * Later Store surfaces should reuse these tokens/components instead of
 * introducing one-off colours, radii, shadows or CTA styles.
 */

:root {
    --pt-store-brand: #0d8478;
    --pt-store-brand-hover: #0f766e;
    --pt-store-brand-border: #0b7268;
    --pt-store-brand-soft: #f0fdfa;
    --pt-store-brand-soft-border: #99f6e4;

    --pt-store-ink: #0f172a;
    --pt-store-text: #334155;
    --pt-store-muted: #64748b;
    --pt-store-line: #e2e8f0;
    --pt-store-line-soft: #eef2f7;
    --pt-store-surface: #ffffff;
    --pt-store-page: #f8fafc;

    --pt-store-success: #15803d;
    --pt-store-success-soft: #f0fdf4;
    --pt-store-info: #1d4ed8;
    --pt-store-info-soft: #eff6ff;
    --pt-store-warning: #b45309;
    --pt-store-danger: #dc2626;

    --pt-store-radius-sm: 8px;
    --pt-store-radius: 12px;
    --pt-store-radius-lg: 18px;
    --pt-store-radius-shell: 20px;
    --pt-store-shadow-shell: 0 12px 34px rgba(15, 23, 42, .08);

    --pt-store-space-1: 6px;
    --pt-store-space-2: 10px;
    --pt-store-space-3: 14px;
    --pt-store-space-4: 18px;
    --pt-store-space-5: 24px;
    --pt-store-space-6: 30px;
    --pt-store-space-7: 34px;

    --pt-store-font: "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================================================== 
   STEP 2 — PRODUCT DETAIL MASTER REFERENCE
   ========================================================================== */

.pt-product-detail-wrap {
    max-width: 1180px;
    font-family: var(--pt-store-font);
    color: var(--pt-store-text);
}

.pt-product-detail-wrap .pt-breadcrumbs {
    color: var(--pt-store-muted);
    font-size: 13px;
}

.pt-product-detail-wrap .pt-breadcrumbs a {
    color: var(--pt-store-muted);
}

.pt-product-detail-wrap .pt-breadcrumbs a:hover {
    color: var(--pt-store-brand-hover);
}

/* One strong product surface. Inner price/facts areas are no longer cards. */
.pt-pdp {
    grid-template-columns: minmax(0, 310px) minmax(0, 1fr);
    gap: 38px;
    padding: 34px;
    background: var(--pt-store-surface);
    border: 1px solid var(--pt-store-line-soft);
    border-radius: var(--pt-store-radius-shell);
    box-shadow: var(--pt-store-shadow-shell);
}

.pt-pdp--nocover {
    grid-template-columns: minmax(0, 1fr);
}

.pt-product-detail-wrap--narrow {
    max-width: 860px;
}

.pt-pdp-media {
    top: 24px;
    align-items: stretch;
}

.pt-pdp-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: none;
    background: var(--pt-store-page);
    border: 1px solid var(--pt-store-line-soft);
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .10);
}

.pt-pdp-cover-img {
    object-fit: contain;
}

.pt-pdp-head {
    min-height: 38px;
    align-items: center;
}

.pt-pdp-badges {
    gap: 8px;
}

.pt-pdp-badge {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

/* Official status is already clear from the product context/subtitle. Keeping
   it as another top badge makes the first line noisy, so only kind + state stay. */
.pt-pdp-badge--official {
    display: none;
}

.pt-pdp-badge--free {
    background: var(--pt-store-info-soft);
    color: var(--pt-store-info);
}

.pt-pdp-badge--owned {
    background: var(--pt-store-success-soft);
    color: var(--pt-store-success);
}

/* If access is already owned, that is the useful state; "Free" beside it adds
   no decision value. :has() is supported by the modern browsers we target. */
.pt-pdp-badges:has(.pt-pdp-badge--owned) .pt-pdp-badge--free {
    display: none;
}

.pt-pdp-share {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-color: var(--pt-store-line);
    border-radius: 9px;
    color: var(--pt-store-muted);
}

.pt-pdp-share:hover {
    background: var(--pt-store-page);
    color: var(--pt-store-brand-hover);
    border-color: var(--pt-store-brand-soft-border);
}

.pt-pdp-share span {
    display: none;
}

.pt-pdp-share svg {
    width: 17px;
    height: 17px;
}

.pt-pdp-title {
    max-width: 720px;
    margin: 16px 0 7px;
    color: var(--pt-store-ink);
    font-size: 29px;
    font-weight: 780;
    line-height: 1.28;
}

.pt-pdp-sub {
    margin: 0 0 22px;
    color: var(--pt-store-muted);
    font-size: 14px;
}

/* Price/actions belong to the information flow, not a card inside a card. */
.pt-pdp-buy {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.pt-pdp-price {
    gap: 10px;
    margin-bottom: 14px;
}

.pt-pdp-price-now {
    color: var(--pt-store-ink);
    font-size: 34px;
    font-weight: 850;
}

.pt-pdp-price-now--free,
.pt-pdp-price-now--owned {
    color: var(--pt-store-success);
}

.pt-pdp-price-now--owned {
    font-size: 20px;
}

.pt-pdp-price-mrp {
    color: #94a3b8;
}

.pt-pdp-price-off {
    padding: 4px 7px;
    background: var(--pt-store-success-soft);
    color: var(--pt-store-success);
    border-radius: 6px;
    font-weight: 800;
}

.pt-pdp-price-tax {
    color: #94a3b8;
}

.pt-pdp-actions {
    gap: 10px;
    margin: 18px 0 14px;
}

.pt-pdp-actions .pt-btn {
    flex: 0 1 230px;
    min-width: 190px;
    max-width: 300px;
}

/* Approved action hierarchy: inspect first, convert second. No JS/checkout
   behavior changes are needed; only the visual/reading order changes.

   Both spellings are listed on purpose. The preview trigger was renamed from
   `pt-preview-btn` to `pt-preview-embed-btn` when every Store surface moved to
   the one shared viewer, and this rule -- and the script that keeps the reading
   order matching it -- were left pointing at the old name, so the order quietly
   stopped being applied. */
.pt-pdp-actions .pt-preview-btn,
.pt-pdp-actions .pt-preview-embed-btn {
    order: 1;
}

.pt-pdp-actions .pt-btn-cta,
.pt-pdp-actions .pt-btn-owned {
    order: 2;
}

.pt-pdp-assure {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 4px 0 2px;
}

.pt-pdp-assure li {
    gap: 7px;
    color: #475569;
}

.pt-pdp-assure svg {
    color: #059669;
}

/* Facts are quiet data, not a row of button-like pills. Auto-fit keeps legacy
   products with more metadata usable until the later content cleanup step. */
.pt-pdp-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    margin: 24px 0 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--pt-store-line);
    border-bottom: 1px solid var(--pt-store-line);
    border-radius: 0;
}

.pt-pdp-fact {
    min-width: 0;
    margin: 0;
    padding: 14px;
    background: transparent;
    border: 0;
}

.pt-pdp-fact:first-child {
    padding-left: 0;
}

.pt-pdp-fact + .pt-pdp-fact {
    border-left: 1px solid var(--pt-store-line);
}

.pt-pdp-fact dt {
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: none;
}

.pt-pdp-fact dd {
    margin: 0;
    color: var(--pt-store-ink);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* About/Same Paper handoff: major sections stay clear, but another heavy card
   is not added just because the section starts. Full Same Paper redesign is Step 5. */
.pt-product-detail-wrap > .pt-pdp-section,
.pt-product-detail-wrap > .pt-product-description {
    margin-top: 28px;
    padding: 28px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--pt-store-line);
    border-radius: 0;
}

.pt-pdp-section-title,
.pt-product-detail-wrap .pt-product-section-title {
    margin: 0 0 10px;
    color: var(--pt-store-ink);
    font-size: 19px;
    font-weight: 700;
}

.pt-product-detail-wrap .pt-product-description-body,
.pt-product-detail-wrap > .pt-product-description > p {
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

/* Shared CTA language for the Store system. */
.pt-btn-cta {
    min-height: 48px;
    padding: 13px 24px;
    background: var(--pt-store-brand);
    color: #fff;
    border: 1px solid var(--pt-store-brand-border);
    border-radius: var(--pt-store-radius-sm);
    box-shadow: 0 1px 2px rgba(13, 132, 120, .20);
    font-size: 15px;
    font-weight: 700;
}

.pt-btn-cta:hover {
    background: var(--pt-store-brand-hover);
    border-color: #115e59;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 132, 120, .24);
}

.pt-btn-cta:focus-visible {
    outline: 3px solid rgba(13, 148, 136, .38);
    outline-offset: 2px;
}

/*
 * The sample button. Three stylesheets can style it -- this one, store.css and
 * preview-embed.css -- and which of them wins depends only on enqueue order, so
 * they all carry the same values. The soft border token stays where it is used
 * for quiet surfaces; a button needs an edge that reads against white.
 */
.pt-btn-soft {
    min-height: 44px;
    padding: 12px 20px;
    background: #fff;
    color: var(--pt-store-brand-hover);
    border: 1.5px solid var(--pt-store-brand);
    border-radius: 8px;
    font-weight: 700;
}

.pt-btn-soft:hover {
    background: var(--pt-store-brand-soft);
    border-color: var(--pt-store-brand-hover);
    color: var(--pt-store-brand-hover);
}

/* Sticky bar behavior remains the existing IntersectionObserver behavior. */
.pt-pdp-bar {
    font-family: var(--pt-store-font);
}

.pt-pdp-bar-price strong {
    color: var(--pt-store-ink);
}

@media (max-width: 899px) {
    .pt-pdp {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px 18px 24px;
        border-radius: 14px;
    }

    .pt-pdp-media {
        position: static;
        align-items: center;
    }

    /* A PDF/book remains a portrait object on mobile. The old 4:3 wrapper made
       it small inside a wide empty box; this keeps it compact and intentional. */
    .pt-pdp-cover {
        width: min(68vw, 230px);
        aspect-ratio: 3 / 4;
        max-height: none;
    }

    .pt-pdp-title {
        margin-top: 13px;
        font-size: 22px;
    }

    .pt-pdp-price-now {
        font-size: 29px;
    }

    .pt-pdp-actions {
        flex-direction: column;
    }

    .pt-pdp-actions .pt-btn {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .pt-pdp-assure {
        display: grid;
        gap: 7px;
    }

    .pt-pdp-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pt-pdp-fact {
        padding: 12px 10px;
    }

    .pt-pdp-fact:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .pt-pdp-fact:nth-child(n+3) {
        border-top: 1px solid var(--pt-store-line);
    }

    .pt-product-detail-wrap > .pt-pdp-section,
    .pt-product-detail-wrap > .pt-product-description {
        margin-top: 24px;
        padding-top: 24px;
    }
}

@media (max-width: 480px) {
    .pt-pdp {
        padding: 16px 14px 20px;
    }

    .pt-pdp-cover {
        width: min(62vw, 210px);
    }

    .pt-pdp-head {
        align-items: center;
    }

    .pt-pdp-title {
        font-size: 20px;
    }

    .pt-pdp-sub {
        margin-bottom: 18px;
        font-size: 13px;
    }

    .pt-pdp-facts {
        margin-top: 20px;
    }

    .pt-pdp-fact dd {
        font-size: 14px;
    }
}

/* ========================================================================== 
   STEP 5 — SAME PAPER / OTHER FORMATS
   ========================================================================== */

/* This is a compact format comparison, not another discovery-card grid.
   Related Products keeps the cover-led card treatment in the next step. */
.pt-product-detail-wrap .pt-same-paper__heading > p {
    max-width: 720px;
    margin: 0;
}

.pt-same-paper__list {
    margin-top: 16px;
    overflow: hidden;
    background: var(--pt-store-surface);
    border: 1px solid var(--pt-store-line);
    border-radius: var(--pt-store-radius-lg);
}

.pt-same-paper__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 155px;
    gap: var(--pt-store-space-5);
    align-items: center;
    padding: 22px 24px;
}

.pt-same-paper__item + .pt-same-paper__item {
    border-top: 1px solid var(--pt-store-line-soft);
}

.pt-same-paper__main {
    display: flex;
    min-width: 0;
    gap: var(--pt-store-space-4);
    align-items: center;
}

.pt-same-paper__icon {
    display: inline-flex;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    background: var(--pt-store-brand-soft);
    border-radius: var(--pt-store-radius);
    color: var(--pt-store-brand);
}

.pt-same-paper__icon svg {
    width: 27px;
    height: 27px;
}

.pt-same-paper__content {
    min-width: 0;
}

.pt-same-paper__title {
    margin: 0;
    color: var(--pt-store-ink);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
}

.pt-same-paper__title a {
    color: inherit;
    text-decoration: none;
}

.pt-same-paper__title a:hover {
    color: var(--pt-store-brand-hover);
}

.pt-same-paper__title a:focus-visible {
    outline: 3px solid rgb(13 148 136 / 28%);
    outline-offset: 3px;
    border-radius: 3px;
}

.pt-same-paper__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 5px 0 0;
    padding: 0;
    color: var(--pt-store-muted);
    font-size: 13px;
    line-height: 1.45;
    list-style: none;
}

.pt-same-paper__facts li {
    margin: 0;
}

.pt-same-paper__facts li + li::before {
    margin-right: 8px;
    color: #cbd5e1;
    content: "·";
}

.pt-same-paper__state {
    justify-self: end;
    white-space: nowrap;
    color: var(--pt-store-ink);
    font-size: 17px;
    font-weight: 800;
}

.pt-same-paper__state--free {
    color: var(--pt-store-success);
}

.pt-same-paper__state--owned,
.pt-same-paper__state--pending {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.pt-same-paper__state--owned {
    background: var(--pt-store-success-soft);
    color: var(--pt-store-success);
}

.pt-same-paper__state--pending {
    background: #fffbeb;
    color: var(--pt-store-warning);
}

.pt-same-paper__action {
    width: 155px;
    min-height: 46px;
    padding: 11px 14px;
    justify-self: end;
    text-align: center;
}

@media (max-width: 700px) {
    .pt-same-paper__list {
        margin-top: 14px;
        border-radius: var(--pt-store-radius);
    }

    .pt-same-paper__item {
        grid-template-areas:
            "main main"
            "state action";
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 12px;
        padding: 16px;
    }

    .pt-same-paper__main {
        grid-area: main;
        gap: 14px;
    }

    .pt-same-paper__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .pt-same-paper__icon svg {
        width: 23px;
        height: 23px;
    }

    .pt-same-paper__title {
        font-size: 16px;
    }

    .pt-same-paper__facts {
        margin-top: 4px;
        font-size: 12px;
    }

    .pt-same-paper__state {
        grid-area: state;
        justify-self: start;
        align-self: center;
        white-space: normal;
    }

    .pt-same-paper__action {
        grid-area: action;
        width: auto;
        min-width: 132px;
        min-height: 44px;
        padding: 10px 13px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .pt-same-paper__item {
        gap: 12px 10px;
        padding: 14px;
    }

    .pt-same-paper__action {
        min-width: 118px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13px;
    }

    .pt-same-paper__state--owned,
    .pt-same-paper__state--pending {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 11px;
    }
}

/* ========================================================================== 
   STEP 6 — RELATED PRODUCTS
   ========================================================================== */

/* Related Products is discovery, so it deliberately does not reuse Step 5's
   comparison rows. Three compact cards expose enough detail to evaluate a new
   product without turning the lower half of Product Detail into another Store. */
.pt-related-products {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--pt-store-line);
}

.pt-related-products__heading {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pt-related-products__heading .pt-product-section-title {
    margin-bottom: 0;
}

.pt-related-products__heading p {
    margin: 5px 0 0;
    color: var(--pt-store-muted);
    font-size: 13px;
}

.pt-related-products__all {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pt-store-brand-hover);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.pt-related-products__all:hover {
    color: var(--pt-store-brand-border);
}

.pt-related-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pt-related-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--pt-store-surface);
    border: 1px solid var(--pt-store-line);
    border-radius: 16px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pt-related-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}

.pt-related-card__visual {
    position: relative;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
    border-bottom: 1px solid var(--pt-store-line-soft);
}

.pt-related-card__cover {
    width: 72px;
    height: 94px;
    object-fit: contain;
    background: #fff;
    border-radius: 5px 8px 8px 5px;
    box-shadow: 7px 8px 18px rgba(15, 23, 42, .10);
}

.pt-related-card__test-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pt-store-brand-soft);
    border: 1px solid var(--pt-store-brand-soft-border);
    border-radius: 18px;
    color: var(--pt-store-brand);
}

.pt-related-card__test-icon svg {
    width: 38px;
    height: 38px;
}

.pt-related-card__status {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pt-store-line);
    border-radius: 999px;
    color: var(--pt-store-text);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-related-card__status--free,
.pt-related-card__status--owned {
    background: var(--pt-store-success-soft);
    border-color: #bbf7d0;
    color: var(--pt-store-success);
}

.pt-related-card__status--pending {
    background: #fffbeb;
    border-color: #fde68a;
    color: var(--pt-store-warning);
}

.pt-related-card__status--discount {
    background: var(--pt-store-success-soft);
    border-color: #bbf7d0;
    color: var(--pt-store-success);
}

.pt-related-card__body {
    flex: 1;
    min-width: 0;
    padding: 14px 14px 10px;
}

.pt-related-card__kind {
    display: block;
    margin-bottom: 5px;
    color: var(--pt-store-brand-hover);
    font-size: 11px;
    font-weight: 850;
}

.pt-related-card__title {
    min-height: 44px;
    margin: 0;
    color: var(--pt-store-ink);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
}

.pt-related-card__title a {
    color: inherit;
    text-decoration: none;
}

.pt-related-card__title a:hover {
    color: var(--pt-store-brand-hover);
}

.pt-related-card__title a:focus-visible,
.pt-related-products__all:focus-visible {
    outline: 3px solid rgb(13 148 136 / 28%);
    outline-offset: 3px;
    border-radius: 3px;
}

.pt-related-card__reason {
    margin: 8px 0 0;
    color: var(--pt-store-muted);
    font-size: 11px;
    line-height: 1.45;
}

.pt-related-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 10px 0 0;
    padding: 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.4;
    list-style: none;
}

.pt-related-card__facts li + li::before {
    padding: 0 6px;
    color: #94a3b8;
    content: "•";
}

.pt-related-card__footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--pt-store-line-soft);
}

.pt-related-card__price {
    min-width: 0;
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.pt-related-card__price strong {
    color: var(--pt-store-ink);
    font-size: 18px;
    font-weight: 850;
}

.pt-related-card__price s {
    color: #94a3b8;
    font-size: 11px;
}

.pt-related-card__price--free strong,
.pt-related-card__price--owned strong {
    color: var(--pt-store-success);
    font-size: 14px;
}

.pt-related-card__price--pending strong {
    color: var(--pt-store-warning);
    font-size: 13px;
}

.pt-related-card__action {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .pt-related-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pt-related-products {
        margin-top: 24px;
        padding-top: 24px;
    }

    .pt-related-products__heading {
        align-items: flex-start;
    }

    .pt-related-products__all {
        display: none;
    }

    .pt-related-products__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pt-related-card {
        display: grid;
        grid-template-areas:
            "visual body"
            "visual footer";
        grid-template-columns: 104px minmax(0, 1fr);
        grid-template-rows: 1fr auto;
    }

    .pt-related-card__visual {
        grid-area: visual;
        width: 104px;
        height: auto;
        min-height: 154px;
        border-right: 1px solid var(--pt-store-line-soft);
        border-bottom: 0;
    }

    .pt-related-card__cover {
        width: 58px;
        height: 78px;
    }

    .pt-related-card__test-icon {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }

    .pt-related-card__test-icon svg {
        width: 30px;
        height: 30px;
    }

    .pt-related-card__status {
        top: 8px;
        right: 8px;
        font-size: 9px;
    }

    .pt-related-card__body {
        grid-area: body;
        padding: 12px 12px 8px;
    }

    .pt-related-card__title {
        min-height: 0;
        font-size: 14px;
    }

    .pt-related-card__reason,
    .pt-related-card__facts {
        font-size: 10.5px;
    }

    .pt-related-card__facts {
        margin-top: 8px;
    }

    .pt-related-card__footer {
        grid-area: footer;
        align-items: flex-end;
        padding: 8px 12px 12px;
    }

    .pt-related-card__price strong {
        font-size: 16px;
    }

    .pt-related-card__price--free strong,
    .pt-related-card__price--owned strong,
    .pt-related-card__price--pending strong {
        font-size: 12px;
    }
}

@media (max-width: 350px) {
    .pt-related-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .pt-related-card__visual {
        width: 88px;
        min-height: 166px;
    }

    .pt-related-card__footer {
        gap: 6px;
    }

    .pt-related-card__action {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 11px;
    }
}
