/* GENERAL STYLINGS*/
.fmc-simulator__container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background-color: #fff;
}

@media (max-width: 639px) {
    .fmc-simulator__container {
        padding: 16px;
    }
}

.fmc-simulator__container__textblock {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fmc-simulator__container.bg__grey {
    background-color: #f1f1f1;
}

.fmc-simulator__container.bg__green {
    background-color: #C9EB99;
}

.fmc-simulator__container.bg__yellow {
    background-color: #F8EFDC;
}

.fmc-simulator__container.bg__red {
    background-color: #FFB7A8;
}

.fmc-simulator__container.border {
    border: 1px solid #dbdbdb;
}

.fmc-simulator__container.rounded {
    border-radius: 24px;
}


.fmc-simulator #drag-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

#simulator-how-to {
    display: flex;
    gap: 24px;
    align-items: center;
}

#simulator-how-to p {
    display: flex !important;
    align-items: center;
    gap: 4px;
}

@media (max-width: 639px) {
    #simulator-how-to {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

#simulator-how-to button {
    margin: 0;
}

#simulator-how-to p {
    display: inline-block;
    cursor: pointer;
    transition: 0.2s color ease-in-out;
}

#simulator-how-to p:hover {
    color: #E20074;
}

.fmc-simulator .legende {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #dbdbdb;
    padding-bottom: 16px;
}

@media (max-width: 639px) {
    .fmc-simulator .legende{
        flex-direction: column;
        gap: 8px;
    }
}

.fmc-simulator .legende .legende-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fmc-simulator .legende .legende-item span {
    line-height: 1;
}

.fmc-simulator .legende .flag {
    display: flex;
    justify-content: center;
    margin: 0;
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    text-align: center;
    color: #fff;
}

.fmc-simulator .legende .flag.m-bonus {
    background-color: #E20074;
}

.fmc-simulator .legende .flag.m-bonus-loss {
    color: #838383;
    background-color: #dbdbdb;
}

.fmc-simulator .legende .flag.plus {
    background-color: #74E281;
}

.fmc-simulator .legende .flag.family {
    background-color: #95A5F3;
}


.fmc-simulator__grid .fmc-simulator__portfolio {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    height: 400px;
}

@media (max-width: 639px) {
    .fmc-simulator__grid .fmc-simulator__portfolio {
        height: auto;
    }
}

.fmc-simulator .fmc-simulator__container__title {
    display: flex;
    gap: 16px;
    align-items: center; 
}

.fmc-simulator .fmc-simulator__grid {
    display: flex;
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 639px) {
    .fmc-simulator .fmc-simulator__grid {
        flex-direction: column;
    }
}

.fmc-simulator .fmc-simulator__grid .fmc-simulator__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
    min-width: 0;
}

.fmc-simulator__grid > .fmc-simulator__col:nth-child(1) {
    flex: 0 0 auto;
}
.fmc-simulator__grid > .fmc-simulator__col:nth-child(2) {
    flex: 0 0 auto;
}
.fmc-simulator__grid > .fmc-simulator__col:nth-child(3) {
    flex: 1;
}

.fmc-simulator__grid .fmc-simulator__portfolio .drop{
    display: flex;
    gap: 16px; 
    grid-template-columns: repeat(4, 1fr);
    align-content: start;
    padding: 16px;
    box-shadow: inset 0 0 0 rgba(0,0,0,0);
    transition: 0.5s box-shadow ease-in-out;
    transition: 0.5s background-color ease-out;
    border-radius: 20px;
    background-color: rgba(0,0,0,0);
    scrollbar-gutter: stable both-edges; 
}

.fmc-simulator__grid .fmc-simulator__portfolio .drop#drop-tariff-old {
    width: calc((92px * 2) + 16px + 24px + (16px * 2));
    min-height: calc((92px + 16px) * 2);

    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-y: scroll;
    scrollbar-gutter: stable both-edges;
}

.fmc-simulator__grid .fmc-simulator__portfolio .drop#drop-tariff-change,
.fmc-simulator__grid .fmc-simulator__portfolio .drop#drop-tariff-new {
    width: calc((92px * 4) + 16px + 24px + (16px * 2));
    min-height: calc((92px + 16px) * 1 + 28px);
    overflow-x: scroll;
}


@media (max-width: 639px) {
    .fmc-simulator__grid .fmc-simulator__portfolio .drop{
        display: flex !important;
        height: auto !important;
        overflow-x: scroll;
        overflow-y: hidden !important;
        padding: 8px 0 32px 0;
        gap: 8px;
        min-height: calc((60px + 8px + 44px)) !important;
        width: 100% !important
    }

    .fmc-simulator__grid .fmc-simulator__portfolio .drop#drop-tariff-new {
        padding: 8px 0;
        min-height: calc((60px + 8px + 20px)) !important;
    }

}

.fmc-simulator__grid .fmc-simulator__portfolio .drop.is-dragging-target{
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    background-color: rgba(0,0,0, 0.05);
}

.starter-info:after {
    cursor: pointer;
    content: "Zum Starten hier klicken, um Ihre Tarifwelt nachzubilden.";
    display: flex;
    width: 100%;
    width: calc((92px * 2));
    text-align: center;
    height: calc((92px + 16px) * 2);
    align-items: center;
    opacity: 0.5;
    line-height: 1.24;
    font-weight: bold;
    transition: 0.2s opacity ease-in-out;
}

@media (max-width: 639px) {
    .starter-info:after{
        width: 100%;
        height: calc((60px + 8px));
    }

}

.starter-info:hover:after{
    opacity: 1;
}

#infobox-wrapper,
#tutorial-wrapper {
    overflow: hidden;
}

#infobox-wrapper #explanation {
    margin-bottom: 12px;
}

#infobox-wrapper {
    height: 0;
}

/* TARIFF BOXES */
.tariff {
    position: relative;
    width: 92px;
    height: 92px;
    aspect-ratio: 1 / 1;
    padding-top: 12px;
    border-radius: 16px;
    display: flex;
    border: 1px solid #dbdbdb;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 0 rgba(0,0,0,00);
    transition: 0.2s box-shadow ease-out;
}

@media (max-width: 639px) {
    .tariff {
        padding-top: 16px;
        width: 60px;
        height: 60px;
    }
}

.tariff.is-dragging {
    cursor: grabbing;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 999;
}


.tariff .tariff-name {
    font-size: 13px !important;
    font-weight: bold;
    transition: 0.2s color ease-in-out;
    color: #E20074;
}

.tariff:has(.m-bonus-loss) .tariff-name ,
.tariff:has(.no-bonus) .tariff-name {
    color: #838383;
}

/* FLAG */
.flag {
    align-items: center;
    height: 20px;
    display: inline-flex;
    gap: 2px;
    border-radius: 12px;
    margin-top: 5px;
    margin-right: 5px;
}


.tariff .flag {
    position: absolute;
    top: 0;
    right: 0;
}

.tariff .tariff-icon {
    width: 36px;
    height: 36px;
    transition: 0.2s fill ease-in-out;
    fill: #E20074;
}

@media (max-width: 639px) {
    .tariff .flag {
        height: 16px;
    }

    .tariff .tariff-icon {
        width: 20px;
        height: 20px;
    }
}


.tariff:has(.m-bonus-loss) .tariff-icon,
.tariff:has(.no-bonus) .tariff-icon {
    fill: #838383;
}

    .flag .flag-icon-wrap {
        height: 100%;
        border-radius: 100%;
        aspect-ratio: 1 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color ease-out 0.3s;
    }

    .flag .flag-icon-wrap-inner {
        display: block;
        width: 70%;
        height: 70%;
    }

    .flag .flag-icon-wrap .flag-icon {
        display: block;
        fill: #fff;
    }

    .flag.m-bonus-loss .flag-icon-wrap .flag-icon {
        fill: #838383;
    }

    .flag .flag-discount-text {
        display: inline-block;
        overflow: hidden;
        font-size: 11px;
        font-weight: bold;
    }

    .flag.flag.m-bonus .flag-discount-text  {
        display: none;
    }

    .flag.m-bonus {
        background-color: #E20074;
    }

    .flag.m-bonus .flag-icon-wrap {
        background-color: #E20074;
    }

    .flag.m-bonus-loss .flag-icon-wrap {
        background-color: #DBDBDB;
    }

    .flag.family {
        background-color: #cedffb;
    }

    .flag.family .flag-icon-wrap {
        background-color: #95A5F3;
    }

    .flag.plus {
        background-color: #c7f3cd;
    }

    .flag.plus .flag-icon-wrap {
        background-color: #74E281;
    }


