/* My Orders page — loaded only on my-orders */

/* My orders page hero (shared desktop + mobile base) */

.my-orders-hero {
    background: linear-gradient(135deg, #4D1F85 0%, #365def 50%, #6729cb 100%);
    color: #fff;
    padding: 8.5rem 0 0;
    overflow-x: clip;
}

@media (max-width: 768px) {
.my-orders-page .my-orders-hero {
        padding: 6.75rem 0 0;
    }

.my-orders-page .my-orders-content {
        padding-bottom: calc(1.5rem + var(--mobile-tab-bar-clearance, 4.5rem));
    }
}

.my-orders-hero-content {
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
}

.my-orders-hero h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center !important;
    color: inherit;
}

.my-orders-hero-sub {
    margin: 0 auto;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    text-align: center !important;
}

.my-orders-hero-tools {
    width: 100%;
    max-width: 760px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 1.35rem;
}

.my-orders-hero-toolbar {
    margin: 0;
    justify-content: center;
    width: 100%;
    padding-bottom: 0;
}

.my-orders-hero-toolbar .my-orders-search-form {
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
}

.my-orders-hero-toolbar .my-orders-search-field {
    max-width: none;
    flex: 1 1 auto;
}

.my-orders-hero .my-orders-search-btn {
    background: #fff;
    color: var(--primary-color, #4361ee);
    box-shadow: none;
}

.my-orders-hero .my-orders-search-btn:hover {
    background: #f8faff;
    color: #3651d4;
    box-shadow: none;
}

.my-orders-hero-toolbar[hidden] {
    display: none !important;
}

/* My Orders page */

.my-orders-page {
    background: #f5f6fb;
}

.my-orders-content {
    padding: 1.75rem 0 4rem;
    margin-top: 0;
}

.my-orders-skeleton {
    max-width: 720px;
    margin: 0 auto;
}

.my-orders-skeleton__card {
    pointer-events: none;
}

.my-orders-skeleton__banner {
    min-height: 40px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.my-orders-skeleton__thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.my-orders-skeleton__label {
    width: 88px;
    height: 12px;
    border-radius: 4px;
}

.my-orders-skeleton__number {
    width: 64px;
    height: 18px;
    border-radius: 4px;
}

.my-orders-skeleton__btn {
    width: 150px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.my-orders-state {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.my-orders-state[hidden],
.my-orders-list-wrap[hidden],
.my-orders-skeleton[hidden],
.my-orders-load-more-wrap[hidden],
.my-orders-filter-empty[hidden] {
    display: none !important;
}

.my-orders-state__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: var(--primary-color, #4361ee);
    font-size: 1.35rem;
}

.my-orders-state h2,
.my-orders-state p,
.my-orders-state .btn-primary,
.my-orders-state .btn-primary span,
html[dir="rtl"] .my-orders-state,
html[dir="rtl"] .my-orders-state h2,
html[dir="rtl"] .my-orders-state p,
html[dir="rtl"] .my-orders-state .btn-primary,
html[dir="rtl"] .my-orders-state .btn-primary span {
    text-align: center !important;
}

.my-orders-state h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.my-orders-state p {
    color: var(--text-light, #757575);
    margin-bottom: 1.25rem;
    width: 100%;
}

.my-orders-state .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

#myOrdersClearFilters.btn-primary,
.my-orders-filter-empty .btn-primary {
    background: var(--primary-color, #4361ee);
    color: #fff;
}

#myOrdersClearFilters.btn-primary:hover,
.my-orders-filter-empty .btn-primary:hover {
    background: var(--primary-dark, #1c4494);
    box-shadow: none;
}

.my-orders-state--error .my-orders-state__icon {
    background: #fff1f2;
    color: #e21c3d;
}

.my-orders-list-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.my-orders-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.my-orders-search-form {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
}

.my-orders-search-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 18rem;
    margin: 0;
}

/* Lucide replaces <i> with <svg> — position both */
.my-orders-search-field > i,
.my-orders-search-field > svg,
.my-orders-search-field > .lucide {
    position: absolute;
    left: 0.9rem;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
    stroke: currentColor;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
    display: block;
}

.my-orders-search {
    width: 100%;
    height: 44px;
    min-height: 44px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    padding-block: 0;
    padding-left: 2.55rem;
    padding-right: 0.95rem;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    direction: ltr;
    text-align: left;
}

.my-orders-search::placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 1;
}

.my-orders-search:focus {
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* RTL: icon + placeholder/text on the right; keep LTR for numeric order typing */
html[dir="rtl"] .my-orders-search-field > i,
html[dir="rtl"] .my-orders-search-field > svg,
html[dir="rtl"] .my-orders-search-field > .lucide {
    left: auto;
    right: 0.9rem;
}

html[dir="rtl"] .my-orders-search-field input.my-orders-search {
    padding-left: 0.95rem;
    padding-right: 2.55rem;
    direction: ltr;
    text-align: right !important;
    font-family: 'GM', sans-serif;
}

html[dir="rtl"] .my-orders-search::placeholder {
    text-align: right;
}

.my-orders-search-btn i,
.my-orders-search-btn svg,
.my-orders-search-btn .lucide {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    stroke: currentColor;
    color: inherit;
}

.my-orders-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 44px;
    min-height: 44px;
    padding: 0 1.15rem;
    border: none;
    border-radius: 10px;
    background: var(--primary-color, #4361ee);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.my-orders-search-btn:hover {
    background: #3651d4;
    box-shadow: none;
}

.my-orders-search-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Underline tabs — shared laptop + mobile */

.my-orders-categories {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    justify-content: safe center;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.my-orders-categories[hidden] {
    display: none !important;
}

.my-orders-categories::-webkit-scrollbar {
    display: none;
}

.my-orders-cat {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    height: 2.85rem;
    min-height: 2.85rem;
    padding: 0 0.9rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #4d4d4d;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.my-orders-cat i,
.my-orders-cat svg,
.my-orders-cat .lucide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
    color: inherit !important;
    stroke: currentColor;
    transition: color 0.2s ease, transform 0.2s ease;
}

.my-orders-cat span {
    line-height: 1.2;
}

.my-orders-cat:hover,
.my-orders-cat:focus-visible {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #1c4494;
    outline: none;
}

.my-orders-cat.is-active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #1c4494 !important;
}

.my-orders-cat.is-active i,
.my-orders-cat.is-active svg,
.my-orders-cat.is-active .lucide {
    color: inherit !important;
    stroke: currentColor;
}

.my-orders-cat::after {
    content: '';
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}

.my-orders-cat.is-active::after {
    transform: scaleX(1);
    opacity: 1;
}

.my-orders-cat--just-selected {
    animation: my-orders-cat-pulse 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.my-orders-cat--just-selected i,
.my-orders-cat--just-selected svg,
.my-orders-cat--just-selected .lucide {
    animation: my-orders-cat-icon-pop 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes my-orders-cat-pulse {
    0% { color: #1c4494; }
    40% { color: #365def; }
    100% { color: #1c4494; }
}

@keyframes my-orders-cat-icon-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

html[dir="rtl"] .my-orders-cat span {
    font-family: 'GM', sans-serif;
}

.my-orders-filter-empty {
    margin: 1.25rem auto 0.5rem;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.my-orders-filter-empty:not([hidden]) {
    display: flex !important;
}

.my-orders-filter-empty h2,
.my-orders-filter-empty p,
.my-orders-filter-empty .btn-primary,
.my-orders-filter-empty .btn-primary span,
html[dir="rtl"] .my-orders-filter-empty,
html[dir="rtl"] .my-orders-filter-empty h2,
html[dir="rtl"] .my-orders-filter-empty p,
html[dir="rtl"] .my-orders-filter-empty .btn-primary,
html[dir="rtl"] .my-orders-filter-empty .btn-primary span {
    text-align: center !important;
    margin-inline: auto;
}

.my-orders-filter-empty h2,
.my-orders-filter-empty p {
    width: 100%;
}

.my-orders-list-wrap:has(.my-orders-filter-empty:not([hidden])) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(52vh, 420px);
}

.my-orders-filter-empty[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
html[dir="rtl"] .my-orders-cat span,
    html[dir="rtl"] .my-orders-hero h1,
    html[dir="rtl"] .my-orders-hero-sub {
        font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
    }
}

@media (max-width: 640px) {
.my-orders-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

.my-orders-search-form {
        width: 100%;
    }

.my-orders-search-field {
        max-width: none;
        flex: 1 1 auto;
    }
}

.my-orders-list {
    display: grid;
    gap: 1rem;
}

.my-orders-list--leave {
    animation: my-orders-list-leave 0.2s ease both;
    pointer-events: none;
}

.my-orders-list--leave-reverse {
    animation: my-orders-list-leave-reverse 0.2s ease both;
    pointer-events: none;
}

.my-orders-list--enter {
    animation: my-orders-list-enter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.my-orders-list--enter-reverse {
    animation: my-orders-list-enter-reverse 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes my-orders-list-leave {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-18px);
    }
}

@keyframes my-orders-list-leave-reverse {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(18px);
    }
}

@keyframes my-orders-list-enter {
    from {
        opacity: 0;
        transform: translateX(22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes my-orders-list-enter-reverse {
    from {
        opacity: 0;
        transform: translateX(-22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.my-order-card--enter {
    animation: my-order-card-enter 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--order-stagger, 0ms);
}

@keyframes my-order-card-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.my-order-card--append {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.3s ease-out var(--append-delay, 0ms),
        transform 0.3s ease-out var(--append-delay, 0ms);
}

.my-order-card--append.is-in {
    opacity: 1;
    transform: translateY(0);
}

.my-order-card:focus {
    outline: 2px solid rgba(67, 97, 238, 0.55);
    outline-offset: 3px;
}

.my-order-card:focus:not(:focus-visible) {
    outline: none;
}

.my-orders-filter-empty--enter {
    animation: my-orders-list-enter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.my-orders-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
.my-orders-cat::after,
    .my-orders-cat i {
        transition: none;
    }

.my-orders-cat--just-selected,
    .my-orders-cat--just-selected i,
    .my-orders-list--leave,
    .my-orders-list--leave-reverse,
    .my-orders-list--enter,
    .my-orders-list--enter-reverse,
    .my-order-card--enter,
    .my-orders-filter-empty--enter {
        animation: none !important;
    }

    .my-order-card--append,
    .my-order-card--append.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.my-orders-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.my-orders-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 200px;
    min-height: 46px;
    height: 46px;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 12px;
    background: var(--primary-color, #4361ee);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.my-orders-load-more:hover:not(:disabled) {
    filter: brightness(1.05);
}

.my-orders-load-more:disabled,
.my-orders-load-more.is-loading {
    opacity: 0.85;
    cursor: wait;
}

.my-orders-load-more[hidden] {
    display: none !important;
}

.my-orders-load-more__chevron,
.my-orders-load-more__spinner,
.my-orders-load-more > i,
.my-orders-load-more > svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    display: block;
    stroke: currentColor;
    color: inherit;
}

.my-orders-load-more__spinner {
    font-size: 0.95rem;
    line-height: 1;
}

.my-orders-end {
    margin: 0;
    padding: 0.35rem 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    animation: my-orders-end-in 0.3s ease-out forwards;
}

.my-orders-end[hidden] {
    display: none !important;
    animation: none;
}

@keyframes my-orders-end-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .my-orders-end {
        animation: none;
        opacity: 1;
    }
}

.my-order-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(194, 190, 190, 0.47);
    color: inherit;
}

.my-order-card__banner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.35;
}

.my-order-card__banner--rich {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-align: start;
    font-weight: 400;
}

.my-order-card__banner-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
}

.my-order-card__banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.my-order-card__banner-text {
    min-width: 0;
    flex: 1;
}

.my-order-card__banner-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.2rem;
}

.my-order-card__banner-sub {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.45;
    opacity: 0.95;
}

.my-order-card__body {
    padding: 0.85rem 0.9rem 1rem;
}

.my-order-card__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.my-order-card__thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: #eeeeee;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa3b5;
    font-size: 1.25rem;
}

.my-order-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-order-card__info {
    min-width: 0;
    flex: 1;
}

.my-order-card__title {
    font-weight: 600;
    font-size: 0.98rem;
    margin: 0 0 0.4rem;
    color: var(--text-dark, #111);
    line-height: 1.35;
}

.my-order-card__applicant {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 300;
    color: #444;
}

.my-order-card__divider {
    border: 0;
    border-top: 1px solid #f1f2f6;
    margin: 0.85rem 0 0.65rem;
}

.my-order-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.my-order-card__number-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.my-order-card__number-label {
    font-size: 0.75rem;
    font-weight: 300;
    color: #6b7280;
}

.my-order-card__number-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: #181717;
}

.my-order-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 45px;
    padding: 0 1rem;
    border-radius: 12px;
    background: #f1f2f6;
    color: #556086;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    flex-shrink: 0;
    transition: filter 0.15s ease;
}

.my-order-card__btn:hover {
    filter: brightness(0.97);
    color: #556086;
}

.my-order-card__btn--pay {
    background: rgba(244, 67, 55, 0.78);
    color: #fff;
}

.my-order-card__btn--pay:hover {
    color: #fff;
}

.my-order-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.my-order-card__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 1px solid rgba(201, 34, 70, 0.22);
    border-radius: 12px;
    background: #fff5f5;
    color: #c92246;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.my-order-card__delete:hover:not(:disabled) {
    background: #ffe4e6;
    border-color: rgba(201, 34, 70, 0.4);
}

.my-order-card__delete:disabled,
.my-order-card__delete.is-busy {
    opacity: 0.7;
    cursor: wait;
}

.my-order-card__delete i {
    font-size: 0.95rem;
}

.my-order-card--removing {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* Delete / notice dialog */
.my-orders-dialog[hidden] {
    display: none !important;
}

body.my-orders-dialog-open {
    overflow: hidden;
}

.my-orders-dialog {
    position: fixed;
    inset: 0;
    z-index: 100200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.my-orders-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: my-orders-dialog-fade 0.2s ease both;
}

.my-orders-dialog__card {
    position: relative;
    width: min(100%, 400px);
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.3rem 1.2rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    text-align: center;
    animation: my-orders-dialog-pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.my-orders-dialog__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.my-orders-dialog__icon.is-danger {
    background: #fef2f2;
    color: #ef4444;
}

.my-orders-dialog__icon.is-error {
    background: #fef2f2;
    color: #dc2626;
}

.my-orders-dialog__icon.is-info {
    background: #eef2ff;
    color: #4361ee;
}

.my-orders-dialog__card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
    font-weight: 750;
    color: #111827;
    line-height: 1.3;
}

.my-orders-dialog__card p {
    margin: 0 0 1.2rem;
    color: #6b7280;
    font-size: 0.94rem;
    line-height: 1.55;
}

.my-orders-dialog__actions {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.my-orders-dialog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    min-height: 44px;
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    text-align: center;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.my-orders-dialog__btn:hover {
    filter: brightness(0.97);
}

.my-orders-dialog__btn:active {
    transform: scale(0.98);
}

.my-orders-dialog__btn--ghost {
    background: #f3f4f6;
    color: #374151;
}

.my-orders-dialog__btn--danger {
    background: #ef4444;
    color: #fff;
}

.my-orders-dialog__btn--primary {
    background: var(--primary-color, #4361ee);
    color: #fff;
}

html[dir="rtl"] .my-orders-dialog__card,
html[dir="rtl"] .my-orders-dialog__card h3,
html[dir="rtl"] .my-orders-dialog__card p {
    text-align: center;
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

html[dir="rtl"] .my-orders-dialog__btn {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
    text-align: center;
    justify-content: center;
}

@keyframes my-orders-dialog-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes my-orders-dialog-pop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
.my-orders-dialog__backdrop,
    .my-orders-dialog__card {
        animation: none;
    }
}

@media (max-width: 560px) {
.my-order-card__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
    }

.my-order-card__number-col {
        flex: 0 1 auto;
        text-align: start;
    }

.my-order-card__actions {
        max-width: 62%;
    }

.my-order-card__btn {
        width: auto;
        min-width: 0;
        max-width: none;
        flex: 0 1 auto;
        padding: 0 0.85rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

.my-order-card__delete {
        width: 42px;
        height: 42px;
    }
}
