.modal.order-receipt-modal {
    --receipt-gutter: clamp(16px, 4vw, 32px);
    max-width: 650px;
    border-color: #3d4e35;
    background: #121911;
    scrollbar-width: thin;
    scrollbar-color: #52654a #171e15;
}

.order-receipt-modal > .modal-close {
    position: sticky;
    top: 13px;
    float: right;
    width: 42px;
    height: 42px;
    margin: 13px 13px -55px 0;
    border: 1px solid #cde1bb36;
    border-radius: 13px;
    background: #192417f2;
    color: #f0f7eb;
}

.order-receipt-modal > .modal-close:hover { background: #2d3c28; }

.order-header {
    padding: clamp(22px, 5vw, 38px) var(--receipt-gutter) clamp(20px, 4vw, 30px);
    border-bottom: 1px solid #34432e;
    background:
        radial-gradient(ellipse at 100% 0, #526d3866, transparent 75%),
        linear-gradient(125deg, #202e1b, #172115 70%);
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    max-width: calc(100% - 42px);
    padding: 4px 9px;
    border: 1px solid #9dc28953;
    border-radius: 7px;
    background: #1b2d1b;
    color: #c8e7ba;
    font-size: 11px;
    font-weight: 720;
    line-height: 1.25;
}

.order-status-pending { border-color: #ad874650; background: #302820; color: #f0d6a5; }
.order-status svg { width: 14px; height: 14px; flex: none; }

.order-header h2 {
    margin: 11px 0 8px;
    max-width: 100%;
    color: #f4f7ef;
    font-size: clamp(26px, 6vw, 42px);
    line-height: 1.08;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 12px;
    margin: 0;
    color: #bdcdb5;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.order-meta > :first-child { font-family: Consolas, monospace; }

.order-body {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 20px var(--receipt-gutter) clamp(20px, 5vw, 33px);
}

.order-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    margin: 0;
    border: 1px solid #354333;
    border-radius: 13px;
    background: #192319;
}

.order-totals > div { min-width: 0; padding: 12px clamp(11px, 3vw, 17px); }
.order-totals > div + div { border-left: 1px solid #354333; }
.order-totals dt { color: #b4c4ae; font-size: 11px; }
.order-totals dd {
    margin: 4px 0 0;
    color: #eef5e8;
    font-size: clamp(16px, 4vw, 21px);
    font-weight: 740;
    line-height: 1.24;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.order-card {
    min-width: 0;
    padding: clamp(12px, 3vw, 18px);
    border: 1px solid #313e2d;
    border-radius: 14px;
    background: #1a2318;
}

.order-card > h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: #f0f6ec;
    font-size: clamp(15px, 3.5vw, 19px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.order-card > h3 svg { flex: none; width: 18px; height: 18px; color: #a9cc93; }

.order-key,
:is(.order-message, .product-detail-rich) pre {
    max-height: 250px;
    padding: 11px 12px;
    border: 1px solid #42533a;
    border-radius: 9px;
    background: #101910;
    color: #d0e8bc;
    font: 13px/1.55 Consolas, 'Courier New', monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow: auto;
}

.order-key { margin: 0 0 11px; user-select: text; }
.order-receipt .order-copy, .order-receipt .order-support { min-height: 44px; font-size: 13px; }

.order-message {
    min-width: 0;
    color: #d0dbcb;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

:is(.order-message, .product-detail-rich) :is(p, h3, h4, blockquote, pre, ul, ol, details) { margin: 0 0 10px; }
:is(.order-message, .product-detail-rich) > :last-child { margin-bottom: 0; }
:is(.order-message, .product-detail-rich) :is(b, strong, h3, h4) { color: #f5f8f1; }
:is(.order-message, .product-detail-rich) :is(h3, h4) { font-size: 1.1em; }
:is(.order-message, .product-detail-rich) :is(ul, ol) { padding-inline-start: 1.35em; }
:is(.order-message, .product-detail-rich) a { color: #c6e8ae; text-decoration: underline; text-underline-offset: 3px; }
:is(.order-message, .product-detail-rich) code {
    padding: 1px 4px;
    border-radius: 4px;
    background: #101910;
    color: #d0e8bc;
    font-family: Consolas, 'Courier New', monospace;
    white-space: pre-wrap;
    user-select: text;
}

:is(.order-message, .product-detail-rich) pre code { padding: 0; background: none; }
:is(.order-message, .product-detail-rich) :is(blockquote, details) {
    padding: 8px 12px;
    border-inline-start: 2px solid #7ea668;
    border-radius: 0 7px 7px 0;
    background: #22301d;
}
:is(.order-message, .product-detail-rich) summary { color: #d5e8c9; cursor: pointer; }

.order-actions { display: grid; gap: 7px; }
.order-message + .order-actions { margin-top: 14px; }

.order-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--order-button-border, #4c6243);
    border-radius: 9px;
    background: var(--order-button-bg, #243421);
    color: var(--order-button-text, #dfefd6);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.order-action-primary { --order-button-bg: #21384d; --order-button-border: #3c6387; --order-button-text: #d8ecff; }
.order-action-success { --order-button-bg: #27442c; --order-button-border: #4f8053; --order-button-text: #def4d9; }
.order-action-danger { --order-button-bg: #452b2b; --order-button-border: #815252; --order-button-text: #f6dddd; }
.order-action:hover { filter: brightness(1.2); }
.order-action svg { width: 16px; height: 16px; flex: none; }

.order-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 9px;
    background: #202a1d;
    color: #cfddc8;
    font-size: 12px;
}

.order-note svg { width: 16px; height: 16px; flex: none; }

.order-review {
    --review-gold: #f5cf80;
    border-color: #5a5237;
    background: radial-gradient(ellipse at top right, #7f643324, transparent 72%), #22261a;
}

.order-review-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    border-radius: 8px;
    color: #f7f3e7;
    font-size: 16px;
    font-weight: 720;
    cursor: pointer;
    list-style: none;
}

.order-review-summary::-webkit-details-marker { display: none; }

.order-review-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #7e693e;
    border-radius: 11px;
    background: #423820;
    color: var(--review-gold);
}

.order-review-summary .order-review-mark svg { width: 20px; height: 20px; }
.order-review-chevron { width: 18px; height: 18px; color: #b9ae90; transform: rotate(90deg); }
.order-review[open] .order-review-chevron { transform: rotate(-90deg); }

.order-review-form {
    display: grid;
    gap: 9px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #5a5237;
}

.order-review-form fieldset { min-width: 0; margin: 0 0 3px; padding: 0; border: 0; }
.order-review-form legend, .order-review-comment-label label { color: #f1eee3; font-size: 13px; font-weight: 680; }
.order-review-form legend { margin-bottom: 8px; padding: 0; }

.order-rating {
    --rating-color: #cac0a7;
    --rating-hot: #b4a88b;
    --rating-glow: transparent;
    --rating-halo: transparent;
    --rating-edge: #494735;
    --rating-progress: 0%;
    --rating-track-size: 5px;
    --rating-thumb-size: 30px;
    --rating-star-size: 1;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 12px 12px 6px;
    border: 1px solid var(--rating-edge);
    border-radius: 13px;
    background: #1b1d15;
}

.order-rating[data-rating="2"] {
    --rating-color: #d5b882;
    --rating-hot: #e5c58b;
    --rating-edge: #695738;
    --rating-glow: #eac06b49;
    --rating-halo: #c2943520;
    --rating-track-size: 6px;
    --rating-star-size: 1.04;
}

.order-rating[data-rating="3"] {
    --rating-color: #eeb963;
    --rating-hot: #ffd68e;
    --rating-edge: #8c6b37;
    --rating-glow: #ffbd5c80;
    --rating-halo: #d5882f38;
    --rating-track-size: 7px;
    --rating-star-size: 1.09;
    --rating-sweep-time: .63s;
}

.order-rating[data-rating="4"] {
    --rating-color: #ffcb74;
    --rating-hot: #ffe0a0;
    --rating-edge: #bb8d4c;
    --rating-glow: #ffc365ae;
    --rating-halo: #df9b3c55;
    --rating-track-size: 8px;
    --rating-star-size: 1.13;
    --rating-sweep-time: .86s;
}

.order-rating[data-rating="5"] {
    --rating-color: #ffd781;
    --rating-hot: #fff1bb;
    --rating-edge: #e7b761;
    --rating-glow: #ffc967e3;
    --rating-halo: #e7a84275;
    --rating-track-size: 10px;
    --rating-star-size: 1.16;
    --rating-sweep-time: 1.22s;
    box-shadow: inset 0 0 24px #f6b64620, 0 0 19px #f6b6462c;
}

.order-rating::before, .order-rating::after, .order-rating-sparks {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.order-rating::before {
    content: '';
    background: radial-gradient(ellipse at 100% 10%, var(--rating-halo), transparent 80%);
}

.order-rating::after {
    content: '';
    opacity: 0;
    background: linear-gradient(110deg, transparent 35%, #fff0b83d 49%, #fff0b812 53%, transparent 66%);
    transform: translateX(-110%);
}

.order-rating-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-rating-stars { display: flex; flex-wrap: wrap; gap: clamp(3px, 1.4vw, 7px); color: #887d62; }
.order-rating-stars svg { flex: none; width: clamp(18px, 5.5vw, 26px); height: clamp(18px, 5.5vw, 26px); }
.order-rating-stars .is-filled {
    fill: var(--rating-color);
    stroke: var(--rating-hot);
    transform: scale(var(--rating-star-size));
    filter: drop-shadow(0 0 4px var(--rating-glow));
}

.order-rating-score { display: flex; flex: none; align-items: baseline; gap: 4px; color: #c4b89c; font-size: 12px; }
.order-rating-score strong {
    color: var(--rating-hot);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px var(--rating-glow);
}
.order-rating-label { margin: 4px 0 0; color: #d5c7a8; font-size: 12px; line-height: 1.35; }

.order-rating-range { position: relative; margin-top: 3px; }
.order-rating-track {
    position: absolute;
    inset-inline: calc(var(--rating-thumb-size) / 2);
    top: 50%;
    height: var(--rating-track-size);
    border-radius: 99px;
    background: #4b4433;
    transform: translateY(-50%);
    pointer-events: none;
}

.order-rating-track i {
    position: relative;
    display: block;
    overflow: hidden;
    width: var(--rating-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #946439, var(--rating-color) 58%, var(--rating-hot));
    box-shadow: 0 0 10px var(--rating-glow);
}

.order-rating-track i::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(100deg, transparent 27%, #fff9dfb5 51%, transparent 75%);
    transform: translateX(-100%);
}

.order-rating-range input {
    position: relative;
    display: block;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    touch-action: pan-y;
    cursor: grab;
}
.order-rating-range input:active { cursor: grabbing; }
.order-rating-range input:focus-visible { outline: 2px solid var(--rating-hot); outline-offset: 1px; }
.order-rating-range input::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.order-rating-range input::-moz-range-track { height: 6px; background: transparent; }

.order-rating-range input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--rating-thumb-size);
    height: var(--rating-thumb-size);
    margin-top: calc((6px - var(--rating-thumb-size)) / 2);
    border: 2px solid var(--rating-hot);
    border-radius: 50%;
    background: radial-gradient(circle, var(--rating-hot) 0 24%, #29271d 28% 100%);
    box-shadow: 0 0 16px var(--rating-glow), 0 0 0 5px var(--rating-halo);
}

.order-rating-range input::-moz-range-thumb {
    box-sizing: border-box;
    width: var(--rating-thumb-size);
    height: var(--rating-thumb-size);
    border: 2px solid var(--rating-hot);
    border-radius: 50%;
    background: radial-gradient(circle, var(--rating-hot) 0 24%, #29271d 28% 100%);
    box-shadow: 0 0 16px var(--rating-glow), 0 0 0 5px var(--rating-halo);
}

.order-rating[data-rating="5"] input::-webkit-slider-thumb {
    background: radial-gradient(circle at 36% 28%, #fffbe7 12%, #ffe195 46%, #ad6a2c 100%);
}
.order-rating[data-rating="5"] input::-moz-range-thumb {
    background: radial-gradient(circle at 36% 28%, #fffbe7 12%, #ffe195 46%, #ad6a2c 100%);
}

.order-rating-marks { display: flex; justify-content: space-between; }
.order-rating-marks button {
    width: var(--rating-thumb-size);
    min-height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #c5baa0;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.order-rating-marks button:hover { color: #fff2c9; }
.order-rating-marks [aria-pressed="true"] {
    border-color: var(--rating-edge);
    background: #393020;
    color: var(--rating-hot);
}

.order-rating-sparks i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    opacity: 0;
    clip-path: polygon(50% 0, 63% 36%, 100% 50%, 63% 64%, 50% 100%, 37% 64%, 0 50%, 37% 36%);
    background: #fff0bb;
}

.order-review[open]:has(.order-rating[data-rating="5"]) {
    border-color: #aa8749;
    background: radial-gradient(ellipse at 100% 7%, #ffbd5729, transparent 66%), #242619;
    box-shadow: 0 0 22px #ecab492b, inset 0 0 22px #ebaf3915;
}
.order-review:has(.order-rating[data-rating="5"]) .order-review-mark { box-shadow: 0 0 16px #f4bd5d52; }

@media (prefers-reduced-motion: no-preference) {
    .order-rating:not([data-rating="0"], [data-rating="1"]) { transition: border-color .24s ease, box-shadow .24s ease; }
    .order-rating:not([data-rating="0"], [data-rating="1"]) .order-rating-track { transition: height .22s ease; }
    .order-rating:not([data-rating="0"], [data-rating="1"]) .order-rating-stars svg { transition: transform .25s cubic-bezier(.2,.7,.25,1.45), filter .24s ease; }
    .order-rating:is([data-rating="3"], [data-rating="4"], [data-rating="5"]) .order-rating-track i::after { animation: order-rating-sweep var(--rating-sweep-time) ease-out; }
    .order-rating[data-rating="5"]::after { animation: order-rating-sweep 1.28s ease-out; }
    .order-rating[data-rating="5"] .order-rating-sparks i { animation: order-rating-spark 1.22s ease-out var(--delay) 2 both; }
    .order-rating[data-rating="5"] .order-rating-score strong { animation: order-rating-hit .6s cubic-bezier(.19,1,.28,1); }
    .order-review[open]:has(.order-rating[data-rating="5"]) { animation: order-rating-aura 1.3s ease-out; }
}

@keyframes order-rating-sweep {
    0% { opacity: 0; transform: translateX(-100%); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
}
@keyframes order-rating-spark {
    0%, 100% { opacity: 0; transform: translateY(6px) scale(.35) rotate(-25deg); }
    42% { opacity: .9; transform: translateY(-3px) scale(1.2) rotate(17deg); }
    93% { opacity: 0; transform: translateY(-13px) scale(.5) rotate(32deg); }
}
@keyframes order-rating-hit {
    0% { transform: scale(.88); }
    52% { transform: scale(1.24); }
    100% { transform: scale(1); }
}
@keyframes order-rating-aura {
    0%, 100% { box-shadow: 0 0 22px #ecab492b, inset 0 0 22px #ebaf3915; }
    42% { box-shadow: 0 0 34px #ecab4970, inset 0 0 28px #ebaf3941; }
}

.order-review-stars .is-filled { fill: var(--review-gold); stroke: var(--review-gold); }

.order-review-comment-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.order-review-comment-label span, .order-review-visibility, .order-review-meta time {
    color: #cec3a7;
    font-size: 12px;
    line-height: 1.45;
}

.order-review-form .input { min-height: 100px; resize: vertical; font-size: 16px; }
.order-review-visibility { margin: 1px 0 3px; }
.order-review-form .button { min-height: 44px; }

.order-review-saved > h3 { margin-bottom: 9px; }
.order-review-saved > h3 svg { color: var(--review-gold); }
.order-review-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; }
.order-review-score, .order-review-stars { display: inline-flex; align-items: center; gap: 3px; color: #c9bb99; }
.order-review-score { gap: 9px; font-size: 13px; color: #f0e6ce; }
.order-review-stars svg { width: 17px; height: 17px; }

.order-review-quote {
    margin: 12px 0 0;
    padding: 9px 12px;
    border-inline-start: 2px solid #9e8050;
    border-radius: 0 8px 8px 0;
    background: #332d1d;
    color: #f0e7d6;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
