/******************************* UI TWEAAKS/ *******************************/
    .short-inline_container {
        float: left;
        width: 315px;
    }

    .item-discount_container .content {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
    }

    /* VEK a SLEVY */
    .ui-logblock, .person-age_container {
        height: 150px;
        padding: 14px;
        margin: 5px;
        margin-top: 0;
        box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
    }

    .ui-logblock:has(div)::before {
        content: "";
        position: absolute;
        left: -50px;
        bottom: 60px;
        width: 0;
        height: 0;
        border: 25px solid transparent;
        border-right-color: lightgray;
        background-color: transparent;
        border-radius: 0;
    }

    .person-age_container {
        background-color: white;
        border-radius: 0;
        border-top-left-radius: 15px;
        width: 200px;
        margin: 0;
    }
    .person-age_container .box__layout {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        height: 100%;
    }

    /* overwrite */
    .short-inline_container.item-discount_container.item-checkbox {
        width: 100%;
    }

/******************************* UI TWEAAKS/ *******************************/

/******************************* UI elements *******************************/
    /** INPUT type="number" s ovladacimi prvky **/
    .input-number__wrapper {
        display: inline-flex;
    }

    .input-number__wrapper,
    .input-number__wrapper * {
        box-sizing: border-box;
    }
    .input-number__wrapper input {
        border-radius: 0 !important;
    }
    .input-number__wrapper button {
        outline:none;
        border: none;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 34px;
        cursor: pointer;
        margin: 0;
        position: relative;
        background-color: var(--secondary-product-color);
    }

    .input-number__wrapper button.input-number--plus {
        border-bottom-right-radius: 15px;
    }
    .input-number__wrapper button.input-number--minus {
        border-top-left-radius: 15px;
    }

    .input-number__wrapper button:before {
        display: inline-block;
        position: absolute;
        font-family: "Font Awesome 5 Free"; 
        font-weight: 900;
        bottom: 10px;
    }
        .input-number__wrapper button.input-number--plus:before {
            content: "\2b";
        }
        .input-number__wrapper button.input-number--minus:before {
            content: "\f068";
        }

    .input-number__wrapper input[type=number] {
        font-family: sans-serif;
        max-width: 5rem;
        padding: .5rem;
        font-size: var(--fs-1);
        height: 34px;
        font-weight: bold;
        text-align: center;
    }
    /** INPUT type="number" s ovladacimi prvky/ **/

    /** INPUT type="number" = vek **/
    .short-inline_container input[type="number"] {
        width: 80px;
    }
    /** INPUT type="number" = vek/ **/

    /** INPUT type="checkbox" = SLEVY **/
    .item-discount_container input:checked,
    .item-discount_container input:not(:checked) {
        position: relative;
        left: 14px;
        z-index: 99;
    }

    .item-discount_container input:checked + label,
    .item-discount_container input:not(:checked) + label {
        position: relative;
        display: inline-block;
        padding: 5px 20px 5px 40px;
        text-align: left;
        border-radius: 10px;
        color: black;
        transition: box-shadow 150ms ease;
        left: -20px;
    }

    .item-discount_container input:checked + label {
        background-color: white;
        border: 1px solid lightgray;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    }

    .item-discount_container input:not(:checked) + label {
        background-color: white;
        border: 1px solid transparent;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    }

    .item-discount_container input:not(:checked) + label:hover,
    .item-discount_container input:checked + label:hover,
    .item-discount_container input:hover + label {
        box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: box-shadow 300ms ease;
    }

    /* SELECT2*/
    .select2-container--default .select2-selection--single {
        border-radius: 10px;
        height: 39px;
        padding: 6px 12px;
        color: #4f4b4b;
    }
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        top: 6px!important;
    }
    /* /SELECT2*/

/******************************* UI elements/ *******************************/

/******************************** TEXTS     *******************************/
    .item-box__wrapper .heading {
        font-size: var(--fs-1);
    }

    div[id^="insuredAge"] .heading label {
        font-size: var(--fs-0);
    }

    .item-box__wrapper.item-heading {
        font-size: var(--fs--2);
        color: var(--color-palette-gray);
    }

    .hintBox {
        color: var(--color-palette-red);
    }

    
    /* slevy */
    .item-discount_container .content label {
        color: var(--main-product-color);
        font-size: var(--fs--1);
        width: 100%;
    }

    .item-discount_container i.fas {
        margin-left: 120px;
    }
/******************************** TEXTS/     *******************************/

/******************************** MEDIA     *******************************/
    @media (max-width:755px) {
        .item-discount_container label {
            font-size: var(--fs--2);
        }
    }
/******************************** MEDIA/     *******************************/

/******************************** SUPPORTS     *******************************/
    /*
    @supports selector(:has(*)) {
    .box-marked-outer.ui-logblock:has(.valid)::before, .box-marked-inner_container:has(.valid)::before {
    background-color: unset;
    }
    }
    */
    @supports selector(:has(*)) {
        div[id^="complexStartPersonAge"]:has(.valid)::before {
            background-color: unset;
        }
    }

    /* EXISTUJE podpora  :has */
    @supports selector(:has(*)) {
        .ui-logblock:has(div) {
            background-color: lightgray;
            border-bottom-right-radius: 15px;
            display: flex;
            justify-content: center;
            align-content: center;
            flex-direction: column;
        }
    }

    /* JEN POKUD browser NEUMI :has */
    @supports not selector(:has(*)) {
        div[id^='complexStartPersonAge'] {
            background-color: lightgray;
            border-bottom-right-radius: 15px;
            display: flex;
            justify-content: center;
            align-content: center;
            flex-direction: column;
        }
        
        div[id^='complexStartPersonAge']::before {
            content: "";
            position: absolute;
            left: -50px;
            bottom: 60px;
            width: 0;
            height: 0;
            border: 25px solid transparent;
            border-right-color: lightgray;
            background-color: transparent;
            border-radius: 0;
        }
    }
/******************************** SUPPORTS/     *******************************/