.hp-pricing {
    --hp-pricing-camstreamer-color: #5489de;
    --hp-pricing-camoverlay-color: #f2a73b;
    --hp-pricing-camswitcher-color: #5e2c80;
    --hp-pricing-camscripter-color: #4daba3;
    --hp-pricing-bundle-color: #3a597f;
    --hp-pricing-cloud-color: #51b2d8;
    --hp-pricing-cloud-button-color: #1f6f8f;
    --hp-pricing-planetracker-color: #6b8299;
    --hp-pricing-sport-color: #58b743;
    --hp-pricing-ink-color: #13202e;
    --hp-pricing-text-color: #2c3a47;
    --hp-pricing-muted-color: #4b5b6a;
    --hp-pricing-highlight-color: #f2a73b;
    --hp-pricing-row-hover-color: #f7f9fc;

    padding: 0 64px 48px;
    overflow-x: clip;
    background: #fff;
    color: var(--hp-pricing-ink-color);
    font-family: OpenSans, 'Open Sans', sans-serif;
}

.hp-pricing *,
.hp-pricing *::before,
.hp-pricing *::after {
    box-sizing: border-box;
}

.hp-pricing a:focus-visible,
.hp-pricing button:focus-visible {
    outline: 3px solid #408be5;
    outline-offset: 2px;
}

.hp-pricing__banner {
    margin: 0 -64px;
    padding: 64px 24px;
    background: #a7bcce;
    text-align: center;
}

.hp-pricing__title {
    margin: 0;
    font-family: Gotham, sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #000;
}

.hp-pricing__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1145px;
    margin: 20px auto 0;
}

.hp-pricing__highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-pricing__highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--hp-pricing-ink-color);
}

.hp-pricing__highlight svg {
    flex-shrink: 0;
    color: var(--hp-pricing-highlight-color);
}

.hp-pricing__groups {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 24px;
}

.price-table {
    --price-table-button-color: var(--hp-pricing-bundle-color);
    --price-table-columns: 22px 32px minmax(0, 1fr) 190px 340px;

    display: flex;
    flex-direction: column;
}

.price-table--cloud {
    --price-table-button-color: var(--hp-pricing-cloud-button-color);
}

.price-table__head {
    display: grid;
    grid-template-columns: var(--price-table-columns);
    grid-template-areas: 'title title title price badges';
    column-gap: 14px;
    align-items: center;
    padding: 0 16px 12px 4px;
}

.price-table__head-title {
    grid-area: title;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

.price-table__head-title--full {
    grid-column: 1 / -1;
}

.price-table__title {
    margin: 0;
    font-weight: 500;
    color: var(--price-table-button-color);
}

.price-table--custom .price-table__title {
    color: var(--hp-pricing-ink-color);
}

.price-table__subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-pricing-muted-color);
}

.price-table__head-price {
    grid-area: price;
    display: flex;
    justify-content: flex-end;
    padding: 5.5px 0;
    font-family: Gotham, sans-serif;
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
    color: var(--hp-pricing-text-color);
}

.price-table__head-badges {
    grid-area: badges;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 8px;
}

.price-table__head-slot {
    display: flex;
    justify-content: center;
}

.price-table__head-slot--ghost {
    width: 150px;
}

.price-table__head-slot--solid {
    width: 160px;
}

.price-table__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    font-family: Gotham, sans-serif;
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
    color: var(--hp-pricing-muted-color);
}

.price-table__badge--accent {
    color: var(--price-table-button-color);
}

.price-table__rows {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    box-shadow:
        0 2px 6px rgba(19, 32, 46, 0.04),
        0 8px 24px rgba(19, 32, 46, 0.07);
}

.price-table__row {
    --price-table-name-color: var(--hp-pricing-bundle-color);

    position: relative;
    display: grid;
    grid-template-columns: var(--price-table-columns);
    grid-template-areas: 'chevron icon name price actions';
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid #eef2f6;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.price-table__row:first-child {
    border-top: 0;
    border-radius: 15px 15px 0 0;
}

.price-table__row:last-child {
    border-radius: 0 0 15px 15px;
}

.price-table__row:hover {
    background: var(--hp-pricing-row-hover-color);
}

.price-table__row--camstreamer {
    --price-table-name-color: var(--hp-pricing-camstreamer-color);
}

.price-table__row--camoverlay {
    --price-table-name-color: var(--hp-pricing-camoverlay-color);
}

.price-table__row--camswitcher {
    --price-table-name-color: var(--hp-pricing-camswitcher-color);
}

.price-table__row--camscripter {
    --price-table-name-color: var(--hp-pricing-camscripter-color);
}

.price-table__row--cloud {
    --price-table-name-color: var(--hp-pricing-cloud-color);
}

.price-table__row--planetracker {
    --price-table-name-color: var(--hp-pricing-planetracker-color);
}

.price-table__row--sport {
    --price-table-name-color: var(--hp-pricing-sport-color);
}

.price-table__chevron {
    grid-area: chevron;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8a96a3;
    cursor: pointer;
}

.price-table__chevron:hover,
.price-table__row[data-open='true'] .price-table__chevron {
    color: var(--hp-pricing-ink-color);
}

.price-table__chevron svg {
    transition: transform 0.15s ease;
}

.price-table__row[data-open='true'] .price-table__chevron svg {
    transform: rotate(90deg);
}

.price-table__icon {
    grid-area: icon;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 40px;
}

.price-table__icon img {
    width: auto;
    height: auto;
    max-width: 32px;
    max-height: 30px;
    border-radius: 6px;
    object-fit: contain;
}

.price-table__row--bundle .price-table__icon img {
    border-radius: 0;
}

.price-table__name {
    grid-area: name;
    align-self: stretch;
    display: flex;
    align-items: center;
    min-width: 0;
}

.price-table__name-text {
    font-family: Gotham, sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.2;
    text-decoration: none;
    color: var(--price-table-name-color);
}

a.price-table__name-text:hover,
a.price-table__name-text:focus-visible {
    color: var(--price-table-name-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.price-table__tip {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--price-table-columns);
    column-gap: 14px;
    align-items: center;
    padding: 0 16px;
    border-radius: inherit;
    background: var(--hp-pricing-row-hover-color);
    box-shadow: 0 10px 28px rgba(19, 32, 46, 0.16);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.15s ease,
        visibility 0s linear 0.15s;
}

.price-table__tip-content {
    grid-column: 3 / 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.price-table__description {
    max-width: calc(100% - 112px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--hp-pricing-text-color);
}

.price-table__name
    > a.price-table__name-text:focus-visible
    ~ .price-table__tip
    a.price-table__name-text {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.price-table__chevron,
.price-table__icon,
.price-table__price,
.price-table__actions {
    position: relative;
    z-index: 2;
}

.price-table__row[data-open='true'] {
    z-index: 1;
}

.price-table__row[data-open='true'] .price-table__tip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.15s ease;
}

.price-table__price {
    grid-area: price;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    font-family: Gotham, sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.15;
    color: #2b2b2b;
}

.price-table__actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.price-table__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    font-family: Gotham, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        filter 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.price-table__button:hover,
.price-table__button:focus-visible {
    text-decoration: none;
}

.price-table__button--solid {
    width: 160px;
    border: 1.5px solid var(--price-table-button-color);
    background: var(--price-table-button-color);
    color: #fff;
}

.price-table__button--solid:hover,
.price-table__button--solid:focus-visible {
    filter: brightness(0.9);
    color: #fff;
}

.price-table__button--ghost {
    width: 150px;
    border: 2px solid var(--price-table-button-color);
    background: #fff;
    color: var(--price-table-button-color);
}

.price-table__button--ghost:hover,
.price-table__button--ghost:focus-visible {
    background: var(--price-table-button-color);
    color: #fff;
}

.price-table__button--contact {
    min-width: 160px;
    padding: 0 28px;
}

.price-table__button-spacer {
    display: block;
    width: 150px;
    flex-shrink: 0;
}

@media (min-width: 1101px) {
    .price-table__row:not([data-suppressed='true']):hover,
    .price-table__row:not([data-suppressed='true']):focus-within {
        z-index: 1;
    }

    .price-table__row:not([data-suppressed='true']):hover .price-table__tip,
    .price-table__row:not([data-suppressed='true']):focus-within .price-table__tip {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.15s ease;
    }

    .price-table__row:not([data-suppressed='true']):hover .price-table__chevron,
    .price-table__row:not([data-suppressed='true']):focus-within .price-table__chevron {
        color: var(--hp-pricing-ink-color);
    }

    .price-table__row:not([data-suppressed='true']):hover .price-table__chevron svg,
    .price-table__row:not([data-suppressed='true']):focus-within .price-table__chevron svg {
        transform: rotate(90deg);
    }
}

@media (max-width: 1100px) {
    .price-table__head {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 8px;
        padding: 0 4px 14px;
        text-align: center;
    }

    .price-table__head-title {
        flex-basis: 100%;
        justify-content: center;
    }

    .price-table__head-badges {
        flex-direction: row;
        justify-content: center;
    }

    .price-table__head-slot--ghost,
    .price-table__head-slot--solid {
        width: auto;
    }

    .price-table__row {
        grid-template-columns: 22px 32px minmax(0, 1fr) auto;
        grid-template-areas:
            'chevron icon name price'
            '. . tip tip'
            '. . actions actions';
        row-gap: 0;
    }

    .price-table__name {
        display: contents;
    }

    .price-table__name > .price-table__name-text {
        grid-area: name;
    }

    .price-table__tip {
        grid-area: tip;
        position: static;
        display: none;
        padding: 4px 0 10px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: none;
    }

    .price-table__tip .price-table__name-text {
        display: none;
    }

    .price-table__row[data-open='true'] .price-table__tip {
        display: block;
    }

    .price-table__tip-content {
        display: block;
    }

    .price-table__description {
        display: block;
        max-width: none;
        overflow: visible;
        white-space: normal;
    }

    .price-table__actions {
        justify-content: flex-start;
        margin-top: 6px;
    }

    .price-table__button-spacer {
        display: none;
    }
}

@media (max-width: 720px) {
    .hp-pricing {
        padding: 0 16px 40px;
    }

    .hp-pricing__banner {
        margin: 0 -16px;
    }

    .price-table__button {
        min-height: 44px;
    }
}

@media (max-width: 640px) {
    .price-table__row {
        grid-template-areas:
            'chevron icon name price'
            'tip tip tip tip'
            'actions actions actions actions';
    }

    .price-table__actions a {
        flex: 1 1 0;
    }

    .price-table__button--solid,
    .price-table__button--ghost {
        width: auto;
    }

    .price-table__chevron {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .price-table__row,
    .price-table__tip,
    .price-table__chevron svg,
    .price-table__button {
        transition: none;
    }
}
