:root {
    --text-color: #2f2f2f;
    --label-color: #868686;
    --input-bg-when-placeholder-shown: #f8f8f8;
    --input-filled-bg: #f8f8f8;
    --input-bg-focus: #f8f8f8;
}

body {
    min-height: auto;
    font-family: 'Nunito Sans';
    color: #2f2f2f;
}

.form {
    min-height: auto;
    background-color: #fff;
}

.form.form--submitting .cards,
.form.form--submitting .extra-fields,
.form.form--submitting .emails,
.form.form--submitting .amount {
    filter: blur(1px);
}

.header {
    border-bottom: none;
    background-color: #fff;
}

.header h1 {
    line-height: 38px;
    font-family: 'Nunito Sans';
    font-size: 28px;
    letter-spacing: -0.46px;
    color: var(--text-color);
}

.card--sender::before {
    color: var(--text-color);
}

.card::before {
    color: var(--text-color);
}

.card--sender:after {
    background: url('/static/modern/enigma_2/p2p/custom/1791/img/angle-right.svg') no-repeat;
}

.input {
    border-radius: 8px;
}

.input__field {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.23px;
    color: var(--text-color);
    background: #f8f8f8;
    border-radius: 8px;
}

.input__label {
    color: var(--label-color);
}

.input__prompt {
    color: var(--label-color);
}

.input--email:before {
    background-image: url('/static/modern/enigma_2/p2p/custom/1791/img/email-input-icon.svg');
}

.input--email.error:before {
    background-image: url('/static/modern/enigma_2/p2p/custom/1791/img/email-input-icon-error.svg');
}

.checkbox__label {
    color: #717171;
}

.extra-fields__title {
    color: var(--text-color);
}

.card--receiver .card__content {
    background-image: url('/static/modern/enigma_2/p2p/custom/1791/img/ps-logo-row.svg');
}

.checkbox__body {
    width: 40px;
    height: 22px;
    background-color: #f3f3f3;
}

.checkbox__body:after {
    top: 14px;
    left: 4px;
    width: 14px;
    height: 14px;
    background: #717171;
}

input:checked + .checkbox__body {
    background-color: #e6e9f3;
}

.switcher__checkbox:checked + .switcher__body {
    background-color: #e6e9f3;
}

.switcher__checkbox:checked + .switcher__body::after {
    background: #13317e;
}

input:checked + .checkbox__body::after {
    background: #13317e;
}

.actions .condition {
    color: #717171;
}

.actions .condition a {
    color: rgb(19, 49, 126);
}

.button {
    line-height: 26px;
    font-size: 20px;
    background: #13317e;
    border-radius: 54px;
    transition: 0.3s;
}

.button:active {
    background: #022168;
}

.button span {
    display: flex;
    align-content: center;
    align-items: center;
    font-weight: 700;
    letter-spacing: -0.19px;
}

.button:disabled,
.button:disabled:not(.button--loading) {
    color: #b1b1b1;
    background: #f8f8f8;
    box-shadow: none;
}

.button:after {
    display: none;
}

.button--loading {
    background: #022168 !important;
    opacity: 1;
}

.button--loading span {
    pointer-events: none;
    color: transparent;
    opacity: 0;
}

.button--loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    background-image: url('//static/modern/enigma_2/p2p/custom/1791/img/button-loader-icon.png');
    background-size: 24px 24px;
    opacity: 1;
    animation-name: loader;
    animation-duration: 400ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    transition: opacity 0.1s ease;
    pointer-events: none;
}

.button:hover {
    background-color: #2d4c9f;
}

.button:focus {
    background-color: #022168;
}

.button span:after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('/static/modern/enigma_2/p2p/custom/1791/img/button-arrow-icon.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateX(10px);
}

.button:disabled span:after,
.button:disabled:not(.button--loading) span:after {
    color: #b1b1b1;
    background-image: url('/static/modern/enigma_2/p2p/custom/1791/img/button-arrow-icon-gray.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

.input__field--pan {
    padding-top: 16px;
}

.input__field--cvv,
.input__field--date,
.input__field--pan {
    line-height: 24px;
    font-weight: 700;
    font-family: 'Nunito Sans';
    font-size: 16px;
    letter-spacing: -0.29px;
}

.input__field--cvv {
    font-family: 'password';
}

.amount__title {
    color: var(--text-color);
}
.amount__value {
    color: var(--text-color);
}

.input__field:focus + .input__label,
.input__field:not(:placeholder-shown) + .input__label {
    color: var(--label-color);
}

.modal-closer {
    position: absolute;
    top: calc(50% - 10px);
    right: 48px;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.modal-closer:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 2px;
    height: 14px;
    margin: 0 auto;
    background: #2f2f2f;
    transform: rotate(-45deg);
}

.modal-closer:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 2px;
    height: 14px;
    margin: 0 auto;
    background: #2f2f2f;
    transform: rotate(45deg);
}
.result-title {
    margin-bottom: 32px;
}
.result-title svg {
    margin-right: 32px;
}

.notify__status-text.error {
    max-width: 300px;
    color: #2f2f2f;
}

.input__error {
    color: #c6394d;
}

.input.error {
    border-color: #c6394d;
}

.input__field.input__field--cvv {
    letter-spacing: 0.8pt;
}

.card__button {
    color: #717171;
}

.amount__title {
    text-transform: uppercase;
}

.input.input--amount::after {
    color: #868686;
}

.input__ps {
    background-size: contain;
}

/* notify */

.notify__p2p {
    max-width: 512px;
    min-height: 672px;
    padding: 97px 55px 48px 76px;
    color: #2f2f2f;
}

.data-list {
    margin-top: 40px;
}

.data-list .data-title {
    color: #868686;
}

.data-list .data-value {
    color: #2f2f2f;
}

.error__text {
    line-height: 22px;
    font-weight: 400;
    font-size: 18px;
    color: #717171;
}

.input__prompt::before {
    display: none;
}

.input__error,
.input__prompt {
    left: 3px;
}

.extra-fields input[name='post_code'] + label {
    top: 20px;
}

.card__button-content .value {
    background-size: contain;
}

@media (max-width: 1023px) {
    .extra-fields input[name='post_code'] + label {
        top: 28px;
    }
    .header h1 {
        line-height: 28px;
        font-size: 24px;
    }
    .header .logo {
        margin-bottom: 15px;
    }
    .form .header.flex-row {
        flex-direction: column-reverse;
        align-content: flex-start;
        align-items: flex-start;
    }
    .result-title svg {
        margin-right: 24px;
    }
    .error__text {
        line-height: 20px;
        font-size: 16px;
    }
    .data-list {
        margin-top: 0px;
    }
    .notify__p2p {
        width: 100%;
        max-width: 600px;
        min-height: initial;
        padding: 23px 24px 64px 24px;
    }
    .modal-closer {
        top: 30px;
        right: 22px;
    }
    .card--receiver .card__content {
        background: #fff;
    }
    .card__button-content.value {
        background-size: contain;
    }
    .amount__value--fee + .amount__currency {
        position: relative;
        bottom: 4px;
        width: 13px;
        height: 9px;
    }
    .notify__p2p + .footer {
        display: block;
        width: 100%;
        max-width: 600px;
        padding-left: 24px;
        margin: 0 auto;
    }
    .notify__p2p + .footer .ps-box {
        display: none;
    }
    .input__ps {
        top: 28px;
    }
    .description-container {
        min-height: 300px;
    }
}
