.hicret-newsletter-popup {
    position: fixed;
    z-index: 1400;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.hicret-newsletter-popup[hidden] {
    display: none;
}

.hicret-newsletter-popup.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.hicret-newsletter-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 39, 26, .7);
}

.hicret-newsletter-popup__dialog {
    position: relative;
    width: min(100%, 470px);
    max-height: calc(100vh - 30px);
    overflow: auto;
    padding: 34px 38px 30px;
    border: 1px solid #d8e7dc;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(6, 36, 20, .3);
    text-align: center;
    transform: translateY(14px) scale(.98);
    transition: transform .24s ease;
}

.hicret-newsletter-popup.is-open .hicret-newsletter-popup__dialog {
    transform: translateY(0) scale(1);
}

.hicret-newsletter-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #60766a;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.hicret-newsletter-popup__close:hover,
.hicret-newsletter-popup__close:focus-visible {
    color: #0e5f23;
    background: #edf5ef;
    outline: 0;
}

.hicret-newsletter-popup__close svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.hicret-newsletter-popup__visual {
    position: relative;
    width: 74px;
    height: 70px;
    margin: 0 auto 12px;
}

.hicret-newsletter-popup__leaf {
    position: absolute;
    top: 1px;
    left: 25px;
    width: 43px;
    height: 57px;
    fill: #18713a;
    transform: rotate(-8deg);
}

.hicret-newsletter-popup__nut {
    position: absolute;
    z-index: 1;
    width: 22px;
    height: 31px;
    border: 2px solid #8c5d23;
    border-radius: 65% 45% 68% 42%;
    background: #c78b32;
    box-shadow: inset 3px -4px 0 rgba(119, 70, 24, .16);
    transform: rotate(-22deg);
}

.hicret-newsletter-popup__nut::after {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 3px;
    height: 17px;
    border-radius: 4px;
    background: rgba(255, 239, 188, .55);
    content: '';
}

.hicret-newsletter-popup__nut--left {
    bottom: 4px;
    left: 4px;
}

.hicret-newsletter-popup__nut--right {
    right: 2px;
    bottom: 3px;
    transform: rotate(28deg) scale(.86);
}

.hicret-newsletter-popup__eyebrow {
    margin: 0 0 7px;
    color: #b47d22;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hicret-newsletter-popup h2 {
    margin: 0;
    color: #183a2a;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
}

.hicret-newsletter-popup__intro {
    max-width: 355px;
    margin: 12px auto 19px;
    color: #52665a;
    font-size: 14px;
    line-height: 1.6;
}

.hicret-newsletter-popup__intro strong {
    color: #0e5f23;
    font-weight: 800;
}

.hicret-newsletter-popup__form {
    display: grid;
    gap: 10px;
    margin: 0 auto;
    max-width: 360px;
    text-align: left;
}

.hicret-newsletter-popup__label {
    margin: 0;
    color: #355444;
    font-size: 12px;
    font-weight: 800;
}

.hicret-newsletter-popup__input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #cadccf;
    border-radius: 7px;
    color: #183a2a;
    background: #fbfdfb;
    font: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.hicret-newsletter-popup__input::placeholder {
    color: #8a9b91;
}

.hicret-newsletter-popup__input:focus {
    border-color: #2f6f4e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 111, 78, .13);
    outline: 0;
}

.hicret-newsletter-popup__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin-top: 2px;
    padding: 11px 17px;
    border: 1px solid #0e5f23;
    border-radius: 7px;
    color: #fff;
    background: #0e5f23;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.hicret-newsletter-popup__submit:hover,
.hicret-newsletter-popup__submit:focus-visible {
    border-color: #094617;
    background: #094617;
    transform: translateY(-1px);
    outline: 0;
}

.hicret-newsletter-popup__submit:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.hicret-newsletter-popup__submit svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.hicret-newsletter-popup__status {
    min-height: 18px;
    margin: 0;
    color: #a33a32;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.hicret-newsletter-popup__status.is-success {
    color: #0e5f23;
}

.hicret-newsletter-popup__privacy {
    margin: 13px 0 0;
    color: #7a8c82;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.hicret-newsletter-popup__success {
    display: none;
}

.hicret-newsletter-popup.is-success .hicret-newsletter-popup__form,
.hicret-newsletter-popup.is-success .hicret-newsletter-popup__privacy,
.hicret-newsletter-popup.is-success .hicret-newsletter-popup__intro {
    display: none;
}

.hicret-newsletter-popup.is-success .hicret-newsletter-popup__success {
    display: block;
}

.hicret-newsletter-popup__success p {
    margin: 13px auto 17px;
    max-width: 340px;
    color: #52665a;
    font-size: 14px;
    line-height: 1.6;
}

.hicret-newsletter-popup__code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 330px;
    margin: 0 auto;
    padding: 8px 8px 8px 17px;
    border: 1px dashed #c9a44a;
    border-radius: 9px;
    background: #fffaf0;
}

.hicret-newsletter-popup__code strong {
    color: #574315;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .13em;
    line-height: 1;
}

.hicret-newsletter-popup__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 37px;
    padding: 8px 12px;
    border: 1px solid #d9bd71;
    border-radius: 6px;
    color: #574315;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.hicret-newsletter-popup__copy:hover,
.hicret-newsletter-popup__copy:focus-visible {
    border-color: #b58a25;
    color: #fff;
    background: #b58a25;
    outline: 0;
}

.hicret-newsletter-popup__copy svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hicret-newsletter-popup__done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 16px;
    padding: 10px 18px;
    border: 1px solid #d5e0d9;
    border-radius: 7px;
    color: #466052;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.hicret-newsletter-popup__done:hover,
.hicret-newsletter-popup__done:focus-visible {
    border-color: #9eb5a5;
    color: #183a2a;
    background: #f5faf6;
    outline: 0;
}

@media (max-width: 575.98px) {
    .hicret-newsletter-popup {
        padding: 14px;
    }

    .hicret-newsletter-popup__dialog {
        padding: 31px 20px 24px;
    }

    .hicret-newsletter-popup h2 {
        font-size: 23px;
    }

    .hicret-newsletter-popup__code {
        gap: 8px;
        padding-left: 12px;
    }

    .hicret-newsletter-popup__code strong {
        font-size: 19px;
    }

    .hicret-newsletter-popup__copy {
        padding-right: 9px;
        padding-left: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hicret-newsletter-popup,
    .hicret-newsletter-popup__dialog,
    .hicret-newsletter-popup__input,
    .hicret-newsletter-popup__submit,
    .hicret-newsletter-popup__copy,
    .hicret-newsletter-popup__done {
        transition: none;
    }
}
