
:root {
    --mostly-desaturated-dark-blue: #66739c;
    --mostly-desaturated-dark-blue2: #56657d;
    --very-dark-desaturated-blue: #1d2d46;
    --slightly-desaturated-blue: #a1afd7;
    --light-grayish-blue: #d9e2f8;
    --light-grayish-blue2: #f0f4fe;
    --light-grayish-blue3: #e8ecf9;
    --grayish-blue: #a4aecd;
    --very-pale-mostly-white-blue: #f8fbff;
    --dark-blue: #2e4da7;
    --dark-blue2: #1f3d96;
    --moderate-blue: #4065d0;
    --white: #ffffff;
    --dark-orange-brown-tone: hsl(24.9 76.2 37.8);
    --moderate-orange: #b36d3d;
    --slightly-desaturated-orange: #bf8b69;
    --light-grayish-orange: #efe4da;
    --dark-grey: #888888;
    --very-light-gray-mostly-white: #f9f9f9;
    --pb-background: var(--light-grayish-blue2);
    --pb-footnote-border: var(--light-grayish-blue);
    --pb-footnote-color: var(--mostly-desaturated-dark-blue);
    --pb-account-type-highlighted: var(--dark-orange-brown-tone);
    --pb-account-type-secondary: var(--moderate-orange);
    --pb-account-type-third: var(--slightly-desaturated-orange);
    --pb-account-summary-color: var(--dark-orange-brown-tone);
    --pb-account-summary-bg: var(--light-grayish-orange);
    --pb-sales-support-head: var(--slightly-desaturated-blue);
    --pb-account-type-badge: var(--moderate-orange);
    --primary-color: var(--dark-blue);
    --primary-active: var(--dark-blue2);
    --primary-hover-outline: var(--light-grayish-blue3);
    --primary-hover: var(--moderate-blue);
    --secondary-color: #589e11;
    --secondary-hover: #7db642;
    --secondary-active: #40720d;
}

.price-box__container {
    padding: 1rem 1.5rem;
    background: var(--pb-background);

    &.upgrade {
        background: var(--white);

        .register__details-arrow {
            border-top: 2rem solid transparent;
            border-bottom: 2rem solid transparent;
            border-left: 2rem solid rgba(var(--slightly-desaturated-blue), .25);
        }
    }

    * {
        box-sizing: border-box;
    }

    .ao-price__table__header {
        display: flex;
        flex-wrap: wrap;

        h2 {
            font-size: 2.125rem;
            line-height: normal;
        }

        h3 {
            font-size: 1.25rem;
            font-weight: normal;
        }

        .header--start {
            flex: 1 0 100%;
            position: relative;

            &.flex {
                display: flex;
            }

            .upgrade-arrow {
                position: absolute;
                top: -3rem;
            }
        }

        .header--end {
            flex: 1 0 100%;
        }

        @media screen and (min-width: 768px) {
            flex-wrap: nowrap;
            padding: 0 1rem;

            .header--start {
                flex: 1 0 33.33333%;
                padding: 0 1rem;
            }

            .header--end {
                flex: 1 0 66.66666%;
            }
        }

        @media screen and (min-width: 992px) {
            h2,
            h3 {
                margin: 0;
            }
        }
    }

    .ao-price__table--two-columns {
        .type__row {
            .type__column {
                &:last-child {
                    /*@include box-shadow(50%);*/

                    &::after {
                        display: none;
                    }
                }
            }
        }
    }

    .ao-price__table__footnotes {
        border: 1px solid var(--pb-footnote-border);
        color: var(--pb-footnote-color);
        font-size: 10px;
        padding: 16px;
        margin-top: 24px;

        div {
            margin-bottom: 8px;
        }

        div:last-child {
            margin-bottom: 0;
        }
    }

    .type__row {
        display: flex;
        position: relative;
        flex-wrap: wrap;

        &:not(.account-type__names) {
            .type__column {
                position: relative;

                &::before {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    content: "B";
                    color: #fff;
                    position: absolute;
                    left: 0;
                    top: 0;
                    bottom: 0;
                    font-size: 1rem;
                    font-weight: bold;
                    width: 1.5rem;
                    background-color: var(--moderate-orange);
                }

                &:nth-child(2) {
                    &::before {
                        content: 'P';
                        background-color: var(--dark-orange-brown-tone);
                    }
                }

                &:nth-child(3) {
                    &::before {
                        content: 'T';
                        background-color: var(--slightly-desaturated-orange);
                    }
                }

                @media screen and (min-width: 768px) {
                    position: unset;

                    &::before,
                    &:nth-child(1n)::before {
                        content: '';
                        background-color: transparent;
                    }
                }
            }
        }

        .type__column {
            display: flex;
            flex: 1 0 100%;
            justify-content: center;
            flex-wrap: wrap;
            text-align: center;
            padding: .5rem .25rem;
            overflow: hidden;
            box-shadow: 0 -3px 2px -2px rgba(0, 0, 0, .1);

            > div {
                flex: 1 0 100%;
            }

            > svg {
                width: 1.5rem;
            }

            &:first-child {
                order: 2;
            }

            &:nth-child(2) {
                order: 1;
            }

            &:nth-child(3) {
                order: 3;
            }

            @media screen and (min-width: 768px) {
                flex: 1 0 33.33333%;
                padding: 0 .25rem;
                box-shadow: none;

                &:first-child {
                    order: 1;

                    &::before {
                        content: '';
                        box-shadow: -8px 0 8px -8px rgba(0, 0, 0, .1);
                        position: absolute;
                        width: 1.5rem;
                        left: 0;
                        top: 0;
                        bottom: 0;
                        height: inherit;
                    }
                }

                &:nth-child(2) {
                    order: 2;

                    &::before {
                        content: '';
                        box-shadow: -8px 0 8px -8px rgba(0, 0, 0, .1);
                        position: absolute;
                        width: 1.5rem;
                        left: 33.33337%;
                        top: 0;
                        bottom: 0;
                        height: inherit;
                    }

                    &::after {
                        content: '';
                        box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .1);
                        position: absolute;
                        width: 1.5rem;
                        right: 33.33337%;
                        top: 0;
                        bottom: 0;
                        height: inherit;
                    }
                }
            }
        }

        @media screen and (min-width: 768px) {
            flex-wrap: nowrap;
        }
    }

    .recommended__info {
        color: var(--mostly-desaturated-dark-blue);
        opacity: .9;
        font-size: .625rem;
        margin-bottom: .5rem;

        &.type__row {
            & > .type__column {
                &::before {
                    content: '';
                    box-shadow: none;
                }
            }
        }
    }

    .account-type__registration {
        width: auto;
        box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.20);
        background-color: var(--white);
    }

    .account-type-details__input {
        display: none;

        & ~ .more-information__container {
            height: 0;
            display: none;
            width: 100%;
            background-color: var(--white);
            transition: height .3s ease-in-out;

            svg {
                width: 17px;
            }

            .row {
                &:first-child {
                    box-shadow: inset 0 12px 16px -12px rgba(0, 0, 0, 0.1);
                }

                &:nth-child(2n-1) {
                    background-color: var(--very-light-gray-mostly-white);
                }
            }
        }

        &:checked {
            & ~ .more-information__container {
                height: inherit;
                display: flex;
            }

            & + .more-information > label {
                &::after {
                    transform: rotate(180deg);
                }
            }
        }
    }

    .account-type__select-input {
        display: none;

        &:checked {
            & + label {
                .account-type__select-info {
                    background-color: #d6ebc0;

                    &::before {
                        background: url("../images/registration/check-P1JO8Kr.svg");
                        border: none;
                    }

                    &::after {
                        content: attr(data-checked);
                    }
                }
            }
        }

        & + label {
            display: block;
            width: 100%;
            cursor: pointer;

            .account-type__select-info {
                border: 1px solid var(--very-light-gray-mostly-white);
                padding: .25rem .5rem;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.5rem;
                margin: 1rem auto 0;
                border-radius: .25rem;
                width: fit-content;
                font-size: 14px;

                &::before {
                    content: '';
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    border: 1px solid var(--grayish-blue);
                    background: var(--white);
                }

                &::after {
                    content: attr(data-unchecked);
                    display: inline-block;
                }
            }
        }
    }

    .more-information > label {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        margin: 0 auto -.5rem;
        position: absolute;
        top: -16px;
        left: 0;
        right: 0;
        width: 44px;
        z-index: 1;

        &::after {
            content: '';
            display: inline-block;
            background: url("../images/arrow-ip7Ncdt.svg") no-repeat -1px -3px;
            height: 0.75rem;
            width: 0.75rem;
            transition: transform .3s ease-in-out;
        }
    }

    .account-type__names,
    .account-type__description {
        &.type__row {
            box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .1);

            .type__column:nth-child(3) {
                display: none;

                @media screen and (min-width: 768px) {
                    display: inherit;
                }
            }
        }
    }

    .account-type__names {
        align-items: flex-end;
        position: relative;

        .type__column {
            color: var(--white);
            font-size: 1.25rem;
            font-weight: 700;
            padding: .75rem 0;
            background-color: var(--pb-account-type-highlighted);
            text-transform: uppercase;
            line-height: normal;
            border-start-start-radius: 1px;
            border-start-end-radius: 1px;
            text-align: center;

            &:first-child {
                background-color: var(--pb-account-type-secondary);
            }

            &:nth-child(2) {
                &::before {
                    content: '';
                    display: inline-block;
                }
            }

            &:nth-child(3) {
                background-color: var(--pb-account-type-third);
            }
        }
    }

    .account-type__description {
        > .type__column {
            padding: 1rem 1rem 1rem 2rem;
            color: var(--pb-account-summary-color);
            background-color: var(--pb-account-summary-bg);
            font-size: .875rem;
            font-weight: bold;
            align-items: center;

            @media screen and (min-width: 768px) {
                padding: 1rem;
            }
        }
    }

    .account-type__price {
        padding: 0;
        box-shadow: 8px 8px 8px -8px rgba(0, 0, 0, 0.1);
        background-color: var(--white);

        .button__wrapper {
            display: flex;
            justify-content: center;
            margin-top: .75rem;

            .button {
                align-self: end;
            }
        }

        @media screen and (min-width: 768px) {
            padding: 1rem 0;
        }
    }


    .account__advantages {
        .advantage {
            display: flex;
            background-color: var(--very-light-gray-mostly-white);
            color: var(--very-dark-desaturated-blue);
            font-size: .75rem;
            box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .1);
            flex-wrap: wrap;

            &:nth-child(2n) {
                background-color: var(--white);
            }
        }

        .advantage__text {
            flex: 1 0 100%;
            min-height: 1px;
            text-align: left;
            font-size: .75rem;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            padding: 1rem;

            & > * {
                flex: 1 0 100%;
            }
        }

        .advantage__info {
            flex: 1 0 100%;
            min-height: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;

            @media screen and (min-width: 768px) {
                margin: -.5rem 0;
            }
        }

        @media screen and (min-width: 768px) {
            padding-left: 1rem;
            margin-right: 1rem;

            .advantage__text {
                flex: 1 0 33.33333%;
            }

            .advantage__info {
                flex: 1 0 66.6666%;
            }
        }
    }

    .sales__support {
        background-color: var(--pb-sales-support-head);
        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
        color: var(--white);
        padding: .75rem 1rem;
        position: relative;
        text-align: center;
        z-index: 2;

        &::before {
            width: 0;
            height: 0;
            border-top: 4px solid var(--pb-sales-support-head);
            border-left: 8px solid transparent;
            position: absolute;
            left: 0;
            bottom: -4px;
            content: '';
            display: block;
        }

        &::after {
            width: 0;
            height: 0;
            border-top: 4px solid var(--pb-sales-support-head);
            border-right: 8px solid transparent;
            position: absolute;
            right: 0;
            bottom: -4px;
            content: '';
            display: block;
        }

        @media screen and (min-width: 768px) {
            margin: 0 .5rem 0 0;

            ~ .account__advantages {
                &:last-child {
                    .advantage {
                        box-shadow: 0 8px 8px -8px rgba(0, 0, 0, .1);
                    }
                }
            }
        }

        @media screen and (min-width: 992px) {
            margin: 0 .5rem 0 -.5rem;
        }
    }

    .account-badge {
        background-color: var(--white);
        color: var(--white);
        position: absolute;
        top: -6px;
        left: 10%;
        height: 28px;
        width: 28px;
        padding: .25rem;
        border-radius: 0 0 2px 2px;
        box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.1);

        @media screen and (min-width: 768px) {
            left: 60%;
        }

        &::before {
            width: 0;
            height: 0;
            border-bottom: 6px solid var(--pb-account-type-badge);
            border-left: 3px solid transparent;
            position: absolute;
            left: -3px;
            top: 0;
            content: '';
            display: block;
        }

        &::after {
            width: 0;
            height: 0;
            border-bottom: 6px solid var(--pb-account-type-badge);
            border-right: 3px solid transparent;
            position: absolute;
            right: -3px;
            top: 0;
            content: '';
            display: block;
        }

        svg {
            width: 12px;
            height: 12px;

            margin: auto;
            top: 0;
            bottom: 0;
            position: absolute;
            left: 0;
            right: 0;
        }
    }

    .register__details {
        display: flex;
        flex: 1 0 auto;
        align-items: end;
        position: relative;

        .details__content {
            background-color: rgba(var(--slightly-desaturated-blue), .25);
            padding: 1rem;
            display: flex;
            flex: 0 0 80%;
            flex-direction: column;
            margin-left: -1rem;
            border-radius: 4px 0 0 4px;

            & > div {
                flex: 1 0 auto;
                font-size: .75rem;
                white-space: nowrap;
                color: var(--mostly-desaturated-dark-blue);
            }
        }
    }

    .register__details-arrow {
        border-top: 2.5rem solid transparent;
        border-bottom: 2.5rem solid transparent;
        border-left: 2.5rem solid rgba(var(--slightly-desaturated-blue), .25);

        &.arrow--small {
            border-top: 2rem solid transparent;
            border-bottom: 2rem solid transparent;
            border-left: 2rem solid rgba(var(--slightly-desaturated-blue), .25);
        }
    }

    &.container--register {
        .account-type {
            background-color: var(--white);

            .account-badge {
                top: -5px;
                right: unset;
                left: 1rem;
            }

            &:nth-of-type(1) {
                .account-type__name {
                    background-color: var(--dark-orange-brown-tone);
                }
            }

            &:nth-of-type(2) {
                .account-type__name {
                    background-color: var(--moderate-orange);
                }
            }

            &:nth-of-type(3) {
                .account-type__name {
                    background-color: var(--slightly-desaturated-orange);
                }
            }
        }

        .account-type__name {
            color: var(--white);
        }

        .account-type__summary {
            color: var(--dark-orange-brown-tone);
            background-color: var(--light-grayish-orange);
            font-weight: bold;
        }
    }

    .button {
        border-radius: 4px;
        border: 0;
        font-size: .75rem;
        font-weight: 400;
        letter-spacing: 1px;
        line-height: normal;
        text-align: center;
        color: var(--white);
        min-width: 150px;
        display: inline-block;
        transition: background-color .3s ease-in-out;
        outline: none;
        cursor: pointer;
        padding: .5rem;
        height: auto;
        text-decoration: none;

        &.primary--outline {
            border: 1px solid var(--dark-blue);
            background-color: var(--very-pale-mostly-white-blue);
            color: var(--primary-color);
            font-family: Lato, Verdana, Arial, Helvetica, sans-serif;

            &:active {
                border: 1px solid var(--primary-active);
                color: var(--primary-active);
            }

            &:hover, &:focus {
                background-color: var(--primary-hover-outline);
                border: 1px solid var(--primary-hover);
                color: var(--primary-hover);
            }
        }

        &.green {
            background-color: var(--secondary-color);

            &:hover {
                background-color: var(--secondary-hover);
            }

            &:active {
                background-color: var(--secondary-active);
            }

            width: 100%;
            margin: 0 min(10%, 1.5rem);
        }
    }

    .ao-color--dark-grey {
        color: var(--dark-grey);
    }

    .ao-text-size--xxs {
        font-size: .5rem;
    }

    .ao-text-size--xs {
        font-size: .75rem;
    }

    .ao-text-size--sm {
        font-size: 1rem;
    }

    .ao-font-weight--bold {
        font-weight: bold;
    }
}

.price-dialog {
    padding: 0;
    width: 100%;

    &[open] {
        main {
            padding: 0;

            .price-box__container {
                background-image: linear-gradient(179deg, #fff 0%, #f4f8ff 21%, #eef5ff 81%, #fff 100%);
                padding: 1rem 0;
            }
        }

        @media (min-width: 992px) {
            width: 80vw;

            main {
                .price-box__container {
                    padding: 1rem 1.5rem;
                }
            }
        }
    }
}


@media screen and (max-width: 575.8px) {
    .not--mobile {
        visibility: collapse;
        height: 0;
    }
}

@media screen and (min-width: 576px) and (max-width: 767.8px) {
    .not--landscape {
        visibility: collapse;
        height: 0;
    }
}

@media screen and (min-width: 768px) and (max-width: 991.8px) {
    .not--tablet {
        visibility: collapse;
        height: 0;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199.8px) {
    .not--desktop {
        visibility: collapse;
        height: 0;
    }
}

@media screen and (min-width: 1199.8px) {
    .not--large-desktop {
        visibility: collapse;
        height: 0;
    }
}

.ao-mt--1 {
    margin-top: .25rem;
}

.ao-mt--1 {
    margin-top: .5rem;
}

.ao-mb--2 {
    margin-bottom: .5rem;
}

.ao-mb--3 {
    margin-bottom: .75rem;
}

.ao-py--4 {
    padding-block: 1rem;
}
