.p7_transfer_modal {
    --p7-transfer-ink: #3d392a;
    --p7-transfer-muted: #a6a6a6;
    --p7-transfer-accent: #fecc17;
    --p7-transfer-surface: #ffffff;
    --p7-transfer-surface-soft: #f6f6f6;
    --p7-transfer-border: #e5e5e5;
    position: relative;
    display: block;
    width: 728px;
    height: 540px;
    min-height: 540px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid #ededed;
    border-radius: 20px;
    color: var(--p7-transfer-ink);
    background: var(--p7-transfer-surface);
    box-shadow: 0 18px 54px rgba(34, 31, 21, 0.14);
    font-family: var(--font-family, 'Montserrat', sans-serif);
    box-sizing: border-box;
    outline: 0;
}

#exportModal .mod.p7_transfer_modal_host {
    width: 728px;
}

.p7_transfer_modal *,
.p7_transfer_modal *::before,
.p7_transfer_modal *::after {
    box-sizing: border-box;
}

.p7_transfer_modal button,
.p7_transfer_modal input {
    font: inherit;
}

.p7_transfer_modal button,
.p7_transfer_modal label,
.p7_transfer_modal input[type="radio"],
.p7_transfer_modal input[type="checkbox"] {
    cursor: pointer;
}

.p7_transfer_modal__close {
    position: absolute;
    z-index: 5;
    top: 23px;
    right: 23px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--p7-transfer-surface-soft);
    place-items: center;
    transition: background 160ms ease, transform 160ms ease;
}

.p7_transfer_modal__close img {
    display: block;
    width: 20px;
    height: 20px;
}

.p7_transfer_modal__close:hover {
    background: #ececec;
}

.p7_transfer_modal__close:active {
    transform: scale(0.96);
}

.p7_transfer_modal__close:focus-visible,
.p7_transfer_form__submit:focus-visible,
.p7_transfer_form__field input:focus-visible,
.p7_transfer_form__contact_options input:focus-visible + span,
.p7_transfer_form__consent input:focus-visible + .p7_transfer_form__checkbox {
    outline: 2px solid var(--p7-transfer-ink);
    outline-offset: 2px;
}

.p7_transfer_modal__form_panel {
    position: relative;
    z-index: 2;
    width: 319px;
}

.p7_transfer_modal__heading h2 {
    margin: 0;
    padding: 0;
    color: var(--p7-transfer-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.p7_transfer_modal__heading p {
    margin: 12px 0 0;
    color: var(--p7-transfer-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.p7_transfer_form {
    margin-top: 16px;
}

.p7_transfer_form__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p7_transfer_form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--p7-transfer-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.p7_transfer_form__field input {
    width: 100%;
    height: 44px;
    padding: 12px;
    border: 1px solid var(--p7-transfer-border);
    border-radius: 12px;
    outline: 0;
    color: var(--p7-transfer-ink);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.p7_transfer_form__field input::placeholder {
    color: var(--p7-transfer-muted);
    opacity: 1;
}

.p7_transfer_form__field input:focus {
    border-color: var(--p7-transfer-accent);
    box-shadow: 0 0 0 3px rgba(254, 204, 23, 0.16);
}

.p7_transfer_form__contact_method {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.p7_transfer_form__contact_method legend {
    margin-bottom: 10px;
    padding: 0;
    color: var(--p7-transfer-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.p7_transfer_form__contact_options {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.p7_transfer_form__contact_options label {
    display: block;
}

.p7_transfer_form__contact_options input,
.p7_transfer_form__consent > input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.p7_transfer_form__contact_options span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--p7-transfer-surface-soft);
    border-radius: 8px;
    color: var(--p7-transfer-ink);
    background: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease;
}

.p7_transfer_form__contact_options input:checked + span {
    border-color: var(--p7-transfer-accent);
}

.p7_transfer_form__contact_options label:hover span {
    background: #fffcf1;
}

.p7_transfer_form__consent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--p7-transfer-muted);
}

.p7_transfer_form__consent + .p7_transfer_form__consent {
    margin-top: 8px;
}

.p7_transfer_form__checkbox {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.p7_transfer_form__checkbox img {
    display: block;
    width: 20px;
    height: 20px;
}

.p7_transfer_form__consent input:checked + .p7_transfer_form__checkbox::after {
    position: absolute;
    inset: 3px;
    display: grid;
    border-radius: 4px;
    color: var(--p7-transfer-ink);
    background: var(--p7-transfer-accent);
    content: "✓";
    font-size: 11px;
    font-weight: 800;
    place-items: center;
}

.p7_transfer_form__consent_copy {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.p7_transfer_form__consent_copy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.p7_transfer_form__submit {
    position: relative;
    width: 100%;
    height: 44px;
    margin-top: 22px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    color: var(--p7-transfer-ink);
    background: var(--p7-transfer-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: filter 160ms ease, transform 160ms ease;
}

.p7_transfer_form__submit:hover {
    filter: brightness(0.97);
}

.p7_transfer_form__submit:active {
    transform: translateY(1px);
}

.p7_transfer_modal__visual {
    position: absolute;
    top: 63px;
    left: 314px;
    width: 461px;
    height: 477px;
    margin: 0;
}

.p7_transfer_modal__scene {
    position: absolute;
    inset: 0;
}

.p7_transfer_modal__scene > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p7_transfer_modal__scene_fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 65.7%, #fff 100%);
}

.p7_transfer_modal__gift {
    position: absolute;
    z-index: 2;
    top: 31px;
    left: 149px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px 8px 32px;
    overflow: hidden;
    border-radius: 0 20px 0 20px;
    color: #fff;
    background: var(--p7-transfer-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.p7_transfer_modal__gift img {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
}

@media (max-width: 760px) {
    #exportModal .mod.p7_transfer_modal_host {
        width: min(367px, calc(100vw - 20px));
    }

    .p7_transfer_modal {
        display: block;
        width: min(100%, 367px);
        height: 760px;
        min-height: 760px;
        padding: 0;
        overflow: hidden;
    }

    .p7_transfer_modal__close {
        top: 22px;
        right: 22px;
    }

    .p7_transfer_modal__form_panel {
        position: absolute;
        top: min(251px, calc((100vw - 20px) * 241 / 367 + 10px));
        left: 22px;
        width: calc(100% - 46px);
    }

    .p7_transfer_modal__visual {
        position: absolute;
        top: -1px;
        left: -1px;
        width: min(367px, calc(100% + 2px));
        height: min(241px, calc((100vw - 20px) * 241 / 367));
        margin: 0;
    }

    .p7_transfer_form__submit {
        margin-top: 16px;
    }

    .p7_transfer_modal__scene > img {
        object-fit: cover;
    }

    .p7_transfer_modal__gift {
        top: 39px;
        right: auto;
        left: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .p7_transfer_modal *,
    .p7_transfer_modal *::before,
    .p7_transfer_modal *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
