﻿/* ============ Form field ============ */
.form-field {}

.form-field .disabled {
    position: relative;
}

.form-field .disabled:before {
    background: rgba(255,255,255, 0.9);
    content: "";
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: background .2s ease-in-out;
    width: 100%;
    z-index: 1;
}

/* ============ Form field input ============ */
.form-field__input {
    background: var(--light-grey-2);
    border-color: var(--light-grey-2);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    padding: 10.5px 46px 10.5px 12px;
}

.form-field__input:active,
.form-field__input:focus {
    background: var(--light-grey-2);
    border-color: var(--light-grey-2);
}

.form-field__input:focus {
    box-shadow: none;
}

/* ============ Form field input number ============ */

.form-field__input-number-container {
    position: relative;
}

.form-field__input-number {
    padding: 10.5px 30px 10.5px 12px;
    width: 72px;
}

.form-field__input-number::-webkit-inner-spin-button,
.form-field__input-number::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-field__input-number-arrow {
    background: url("../../images/icons/arrow.svg") center/contain no-repeat;
    border: none;
    height: 5px;
    position: absolute;
    right: 10px;
    width: 10px;
}

.form-field__input-number-arrow--decrease {
    bottom: 10px;
    transform: rotate(180deg);
}

.form-field__input-number-arrow--increase {
    top: 10px;
}

/* ============ Form field input wrapper ============ */
.form-field__input-wrapper {
    position: relative;
}

.form-field__input-wrapper--horizontal {
    align-items: center;
    display: flex;
}

.form-field__input-wrapper--fitted {
    width: fit-content;
}

/* ============ Form field input index ============ */
.form-field__input-index {
    margin: auto 10px auto 0;
    width: 25px;
}

/* ============ Form field divider ============ */
.form-field__divider {
    margin: auto 10px;
    width: 20px;
}

/* ============ Form field item additional ============ */
.form-field__item-additional {
    display: flex;
    left: calc(100% + 10px);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* ============ Form field clear/remove ============ */
.form-field__clear,
.form-field__remove {
    background: var(--grey-2);
    border-radius: 50%;
    height: 26px;
    transition: opacity .2s ease-in-out;
    width: 26px;
}

.form-field__clear {
    display: none;
    opacity: 0;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    visibility: hidden;
}

.form-field__remove {
    position: relative;
}

.form-field__clear:hover,
.form-field__remove:hover {
    background: var(--red);
}

.form-field__clear:after,
.form-field__clear:before,
.form-field__remove:after,
.form-field__remove:before {
    background: var(--white);
    border-radius: 5px;
    content: '';
    display: block;
    height: 2.6px;
    left: 50%;
    position: absolute;
    top: 50%;
    width: 16px;
}

.form-field__clear:after,
.form-field__remove:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.form-field__clear:before,
.form-field__remove:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* ============ Form field flag ============ */
.form-field__flag {
    background: url("../../images/icons/flag.svg") center no-repeat;
    display: none;
    height: 21px;
    margin-right: 10px;
    opacity: 0;
    transition: opacity .2s ease-in-out;
    visibility: hidden;
    width: 20px;
}

.form-field__clear.visible,
.form-field__flag.visible {
    display: block;
    opacity: 1;
    transition: opacity .2s ease-in-out;
    visibility: visible;
}

/* ============ Form field label ============ */
.form-field__label {
    color: var(--dark-blue);
    font-size: 18px;
    font-weight: 400;
    line-height: 21.6px;
    margin-bottom: 16px;
}

.form-field__label.form-field__label--small {
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    margin-bottom: 10px;
}

/* ============ Form field option ============ */
.form-field-option {
    margin-top: 16px;
}

.form-field-option--lg {
    margin-top: 32px;
}

.form-field-option--xl {
    margin-top: 48px;
}

.form-field-option--radio {
    margin-top: 19px;
}

.form-field-option--radio:first-of-type {
    margin-top: 0;
}

.removed {
    display: none;
}

.form-field-option--mr {
    margin-right: 25px;
}

.form-field-option--mr2 {
    margin-right: 50px;
}

/* ============ Form field select ============ */
.form-field__select-wrapper {
    position: relative;
    width: calc(100% - 30px)
}

.form-field__select-wrapper-no-overflow {
    position: relative;
}

/* ============ Form field text ============ */
.form-field__text {
    color: var(--dark-blue);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    margin-bottom: 0;
}

.form-field__text-wrapper {
    align-items: center;
    display: flex;
    min-height: 30px;
}

/* ============ Form field additional text ============ */
.form-field__additional-text {
    color: var(--dark-blue);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    margin: auto 10px;
}

.form-field__additional-text--70 {
    width: 70px;
}

/* ============ Form field footer ============ */
.form-field__footer {
    margin-top: 16px;
}

.form-field__demographic-name__input {
    width: 400px;
}

@media (max-width: 1000px) {
    .form-field__demographic-name__input {
        width: 300px;
    }
}

/*  */
.article-card-switch-header {
    display: flex;
    gap: 12px;
}

.form-field__label-with-edit-button-wrapper {
    display: none;
    position: relative;
}

.form-field__label-with-edit-button-wrapper.visible {
    display: flex;
}

.form-field__label-with-edit-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-label__original-name {
    display: none;
    position: absolute;
    bottom: -25px;
    white-space: nowrap;
    font-style: italic;
}

.form-check-label__original-name.visible {
    display: flex;
}

.form-field__input-custom-name-wrapper {
    position: relative;
}

.form-field__input-custom-name-wrapper .form-card-section__info {
    position: absolute;
    bottom: -25px;
    white-space: nowrap;
}

.form-field__input-custom-name-wrapper .form-card-section__info {
    margin: 0;
}

.form-card-section-icon__info-moments {
    background: url("../../images/icons/info.svg") center no-repeat;
    background-size: contain;
    height: 20px;
    width: 20px;
}

.form-field__input-custom-name-wrapper {
    display: none;
    min-width: 500px;
}

.form-field__input-custom-name-wrapper > input {
    width: 100%;
}

.form-field__input-custom-name-wrapper.visible {
    display: flex;
}

.form-field__label-with-edit-button i {
    display: none;
}

.form-field__label-with-edit-button i.visible {
    display: inline-block;
}

.article-card-switch-header .form-field__remove_custom-name {
    display: none;
}

.article-card-switch-header .form-field__remove_custom-name.visible {
    display: inline-block;
}