﻿.tv-account-orders {
	--order-bg: #fff;
	--order-soft: #f8f8fa;
	--order-border: #ebebef;
	--order-ink: #22232a;
	--order-muted: #747781;
	--order-accent: var(--tales-red, #eb3039);
	--order-tint: #fff0f1;
	color: var(--order-ink);
}
.tv-orders-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.tv-orders-heading > div { flex: 1; min-width: 0; }
.tv-orders-eyebrow { display: block; margin-bottom: 8px; color: var(--order-accent); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.tv-orders-heading h2 { margin: 0; color: var(--order-ink); font-size: 28px; font-weight: 750; letter-spacing: -.03em; outline: none; }
.tv-orders-heading p { margin: 8px 0 0; color: var(--order-muted); font-size: 13px; line-height: 1.6; }
.tv-orders-back { display: none; }
.tv-orders-refresh { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid var(--order-border); border-radius: 50%; appearance: none; background: var(--order-bg); color: var(--order-ink); font-size: 16px; line-height: 1; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tv-orders-refresh > i { width: 1em; line-height: 1; pointer-events: none; }
.tv-orders-refresh:disabled { opacity: .7; cursor: progress; }
.tv-orders-refresh:active:not(:disabled) { background: var(--order-tint); border-color: var(--order-accent); }
.tv-orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--order-muted); font-size: 12px; }
.tv-orders-toolbar > span:first-child { color: var(--order-ink); font-weight: 600; }
.tv-orders-toolbar i { margin-right: 5px; }
.tv-orders-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tv-orders-list > li { min-width: 0; }
.tv-order-card { padding: 20px 22px; border: 1px solid var(--order-border); border-radius: 14px; background: var(--order-bg); box-shadow: 0 3px 12px #24283504; }
.tv-order-card-main { display: flex; align-items: center; gap: 13px; }
.tv-order-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--order-tint); color: var(--order-accent); font-size: 19px; }
.tv-order-product { flex: 1; min-width: 0; }
.tv-order-product > span { color: var(--order-muted); font-size: 12px; }
.tv-order-product h3 { margin: 5px 0 0; color: var(--order-ink); font-size: 16px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.tv-order-payment { display: flex; flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: 7px; }
.tv-order-payment > strong { color: var(--order-ink); font-size: 20px; font-weight: 700; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tv-order-payment > strong > small { color: var(--order-muted); font-size: 11px; font-weight: 500; }
.tv-order-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--order-soft); color: var(--order-muted); font-size: 11px; font-weight: 650; line-height: 1.5; }
.tv-order-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tv-order-status.is-paid { background: #e9f7ef; color: #21794a; }
.tv-order-status.is-pending { background: #fff4df; color: #9a640d; }
.tv-order-status.is-failed { background: #ffedef; color: #bb3f50; }
.tv-order-status.is-refunded { background: #efedff; color: #6850ae; }
.tv-order-meta { display: flex; justify-content: space-between; gap: 18px; margin: 18px 0 0; }
.tv-order-meta > div { min-width: 0; }
.tv-order-meta > div:first-child { flex: 1; }
.tv-order-meta > div:last-child { flex-shrink: 0; text-align: right; }
.tv-order-meta dt { margin-bottom: 4px; color: var(--order-muted); font-size: 11px; font-weight: 400; }
.tv-order-meta dd { margin: 0; color: var(--order-muted); font-size: 12px; line-height: 1.6; }
.tv-order-meta dd + dt { margin-top: 8px; }
.tv-order-serial { overflow-wrap: anywhere; user-select: all; }
.tv-order-meta code { padding: 0; background: transparent; color: inherit; font: inherit; overflow-wrap: anywhere; user-select: all; }
.tv-orders-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.tv-orders-pagination p { margin: 0; color: var(--order-muted); font-size: 11px; }
.tv-orders-pagination nav { display: flex; align-items: center; gap: 6px; }
.tv-orders-pagination button { display: grid; place-items: center; min-width: 34px; height: 36px; padding: 0 8px; border: 1px solid var(--order-border); border-radius: 9px; background: var(--order-bg); color: var(--order-ink); font: inherit; font-size: 12px; cursor: pointer; }
.tv-orders-pagination button.is-current { border-color: var(--order-accent); background: var(--order-accent); color: #fff; }
.tv-orders-pagination button:hover:not(:disabled):not(.is-current) { border-color: var(--order-accent); color: var(--order-accent); }
.tv-orders-pagination button:disabled { opacity: .35; cursor: default; }
.tv-account-orders a:focus-visible, .tv-account-orders button:focus-visible { outline: 2px solid var(--order-accent); outline-offset: 3px; }
.tv-orders-notice { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 24px; border: 1px dashed var(--order-border); border-radius: 16px; background: var(--order-soft); text-align: center; }
.tv-orders-notice > i { color: var(--order-accent); font-size: 32px; }
.tv-orders-notice h3 { margin: 0; font-size: 20px; }
.tv-orders-notice p { max-width: 340px; margin: 0; color: var(--order-muted); font-size: 13px; line-height: 1.7; }
.tv-orders-notice > a, .tv-orders-notice > button { margin-top: 5px; padding: 10px 18px; border: 0; border-radius: 9px; background: var(--order-accent); color: #fff; font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
@media (min-width: 769px) and (max-width: 1200px) {
	.tv-order-card-main { flex-wrap: wrap; }
	.tv-order-payment { flex: 1 0 100%; flex-direction: row; align-items: center; justify-content: space-between; }
	.tv-order-meta { flex-direction: column; gap: 10px; }
	.tv-order-meta > div:last-child { text-align: left; }
}
@media (max-width: 768px) {
	.tv-account-orders { --order-bg: #1b1b20; --order-soft: #25252d; --order-border: #303038; --order-ink: #f3f3f6; --order-muted: #a2a2ae; --order-accent: #ff2b92; --order-tint: #342130; }
	.tales-shell:has(.tales-orders-page) > .tales-header, .tales-shell:has(.tales-orders-page) > .tales-footer, .tales-shell:has(.tales-orders-page) .tv-profile-heading { display: none; }
	.tales-shell:has(.tales-orders-page) > .tales-content { margin: 0; padding: 0 0 calc(84px + env(safe-area-inset-bottom)); }
	.tales-shell .tales-orders-page { display: block; margin: 0; padding: 0; }
	.tales-shell .tales-orders-page > .tales-profile-card, .tales-shell .tales-orders-page > .tales-profile-links { display: none; }
	.tales-shell .tales-orders-page > .tales-profile-purchase-panel { padding: 20px 16px 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
	.tv-orders-heading { gap: 12px; margin: 0 0 24px; }
	.tv-orders-back { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 40px; margin-left: -8px; color: var(--order-ink); text-decoration: none; }
	.tv-orders-heading h2 { font-size: 23px; }
	.tv-orders-eyebrow, .tv-orders-heading p { display: none; }
	.tv-orders-refresh { background: var(--order-soft); }
	.tv-orders-toolbar { margin-bottom: 16px; font-size: 11px; }
	.tv-order-card { padding: 16px; border-radius: 14px; box-shadow: none; }
	.tv-order-card-main { gap: 10px; }
	.tv-order-icon { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
	.tv-order-product > span { font-size: 10px; }
	.tv-order-product h3 { font-size: 15px; }
	.tv-order-payment { max-width: 45%; gap: 7px; }
	.tv-order-payment > strong { font-size: 18px; white-space: normal; text-align: right; }
	.tv-order-payment > strong > small { font-size: 9px; }
	.tv-order-status.is-paid { background: #18362b; color: #72d6a0; }
	.tv-order-status.is-pending { background: #3b2c18; color: #edbe67; }
	.tv-order-status.is-failed { background: #3c222b; color: #ff91a3; }
	.tv-order-status.is-refunded { background: #302744; color: #c4a6ff; }
	.tv-order-meta { flex-direction: column; gap: 10px; margin: 16px 0 0; }
	.tv-order-meta > div:last-child { text-align: left; }
	.tv-order-meta dt { margin-bottom: 2px; }
	.tv-order-meta dd { font-size: 12px; }
	.tv-orders-pagination { justify-content: center; flex-direction: column; gap: 14px; margin-top: 24px; }
	.tv-orders-pagination nav { gap: 5px; }
	.tv-orders-pagination button { min-width: 34px; height: 40px; padding: 0 7px; border-radius: 10px; }
	.tv-orders-pagination .tv-orders-page-edge { display: none; }
}
@media (max-width: 350px) {
	.tv-order-card-main { flex-wrap: wrap; }
	.tv-order-payment { flex: 1 0 100%; max-width: none; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (hover: hover) and (pointer: fine) {
	.tv-orders-refresh:hover:not(:disabled) { border-color: var(--order-accent); color: var(--order-accent); }
}
@media (prefers-reduced-motion: reduce) {
	.tv-orders-refresh .fa-spin { animation: none; }
}
