input,
textarea,
select {
    font-family: inherit;
    width: 100%;
}

.bagel-input-error input,
.bagel-input-error button,
.bagel-input-error textarea {
    outline: 1px solid var(--bgl-red);
}

.bagel-input {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: start;
    margin-bottom: 0.5rem;
    width: 100%;
    color: var(--bgl-text-color);
}

.bagel-input::-webkit-input-placeholder .bagel-input label {
    display: block;
    font-size: var(--label-font-size);
    margin-bottom: 2px;
    line-height: 1.3;
}

.bagel-input::-moz-placeholder .bagel-input label {
    display: block;
    font-size: var(--label-font-size);
    margin-bottom: 2px;
    line-height: 1.3;
}

.bagel-input:-ms-input-placeholder .bagel-input label {
    display: block;
    font-size: var(--label-font-size);
    margin-bottom: 2px;
    line-height: 1.3;
}

.bagel-input::-ms-input-placeholder .bagel-input label {
    display: block;
    font-size: var(--label-font-size);
    margin-bottom: 2px;
    line-height: 1.3;
}

.bagel-input::placeholder .bagel-input label {
    display: block;
    font-size: var(--label-font-size);
    margin-bottom: 2px;
    line-height: 1.3;
}

.bagel-input::-webkit-input-placeholder {
    color: var(--placeholder-color);
}

.bagel-input::-moz-placeholder {
    color: var(--placeholder-color);
}

.bagel-input:-ms-input-placeholder {
    color: var(--placeholder-color);
}

.bagel-input::-ms-input-placeholder {
    color: var(--placeholder-color);
}

.bagel-input::placeholder {
    color: var(--placeholder-color);
}

.bagel-input label {
    color: var(--label-color);
}

.bagel-input input,
.bagel-input select,
.custom-select .input {
    height: var(--input-height);
    font-size: var(--input-font-size);
}

.bagel-input input,
.bagel-input textarea,
.bagel-input select,
.custom-select .input {
    background: var(--input-bg);
    border: none;
    padding: 0.7rem;
    border-radius: var(--input-border-radius);
    color: var(--input-color);
    min-width: calc(var(--input-height) * 3);
    width: 100%;
}

.bagel-input input::-webkit-input-placeholder,
.bagel-input textarea::-webkit-input-placeholder,
.bagel-input select::-webkit-input-placeholder,
.custom-select .input::-webkit-input-placeholder {
    color: var(--placeholder-color);
}

.bagel-input input::-moz-placeholder,
.bagel-input textarea::-moz-placeholder,
.bagel-input select::-moz-placeholder,
.custom-select .input::-moz-placeholder {
    color: var(--placeholder-color);
}

.bagel-input input:-ms-input-placeholder,
.bagel-input textarea:-ms-input-placeholder,
.bagel-input select:-ms-input-placeholder,
.custom-select .input:-ms-input-placeholder {
    color: var(--placeholder-color);
}

.bagel-input input::-ms-input-placeholder,
.bagel-input textarea::-ms-input-placeholder,
.bagel-input select::-ms-input-placeholder,
.custom-select .input::-ms-input-placeholder {
    color: var(--placeholder-color);
}

.bagel-input input::placeholder,
.bagel-input textarea::placeholder,
.bagel-input select::placeholder,
.custom-select .input::placeholder {
    color: var(--placeholder-color);
}

.bagel-input.search-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.bagel-input.search-wrap input {
    -webkit-padding-end: 2rem;
    padding-inline-end: 2rem;
}

.bagel-input.search-wrap .bgl_icon-font {
    -webkit-margin-start: -1.75rem;
    margin-inline-start: -1.75rem;
}

.bagel-input select {
    height: var(--input-height);
}

.bagel-input textarea {
    resize: vertical;
    min-height: calc(var(--input-height) * 3);
    line-height: 1.5;
}

.bagel-input.wider input {
    min-width: 320px;
}

.bagel-input input[type='radio'] {
    padding: 0;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.bagel-input:focus-within label {
    color: var(--bgl-primary);
}

.bagel-input select.no-edit,
.bagel-input input.no-edit,
.bagel-input textarea.no-edit,
.bagel-input .switch.no-edit {
    pointer-events: none;
    outline: none;
    opacity: 0.7;
}

.bagel-input label.active {
    color: var(--bgl-primary);
}

.inline-80 {
    display: inline-block;
    width: 80%;
}

.inline-20 {
    display: inline-block;
    width: 20%;
}

.inline-10 {
    display: inline-block;
    width: 20%;
}

.inline-50 {
    display: inline-block;
    width: 49%;
    margin: 0 0.5%;
}

.custom-select .input {
    height: var(--input-height);
    font-size: var(--input-font-size);
}

.custom-select .input {
    background: var(--input-bg);
    border: none;
    padding: 0.7rem;
    border-radius: var(--input-border-radius);
    color: var(--input-color);
    min-width: calc(var(--input-height) * 3);
    width: 100%;
}

.input-height {
    height: var(--input-height);
}

.input-size {
    height: var(--input-height);
    min-width: calc(var(--input-height) * 3);
    margin-bottom: 0.5rem;
    padding: 0.7rem;
}

/* [dir='rtl'] .bagel-input input[type='email'],
[dir='rtl'] .tel-input input[type='tel'] {
    direction: ltr;
    text-align: right;
} */

.input.active .bagel-input input:focus-visible,
.bagel-input select:focus-visible,
.bagel-input textarea:focus-visible,
.bagel-input button:focus-visible,
.bgl_btn:focus-visible {
    outline-color: var(--bgl-primary-tint);
    box-shadow: inset 0 0 10px #00000012;
}

.bagel-input input:focus,
.bagel-input select:focus,
.bagel-input textarea:focus {
    outline-color: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 8px #00000018;
    outline-color: var(--input-bg);
}

.bagel-input .bgl_btn:focus,
.bagel-input button:focus {
    outline-color: rgba(0, 0, 0, 0.05);
    outline-color: var(--input-bg);
}

.bagel-input.light-input input,
.bagel-input.light-input textarea,
.bagel-input.light-input select,
.custom-select.light-input .input,
.light-input .selectinput-btn {
    background: var(--bgl-popup-bg) !important;
    box-shadow:
        0 1px 5px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px -1px rgba(0, 0, 0, 0.1) !important;
    outline: 1px solid var(--border-color) !important;
}

.input.active.light-input,
.bagel-input.light-input input:focus-visible,
.bagel-input.light-input select:focus-visible,
.bagel-input.light-input textarea:focus-visible {
    box-shadow: inset 0 0 2px var(--bgl-popup-text) !important;
}

.bagel-input input[type='number']-webkit-inner-spin-button,
.bagel-input input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.label-count-0 label {
    display: none;
}

.label-count-0 button.bgl_btn.bgl_flatBtn {
    margin-right: 5px;
}

.label-count-0 button.bgl_btn.bgl_flatBtn:hover {
    background: var(--bgl-hover-filter);
}

.bagel-input input[type='color'] {
    padding: 0.025rem 0.05rem;
    display: block;
    width: var(--input-height);
    min-width: var(--input-height);
    height: var(--input-height);
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.bagel-input input[type='color']::-webkit-color-swatch {
    border-radius: var(--input-border-radius);
    border: none;
    -webkit-transition: box-shadow 200ms ease;
    transition: box-shadow 200ms ease;
}

.bagel-input input[type='color']::-moz-color-swatch {
    border-radius: var(--input-border-radius);
    border: none;
    -moz-transition: box-shadow 200ms ease;
    transition: box-shadow 200ms ease;
}

.bagel-input input[type='color']::-webkit-color-swatch:hover {
    box-shadow: inset 0 0 10px #00000050;
}

.bagel-input input[type='color']::-moz-color-swatch:hover {
    box-shadow: inset 0 0 10px #00000050;
}

@media screen and (max-width: 910px) {
    .bagel-input.wider input {
        min-width: 120px;
    }
}

.pixel {
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    outline: none !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
}