.roham-orders {
	--roham-orders-primary: var(--e-global-color-primary, #ff753b);
	--roham-orders-secondary: var(--e-global-color-secondary, #e30a58);
	--roham-orders-text: var(--e-global-color-text, #050505);
	--roham-orders-accent: var(--e-global-color-accent, #444444);
	--roham-orders-surface: var(--e-global-color-c161273c, #f5f5f5);
	--roham-orders-success: var(--e-global-color-4ad75ec, #38c976);
	--roham-orders-border: var(--e-global-color-1e77409, #eeeeee);
	--roham-orders-soft: var(--e-global-color-9907219, rgba(245, 245, 245, 0.6));
	color: var(--roham-orders-text);
	direction: rtl;
	font-family: var(--e-global-typography-primary-font-family, "iransans"), sans-serif;
	font-size: 13px;
}

.roham-orders *,
.roham-orders *::before,
.roham-orders *::after {
	box-sizing: border-box;
}

.roham-orders-loading-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.roham-orders-skeletons {
	display: grid;
	gap: 16px;
}

.roham-order-skeleton {
	position: relative;
	overflow: hidden;
	padding: 20px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 24px;
	background: #fff;
}

.roham-order-skeleton::after,
.roham-order-details-skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.2) 35%,
		rgba(255, 255, 255, 0.85) 50%,
		rgba(255, 255, 255, 0.2) 65%,
		transparent 100%
	);
	transform: translateX(100%);
	animation: roham-orders-shimmer 1.5s ease-in-out infinite;
	pointer-events: none;
	will-change: transform;
}

.roham-order-skeleton-header,
.roham-order-skeleton-meta,
.roham-order-skeleton-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.roham-order-skeleton-meta {
	padding-block: 14px;
	margin-block: 14px;
	border-block: 1px solid var(--roham-orders-border);
}

.roham-order-skeleton-line,
.roham-order-skeleton-status,
.roham-order-skeleton-images span,
.roham-order-skeleton-button {
	display: block;
	background: var(--roham-orders-surface);
}

.roham-order-skeleton-line {
	height: 13px;
	border-radius: 999px;
}

.roham-order-skeleton-line--title {
	width: min(190px, 55%);
}

.roham-order-skeleton-line--meta {
	width: min(155px, 45%);
}

.roham-order-skeleton-line--price {
	width: min(130px, 38%);
}

.roham-order-skeleton-status {
	width: 78px;
	height: 34px;
	border-radius: 999px;
}

.roham-order-skeleton-images {
	display: flex;
	gap: 6px;
}

.roham-order-skeleton-images span {
	width: 52px;
	height: 52px;
	border-radius: 14px;
}

.roham-order-skeleton-button {
	width: 115px;
	height: 38px;
	border-radius: 999px;
}

@keyframes roham-orders-shimmer {
	to {
		transform: translateX(-100%);
	}
}

.roham-order-details-skeleton {
	position: relative;
	display: grid;
	overflow: hidden;
	gap: 12px;
}

.roham-order-detail-skeleton-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.roham-order-detail-skeleton-box,
.roham-order-detail-skeleton-summary {
	padding: 20px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 20px;
	background: #fff;
}

.roham-order-detail-skeleton-line,
.roham-order-detail-skeleton-rows span,
.roham-order-detail-skeleton-note,
.roham-order-detail-skeleton-summary span,
.roham-order-detail-skeleton-image {
	display: block;
	background: var(--roham-orders-surface);
}

.roham-order-detail-skeleton-line {
	height: 12px;
	border-radius: 999px;
}

.roham-order-detail-skeleton-line--title {
	width: 105px;
	height: 14px;
	margin-block-end: 16px;
}

.roham-order-detail-skeleton-rows {
	display: grid;
	gap: 11px;
}

.roham-order-detail-skeleton-rows span {
	width: 82%;
	height: 11px;
	border-radius: 999px;
}

.roham-order-detail-skeleton-rows span:nth-child(2) {
	width: 64%;
}

.roham-order-detail-skeleton-rows span:nth-child(3) {
	width: 72%;
}

.roham-order-detail-skeleton-rows span:nth-child(4) {
	width: 56%;
}

.roham-order-detail-skeleton-note {
	width: 100%;
	height: 70px;
	border-radius: 14px;
}

.roham-order-detail-skeleton-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.roham-order-detail-skeleton-summary span {
	height: 38px;
	border-radius: 12px;
}

.roham-order-detail-skeleton-item {
	display: grid;
	grid-template-columns: 66px minmax(0, 1fr) 100px;
	gap: 13px;
	align-items: center;
	padding: 10px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 16px;
	background: var(--roham-orders-surface);
}

.roham-order-detail-skeleton-image {
	width: 66px;
	height: 66px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 12px;
	background: #fff;
}

.roham-order-detail-skeleton-item > div {
	display: grid;
	gap: 9px;
}

.roham-order-detail-skeleton-line--product {
	width: min(230px, 80%);
}

.roham-order-detail-skeleton-line--small {
	width: min(145px, 55%);
}

.roham-order-detail-skeleton-line--price {
	width: 90px;
}

.roham-orders-load-state {
	display: flex;
	min-height: 120px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 20px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 20px;
	background: #fff;
	color: var(--roham-orders-accent);
	font-size: 13px;
	text-align: center;
}

.roham-orders-load-state.is-error {
	flex-direction: column;
	color: var(--roham-orders-secondary);
}

.roham-orders-retry {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
	justify-content: center;
	padding: 7px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--roham-orders-primary);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.roham-orders-retry:focus-visible {
	outline: 2px solid var(--roham-orders-primary);
	outline-offset: 2px;
}

.roham-orders-list {
	display: grid;
	gap: 16px;
}

.roham-order-card {
	overflow: hidden;
	padding: 20px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 24px;
	background: #fff;
}

.roham-order-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
}

.roham-order-number {
	min-width: 0;
	margin: 0;
	color: var(--roham-orders-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
}

.roham-order-status {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 117, 59, 0.1);
	background: color-mix(in srgb, currentColor 10%, transparent);
	color: var(--roham-orders-primary);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.roham-order-status--completed {
	color: var(--roham-orders-success);
}

.roham-order-status--processing {
	color: var(--roham-orders-primary);
}

.roham-order-status--pending,
.roham-order-status--on-hold {
	color: var(--roham-orders-accent);
}

.roham-order-status--failed,
.roham-order-status--cancelled {
	color: var(--roham-orders-secondary);
}

.roham-order-status--refunded {
	color: #767676;
}

.roham-order-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: center;
	padding-block: 14px;
	margin-block: 14px;
	border-block: 1px solid var(--roham-orders-border);
}

.roham-order-date,
.roham-order-total {
	display: flex;
	min-width: 0;
	align-items: baseline;
	gap: 7px;
}

.roham-order-total {
	justify-content: flex-end;
	text-align: left;
}

.roham-order-date span,
.roham-order-total span,
.roham-order-address span,
.roham-order-summary span {
	color: var(--roham-orders-accent);
	opacity: 0.72;
}

.roham-order-date strong,
.roham-order-total strong {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.roham-order-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.roham-order-thumbnails {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 6px;
	direction: rtl;
}

.roham-order-thumbnail-wrap,
.roham-order-thumbnail-more {
	display: inline-flex;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid var(--roham-orders-border);
	border-radius: 14px;
	background: #fff;
}

.roham-order-thumbnail {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.roham-order-thumbnail-more {
	color: var(--roham-orders-accent);
	font-size: 13px;
	font-weight: 700;
}

.roham-order-actions {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
}

.roham-order-button,
.roham-order-detail-button {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px 15px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
}

.roham-order-button:focus-visible,
.roham-order-detail-button:focus-visible {
	outline: 2px solid var(--roham-orders-primary);
	outline-offset: 2px;
}

.roham-order-button:disabled {
	cursor: wait;
	opacity: 0.7;
}

.roham-order-button--view {
	background: linear-gradient(
		90deg,
		var(--roham-orders-primary),
		var(--roham-orders-secondary)
	);
	color: #fff;
}

.roham-order-button--track {
	border: 1px solid var(--roham-orders-border);
	background: #fff;
	color: var(--roham-orders-text);
}

.roham-order-button--pay {
	background: var(--roham-orders-success);
	color: #fff;
}

.roham-order-button--cancel {
	background: rgba(227, 10, 88, 0.09);
	color: var(--roham-orders-secondary);
}

.roham-order-spinner {
	display: inline-block;
	width: 15px;
	height: 15px;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	animation: roham-order-spin 700ms linear infinite;
}

@keyframes roham-order-spin {
	to {
		transform: rotate(360deg);
	}
}

.roham-order-details {
	padding-block-start: 16px;
	margin-block-start: 16px;
	border-block-start: 1px dashed var(--roham-orders-border);
}

.roham-order-details[hidden] {
	display: none;
}

.roham-order-loading,
.roham-order-error {
	display: flex;
	min-height: 80px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 18px;
	background: #fff;
	color: var(--roham-orders-accent);
	font-size: 13px;
}

.roham-order-error {
	color: var(--roham-orders-secondary);
}

.roham-order-details-grid {
	display: grid;
	gap: 12px;
}

.roham-order-detail-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.roham-order-detail-box,
.roham-order-summary {
	padding: 20px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 20px;
	background: #fff;
}

.roham-order-detail-box h4 {
	margin: 0 0 14px;
	color: var(--roham-orders-text);
	font-size: 14px;
	font-weight: 700;
}

.roham-order-address {
	display: grid;
	gap: 8px;
}

.roham-order-address > div {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.roham-order-address strong {
	min-width: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.9;
	overflow-wrap: anywhere;
}

.roham-order-notes {
	display: grid;
	gap: 8px;
}

.roham-order-note {
	padding: 10px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 14px;
	background: var(--roham-orders-soft);
	font-size: 13px;
	line-height: 1.9;
}

.roham-order-note p {
	margin: 0;
}

.roham-order-note time {
	display: block;
	margin-block-end: 4px;
	color: var(--roham-orders-accent);
	font-size: 13px;
	opacity: 0.65;
}

.roham-order-no-content {
	margin: 0;
	color: var(--roham-orders-accent);
	font-size: 13px;
}

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

.roham-order-summary > div {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 6px;
}

.roham-order-summary strong {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.8;
}

.roham-order-tracking {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.roham-order-tracking h4 {
	margin-block-end: 7px;
}

.roham-order-tracking code {
	display: inline-flex;
	padding: 7px 12px;
	border: 1px dashed var(--roham-orders-border);
	border-radius: 999px;
	background: var(--roham-orders-soft);
	color: var(--roham-orders-text);
	font-family: inherit;
	font-size: 13px;
	direction: ltr;
}

.roham-order-tracking-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.roham-order-detail-button {
	min-height: 36px;
	background: var(--roham-orders-surface);
	color: var(--roham-orders-text);
}

.roham-order-detail-button--primary {
	background: var(--roham-orders-primary);
	color: #fff;
}

.roham-order-items {
	display: grid;
	gap: 10px;
}

.roham-order-item {
	display: grid;
	grid-template-columns: 66px minmax(0, 1fr) auto;
	gap: 13px;
	align-items: center;
	padding: 10px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 16px;
	background: var(--roham-orders-surface);
}

.roham-order-item-thumbnail {
	overflow: hidden;
	width: 66px;
	height: 66px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 12px;
	background: #fff;
}

.roham-order-item-thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.roham-order-item-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.roham-order-item-content {
	min-width: 0;
}

.roham-order-item-title {
	display: block;
	color: var(--roham-orders-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.8;
	text-decoration: none !important;
}

.roham-order-item-meta,
.roham-order-item-meta ul,
.roham-order-item-values {
	color: var(--roham-orders-accent);
	font-size: 13px;
}

.roham-order-item-meta ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	padding: 0;
	margin: 4px 0 0;
	list-style: none;
}

.roham-order-item-meta p {
	display: inline;
	margin: 0;
}

.roham-order-item-values {
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: flex-end;
	white-space: nowrap;
}

.roham-order-item-values strong {
	color: var(--roham-orders-text);
	font-weight: 600;
}

.roham-orders-pagination {
	margin-block-start: 20px;
}

.roham-orders-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.roham-orders-pagination a,
.roham-orders-pagination span {
	display: inline-flex;
	min-width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	padding-inline: 10px;
	border: 1px solid var(--roham-orders-border);
	border-radius: 999px;
	background: #fff;
	color: var(--roham-orders-text);
	font-size: 13px;
	text-decoration: none;
}

.roham-orders-pagination .current {
	border-color: var(--roham-orders-primary);
	background: var(--roham-orders-primary);
	color: #fff;
}

.roham-orders-empty,
.roham-orders-notice {
	padding: 20px;
	border: 1px solid var(--e-global-color-1e77409, #eeeeee);
	border-radius: 20px;
	background: #fff;
	color: var(--e-global-color-text, #050505);
	font-family: var(--e-global-typography-primary-font-family, "iransans"), sans-serif;
	font-size: 13px;
	text-align: center;
}

@media (max-width: 767px) {
	.roham-orders {
		font-size: 12px;
	}

	.roham-orders-list,
	.roham-orders-skeletons {
		gap: 12px;
	}

	.roham-order-skeleton {
		padding: 10px;
		border-radius: 18px;
	}

	.roham-order-skeleton-header,
	.roham-order-skeleton-meta,
	.roham-order-skeleton-footer {
		gap: 10px;
	}

	.roham-order-skeleton-meta {
		padding-block: 10px;
		margin-block: 10px;
	}

	.roham-order-skeleton-status {
		width: 65px;
		height: 30px;
	}

	.roham-order-skeleton-images {
		gap: 4px;
	}

	.roham-order-skeleton-images span {
		width: 42px;
		height: 42px;
		border-radius: 11px;
	}

	.roham-order-skeleton-button {
		width: 95px;
		height: 34px;
	}

	.roham-order-detail-skeleton-columns,
	.roham-order-detail-skeleton-summary {
		grid-template-columns: 1fr;
	}

	.roham-order-detail-skeleton-box,
	.roham-order-detail-skeleton-summary {
		padding: 10px;
		border-radius: 15px;
	}

	.roham-order-detail-skeleton-line--title {
		margin-block-end: 11px;
	}

	.roham-order-detail-skeleton-summary {
		gap: 10px;
	}

	.roham-order-detail-skeleton-summary span {
		height: 32px;
	}

	.roham-order-detail-skeleton-item {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 9px;
		padding: 10px;
		border-radius: 13px;
	}

	.roham-order-detail-skeleton-image {
		width: 54px;
		height: 54px;
		border-radius: 10px;
	}

	.roham-order-detail-skeleton-line--price {
		grid-column: 1 / -1;
		width: 90px;
		margin-inline-start: auto;
	}

	.roham-orders-load-state {
		min-height: 100px;
		padding: 10px;
		border-radius: 15px;
		font-size: 12px;
	}

	.roham-orders-retry {
		min-height: 34px;
		padding: 7px 12px;
		font-size: 12px;
	}

	.roham-order-card {
		padding: 10px;
		border-radius: 18px;
	}

	.roham-order-header {
		gap: 8px;
	}

	.roham-order-number,
	.roham-order-detail-box h4,
	.roham-order-item-title {
		font-size: 13px;
	}

	.roham-order-status,
	.roham-order-date strong,
	.roham-order-total strong,
	.roham-order-thumbnail-more,
	.roham-order-button,
	.roham-order-detail-button,
	.roham-order-loading,
	.roham-order-error,
	.roham-order-address strong,
	.roham-order-note,
	.roham-order-note time,
	.roham-order-no-content,
	.roham-order-summary strong,
	.roham-order-tracking code,
	.roham-order-item-meta,
	.roham-order-item-meta ul,
	.roham-order-item-values,
	.roham-orders-pagination a,
	.roham-orders-pagination span,
	.roham-orders-empty,
	.roham-orders-notice {
		font-size: 12px;
	}

	.roham-order-status {
		min-height: 30px;
		padding: 5px 9px;
	}

	.roham-order-meta {
		gap: 10px;
		padding-block: 10px;
		margin-block: 10px;
	}

	.roham-order-date,
	.roham-order-total {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}

	.roham-order-total {
		align-items: flex-end;
	}

	.roham-order-footer {
		gap: 10px;
		align-items: flex-end;
	}

	.roham-order-thumbnails {
		gap: 4px;
	}

	.roham-order-thumbnail-wrap,
	.roham-order-thumbnail-more {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
		border-radius: 11px;
	}

	.roham-order-actions {
		gap: 6px;
	}

	.roham-order-button {
		min-height: 34px;
		padding: 7px 11px;
	}

	.roham-order-details {
		padding-block-start: 10px;
		margin-block-start: 10px;
	}

	.roham-order-detail-columns,
	.roham-order-summary {
		grid-template-columns: 1fr;
	}

	.roham-order-detail-box,
	.roham-order-summary {
		padding: 10px;
		border-radius: 15px;
	}

	.roham-order-detail-box h4 {
		margin-block-end: 10px;
	}

	.roham-order-address > div {
		grid-template-columns: 90px minmax(0, 1fr);
		gap: 8px;
	}

	.roham-order-summary {
		gap: 10px;
	}

	.roham-order-summary > div {
		display: grid;
		grid-template-columns: 110px minmax(0, 1fr);
		gap: 8px;
		align-items: start;
	}

	.roham-order-tracking {
		align-items: stretch;
		flex-direction: column;
	}

	.roham-order-tracking-actions {
		width: 100%;
	}

	.roham-order-tracking-actions .roham-order-detail-button {
		flex: 1;
	}

	.roham-order-item {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 9px;
		padding: 10px;
		border-radius: 13px;
	}

	.roham-order-item-thumbnail {
		width: 54px;
		height: 54px;
		border-radius: 10px;
	}

	.roham-order-item-values {
		grid-column: 1 / -1;
		align-items: center;
		justify-content: space-between;
		flex-direction: row;
		padding-block-start: 8px;
		border-block-start: 1px solid var(--roham-orders-border);
	}

	.roham-orders-empty,
	.roham-orders-notice {
		padding: 10px;
		border-radius: 15px;
	}
}

@media (max-width: 480px) {
	.roham-order-date strong,
	.roham-order-total strong {
		white-space: normal;
	}

	.roham-order-footer {
		align-items: center;
	}

	.roham-order-thumbnails {
		flex-wrap: wrap;
	}

	.roham-order-actions {
		align-self: stretch;
		align-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.roham-order-skeleton::after,
	.roham-order-details-skeleton::after {
		display: none;
		animation: none;
	}
}