﻿.common * {
    font-family: "Roboto", sans-serif;
}

/* --- Fix copy/paste in inputs on mobile --- */
input,
textarea,
select {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    -o-user-select: auto !important;
    user-select: auto !important;
    -webkit-touch-callout: default !important; /* iOS paste menu */
}

/* --- Prevent floating labels/overlays from blocking touches --- */
.common .__container .__input label > .label-text,
.__input .dots {
    pointer-events: none !important;
}

.common.logon-form {
    min-height: calc(100vh - 56px);
}

.common fieldset {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    border: none;
}

.common .fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.user.profile .fields {
    padding: 0 !important;
}

.common .form-title {
    padding: 12px 0;
    height: 52px;
    box-sizing: border-box;
}

    .common .form-title span {
        display: block;
        height: 28px;
        line-height: 28px;
        font-size: 24px;
        font-weight: 600;
        text-align: left;
    }

.common h2 {
    font-family: Roboto, Tahoma, Arial;
}

.common .__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 56px;
    border-radius: 10px;
    box-sizing: border-box;
}

    .common .__container.__textarea {
        height: 112px;
    }

.common .__input.withvalue {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    height: 38px;
}

    .common .__input.withvalue label {
        height: 14px;
        font-size: 12px;
        font-weight: 400;
    }

.common label {
    display: inline-block;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.common .__container .__input {
    position: relative;
    width: 100%;
}

    .common .__container .__input label {
        display: block;
        white-space: nowrap;
    }

        .common .__container .__input label > .label-text {
            position: absolute;
            display: block;
            width: 100%;
            height: 20px;
            line-height: 22px;
            font-size: 16px;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            box-sizing: border-box;
        }

            .common .__container .__input label > .label-text b {
                font-size: 12px;
                font-weight: 400;
            }

.common input[type=password],
.common input[type="email"],
.common input[type=text],
.common textarea {
    display: block;
    padding: 0;
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    text-align: start;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.common textarea {
    height: 88px;
}

.common input,
.common textarea,
.common select {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

    .common input[type=password]::-webkit-textfield-caret,
    .common input[type=text]::-webkit-textfield-caret {
        width: 1.5px;
        height: 20px;
    }

/* hide text & caret only when dots mode is active */
.__input.withvalue input[type=password].real-input.hidden-text {
    color: transparent;
    caret-color: transparent;
    outline: none;
    opacity: 0
}

.__input .dots {
    position: absolute;
    top: 50% !important;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    height: 20px;
}

    .__input .dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #000000;
    }

.__input.withvalue .dots .caret {
    width: 1.5px;
    height: 20px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.common .__input.textarea label > .label-text,
.common .__input.withvalue label > .label-text {
    position: static;
    padding: 0;
    height: 14px;
    line-height: 120%;
    font-size: 12px;
    font-weight: 400;
}

.common .__container .additional-icon {
    width: 24px;
    height: 24px;
}



.common .fields button[type=submit] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 12px;
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

    .common .fields button[type=submit] span {
        line-height: 120%;
        font-size: 16px;
        font-weight: 500;
    }

.common .link__register {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 38px;
}

    .common .link__register span {
        height: 19px;
        line-height: 120%;
        font-size: 16px;
        font-weight: 500;
    }

.common .link-button {
    font-weight: 500;
    font-size: 16px;
    height: 19px;
    line-height: 120%;
    text-decoration: underline;
}

.common .validation-summary {
    padding: 12px;
    background-color: #FFFFFF;
}

.alert-box--success {
    color: #27af4c;
    background-color: #cbf3cb;
    border-color: rgb(143 192 90 / 74%);
}

.alert-box--error {
    color: #CE3030;
    background-color: #FBECEC;
    border-color: rgba(211, 0, 0, .24);
}

.box-alert {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px 12px 12px;
    border-radius: 4px;
    font-size: 14px;
    border-width: 1px;
    border-style: solid;
}

.alert-box__left [class*=styles-message-icon-] {
    margin-right: 5px;
    font-size: 1.125rem;
}

.alert-box__left span {
    color: #d12220;
}

.alert-box--success .alert-box__left span {
    color: #27af4c;
}

.common input[type=text].input-validation-error,
.common input[type=password].input-validation-error {
    box-shadow: 0 2px 0 #d12220
}

.common .__container.input-validation-error {
    border-color: #d12220;
}

    .common .__container.input-validation-error .__input label > .label-text {
        color: #d12220;
    }

button:disabled,
input:disabled,
select:disabled {
    cursor: not-allowed !important;
    opacity: .5;
}

.loader-half {
    border-top: 0.2em solid currentcolor;
    border-right: 0.2em solid transparent;
    -webkit-animation: loader-half 1s linear infinite;
    -moz-animation: loader-half 1s linear infinite;
    -ms-animation: loader-half 1s linear infinite;
    -o-animation: loader-half 1s linear infinite;
    animation: loader-half 1s linear infinite;
    border-radius: 100%;
    position: relative;
}

[class*="loader-half"] {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    color: inherit;
    pointer-events: none;
}

    [class*="loader-half"].small {
        width: 1em;
        height: 1em;
    }

    [class*="loader-half"].medium {
        width: 2em !important;
        height: 2em !important;
    }

@keyframes loader-half {
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/*#region signup*/
.signup .r-modal-header,
.payments-methods .r-modal-header {
    background: var(--color-yellow-01);
    position: fixed;
    width: 100%;
    z-index: 2;
}

.signup .r-modal-header__content {
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 40px auto 40px;
    max-width: 70rem;
    margin: auto;
}

.signup .logo.logo__small,
.payments-methods .logo.logo__small {
    margin-left: 20px;
    justify-self: left;
}

.signup .r-modal-header__button {
    display: inline-block;
    width: 40px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup .r-modal-header__button--close {
    margin-left: auto;
    grid-column: 3;
}

.signup .r-modal-header__button i,
.payments-methods .r-modal-header__button i {
    width: 1.063rem;
    text-align: center;
}

.signup .r-modal-header + main {
    position: relative;
    z-index: 1;
}

.signup main {
    margin: auto;
    padding: .5em 1em;
    max-width: 23rem;
}

.signup h2.heading {
    margin: 1em 0 .1em 0;
    line-height: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.signup .input_container {
    height: auto !important;
}

.signup .actions .action-button {
    display: flex;
    justify-content: center;
    margin: 2em 0 .5em 0 !important;
    padding: .8em !important;
    width: 100%;
    height: auto;
    font-size: .85rem !important;
    border-radius: .2em;
}

.signup .card {
    display: block !important;
    padding: 0 !important;
}

.signup center {
    display: none !important;
    visibility: hidden !important;
}
/*#endregion*/

.scroll-y {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
