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

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

.my-orders-hero {
    background: var(--text-dark, #111827);
    background-image: url('../images/bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 8.5rem 0 0;
    position: relative;
    overflow-x: clip;
}

html[dir="rtl"] .my-orders-hero {
    background: var(--text-dark, #111827);
    background-image: url('../images/bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 6.2rem 0 0;
    position: relative;
    overflow-x: clip;
}

.my-orders-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
    pointer-events: none;
}

.my-orders-hero > .container,
.my-orders-hero > .my-orders-categories {
    position: relative;
    z-index: 1;
}

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

html[dir="rtl"] .my-orders-page .my-orders-hero {
        padding: 6.2rem 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-toolbar[hidden] {
    display: none !important;
}

/* My Orders page */

.my-orders-page,
.my-orders-page.check-status-page {
    background: #F8F9FC;
}

.my-orders-page .my-orders-main {
    background: #F8F9FC;
}

.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__thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.my-orders-skeleton__badge {
    width: 108px;
    height: 24px;
    border-radius: 999px;
    flex-shrink: 0;
    margin: 0;
    margin-inline-start: auto;
    align-self: flex-start;
}

.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: 104px;
    height: 28px;
    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-infinite[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: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: #fff;
    color: #1c4494;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.my-orders-search-btn:hover {
    background: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.55);
    color: #16367a;
    box-shadow: none;
}

.my-orders-search-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* 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-infinite {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.my-orders-infinite__sentinel {
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

.my-orders-infinite__skeleton {
    max-width: 100%;
}

.my-orders-infinite__skeleton[hidden],
.my-orders-infinite__sentinel[hidden] {
    display: none !important;
}

.my-orders-infinite__skeleton .my-orders-list {
    margin: 0;
}

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

html[dir="rtl"] .my-orders-end {
    text-align: center !important;
}

.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 {
    position: relative;
    background: var(--bg-white, #fff);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
    color: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.my-order-card.is-clickable:hover {
    border-color: #d1d5db;
    background: #fafbfc;
}

.my-order-card.is-clickable:focus-within {
    border-color: var(--primary-color, #4361ee);
}

.my-order-card__hit {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    text-decoration: none;
    color: inherit;
}

.my-order-card__hit:focus {
    outline: none;
}

.my-order-card__hit:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(67, 97, 238, 0.35);
}

.my-order-card__body {
    position: relative;
    z-index: 1;
    padding: 0.9rem 1.05rem 1rem;
    /* Let non-interactive content clicks fall through to the card hit link. */
    pointer-events: none;
}

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

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

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

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

.my-order-card__title {
    font-weight: 650;
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-dark, #111);
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.my-order-card__applicant {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-light, #757575);
    line-height: 1.35;
}

.my-order-card__status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-start;
    flex-shrink: 0;
    max-width: min(46%, 12.5rem);
    margin: 0;
    margin-inline-start: auto;
}

.my-order-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    min-height: 26px;
    padding: 0.15rem 0.55rem 0.15rem 0.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    text-align: start;
}

.my-order-card__badge i,
.my-order-card__badge svg {
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 auto;
    stroke-width: 2.25;
}

.my-order-card__badge-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-order-card__badge--success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.my-order-card__badge--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.my-order-card__badge--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.my-order-card__badge--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.my-order-card__badge--neutral {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
}

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

.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.15rem;
    min-width: 0;
}

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

.my-order-card__number-row {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.my-order-card__number-value {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text-dark, #111);
    font-variant-numeric: tabular-nums;
    direction: ltr;
    unicode-bidi: isolate;
}

.my-order-card__copy {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -4px 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.my-order-card__copy:hover {
    background: #f3f4f6;
    color: var(--primary-dark, #1c4494);
}

.my-order-card__copy:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.35);
}

.my-order-card__copy.is-copied {
    color: #166534;
}

.my-order-card__copy i,
.my-order-card__copy svg {
    width: 0.9rem;
    height: 0.9rem;
}

.my-order-card__btn {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 0 0.95rem;
    border-radius: 10px;
    background: #f1f2f6;
    color: #556086;
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
    text-align: center;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.my-order-card__btn:hover {
    background: #e8ebf2;
    color: #556086;
}

.my-order-card__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.35);
}

.my-order-card__btn--pay {
    background: rgba(226, 28, 61, 0.92);
    color: #fff;
}

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

.my-order-card__actions {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    pointer-events: auto;
}

.my-order-card__delete {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.my-order-card__delete:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.my-order-card__delete:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.35);
}

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

.my-order-card__delete i,
.my-order-card__delete svg {
    width: 0.95rem;
    height: 0.95rem;
}

html[dir="rtl"] .my-order-card__badge,
html[dir="rtl"] .my-order-card__btn {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.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__body {
        padding: 0.9rem;
    }

    .my-order-card__row {
        align-items: center;
        gap: 0.65rem;
    }

    .my-order-card__thumb {
        width: 56px;
        height: 56px;
    }

    .my-order-card__title {
        font-size: 0.9rem;
    }

    .my-order-card__status {
        max-width: min(52%, 12.5rem);
    }

    .my-order-card__badge {
        font-size: 0.68rem;
        padding: 0.12rem 0.45rem 0.12rem 0.35rem;
    }

    .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: 68%;
    }

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

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

/* Gmail-style cancel snackbar with Undo — same width as order cards (.container 20px + list 720px) */
.my-orders-snackbar {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    box-sizing: border-box;
    width: min(720px, calc(100vw - 40px));
    max-width: min(720px, calc(100vw - 40px));
    padding: 0.85rem 1rem;
    border: 1px solid #1f2937;
    border-radius: 12px;
    background: #111827;
    color: #f9fafb;
    box-shadow: none;
    transform: translateX(-50%) translateY(0.75rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.my-orders-snackbar.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

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

.my-orders-snackbar__message {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.my-orders-snackbar__undo {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 0.65rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #93c5fd;
    font: inherit;
    font-weight: 750;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
}

.my-orders-snackbar__undo:hover,
.my-orders-snackbar__undo:focus-visible {
    color: #bfdbfe;
    background: rgba(255, 255, 255, 0.06);
}

.my-orders-snackbar__undo:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}

.my-orders-snackbar__undo:disabled {
    opacity: 0.55;
    cursor: default;
}

html[dir="rtl"] .my-orders-snackbar,
html[dir="rtl"] .my-orders-snackbar__undo {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.my-order-card.is-cancel-leaving {
    overflow: hidden;
    opacity: 0;
    transform: scale(0.98);
    max-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
    .my-orders-snackbar,
    .my-order-card.is-cancel-leaving {
        transition: none;
    }
}

@media (max-width: 560px) {
    .my-orders-snackbar {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        padding: 0.75rem 0.85rem;
    }
}
