.st-orders-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.st-orders-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    border: 1px solid rgba(191, 82, 200, 0.14);
    background: #fff;
}

.st-orders-hero__badge--partner {
    background: rgba(191, 82, 200, 0.08);
    color: var(--st-primary-dark);
}

.st-orders-hero__badge--public {
    background: rgba(15, 23, 42, 0.04);
    color: var(--st-soft);
}

.st-my-orders-sidebar .st-panel + .st-panel {
    margin-top: 18px;
}

.st-my-orders-search-box {
    position: relative;
}

.st-my-orders-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--st-soft);
    font-size: 14px;
    pointer-events: none;
}

.st-my-orders-search-box input {
    padding-left: 40px;
}

.st-my-order-card {
    border: 1px solid var(--st-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(111, 28, 122, 0.05);
    transition: 0.2s ease;
}

.st-my-order-card.is-active {
    border-color: rgba(191, 82, 200, 0.35);
    box-shadow: 0 16px 32px rgba(191, 82, 200, 0.12);
    background: linear-gradient(180deg, #fff, rgba(248, 232, 250, 0.55));
}

.st-my-order-card__action .st-btn {
    width: 100%;
}

.st-my-order-manual {
    border: 1px solid var(--st-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #faf7fb);
}

.st-my-order-mode-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--st-border);
    background: #faf7fb;
    color: var(--st-soft);
    font-size: 14px;
    line-height: 1.55;
}

.st-my-order-detail__products .st-checkout-item,
.st-my-order-detail__payments .st-checkout-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    grid-template-areas:
        "media body total"
        "upload upload upload";
    gap: 12px;
    align-items: start;
    border: 1px solid var(--st-border);
    border-radius: 16px;
    padding: 16px 18px;
    background: #fff;
}

.st-my-order-detail__payments .st-checkout-item__media {
    grid-area: media;
}

.st-my-order-detail__payments .st-checkout-item__body {
    grid-area: body;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.st-my-order-detail__payments .st-checkout-item__total {
    grid-area: total;
}

.st-my-order-detail__payments .st-order-payment-upload {
    grid-area: upload;
    width: 100%;
    max-width: 560px;
    margin: 8px auto 0;
    padding: 20px;
    border-radius: 20px;
    border: 1px dashed rgba(191, 82, 200, 0.28);
    background: linear-gradient(180deg, #fff, #faf7fb);
    text-align: center;
    box-sizing: border-box;
}

.st-my-order-detail__payments .st-order-payment-upload form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.st-my-order-detail__payments .st-order-payment-upload__hint,
.st-my-order-detail__payments .st-order-payment-upload__error {
    width: 100%;
    text-align: center;
}

.st-my-order-detail__payments .st-order-payment-upload__actions {
    width: 100%;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.st-my-order-detail__payments .st-order-payment-upload__actions .st-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

.st-my-order-detail__payments .st-order-payment-upload__preview {
    width: min(240px, 100%);
    margin: 0 auto 14px;
}

.st-checkout-item__media {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3eef5;
    border: 1px solid var(--st-border);
}

.st-checkout-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-checkout-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-primary);
    font-size: 18px;
}

.st-checkout-item__body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.st-checkout-item__title {
    font-weight: 800;
    color: var(--st-text);
    line-height: 1.3;
}

.st-checkout-item__meta {
    color: var(--st-soft);
    font-size: 13px;
    line-height: 1.45;
}

.st-checkout-item__pricing {
    display: grid;
    gap: 4px;
    margin-top: 2px;
}

.st-checkout-item__price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.st-checkout-item__price-value {
    font-family: var(--st-font-heading);
    font-size: 16px;
    font-weight: 900;
    color: var(--st-text);
    line-height: 1;
}

.st-checkout-item__price-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.st-checkout-item__price-label--partner {
    color: var(--st-primary-dark);
}

.st-checkout-item__price-label--public {
    color: var(--st-soft);
}

.st-checkout-item__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.st-checkout-item__bp,
.st-checkout-item__qp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.st-checkout-item__bp {
    background: rgba(0, 221, 28, 0.1);
    color: #0e7f1c;
}

.st-checkout-item__qp {
    background: rgba(191, 82, 200, 0.08);
    color: var(--st-primary-dark);
}

.st-checkout-item__total {
    font-family: var(--st-font-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--st-text);
    white-space: nowrap;
}

.st-order-payment-upload {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(191, 82, 200, 0.24);
    background: linear-gradient(180deg, #fff, #faf7fb);
    text-align: center;
}

.st-order-payment-upload__preview {
    display: none;
    width: 200px;
    margin: 0 auto 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--st-border);
    cursor: pointer;
    background: #fff;
    transition: 0.2s ease;
}

.st-order-payment-upload__preview.is-visible {
    display: block;
}

.st-order-payment-upload__preview:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(191, 82, 200, 0.12);
}

.st-order-payment-upload__preview img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.st-order-payment-upload__hint,
.st-order-payment-upload__error {
    text-align: center;
    font-size: 13px;
}

.st-order-payment-upload__error {
    color: #b42318;
    font-weight: 700;
    min-height: 18px;
}

.st-order-payment-upload__submit[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.st-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.st-modal.is-visible {
    display: flex;
}

.st-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.st-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    text-align: center;
    z-index: 1;
}

.st-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 221, 28, 0.12);
    color: #0e7f1c;
    font-size: 28px;
}

@media (max-width: 768px) {
    .st-orders-hero {
        align-items: flex-start;
    }

    .st-orders-hero__badge {
        width: 100%;
        justify-content: center;
    }

    .st-my-order-detail__products .st-checkout-item,
    .st-my-order-detail__payments .st-checkout-item {
        grid-template-columns: 64px 1fr;
        grid-template-areas:
            "media body"
            "total total"
            "upload upload";
    }

    .st-my-order-detail__payments .st-order-payment-upload {
        max-width: 100%;
        margin-top: 10px;
        padding: 18px 14px;
    }

    .st-my-order-detail__payments .st-order-payment-upload__actions {
        width: 100%;
    }

    .st-my-order-detail__payments .st-order-payment-upload__actions .st-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .st-checkout-item__media {
        width: 64px;
        height: 64px;
    }

    .st-checkout-item__total {
        grid-column: 1 / -1;
        padding-top: 4px;
    }
}

.st-my-order-detail {
    display: grid;
    gap: 26px;
}

.st-my-order-detail__hero {
    position: relative;
    padding: 26px 28px;
    border: 1px solid rgba(191, 82, 200, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(191, 82, 200, 0.1),
            transparent 28%
        ),
        linear-gradient(180deg, #ffffff 0%, #fcf9fd 100%);
    box-shadow: 0 18px 40px rgba(111, 28, 122, 0.08);
}

.st-my-order-detail__hero-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.st-my-order-detail__hero-copy {
    min-width: 0;
    flex: 1 1 480px;
}

.st-my-order-detail__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(191, 82, 200, 0.08);
    color: var(--st-primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.st-my-order-detail__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.st-my-order-detail__title-row h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.st-my-order-detail__registered {
    margin: 0;
    font-size: 12px;
    color: var(--st-soft);
    line-height: 1.45;
}

.st-my-order-detail__registered strong {
    font-weight: 700;
    color: var(--st-text);
}

.st-my-order-detail__hero-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.st-my-order-detail__hero-side .st-btn {
    min-width: 220px;
}

.st-my-order-detail__status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.st-my-order-detail__status-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--st-border);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.st-my-order-detail__status-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--st-soft);
}

.st-my-order-detail__status-item .st-order-chip {
    margin: 0;
}

.st-my-order-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.st-my-order-stat {
    position: relative;
    overflow: hidden;
    padding: 20px 18px;
    border-radius: 20px;
    border: 1px solid var(--st-border);
    background: linear-gradient(180deg, #fff 0%, #faf8fb 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.st-my-order-stat::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 72px;
    height: 72px;
    background: radial-gradient(
        circle,
        rgba(191, 82, 200, 0.12),
        transparent 68%
    );
    pointer-events: none;
}

.st-my-order-stat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--st-soft);
    font-size: 13px;
    font-weight: 700;
}

.st-my-order-stat__head i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(191, 82, 200, 0.1);
    color: var(--st-primary-dark);
    font-size: 15px;
    flex: 0 0 auto;
}

.st-my-order-stat strong {
    font-size: 21px;
    line-height: 1.1;
    font-weight: 600;
    color: var(--st-text);
    word-break: break-word;
}

.st-my-orders-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.st-my-orders-section {
    display: grid;
    gap: 14px;
}

.st-my-orders-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
}

.st-my-orders-section__title i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(191, 82, 200, 0.1);
    color: var(--st-primary-dark);
    font-size: 15px;
}

.st-my-orders-box {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--st-border);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.st-my-orders-box__grid {
    display: grid;
    gap: 14px;
}

.st-my-orders-box__item {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.st-my-orders-box__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.st-my-orders-box__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--st-soft);
}

.st-my-orders-box__value {
    color: var(--st-text);
    line-height: 1.5;
    font-weight: 600;
    word-break: break-word;
}

.st-my-order-detail__payments .st-my-orders-section__head {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.st-my-order-detail__payments .st-my-orders-section__head .st-btn {
    min-width: 240px;
}

.st-order-payment-upload {
    margin-top: 18px;
    padding: 20px 20px 20px 20px;
    border-radius: 20px;
    border: 1px dashed rgba(191, 82, 200, 0.28);
    background: linear-gradient(180deg, #fff, #faf7fb);
    text-align: center;
    width: 100%;
}

.st-order-payment-upload__hint {
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
    color: var(--st-soft);
}

.st-order-payment-upload__error {
    text-align: center;
    font-size: 13px;
    color: #b42318;
    font-weight: 700;
    min-height: 18px;
}

.st-order-payment-upload__actions {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.st-order-payment-upload__actions .st-btn {
    min-width: 220px;
    justify-content: center;
}

.st-order-payment-upload__preview {
    display: none;
    width: min(240px, 100%);
    margin: 0 auto 14px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--st-border);
    cursor: pointer;
    background: #fff;
    transition: 0.2s ease;
    box-shadow: 0 12px 24px rgba(191, 82, 200, 0.1);
}

.st-order-payment-upload__preview.is-visible {
    display: block;
}

.st-order-payment-upload__preview img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.st-my-order-detail__products h4,
.st-my-order-detail__payments h4 {
    margin: 0;
    font-size: 20px;
}

@media (max-width: 1100px) {
    .st-my-order-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .st-my-order-detail {
        gap: 20px;
    }

    .st-my-order-detail__hero {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .st-my-order-detail__title-row h2 {
        white-space: normal;
    }

    .st-my-order-detail__hero-main {
        flex-direction: column;
        align-items: stretch;
    }

    .st-my-order-detail__hero-side {
        width: 100%;
        justify-content: stretch;
    }

    .st-my-order-detail__hero-side .st-btn,
    .st-my-order-detail__payments .st-my-orders-section__head .st-btn {
        width: 100%;
        min-width: 0;
    }

    .st-my-order-stats {
        grid-template-columns: 1fr;
    }

    .st-my-orders-sections {
        grid-template-columns: 1fr;
    }

    .st-order-payment-upload {
        padding: 18px 14px;
    }

    .st-order-payment-upload__actions {
        width: 100%;
    }

    .st-order-payment-upload__actions .st-btn {
        width: 100%;
        min-width: 0;
    }
}

.st-my-orders-empty-box {
    font-size: 12px;
}

.st-my-orders-found {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.st-my-orders-found__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.st-my-orders-found__head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-size: 0.95rem;
}

.st-my-orders-found__head small {
    color: #64748b;
    font-size: 0.82rem;
}

.st-my-order-card__action .st-btn span {
    display: inline-block;
}

@media (max-width: 767.98px) {
    .st-my-orders-found__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.st-checkout-item__variant-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.st-checkout-item__variant-box span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f7f1f8;
    color: var(--st-soft);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.st-checkout-item__variant-box span strong {
    color: var(--st-text);
    font-weight: 900;
}

.st-checkout-item__variant-box span i {
    color: var(--st-primary);
    font-size: 10px;
}

.st-checkout-item__variant-box span:nth-child(2) {
    background: rgba(191, 82, 200, 0.1);
    color: var(--st-primary-dark);
    border: 1px solid rgba(191, 82, 200, 0.16);
}

@media (max-width: 768px) {
    .st-checkout-item__variant-box {
        display: grid;
        gap: 5px;
    }

    .st-checkout-item__variant-box span {
        width: fit-content;
        max-width: 100%;
    }
}

@supports (-webkit-touch-callout: none) {
    .st-checkout-item__variant-box span {
        -webkit-font-smoothing: antialiased;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}
