/* Styles for preview image on options select */

.embroidery-form [data-step-index="0"] .t-quiz__consultant {
    display: none!important;
}

.embroidery-form .t-quiz__screen-wrapper > div {
    display: grid!important;
    grid-template-columns: 100% !important;
}

.embroidery-form .t-quiz__consultant__container,
.embroidery-form .t-quiz__consultant__info-container img {
    width: 100%;
}

.embroidery-form .t-quiz__consultant__container {
    position: relative;
}

.embroidery-form .t-quiz__consultant__info-container img {
    aspect-ratio: initial;
}

.embroidery-form .t-quiz__consultant__msg-bubble {
    position: absolute;
    top: 40%;
    right: 17%;
    min-width: 150px;
    background: initial;
    border-radius: 0;
    padding: 0;
    text-align: center;
    width: fit-content;
    transform-origin: center center;
}

@media only screen and (max-width: 1200px) {
    .embroidery-form .t-quiz__consultant__msg-bubble {
        min-width: 120px;
    }
}

@media only screen and (max-width: 480px) {
    .embroidery-form .t-quiz__consultant__msg-bubble {
        min-width: 90px;
    }
}

.embroidery-form .t-quiz__consultant__msg-bubble::after {
    display: none;
}

.embroidery-form .t-quiz__consultant__name,
.embroidery-form .t-quiz__consultant__descr {
    min-height: 15px;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 400;
    opacity: 1;
    color: #000;
}

@media only screen and (max-width: 1200px) {
    .embroidery-form .t-quiz__consultant__name,
    .embroidery-form .t-quiz__consultant__descr {
        min-height: 11px;
        font-size: 8px;
    }
}

@media only screen and (max-width: 480px) {
    .embroidery-form .t-quiz__consultant__name,
    .embroidery-form .t-quiz__consultant__descr {
        min-height: 9px;
        font-size: 6px;
    }
}

.embroidery-form .t-quiz__consultant__msg {
    display: none;
}

/* Styles for radio buttons */

.embroidery-form .t-radio__wrapper {
    flex-flow: row wrap!important;
}

.embroidery-form .t-radio__item.t-radio__control {
    flex: 1 1 100%;
    padding: 10px;
    border: 1px solid #D9D8D6;
    border-radius: 2px;
    color: #3F3F3F;
    transition-property: border;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.embroidery-form .t-radio__item.t-radio__control input,
.embroidery-form .t-radio__item.t-radio__control .t-radio__indicator {
    display: none!important;
}

.embroidery-form .t-radio__item.t-radio__control::after {
    content: '';
    margin-left: auto;
    display: block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.66357 10.2175L8.42825 14.9822L17.909 5.50146' stroke='%23210E0E' stroke-width='1.5'/%3E%3C/svg%3E%0A");
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.embroidery-form .t-radio__item.t-radio__control:not(:has(input:checked)):hover {
    border-color: #838383;
}

.embroidery-form .t-radio__item.t-radio__control:has(input:checked) {
    border-color: #210E0E;
}

.embroidery-form .t-radio__item.t-radio__control:has(input:checked)::after {
    opacity: 1;
}

/* Styles for color preview */

.embroidery-form .embroidery-color-preview {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.embroidery-form .embroidery-color-preview.embroidery-color-preview--bordered {
    outline: 1px solid #DBDBDB;    
}

/* Error styles */

.embroidery-form .t-input-group_rd:is(.t-form .js-error-control-box:has(.t-input-block+.t-input-error)) .t-input-block {
    padding: 0!important;
    border-radius: 0px!important;
    border: unset!important;
}

.embroidery-form .t-input-error {
    margin-top: 16px;
}

.embroidery-form .t-form__errorbox-middle {
    display: none!important;
}

/* Input help text */

.embroidery-form .embroidery-input-help-text {
    margin-top: 16px;
    font-family: Inter;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    color: #949494;
}

@media only screen and (max-width: 480px) {
    .embroidery-form .embroidery-input-help-text {
        font-size: 12px;
    }
}

/* Price input */

.embroidery-form .t-quiz__step__input:has(input[name="productPrice"]) {
    display: none!important;
}

/* Result step */

.embroidery-form .t-calc {
    font-weight: 400;
}

.embroidery-form .t-input-group:has(.t-calc) {
    display: grid!important;
    grid-template-columns: 100% !important;
}

.embroidery-form .t-input-group:has(.t-calc) .t-quiz-step__media {
    position: relative;
    border: 1px solid #CDCDCD;
}

.embroidery-form .t-input-group:has(.t-calc) .t-quiz__step__img {
    aspect-ratio: initial;
    width: min(100%, 428px);
    height: 485px;
    position: relative;
    margin: auto;
    border-radius: unset!important;
}

.embroidery-form .embroidery-form-result-preview-lines {
    display: flex;
    flex-flow: column nowrap;
    position: absolute;
    top: 115px;
    left: 215px;
    text-align: center;
}

.embroidery-form .embroidery-form-result-preview-line {
    min-width: 105px;
    min-height: 12px;
    font-family: Inter;
    font-weight: 500;
    font-style: normal;
    font-size: 8px;
    line-height: 1;
}

@media only screen and (max-width: 1200px) {
    .embroidery-form .embroidery-form-result-preview-lines {
        left: 225px;
    }

    .embroidery-form .embroidery-form-result-preview-line {
        min-width: 80px;
        min-height: 6px;
        font-size: 6px;
    }
}

@media only screen and (max-width: 500px) {
    .embroidery-form .t-input-group:has(.t-calc) .t-quiz__step__img {
        width: min(100%, 278px);
        height: 310px;
    }
    
    .embroidery-form .embroidery-form-result-preview-lines {
        top: 70px;
        left: 135px;
    }

    .embroidery-form .embroidery-form-result-preview-line {
        font-size: 4px;
        min-height: 5px;
        min-width: 65px;
    }
}

/* Trigger popup modal open button */

.t760__btn-wrapper {
    gap: 12px;
}

.embroidery-button-trigger-popup {
    width: 100%;
    text-align: center;
    padding: 15px 12px;
    background-color: #D0BAB1;
    font-family: Inter;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    color: #21150E!important;
}