.shop-custom-request-trigger-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.shop-custom-request-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(100%, 320px);
    min-height: 42px;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid var(--orange);
    border-radius: 10px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    transition: color .2s, background-color .2s;
}

.shop-custom-request-trigger:hover,
.shop-custom-request-trigger:focus {
    background: var(--orange);
    color: #fff;
}

.shop-custom-request-trigger svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shop-custom-request {
    position: relative;
    display: none;
    width: 700px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 24px 26px 22px;
    border-radius: 15px;
    color: var(--black);
    overflow-y: auto;
    box-sizing: border-box;
}

.shop-custom-request__close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff7e2;
    color: var(--orange);
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.shop-custom-request__close:hover,
.shop-custom-request__close:focus {
    background: var(--orange);
    color: #fff;
}

.shop-custom-request__close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.fancybox-slide .shop-custom-request {
    display: inline-block;
}

.shop-custom-request__heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    padding-right: 32px;
    border-bottom: 1px solid #ebebeb;
}

.shop-custom-request__heading[hidden],
.shop-custom-request form[hidden],
.shop-custom-request__success[hidden] {
    display: none !important;
}

.shop-custom-request__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: rgba(253, 175, 27, .16);
    color: var(--orange);
}

.shop-custom-request__icon svg,
.shop-custom-request__file-icon svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shop-custom-request__heading h2 {
    margin: 0 0 4px;
    color: var(--black);
    font-size: 21px;
    line-height: 1.25;
}

.shop-custom-request__heading p,
.shop-custom-request__note,
.shop-custom-request__success p {
    margin: 0;
    color: #707070;
    font-size: 13px;
    line-height: 1.4;
}

.shop-custom-request__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 10px;
}

.shop-custom-request__field--wide {
    grid-column: 1 / -1;
}

.shop-custom-request__field label:not(.shop-custom-request__file) {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.shop-custom-request__field label span,
.shop-custom-request__error,
.shop-custom-request__status {
    color: #d83b3b;
}

.shop-custom-request__field label small {
    color: #8d8d8d;
    font-size: 12px;
    font-weight: 400;
}

.shop-custom-request__field input:not([type="file"]),
.shop-custom-request__field textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #fff;
    color: var(--black);
    font: inherit;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.shop-custom-request__field textarea {
    min-height: 78px;
    max-height: 150px;
    resize: vertical;
}

.shop-custom-request__field input:focus,
.shop-custom-request__field textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(253, 175, 27, .14);
}

.shop-custom-request__field.is-invalid input,
.shop-custom-request__field.is-invalid textarea,
.shop-custom-request__field.is-invalid .shop-custom-request__file {
    border-color: #d83b3b;
}

.shop-custom-request__error {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
}

.shop-custom-request__error:empty {
    display: none;
}

.shop-custom-request__file {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 9px 12px;
    border: 1px dashed var(--orange);
    border-radius: 10px;
    background: #fffaf0;
    cursor: pointer;
    box-sizing: border-box;
}

.shop-custom-request__file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    color: var(--orange);
}

.shop-custom-request__file-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

.shop-custom-request__file-copy strong {
    color: var(--black);
    font-size: 14px;
}

.shop-custom-request__file-copy small {
    color: #707070;
    font-size: 12px;
}

.shop-custom-request__file-input,
.shop-custom-request__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    opacity: 0 !important;
}

.shop-custom-request__file-name {
    margin-top: 6px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 600;
}

.shop-custom-request__status {
    display: none;
    margin: 12px 0 0;
    font-size: 13px;
}

.shop-custom-request__status.is-visible {
    display: block;
}

.shop-custom-request__submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 42px;
    margin: 14px auto 8px;
}

.shop-custom-request__submit i {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: shop-request-spin .7s linear infinite;
}

.shop-custom-request__submit.is-loading i {
    display: block;
}

.shop-custom-request__submit:disabled {
    cursor: wait;
    opacity: .75;
}

.shop-custom-request__note {
    text-align: center;
}

.shop-custom-request__success {
    padding: 26px 10px 12px;
    text-align: center;
}

.shop-custom-request__success > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(253, 175, 27, .16);
    color: var(--orange);
    font-size: 32px;
    font-weight: 700;
}

.shop-custom-request__success h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.shop-custom-request__success .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    width: fit-content;
    margin: 22px auto 0;
}

@keyframes shop-request-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .shop-custom-request-trigger-wrap {
        margin-top: 12px;
    }

    .shop-custom-request-trigger {
        width: 100%;
    }

    .shop-custom-request {
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        padding: 18px 14px 16px;
    }

    .shop-custom-request__close {
        top: 10px;
        right: 10px;
    }

    .shop-custom-request__heading {
        gap: 10px;
        margin-bottom: 13px;
        padding: 0 30px 12px 0;
    }

    .shop-custom-request__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .shop-custom-request__heading h2 {
        font-size: 18px;
    }

    .shop-custom-request__grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .shop-custom-request__field--wide {
        grid-column: auto;
    }

    .shop-custom-request__file {
        align-items: center;
    }

    .shop-custom-request__file-copy {
        width: calc(100% - 42px);
    }

    .shop-custom-request__submit {
        width: 100%;
    }
}
