/* Licence pages: tabs and the price board. */

.licence-banner .banner-text h1 span:after {
    left: -32px;
}

.wh-licence-tab.nav-tabs .nav-item.show .nav-link,
.wh-licence-tab.nav-tabs .nav-link.active {
    color: var(--bs-dark);
}

.wh-licence {
    justify-content: flex-start;
}

.wh-licence > div:nth-child(3) {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.wh-licence > div:nth-child(4) .btn {
    width: 100%;
}

/* Licence catalog: original sidebar + row, tightened like a price table. */
.licence-board .wh-licence-tab.nav-tabs {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(19, 19, 19, .04);
    position: sticky;
    top: 92px;
}

.licence-board .wh-licence-tab.nav-tabs .nav-link {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef2f6;
    border-radius: 0;
    background: #fff;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    padding: 16px 18px;
    box-shadow: none;
}

.licence-board .wh-licence-tab.nav-tabs .nav-item:last-child .nav-link {
    border-bottom: 0;
}

.licence-board .wh-licence-tab.nav-tabs .nav-link:hover {
    color: var(--bs-success-text);
    background: #f7fbf9;
}

.licence-board .wh-licence-tab.nav-tabs .nav-link.active {
    color: var(--bs-success-text);
    background: #f3fbf8;
    box-shadow: inset 3px 0 0 var(--bs-success);
}

.licence-board .tab-pane .heading {
    margin: 0 0 14px;
}

.licence-board .tab-content {
    transition: height .32s ease;
}

.licence-board .wh-licence {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 16px;
    margin: 0 0 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(19, 19, 19, .035);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.licence-board .wh-licence:hover {
    border-color: #b7e0d4;
    box-shadow: 0 10px 24px rgba(15, 159, 120, .08);
}

.licence-board .wh-licence > div {
    flex: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.licence-board .wh-licence > div:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 64px;
    height: auto;
    background: none;
}

.licence-board .wh-licence > div:nth-child(1) img {
    height: 36px;
    width: auto;
    max-width: 64px;
    object-fit: contain;
}

.licence-board .wh-licence > div.wh-lic-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--bs-dark);
}

.licence-board .wh-lic-name span {
    display: block;
    max-width: 42em;
    margin-top: 2px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--bs-dark-gray);
}

.licence-board .wh-licence > div:nth-child(3) {
    justify-content: flex-end;
    text-align: right;
    color: var(--bs-dark);
    white-space: nowrap;
}

.licence-board .wh-licence .item-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.licence-board .wh-licence .lic-amt {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bs-dark);
}

.licence-board .wh-licence .lic-amt sup {
    position: static;
    font-size: 1em;
    font-weight: inherit;
    line-height: 1;
}

.licence-board .wh-licence .lic-per {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-dark-gray);
}

.licence-board .wh-licence > div:nth-child(4) {
    width: auto;
}

.licence-board .wh-licence .btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 46px;
    padding: 0 18px;
    font-size: 15px;
    border-radius: var(--mh-radius-control);
    font-weight: 600;
    background: var(--mh-fill-green);
    border-color: var(--mh-fill-green);
    box-shadow: 0 6px 14px rgba(15, 159, 120, .18);
}

.licence-board .wh-licence .btn-success:hover,
.licence-board .wh-licence .btn-success:focus-visible {
    background: var(--mh-fill-green-press);
    border-color: var(--mh-fill-green-press);
    color: var(--mh-on-brand);
}

.licence-board .h-title {
    font-size: 24px;
}

@media (max-width: 991.98px) {
    .licence-board .wh-licence-tab.nav-tabs {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-bottom: 16px;
    }

    .licence-board .wh-licence-tab.nav-tabs .nav-item {
        flex: 1 0 auto;
    }

    .licence-board .wh-licence-tab.nav-tabs .nav-link {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        white-space: nowrap;
        border-bottom: 0;
        border-right: 1px solid #eef2f6;
        box-shadow: none;
    }

    .licence-board .wh-licence-tab.nav-tabs .nav-link.active {
        box-shadow: inset 0 -3px 0 var(--bs-success);
    }

    .licence-board .wh-licence {
        grid-template-columns: 52px minmax(0, 1fr);
        row-gap: 12px;
    }

    .licence-board .wh-licence > div:nth-child(3),
    .licence-board .wh-licence > div:nth-child(4) {
        grid-column: 1 / -1;
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        white-space: normal;
    }

    .licence-board .wh-licence > div:nth-child(4) {
        margin-top: -4px;
    }

    .licence-board .wh-licence .item-price {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .wh-licence {
        flex-direction: column;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .licence-board .tab-content {
        transition: none;
    }
}
