/* Сравнение паков бандла (Silver / Gold / Platinum) в описании товара.
   Подключается в product.php, только если в описании есть .bundle_packs */

.bundle_packs {
    --bp-green: #0a8f60;
    --bp-green-dark: #076b48;
    --bp-chip-bg: #e4f7ef;
    --bp-chip-text: #0b3d2b;
    --bp-border: #e2e2e2;
    --bp-row-border: #f0f0f0;
    --bp-muted: #9aa1ab;
    --bp-muted-icon: #c3c8cf;
    --bp-text: #121212;
    --bp-white: #fff;
    --bp-silver-border: #e6e8eb;
    --bp-silver-bg: #f7f7f7;
    --bp-gold-border: #ffecc8;
    --bp-gold-bg: #fff9e8;
    --bp-platinum-border: #cde8ff;
    --bp-platinum-bg: #f0f8ff;
    --bp-icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20 20 4M8 4h12v12'/%3E%3C/svg%3E");
    --bp-icon-swap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 4-4 4 4M7 4v16M21 16l-4 4-4-4M17 20V4'/%3E%3C/svg%3E");
    --bp-icon-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5v14l6-3 6 3 6-3v-14l-6 3-6-3-6 3zM9 3.5v14M15 6.5v14'/%3E%3C/svg%3E");
    --bp-icon-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.6a2 2 0 0 1-1 1.7l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.7v-.6a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    --bp-icon-arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
    --bp-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E");
    --bp-icon-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");

    color: var(--bp-text);
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    font-family: Roboto-Regular, Roboto, sans-serif;
    gap: 0.625rem;
    inline-size: 100%;
}

.bundle_packs_common {
    background-color: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: 0.625rem;
    padding-block: 1.125rem;
    padding-inline: 1.1875rem;
}

.bundle_packs .bundle_packs_common_title {
    color: var(--bp-green-dark);
    font-family: Roboto-Black, Roboto, sans-serif;
    font-size: 0.8125rem;
    line-height: 0.9375rem;
    text-transform: uppercase;
}

.bundle_packs_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3125rem;
    margin-block-start: 0.75rem;
}

.bundle_packs_chip {
    align-items: center;
    background-color: var(--bp-chip-bg);
    border-radius: 1.25rem;
    color: var(--bp-chip-text);
    display: inline-flex;
    font-family: Roboto-Medium, Roboto, sans-serif;
    font-size: 0.875rem;
    gap: 0.25rem;
    line-height: 1rem;
    padding-block: 0.5rem;
    padding-inline: 0.6875rem;
}

.bundle_packs_chip::before,
.bundle_packs_value_up::before,
.bundle_packs_row_yes::after,
.bundle_packs_row_no::after {
    content: '';
    flex-shrink: 0;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.bundle_packs_chip::before {
    background-color: var(--bp-green);
    block-size: 0.875rem;
    inline-size: 0.875rem;
}

.bundle_packs_chip_leveling::before {
    mask-image: var(--bp-icon-arrow-up-right);
}

.bundle_packs_chip_spec::before {
    mask-image: var(--bp-icon-swap);
}

.bundle_packs_chip_flight::before {
    mask-image: var(--bp-icon-map);
}

.bundle_packs_chip_prof::before {
    mask-image: var(--bp-icon-gear);
}

.bundle_packs_tiers {
    display: grid;
    gap: 0.625rem;
    grid-template-columns: minmax(0, 1fr);
}

.bundle_packs_tier {
    background-color: var(--bp-white);
    border: 2px solid var(--bp-silver-border);
    border-radius: 0.625rem;
    overflow: hidden;
}

.bundle_packs_tier_gold {
    border-color: var(--bp-gold-border);
}

.bundle_packs_tier_platinum {
    border-color: var(--bp-platinum-border);
}

.bundle_packs_head {
    align-items: center;
    background-color: var(--bp-silver-bg);
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    min-block-size: 2.9375rem;
    padding-block: 0.5rem;
    padding-inline: 1.125rem 0.75rem;
}

.bundle_packs_tier_gold .bundle_packs_head {
    background-color: var(--bp-gold-bg);
}

.bundle_packs_tier_platinum .bundle_packs_head {
    background-color: var(--bp-platinum-bg);
}

.bundle_packs .bundle_packs_name {
    font-family: Roboto-Bold, Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.1875rem;
}

.bundle_packs_badge {
    border-radius: 0.5rem;
    color: var(--bp-white);
    font-family: Roboto-Bold, Roboto, sans-serif;
    font-size: 0.75rem;
    line-height: 0.875rem;
    padding-block: 0.3125rem;
    padding-inline: 0.6875rem;
}

.bundle_packs_badge_popular {
    background-image: linear-gradient(278.22deg, #e60032 10.79%, #f6916a 69.84%, #fff200 111.03%);
}

.bundle_packs_badge_vip {
    background-image: linear-gradient(96.01deg, #6b00ef 4.99%, #00d9ff 105.76%);
}

.bundle_packs_row {
    align-items: center;
    border-block-start: 1px solid var(--bp-row-border);
    display: flex;
    font-size: 0.875rem;
    gap: 0.5rem;
    justify-content: space-between;
    line-height: 1rem;
    min-block-size: 2.625rem;
    padding-block: 0.5rem;
    padding-inline: 0.625rem;
}

.bundle_packs_value {
    font-family: Roboto-Bold, Roboto, sans-serif;
    white-space: nowrap;
}

.bundle_packs_value_up {
    align-items: center;
    color: var(--bp-green-dark);
    display: inline-flex;
    gap: 0.25rem;
}

.bundle_packs_value_up::before {
    background-color: var(--bp-green);
    block-size: 0.875rem;
    inline-size: 0.875rem;
    mask-image: var(--bp-icon-arrow-up);
}

.bundle_packs_row_yes::after,
.bundle_packs_row_no::after {
    block-size: 1.125rem;
    inline-size: 1.125rem;
}

.bundle_packs_row_yes::after {
    background-color: var(--bp-green);
    mask-image: var(--bp-icon-check);
}

.bundle_packs_row_no {
    color: var(--bp-muted);
    text-decoration: line-through;
}

.bundle_packs_row_no::after {
    background-color: var(--bp-muted-icon);
    mask-image: var(--bp-icon-cross);
}

/* Три карточки в ряд, когда колонка описания шире 560px */
@container (min-width: 560px) {
    .bundle_packs_tiers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
