.ebo-thankyou,
.ebo-thankyou * {
    box-sizing: border-box;
}

.ebo-thankyou {
    --ebo-accent: #0e9f6e;
    --ebo-accent-soft: color-mix(in srgb, var(--ebo-accent) 11%, transparent);
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid #e8ecf0;
    border-radius: 28px;
    background: #fff;
    color: #1d2733;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    isolation: isolate;
}

.ebo-thankyou::before {
    content: "";
    position: absolute;
    inset: -100px auto auto -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--ebo-accent-soft);
    filter: blur(2px);
    pointer-events: none;
    z-index: -1;
}

.ebo-thankyou.is-failed {
    --ebo-accent: #e5484d;
}

.ebo-thankyou__preview-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
}

.ebo-thankyou__hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    direction: rtl;
}

.ebo-thankyou__status-icon {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--ebo-accent-soft);
    color: var(--ebo-accent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ebo-accent) 18%, transparent);
}

.ebo-thankyou__status-icon svg,
.ebo-thankyou__row-icon svg,
.ebo-thankyou__product-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ebo-thankyou__status-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2.4;
}

.ebo-thankyou__hero-copy {
    min-width: 0;
    direction: rtl;
    text-align: right;
}

.ebo-thankyou__status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    margin-bottom: 7px;
    border-radius: 999px;
    background: var(--ebo-accent-soft);
    color: var(--ebo-accent);
    font-size: 12px;
    font-weight: 700;
    direction: rtl;
}

.ebo-thankyou__title {
    margin: 0;
    color: #17202a;
    font-size: clamp(21px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.55;
    direction: rtl;
    text-align: right;
}

.ebo-thankyou__description {
    max-width: 760px;
    margin: 7px 0 0;
    color: #68707a;
    font-size: 14px;
    line-height: 1.9;
    direction: rtl;
    text-align: right;
}

.ebo-thankyou__product {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border: 1px solid #edf0f3;
    border-radius: 20px;
    background: #f8fafb;
    direction: rtl;
}

.ebo-thankyou__product-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--ebo-accent);
    box-shadow: 0 4px 18px rgba(18, 32, 48, .06);
}

.ebo-thankyou__product-icon svg {
    width: 24px;
    height: 24px;
}

.ebo-thankyou__product-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
    direction: rtl;
    text-align: right;
}

.ebo-thankyou__product-name {
    overflow: hidden;
    color: #1d2733;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
}

.ebo-thankyou__amount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding-right: 18px;
    border-right: 1px solid #e7ebef;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
}

.ebo-thankyou__amount-label {
    color: #7b8490;
    font-size: 11px;
    direction: rtl;
}

.ebo-thankyou__amount-value {
    color: var(--ebo-accent);
    font-size: 17px;
    font-weight: 900;
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
}

.ebo-thankyou__discount {
    color: #6c7680;
    font-size: 10px;
    font-style: normal;
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
}

.ebo-thankyou__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    direction: rtl;
}

.ebo-thankyou__panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid #edf0f3;
    border-radius: 20px;
    background: #f8fafb;
    direction: rtl;
    text-align: right;
}

.ebo-thankyou__panel-title {
    margin: 0 0 12px;
    color: #27313c;
    font-size: 13px;
    font-weight: 800;
    direction: rtl;
    text-align: right;
}

.ebo-thankyou__rows {
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.ebo-thankyou__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 28px;
    min-height: 45px;
    padding: 7px 0;
    border-bottom: 1px dashed #e3e8ec;
    direction: rtl;
}

.ebo-thankyou__row-head {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    min-width: 0;
    direction: rtl;
}

.ebo-thankyou__row:last-child {
    border-bottom: 0;
}

.ebo-thankyou__row-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    color: #8a949f;
}

.ebo-thankyou__row-icon svg {
    width: 16px;
    height: 16px;
}

.ebo-thankyou__label,
.ebo-thankyou__row-label {
    color: #7b8490;
    font-size: 12px;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

.ebo-thankyou__row-label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ebo-thankyou__value,
.ebo-thankyou__row-value {
    min-width: 0;
    max-width: 62%;
    margin: 0;
    flex: 0 1 auto;
    overflow-wrap: anywhere;
    color: #1d2733;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.7;
    direction: rtl;
    unicode-bidi: isolate;
    text-align: left;
}

.ebo-thankyou__row-value--rtl,
.ebo-thankyou__row-value--rtl bdi {
    direction: rtl;
    unicode-bidi: isolate;
}

.ebo-thankyou__row-value--ltr,
.ebo-thankyou__row-value--ltr bdi {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;
}

.ebo-thankyou__amount-value bdi,
.ebo-thankyou__discount bdi {
    direction: rtl;
    unicode-bidi: isolate;
}

.ebo-thankyou-empty {
    width: 100%;
    padding: 14px 16px;
    border: 1px dashed #d9dfe5;
    border-radius: 14px;
    color: #727c87;
    background: #fafbfc;
    font-family: inherit;
    font-size: 13px;
    text-align: center;
    direction: rtl;
}

@media (max-width: 767px) {
    .ebo-thankyou {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .ebo-thankyou__hero {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .ebo-thankyou__status-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .ebo-thankyou__status-icon svg {
        width: 28px;
        height: 28px;
    }

    .ebo-thankyou__title {
        font-size: 20px;
    }

    .ebo-thankyou__description {
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.8;
    }

    .ebo-thankyou__product {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .ebo-thankyou__amount {
        grid-column: 1 / -1;
        align-items: flex-start;
        padding: 11px 0 0;
        border-top: 1px solid #e7ebef;
        border-right: 0;
    }

    .ebo-thankyou__amount-value {
        font-size: 16px;
    }

    .ebo-thankyou__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ebo-thankyou__panel {
        padding: 14px;
        border-radius: 17px;
    }

    .ebo-thankyou__row {
        column-gap: 18px;
    }

    .ebo-thankyou__row-head {
        gap: 7px;
    }

    .ebo-thankyou__row-value {
        max-width: 58%;
    }

    .ebo-thankyou__row-icon {
        width: 28px;
        height: 28px;
    }

    .ebo-thankyou__row-label {
        font-size: 11px;
    }

    .ebo-thankyou__row-value {
        font-size: 12px;
    }
}

@supports not (background: color-mix(in srgb, #000 10%, transparent)) {
    .ebo-thankyou {
        --ebo-accent-soft: rgba(14, 159, 110, .10);
    }
    .ebo-thankyou.is-failed {
        --ebo-accent-soft: rgba(229, 72, 77, .10);
    }
}
