/* Configurator Container */
#configurator {
    padding-bottom: 5rem;
    background-color: #fff;
    padding: 2rem 2rem 0rem 2rem;
    border-radius: 3px;
    margin: 4rem 0 10rem 0;
}

/* Generalize all the buttons*/
button {
    background-color: #fff;
    border: none;
    color: #404040;
    margin-right: 1em;
    margin-left: 1em;
    width: 100%;
}

button:hover {
    background-color: #404040;
    color: #fff;
    border: none;
}

button:focus {
    background-color: #fff;
    color: #404040;
    border: none;
}

button:focus:hover {
    background-color: #404040;
    color: #fff;
    border: none;
}

button:disabled,
button[disabled] {
    background-color: #808080 !important;
    color: #fff;
    border: none;
}

/* Generalize all the selects */
select {
    width: 90%;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    outline: none;
    border: none;
    text-overflow: '';
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, gray 50%),
        linear-gradient(135deg, gray 50%, transparent 50%),
        linear-gradient(to right, #ccc, #ccc);
    background-position:
        calc(100% - 20px) calc(1em + 2px),
        calc(100% - 15px) calc(1em + 2px),
        calc(100% - 2.5em) 0.5em;
    background-size:
        5px 5px,
        5px 5px,
        1px 1.5em;
    background-repeat: no-repeat;
}

/* A little bit margin for all selects and lables */
select,
label {
    margin: 1rem;
}

/* Auto Label Size */
label {
    width: 100%;
}

/* Summary List */
details {
    display: block;
    padding-left: 15px;
    background-color: #eeeeee;
    border: none;
    box-shadow: 1px 1px 2px #bbbbbb;
    clear: both;
}

/* Modal Form */
input {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    border: 0;
    border-radius: 3px;
    padding: 15px;
    box-sizing: border-box;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    outline: none;
    border: none !important;
    text-overflow: '';
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

input[type="checkbox"] {
    margin: 6px 1rem;
    width: auto;
    float: left;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    ;
    -ms-appearance: checkbox !important;
    ;
    appearance: checkbox !important;
    ;
}

/* Header */
.cfg-first-buttons {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 10em;
    width: 100% !important;
    min-width: fit-content;
    min-height: fit-content;
    background-color: #00b5ff;
    padding: 2em 2em 3em 2em;
    margin: -2em -2em 0em 0em;
    border-radius: 3px 3px 0 0;
}

/* Header Triangle */
.cfg-first-buttons::after {
    content: '';
    position: absolute;
    top: 217px;
    left: 50%;
    margin: 0 0 0 -10px;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-top: 10px solid #00b5ff;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

#cfg-ctrl-description-left {
    align-self: flex-start;
    text-align: left;
    margin-bottom: 0.5em;
    margin-top: 2em;
}

#cfg-ctrl-description-right {
    align-self: flex-end;
    text-align: right;
    margin-bottom: 0.5em;
    margin-top: 2em;
}

/*TODO: Wie krieg ich das hin, dass beide Buttons gleich breit sind? */
.cfg-ctrl-buttons {
    width: 20%;
    min-width: fit-content;
    max-width: max-content;
}

/* Position for the previous button */
.cfg-previous {
    display: flex;
    flex-direction: column;
    justify-items: flex-start;
    position: relative;
    clear: both;
    margin-top: 0;
    margin-bottom: 0;
}

/* Icon for the previous button */
#cfg-backButton::before {
    font-family: 'dashicons';
    content: '\f341';
    padding-right: 5px;
    position: relative;
    font-size: 90%;
}

#cfg-current {
    font-family: "Lato", Sans-serif;
    font-size: x-large;
    font-weight: 500;
    color: #404040;
    display: flex;
    margin-bottom: 1em;

}

/* Position for the  next button */
.cfg-next {
    display: flex;
    flex-direction: column;
    position: relative;
    justify-items: flex-end;
    clear: both;
    margin-top: 0;
    margin-bottom: 0;
}

/* Icon for the next button */
#cfg-nextButton::after {
    font-family: 'dashicons';
    content: '\f345';
    padding-left: 5px;
    position: relative;
    font-size: 90%;
}

/* The Title*/
.cfg-title {
    display: none;
    font-family: "Lato", Sans-serif;
    font-size: 1.8em;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    width: 92% !important;
}

#cfg-headline {
    font-family: "Lato", Sans-serif;
    font-size: 1.8em;
    font-weight: 400;
    text-align: left;
    width: 92% !important;
    margin-top: 1em;
    margin-bottom: 0em;
}

#cfg-bigText {
    font-family: "Lato", Sans-serif;
    font-size: 1.2em;
    font-weight: 400;
    text-align: justify;
    margin: 2rem;
}

.cfg-dropdownarea {

    width: 92% !important;
    border-style: hidden !important;
    border-collapse: collapse;
}

td {
    border-style: hidden !important;
}

.cfg-description {
    vertical-align: top;
    margin-top: 0%;
    margin-bottom: 0%;
    font-family: "Lato", Sans-serif;
    font-size: 1.4em;
    font-weight: 400;
    font-style: italic;
}

.cfg-selector {
    min-width: 60%;
}

.cfg-rightcell {
    display: none;
}

.cfg-icon {
    vertical-align: top;
    align-self: flex-end;
    float: right;
    min-width: 130px;
    width: 60%;
    height: auto;
}

/* Footer */
.cfg-second-buttons {
    background-color: #404040;
    padding: 3rem 3rem 3rem 3rem;
    margin: 1rem -2rem -6rem -2rem;
    border-radius: 0 0 3px 3px;
}

.cfg-overview {
    padding: 2rem 2rem 2rem 2rem;
    margin-top: 4rem;
    border-radius: 3px;
    background-color: #F7F7F7;
}

.cfg-overview-image {
    background-image: url("/wp-content/uploads/2020/05/id-10-m-o-238.png");
    background-repeat: no-repeat;
    background-size: contain;
    padding: 75px 75px;
    float: right;
    width: 50%;
    margin-top: -25px;
}

/* Summary List Title */
.cfg-overview-title {
    font-family: "Lato", Sans-serif;
    font-size: 1.8em;
    font-weight: 300;
    font-style: italic;
    padding-bottom: 1rem;
    float: left;
}

/* Summary List */
.cfg-overview ul {
    padding: 0;
}

.cfg-overview ul li,
li.grey {
    list-style: none;
    background-color: rgba(0, 0, 0, 0.05);
    background-image:
        linear-gradient(90deg,
            #6c6d70 10px,
            #EEE 10px,
            #EEE 11px,
            transparent 11px);
    padding: 10px 15px 10px 25px;
    border: 1px solid #CCC;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 3px;
}

.cfg-overview ul li.red {
    background-image:
        linear-gradient(90deg,
            #ee1d23 10px,
            #EEE 10px,
            #EEE 11px,
            transparent 11px);
}

.cfg-overview ul li.blue {
    background-image:
        linear-gradient(90deg,
            #00b5ff 10px,
            #EEE 10px,
            #EEE 11px,
            transparent 11px);
}

.cfg-overview ul ul {
    margin-left: 1rem;
}

.cfg-overview ul ul li {
    list-style: none;
    background-color: rgba(0, 0, 0, 0.05);
    background-image:
        linear-gradient(90deg,
            #00b5ff 10px,
            #EEE 10px,
            #EEE 11px,
            transparent 11px);
    padding: 10px 15px 10px 25px;
    border: 1px solid #CCC;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 3px;
}

/* Different hover for Footer offer button */
.cfg-offer:hover {
    background-color: #00b5ff !important;
    color: #fff;
    border: none;
}

/* Icon for the offer button */
.cfg-offer:before {
    font-family: 'dashicons';
    content: '\f466';
    padding-right: 5px;
    position: relative;
    font-size: 90%;
}

/* Position for the export button */
.cfg-export {
    right: 2rem;
    margin-bottom: 1rem;
}

/* Different hover for Footer export-button */
.cfg-export:hover {
    background-color: #00b5ff !important;
    color: #fff;
    border: none;
}

/* Icon for the export button */
.cfg-export:before {
    font-family: 'dashicons';
    content: '\f317';
    padding-right: 5px;
    position: relative;
    font-size: 90%;
}

/* Responsive Style */
@media only screen and (min-width: 600px) {

    .cfg-first-buttons:after {
        top: 162px;
    }

    button {
        width: auto;
    }

    .cfg-rightcell {
        display: flex;
        justify-content: flex-end;
    }

    .cfg-export {
        position: absolute;
        right: 2rem;
    }

    .cfg-overview ul {
        padding: 0;
    }

    .cfg-overview ul ul {
        margin-left: 2rem;
    }

}

@media only screen and (min-width: 1024px) {
    select {
        width: 50%;
        float: left;
    }

    .cfg-rightcell {
        display: flex;
        justify-content: flex-end;
    }

    .cfg-first-buttons:after {
        top: 168px;
    }
}

@media only screen and (max-width: 360px) {
    #cfg-nextButton {
        content: 'Weiter \f345';
    }

    #cfg-backButton {
        content: 'Zurück';
    }
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
}

/* Modal send button */
.modal-content button {
    background-color: #00b5ff;
    color: #fff;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Different hover for Footer reset-button */
#cfg-reset:hover {
    background-color: #00b5ff !important;
    color: #fff;
    border: none;
}

/* Icon for the reset button */
#cfg-reset:before {
    font-family: 'dashicons';
    content: '\f182';
    padding-right: 5px;
    position: relative;
    font-size: 90%;
}

/* Modal Privacy Policy checkbox */
#offer-gdpr {
    margin-bottom: 1rem;
}

#offer-gdpr>label {
    margin: 0;
}
