.b-unisender-form {}

.b-unisender-form._show-message._success-text .b-unisender-form__message_success-text {
    display: block;
}

.b-unisender-form._show-message._validation-error-text .b-unisender-form__message_validation-error-text {
    display: block;
}

.b-unisender-form._show-message._server-error-text .b-unisender-form__message_server-error-text {
    display: block;
}

.b-unisender-form * {
    /* Keyboard focus is defined below. */
    box-shadow: none !important;
}

/* policy */
.b-unisender-form__policy {
    padding-bottom: 10px;
}

.b-unisender-form__policy .b-unisender-field__label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.b-unisender-form__policy .b-unisender-form__policy-input {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    margin-top: 2px;
    margin-right: 2px;
    border: 1px solid #7a7a7a;
    background: #fff;
    cursor: pointer;
    flex: 0 0 auto;
}

.b-unisender-form__policy .b-unisender-field__label {
    cursor: pointer;
}

.b-unisender-form__policy .checkmark {
    display: none !important;
}

.b-unisender-form__policy .b-unisender-field__label a {
    text-decoration: underline;
}

.b-unisender-form__policy-hint {
    margin: 4px 0 0 26px;
    font-size: 12px;
    opacity: 0.75;
}

.b-unisender-form__policy.b-unisender-field_required .b-unisender-field__label:after {
    content: '*';
    line-height: 1;
    color: #df1b1b;
}

.b-unisender-form .b-unisender-form__footer .b-unisender-form__button-box {
    display: flex;
    align-items: center;
}

.b-unisender-form .b-unisender-form__footer .b-unisender-form__button-box.request svg {
    display: block;
}

.b-unisender-form .b-unisender-form__footer .b-unisender-form__button-box.request .b-unisender-form__submit-button {
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
}

.b-unisender-form .b-unisender-form__footer .b-unisender-form__button-box svg {
    display: none;
    margin-left: 10px;
}

.b-unisender-form .b-unisender-form__submit-button {
    cursor: pointer;
    transition: opacity 0.1s linear;
    width: auto;
    display: inline-block;
    user-select: none;
}

.b-unisender-form .b-unisender-form__submit-button:hover {
    opacity: 0.9;
}



.b-unisender-form .b-unisender-form__message {
    padding: 1em;
    border-width: 1px;
    border-style: solid;
    text-align: center;
    display: none;
    margin-top: 1em;
}

.b-unisender-form .b-unisender-form__message_error {
    border-color: #df1b1b;
}

.b-unisender-form .b-unisender-form__message_success {
    border-color: #29bb34;
}

.b-unisender-form__message_success-text {}

.b-unisender-form__message_validation-error-text {}

.b-unisender-form__message_server-error-text {}

/*field styles*/

.b-unisender-form .b-unisender-field {}

.b-unisender-form .b-unisender-field_required .b-unisender-field__label:after {
    content: '*';
    line-height: 1;
    color: #df1b1b;
}

.b-unisender-form .b-unisender-field._has-error .b-unisender-field__error-text {
    display: block;
}

.b-unisender-form .b-unisender-field__label {
    display: block;
    width: 100%;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    margin-bottom: 0.5em;
}

.b-unisender-form .b-unisender-field__input {
    display: block;
    width: 100%;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    outline: none;
    margin: 0;
    box-sizing: border-box;
}

.b-unisender-form .b-unisender-field__error-text {
    display: none;
    width: 100%;
    font-size: inherit;
    font-weight: inherit;
    color: #df1b1b;
    line-height: inherit;
    margin-top: 0.5em;
    animation: unisenderErrorTextShow 0.2s linear forwards;
}

.b-unisender-form .b-unisender-form__policy .policy-error {
    margin-left: 26px;
}

@keyframes unisenderErrorTextShow {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.b-unisender-form .b-unisender-checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.b-unisender-form .b-unisender-checkbox._has-error .b-unisender-checkbox__error-text {
    display: block;
}

.b-unisender-form .b-unisender-checkbox__input {
    height: 18px;
    width: 18px;
    margin: 0 1em 0 0;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    position: relative;
    border: none;
    background: none;
}

.b-unisender-form .b-unisender-checkbox__input:before {
    display: none !important;
}

.b-unisender-form .b-unisender-checkbox__input:after {
    display: none !important;
}

.b-unisender-form .b-unisender-checkbox__label {
    width: calc(100% - 18px - 1em);
    max-width: 100%;
    position: relative;
    top: -0.25em;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.b-unisender-form .b-unisender-checkbox__error-text {
    display: none;
    width: 100%;
    font-size: inherit;
    font-weight: inherit;
    color: #df1b1b;
    line-height: inherit;
    margin-top: 0.5em;
    animation: unisenderErrorTextShow 0.2s linear forwards;
}

/* Unified subscription layout; overrides legacy builder layout settings. */
.b-unisender-form.b-unisender-form--friendly {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
    width: 100% !important;
    max-width: 560px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 28px !important;
    background: #fff !important;
    color: #25343a !important;
    border: 1px solid #dce5e7 !important;
    border-radius: 20px !important;
    text-align: left !important;
    font-family: inherit;
    font-size: 17px !important;
    line-height: 1.55 !important;
}
.b-unisender-form--friendly *, .b-unisender-form--friendly *::before, .b-unisender-form--friendly *::after { box-sizing: border-box; }
.b-unisender-form--friendly .b-unisender-form__title { margin: 0 !important; color: #25343a !important; font-size: 24px !important; font-weight: 600 !important; line-height: 1.3 !important; }
.b-unisender-form--friendly .b-unisender-form__description { color: #52646b !important; font-size: 16px !important; margin: 10px 0 0 !important; }
.b-unisender-form--friendly .b-unisender-form__main,
.b-unisender-form--friendly .b-unisender-form__footer { display: flex !important; flex-direction: column !important; gap: 18px; width: 100%; min-width: 0; }
.b-unisender-form--friendly .b-unisender-form__field { width: 100% !important; margin: 0 !important; color: #25343a !important; font-size: 17px !important; line-height: 1.55 !important; }
.b-unisender-form--friendly .b-unisender-field__label { margin: 0 0 7px; color: #25343a !important; font-weight: 500; }
.b-unisender-form--friendly .b-unisender-field__input { width: 100% !important; min-width: 0; min-height: 48px; padding: 11px 14px !important; border: 1px solid #9baeb5 !important; border-radius: 10px !important; background: #fff !important; color: #25343a !important; font-size: 17px !important; line-height: 1.4 !important; }
.b-unisender-form--friendly .b-unisender-checkbox { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: start; }
.b-unisender-form--friendly .b-unisender-checkbox__input,
.b-unisender-form--friendly .b-unisender-form__policy .b-unisender-form__policy-input { width: 22px !important; height: 22px !important; min-width: 22px; min-height: 22px; margin: 4px 0 0 !important; accent-color: #087f83; cursor: pointer; }
.b-unisender-form--friendly .b-unisender-checkbox__label { width: 100% !important; top: 0 !important; min-height: 44px; cursor: pointer; font-size: 16px !important; color: #25343a !important; overflow-wrap: anywhere; }
.b-unisender-form--friendly .b-unisender-form__policy { margin: 0 !important; padding: 0 !important; color: #25343a !important; font-size: 16px !important; }
.b-unisender-form--friendly .b-unisender-form__policy .b-unisender-field__label { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; min-height: 44px; margin: 0; font-weight: 400; }
.b-unisender-form--friendly .b-unisender-form__policy .b-unisender-field__label::after { content: none !important; }
.b-unisender-form--friendly a { color: #066b70 !important; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.b-unisender-form--friendly .b-unisender-form__policy-hint { margin: 8px 0 0 34px; font-size: 14px; opacity: 1; color: #52646b; }
.b-unisender-form--friendly .b-unisender-checkbox__error-text { grid-column: 2; }
.b-unisender-form--friendly .b-unisender-field__error-text,
.b-unisender-form--friendly .b-unisender-checkbox__error-text,
.b-unisender-form--friendly .policy-error { color: #b42318 !important; font-size: 15px !important; }
.b-unisender-form--friendly .policy-error { margin-left: 34px !important; }
.b-unisender-form--friendly .b-unisender-form__footer .b-unisender-form__button-box { width: 100%; position: relative; margin: 2px 0 0 !important; }
.b-unisender-form--friendly .b-unisender-form__submit-button { display: block !important; width: 100% !important; min-height: 52px; padding: 13px 48px !important; margin: 0 !important; border: 0 !important; border-radius: 10px !important; background: #087f83 !important; color: #fff !important; font: inherit; font-weight: 600 !important; text-align: center !important; }
.b-unisender-form--friendly .b-unisender-form__submit-button:hover { background: #066b70 !important; opacity: 1; }
.b-unisender-form--friendly .b-unisender-form__footer .b-unisender-form__button-box svg { position: absolute; right: 8px; width: 32px; height: 32px; margin: 0; }
.b-unisender-form--friendly .b-unisender-form__button-box svg circle { fill: #fff !important; }
.b-unisender-form--friendly .b-unisender-form__message { margin-top: 0; border-radius: 10px; text-align: left; font-size: 16px; }
.b-unisender-form--friendly .b-unisender-form__message_success { background: #edf8f0; color: #21643a; }
.b-unisender-form--friendly .b-unisender-form__message_error { background: #fff3f1; color: #b42318; }
.b-unisender-form.b-unisender-form--friendly :focus-visible { outline: 3px solid #087f83 !important; outline-offset: 3px !important; }
.b-unisender-form--friendly ._has-error .b-unisender-field__input { border-color: #b42318 !important; }
@media (max-width: 480px) {
    .b-unisender-form.b-unisender-form--friendly { padding: 20px 16px !important; border-radius: 16px !important; gap: 20px; }
    .b-unisender-form--friendly .b-unisender-form__title { font-size: 22px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .b-unisender-form--friendly * { animation: none !important; transition: none !important; }
}

/* Compact footer strip: replaces the tall card layout. */
.b-unisender-form.b-unisender-form--friendly {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px 16px !important;
    max-width: 1180px !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__header {
    grid-column: 1 / -1;
    order: 0;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__title {
    font-size: 18px !important;
    line-height: 1.35 !important;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__description {
    margin-top: 4px !important;
    font-size: 14px !important;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__main,
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__footer {
    display: contents !important;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__field { order: 1; }
.b-unisender-form.b-unisender-form--friendly .b-unisender-field__label {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-field__input {
    min-height: 44px !important;
    height: 44px;
    padding: 8px 12px !important;
    border-radius: 7px !important;
    font-size: 16px !important;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-checkbox,
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__policy {
    grid-column: span 2;
    order: 2;
    align-self: start;
    min-width: 0;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-checkbox__label,
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__policy .b-unisender-field__label {
    min-height: 28px;
    line-height: 1.4 !important;
    font-size: 14px !important;
    margin: 0 !important;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__policy-text {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    white-space: normal !important;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__policy-hint { display: none; }
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__button-box {
    order: 1;
    width: auto !important;
    margin: 0 !important;
    align-self: end;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__submit-button {
    min-height: 44px !important;
    padding: 9px 24px !important;
    border-radius: 7px !important;
    font-size: 16px !important;
    white-space: nowrap;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__messages {
    grid-column: 1 / -1;
    order: 3;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__messages:not(:has(.b-unisender-form__message)) { display: none; }
.b-unisender-form.b-unisender-form--friendly:not(._show-message) .b-unisender-form__messages { display: none; }
@media (max-width: 800px) {
    .b-unisender-form.b-unisender-form--friendly { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .b-unisender-form.b-unisender-form--friendly .b-unisender-checkbox,
    .b-unisender-form.b-unisender-form--friendly .b-unisender-form__policy { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .b-unisender-form.b-unisender-form--friendly {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px !important;
        gap: 8px !important;
    }
    .b-unisender-form.b-unisender-form--friendly .b-unisender-form__title { font-size: 17px !important; }
    .b-unisender-form.b-unisender-form--friendly .b-unisender-form__button-box { order: 3; width: 100% !important; }
    .b-unisender-form.b-unisender-form--friendly .b-unisender-form__messages { order: 4; }
}

/* No decorative frame around the footer form. */
.b-unisender-form.b-unisender-form--friendly {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Errors extend their own field downward without moving neighbouring inputs. */
.b-unisender-form.b-unisender-form--friendly { align-items: start !important; }
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__button-box {
    align-self: start !important;
    margin-top: 23px !important;
}
.b-unisender-form.b-unisender-form--friendly .b-unisender-form__policy {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}
@media (max-width: 480px) {
    .b-unisender-form.b-unisender-form--friendly .b-unisender-form__button-box { margin-top: 0 !important; }
}
