.eg-gift {
    padding: 1rem 0 6rem;
    color: var(--text,#202124);
    background: #fff
}

.eg-gift * {
    box-sizing: border-box
}

.eg-gift__breadcrumbs {
    margin: 1.5rem 0 2.5rem
}

.eg-gift__intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2.75rem
}

.eg-gift__eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: #6b716d;
    margin: 0 0 .8rem
}

.eg-gift__intro h1 {
    font-size: clamp(2.4rem,4.5vw,4.8rem);
    line-height: 1.04;
    letter-spacing: -.045em;
    margin: 0 0 .9rem
}

.eg-gift__intro p:last-child {
    font-size: 1rem;
    color: var(--muted,#6f757c);
    margin: 0
}

.eg-gift__test-mark {
    font-size: .75rem;
    color: #526758;
    border: 1px solid #c8d7ce;
    border-radius: 100px;
    padding: .55rem .9rem;
    white-space: nowrap
}

.eg-gift__layout {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
    gap: clamp(2rem,5vw,6rem);
    align-items: start
}

.eg-gift__preview-panel {
    position: sticky;
    top: 6.5rem;
    min-width: 0
}

.eg-gift__preview {
    position: relative;
    aspect-ratio: 8/5;
    overflow: hidden;
    background: #f5f4f2;
    container-type: inline-size
}

.eg-gift__preview>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.eg-gift__preview-text {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font-family: "Google Sans",Arial,sans-serif;
    font-weight: 600;
    letter-spacing: .2em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap
}

.eg-gift__preview-text span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 92%;
    font-size: clamp(6px,1.875cqw,30px);
    line-height: 1.3
}

.eg-gift__preview-note {
    color: var(--muted,#6f757c);
    font-size: .78rem;
    line-height: 1.5;
    margin: 1rem 0 1.5rem
}

.eg-gift__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-top: 1px solid var(--border,#e5e1dc);
    padding-top: 1.2rem;
    font-size: .92rem
}

.eg-gift__total strong {
    font-size: 1.55rem;
    white-space: nowrap
}

.eg-gift__form {
    min-width: 0
}

.eg-gift__section {
    border: 0;
    border-top: 1px solid var(--border,#e5e1dc);
    margin: 0;
    padding: 1.6rem 0 2rem;
    min-width: 0
}

.eg-gift__section legend {
    font-size: 1.32rem;
    font-weight: 600;
    padding: 0 .8rem 0 0;
    line-height: 1.3
}

.eg-gift__section legend span {
    font-size: .68rem;
    vertical-align: middle;
    letter-spacing: .12em;
    color: #7a827b;
    margin-right: .6rem
}

.eg-gift__hint {
    font-size: .86rem;
    color: var(--muted,#6f757c);
    margin: .5rem 0 1.2rem
}

.eg-gift__designs {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .75rem
}

.eg-gift__design {
    cursor: pointer;
    min-width: 0
}

.eg-gift__design input,.eg-gift__amounts input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px
}

.eg-gift__design-card {
    display: block;
    border: 1px solid #dddcd9;
    padding: .35rem;
    background: #fff;
    transition: border-color .2s,box-shadow .2s
}

.eg-gift__design-card img {
    display: block;
    width: 100%;
    aspect-ratio: 8/5;
    object-fit: contain
}

.eg-gift__design-card span {
    display: block;
    font-size: .72rem;
    line-height: 1.3;
    padding: .6rem .25rem .3rem;
    min-height: 2.5rem
}

.eg-gift__design input:checked+.eg-gift__design-card {
    border-color: #26382e;
    box-shadow: 0 0 0 1px #26382e
}

.eg-gift__design input:focus-visible+.eg-gift__design-card,.eg-gift__amounts input:focus-visible+span {
    outline: 2px solid var(--focus,#007a5c);
    outline-offset: 2px
}

.eg-gift__upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    margin-top: 1rem;
    font-size: .82rem
}

.eg-gift__upload>label {
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .2em
}

.eg-gift__upload>label span {
    display: block;
    color: var(--muted,#6f757c);
    font-weight: 400;
    text-decoration: none;
    font-size: .72rem;
    margin-top: .2rem
}

.eg-gift__upload input {
    width: min(100%,18rem);
    font-size: .73rem
}

.eg-gift__text-button {
    background: none;
    border: 0;
    padding: 0;
    color: #8b3b40;
    text-decoration: underline;
    cursor: pointer;
    font: inherit
}

.eg-gift__upload [role=status] {
    font-size: .75rem;
    color: #426737
}

.eg-gift__amounts {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .8rem
}

.eg-gift__amounts label {
    cursor: pointer
}

.eg-gift__amounts span {
    display: block;
    border: 1px solid #d8d8d5;
    padding: .8rem 1.05rem;
    border-radius: 3px;
    font-size: .88rem;
    white-space: nowrap;
    transition: background .2s,border-color .2s
}

.eg-gift__amounts input:checked+span {
    background: #26382e;
    border-color: #26382e;
    color: #fff
}

.eg-gift__field {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    margin-top: 1rem
}

.eg-gift__field input,.eg-gift__field textarea {
    display: block;
    width: 100%;
    border: 1px solid #d8d8d5;
    border-radius: 3px;
    background: #fff;
    color: inherit;
    padding: .9rem 1rem;
    font: inherit;
    font-weight: 400;
    margin-top: .45rem;
    resize: vertical
}

.eg-gift__field input:focus,.eg-gift__field textarea:focus {
    outline: 2px solid var(--focus,#007a5c);
    outline-offset: 1px
}

.eg-gift__field small {
    display: block;
    color: var(--muted,#6f757c);
    font-size: .72rem;
    font-weight: 400;
    margin-top: .35rem
}

.eg-gift__optional {
    font-size: .72rem;
    font-weight: 400;
    color: var(--muted,#6f757c)
}

.eg-gift__two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.eg-gift__delivery-options {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.6rem;
    margin-top: .6rem;
    font-size: .85rem
}

.eg-gift__delivery-options label {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer
}

.eg-gift__delivery-options input {
    accent-color: #26382e;
}

.eg-gift__error {
    color: #a0333d;
    font-size: .75rem;
    min-height: 0;
    margin: .45rem 0 0
}

.eg-gift__error:empty {
    display: none
}

.eg-gift__submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem
}

.eg-gift__submit p {
    color: var(--muted,#6f757c);
    font-size: .75rem;
    max-width: 16rem;
    margin: 0
}

.eg-gift__submit .button {
    white-space: nowrap
}

.eg-gift__response {
    font-size: .86rem;
    margin-top: 1rem;
    line-height: 1.45
}

.eg-gift__response[data-state=ok] {
    color: #275d39
}

.eg-gift__response[data-state=error] {
    color: #a0333d
}

.eg-gift [hidden] {
    display: none!important
}

@media(max-width: 900px) {
    .eg-gift__layout {
        grid-template-columns:1fr;
        gap: 2rem
    }

    .eg-gift__preview-panel {
        position: static;
        max-width: 44rem
    }

    .eg-gift__intro {
        margin-bottom: 1.8rem
    }
}

@media(max-width: 600px) {
    .eg-gift {
        padding:.5rem 0 4rem
    }

    .eg-gift__breadcrumbs {
        margin: 1rem 0 1.5rem
    }

    .eg-gift__intro {
        display: block;
        margin-bottom: 1.5rem
    }

    .eg-gift__intro h1 {
        font-size: 2rem
    }

    .eg-gift__intro p:last-child {
        font-size: .88rem
    }

    .eg-gift__test-mark {
        display: inline-block;
        margin-top: 1rem
    }

    .eg-gift__layout {
        gap: 1.4rem
    }

    .eg-gift__preview-note {
        font-size: .72rem;
        margin: .65rem 0 1rem
    }

    .eg-gift__total {
        padding-top: .8rem
    }

    .eg-gift__section {
        padding: 1.25rem 0 1.65rem
    }

    .eg-gift__section legend {
        font-size: 1.15rem
    }

    .eg-gift__designs {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: .55rem
    }

    .eg-gift__design-card span {
        font-size: .69rem;
        min-height: 2.2rem
    }

    .eg-gift__two {
        grid-template-columns: 1fr;
        gap: 0
    }

    .eg-gift__submit {
        display: block
    }

    .eg-gift__submit .button {
        width: 100%;
        margin-top: 1rem
    }

    .eg-gift__submit p {
        max-width: none
    }
}

@font-face {
    font-family: "Jost Gift";
    src: url('/local/components/everglow/gift.form/fonts/Jost-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap
}

.eg-gift__preview-panel {
    top: calc(var(--eg-gift-header-height,76px) + 18px);
    align-self: start
}

.eg-gift__preview-text {
    font-family: "Jost Gift",Arial,sans-serif
}

.eg-gift__preview[data-custom="true"]:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12%;
    background: rgba(0,0,0,.45);
    pointer-events: none;
    z-index: 1
}

.eg-gift__preview-text {
    z-index: 2
}

.eg-gift__design {
    position: relative
}

.eg-gift__design-card {
    position: relative;
    border-radius: 11px;
    padding: 6px;
    border-color: #dcdedb;
    overflow: hidden;
    transition: border-color .22s ease,background-color .22s ease
}

.eg-gift__design-card img {
    border-radius: 6px
}

.eg-gift__design-card:after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #4ac65c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s ease,transform .2s ease
}

.eg-gift__design:hover .eg-gift__design-card {
    border-color: #8f9b91
}

.eg-gift__design input:checked+.eg-gift__design-card {
    border-color: #4ac65c;
    box-shadow: 0 0 0 1px #4ac65c
}

.eg-gift__design input:checked+.eg-gift__design-card:after {
    opacity: 1;
    transform: scale(1)
}

.eg-gift__upload {
    display: block;
    position: relative;
    margin-top: 1rem;
    border: 1px dashed #aeb8ae;
    border-radius: 12px;
    padding: 1.2rem;
    transition: border-color .2s ease,background-color .2s ease
}

.eg-gift__upload[data-dragging="true"] {
    border-color: #4ac65c;
    background: #f2faf3
}

.eg-gift__file-input {
    position: absolute;
    width: 1px!important;
    height: 1px!important;
    opacity: 0;
    overflow: hidden;
    left: 1rem;
    bottom: 1rem
}

.eg-gift__upload-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .3rem
}

.eg-gift__upload-empty label,.eg-gift__upload-actions label {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer
}

.eg-gift__upload-empty>span:last-child {
    color: #737c75;
    font-size: .77rem
}

.eg-gift__upload-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid #bcc7be;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #3a7945;
    margin-bottom: .25rem
}

.eg-gift__upload-ready {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0
}

.eg-gift__upload-ready img {
    width: 100px;
    aspect-ratio: 8/5;
    object-fit: cover;
    border-radius: 7px;
    flex: none
}

.eg-gift__upload-ready>div {
    min-width: 0;
    display: grid;
    gap: .3rem
}

.eg-gift__upload-ready strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem
}

.eg-gift__upload-actions {
    display: flex;
    gap: 1rem;
    font-size: .8rem
}

.eg-gift__upload [role=status] {
    color: #4c7551;
    font-size: .75rem
}

.eg-gift__file-input:focus-visible~.eg-gift__upload-empty,.eg-gift__file-input:focus-visible~.eg-gift__upload-ready {
    outline: 2px solid #4ac65c;
    outline-offset: 6px
}

.eg-gift__amounts span {
    min-height: 50px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    padding: .72rem 1.1rem
}

.eg-gift__amounts input:checked+span {
    background: #4ac65c;
    border-color: #4ac65c;
    color: #fff
}

.eg-gift__custom:not([hidden]),.eg-gift__field[data-date-field]:not([hidden]) {
    animation: egGiftReveal .22s ease-out
}

@keyframes egGiftReveal {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.eg-gift__field input,.eg-gift__field textarea {
    border-radius: 9px;
    min-height: 50px;
    padding: 14px 16px
}

.eg-gift__field input::placeholder,.eg-gift__field textarea::placeholder {
    color: #828a83;
    opacity: 1
}

.eg-gift__field input:focus,.eg-gift__field textarea:focus {
    outline: none;
    border-color: #4ac65c;
    box-shadow: 0 0 0 2px rgba(74,198,92,.15)
}

.eg-gift__delivery-options input {
    accent-color: #169f2a;
    width: 17px;
    height: 17px
}

.eg-gift__field .eg-gift__error {
    display: block;
    font-weight: 400
}

.eg-gift__submit button:disabled {
    opacity: .55;
    cursor: wait
}

@media(max-width: 900px) {
    .eg-gift__preview-panel {
        position:static
    }
}

@media(max-width: 600px) {
    .eg-gift__designs {
        display:flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 1px;
        gap: .65rem;
        padding: 2px 2px .6rem;
        scrollbar-width: thin
    }

    .eg-gift__design {
        flex: 0 0 142px;
        scroll-snap-align: start
    }

    .eg-gift__design-card span {
        min-height: 2.25rem
    }

    .eg-gift__section {
        padding: 1rem 0 1.25rem
    }

    .eg-gift__amounts {
        gap: .5rem
    }

    .eg-gift__amounts span {
        min-height: 48px
    }

    .eg-gift__field input,.eg-gift__field textarea {
        font-size: 14px;
    }

    .eg-gift__upload {
        padding: 1rem
    }

    .eg-gift__preview-note {
        margin: .5rem 0 .8rem
    }
}

@media(prefers-reduced-motion:reduce) {
    .eg-gift__design-card,.eg-gift__design-card:after,.eg-gift__upload,.eg-gift__amounts span {
        transition: none
    }
}

@media(max-width: 600px) {
    .eg-gift {
        overflow-x:clip
    }

    .eg-gift__form,.eg-gift__section {
        width: 100%;
        max-width: 100%;
        min-width: 0
    }

    .eg-gift__designs {
        width: 100%;
        max-width: calc(100vw - 32px);
        min-width: 0
    }
}

.eg-gift__auth-dialog {
    position: fixed;
    inset: 0;
    width: min(440px,calc(100vw - 32px));
    max-width: 440px;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 32px;
    border: 1px solid #e3e7e2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15,35,20,.16);
    overflow: auto
}

.eg-gift__auth-dialog::backdrop {
    background: rgba(22,31,24,.5)
}

.eg-gift__auth-dialog h2 {
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 38px 12px 0
}

.eg-gift__auth-dialog p {
    font-size: .92rem;
    line-height: 1.55;
    color: var(--muted,#6f757c);
    margin: 0 0 24px
}

.eg-gift__auth-close {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e3e7e2;
    border-radius: 50%;
    background: #fff;
    color: var(--text,#202124);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer
}

.eg-gift__auth-close:hover {
    border-color: #9caf9f
}

.eg-gift__auth-close:focus-visible,.eg-gift__auth-dialog button:focus-visible,.eg-gift__auth-dialog a:focus-visible {
    outline: 2px solid var(--focus,#007a5c);
    outline-offset: 3px
}

.eg-gift__auth-actions,.eg-gift__auth-methods {
    display: grid;
    gap: 10px
}

.eg-gift__auth-actions .button,.eg-gift__auth-methods .button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center
}

.eg-gift__auth-methods [data-messenger-auth-status] {
    margin: 8px 0 0;
    min-height: 1.5em;
    color: #3b6645
}

@media(max-width: 600px) {
    .eg-gift__auth-dialog {
        padding:24px;
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px)
    }

    .eg-gift__auth-dialog h2 {
        font-size: 1.35rem
    }

    .eg-gift__auth-dialog p {
        font-size: .9rem
    }
}
