/* Helpers */
.mb-40 {
    margin-bottom: 40px !important;
}

.mt-12 {
    margin-top: 12px !important;
}

.mb-12 {
    margin-bottom: 12px !important;
}

.ms-32 {
    margin-left: 32px !important;
}

p {
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    color: #6C757D;
}

.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #777777;
    border-radius: 10px;
}

.random-primary span.badge {
    background: #367BF5;
}

.random-info span.badge {
    background: #63B4FF;
}

.random-yellow span.badge {
    background: #FFAF14;
}

.random-pink span.badge {
    background: #D63384;
}

.random-success span.badge {
    background: #27AE60;
}

.random-green span.badge {
    background: #29CC97;
}

.random-purple span.badge {
    background: #6C2ED1;
}
/* End Helpers */

.wrapper {
    display: flex;
    justify-content: center;
    flex-flow: column;
    align-self: center;
    padding: 60px 0 40px 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.cards {
    width: 900px;
    display: grid;
    justify-content: initial;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 32px;
    margin: 0 auto;
}

.card-plan {
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgb(8 36 48 / 12%);
    border-radius: 8px;
    margin-bottom: 0;
    display: flex;
    flex-flow: column;
    padding: 24px;
}

.card-plan-heading span.badge {
    display: inline-block;
    border-radius: 2px;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    color: #FFFFFF;
    padding: 4px 8px;
    max-width: 100%;
    overflow: scroll;
}

.card-plan-body {
    position: relative;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    flex: 1;
}

.plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.plan-list li + li {
    margin-top: 16px;
}

.plan-list li .list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 16px;
    color: #6C757D;
}

.plan-list li .title {
    display: flex;
    width: 60%;
    line-height: 20px;
}

.plan-list li .value {
    width: 40%;
    text-align: right;
    color: #1B2124;
    font-weight: 600;
}

.plan-list li .title i {
    min-width: 20px;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    background-size: 20px;
    background-position: 2px center;
    background-repeat: no-repeat;
}

.plan-list li .title i.duration {
    background-image: url(/redirect-flow/static/img/duration.svg);
}

.plan-list li .title i.limit {
    background-image: url(/redirect-flow/static/img/limit.svg);
}

.plan-list li .title i.calendar {
    background-image: url(/redirect-flow/static/img/calendar.svg);
}

.plan-list li .title .text {
    display: inline-block;
    vertical-align: top;
}

.card-plan-footer {
    width: 100%;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .cards {
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .main-title, .secondary-title, .failed-title {
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        text-align: left;
    }

    .main-title, .failed-title {
        font-style: normal;
        font-weight: 500;
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 32px !important;
    }

    .failed-title {
        margin-bottom: 32px !important;
    }

    .secondary-title {
        font-weight: 600;
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 32px !important;
    }

    .secondary-title + .secondary-title {
        margin-top: -20px;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .cards {
        padding-left: 0;
        padding-right: 0;
    }

    .card-plan {
        display: block;
    }
}

.dropdown {
    position: relative;
}

.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 50px;
}

.dropdown .dropdown-toggle i {
    font-size: 24px;
    margin-left: 8px;
}

.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 100;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dropdown .dropdown-menu .dropdown-item {
    color: #6C2ED1;
    text-align: center;
    padding: 12px;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
}

.dropdown.open .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.chevron {
    width: 28px;
    height: 28px;
    display: inline-block;
    background-image: url(/redirect-flow/static/img/chevron.svg);
    background-position: 2px center;
    background-repeat: no-repeat;
    transform: rotate(180deg);
}

.chevron.up {
    transform: rotate(0);
}

.icon-purple {
    filter: invert(15%) sepia(100%) saturate(6558%) hue-rotate(264deg) brightness(88%) contrast(84%);
}
