/* ===== Order detail page ===== */
.order-detail-page.withdraw-page {
	padding-bottom: var(--spacing-xl);
}

.order-detail-page__header {
	margin-bottom: var(--spacing-md);
}

.order-detail-page__code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px !important;
	word-break: break-all;
}

.order-detail-summary {
	background: var(--bg-primary);
	border-radius: var(--border-radius-xl);
	box-shadow: var(--shadow-card);
	padding: var(--spacing-md);
	margin-bottom: var(--spacing-md);
	text-align: center;
}

.order-detail-summary__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: var(--spacing-md);
}

.order-detail-summary__platform {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
}

.order-detail-summary__platform--shopee { background: #ee4d2d; }
.order-detail-summary__platform--lazada { background: #0f146d; }
.order-detail-summary__platform--tiktok { background: #111; }
.order-detail-summary__platform--default { background: #6c757d; }

.order-detail-summary__amount-wrap {
	margin-bottom: 6px;
}

.order-detail-summary__amount-label {
	display: block;
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.order-detail-summary__amount {
	display: block;
	font-size: 28px;
	font-weight: 800;
	color: var(--color-primary);
	line-height: 1.2;
}

.order-detail-summary__sub {
	margin: 0 0 var(--spacing-md);
	font-size: 13px;
	color: var(--text-secondary);
}

.order-detail-copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid #e9ecef;
	border-radius: 999px;
	background: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.order-detail-copy-btn:hover {
	background: #eef0f2;
}

.order-detail-section {
	background: var(--bg-primary);
	border-radius: var(--border-radius-xl);
	box-shadow: var(--shadow-card);
	padding: var(--spacing-md);
	margin-bottom: var(--spacing-md);
}

.order-detail-section__title {
	margin: 0 0 var(--spacing-sm);
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
}

.order-detail-section__count {
	font-weight: 600;
	color: var(--text-muted);
}

.order-detail-products {
	display: flex;
	flex-direction: column;
}

.order-detail-product {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f3f5;
}

.order-detail-product:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.order-detail-product:first-child {
	padding-top: 0;
}

.order-detail-product__thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
}

.order-detail-product__img,
.order-detail-product__placeholder {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
	background: #f8f9fa;
}

.order-detail-product__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ced4da;
	font-size: 24px;
}

.order-detail-product__body {
	flex: 1;
	min-width: 0;
}

.order-detail-product__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
}

.order-detail-product__name {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.order-detail-product__shop {
	margin: 0 0 6px;
	font-size: 12px;
	color: var(--text-muted);
}

.order-detail-product__pricing {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 2px 0 4px;
}

.order-detail-product__qty {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--bg-secondary);
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
	line-height: 1.4;
}

.order-detail-product__price-group {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: auto;
	min-width: 0;
}

.order-detail-product__unit-price {
	font-size: 12px;
	color: var(--text-muted);
	text-decoration: line-through;
	line-height: 1.3;
}

.order-detail-product__line-total {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.3;
}

.order-detail-product__commission {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-primary);
	text-align: right;
}

.order-detail-product__status {
	flex-shrink: 0;
	margin-top: 2px;
}

.order-detail-dl {
	margin: 0;
	padding: 0;
}

.order-detail-dl__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid #f1f3f5;
}

.order-detail-dl__row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.order-detail-dl__row dt {
	margin: 0;
	flex-shrink: 0;
	font-size: 13px;
	color: var(--text-muted);
	font-weight: 500;
}

.order-detail-dl__row dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	text-align: right;
	word-break: break-word;
}

.order-detail-dl__mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	font-weight: 500;
}

.order-detail-dl__amount {
	color: var(--color-primary) !important;
	font-size: 16px !important;
}

.order-detail-dl__row--highlight {
	padding-top: 12px;
	margin-top: 4px;
	border-top: 1px dashed #e9ecef;
	border-bottom: none;
}

.order-detail-more {
	margin-top: var(--spacing-sm);
	border-top: 1px solid #f1f3f5;
	padding-top: var(--spacing-sm);
}

.order-detail-more summary {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-primary);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.order-detail-more summary::-webkit-details-marker {
	display: none;
}

.order-detail-more summary::after {
	content: '›';
	font-size: 18px;
	line-height: 1;
	color: var(--text-muted);
	transition: transform 0.15s ease;
}

.order-detail-more[open] summary::after {
	transform: rotate(90deg);
}

.order-detail-dl--nested {
	padding-top: 4px;
}

.order-detail-empty {
	margin-top: var(--spacing-md);
}

/* Profile — nhập mã giới thiệu (7 ngày đầu) */
.profile-referral-apply {
	margin-bottom: var(--spacing-md);
	padding: 14px 16px;
	background: var(--bg-primary);
	border-radius: var(--border-radius-xl);
	box-shadow: var(--shadow-card);
	border: 1px solid rgba(252, 83, 50, 0.12);
}

.profile-referral-apply__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.profile-referral-apply__head > i {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--color-primary);
	background: rgba(252, 83, 50, 0.1);
}

.profile-referral-apply__title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
}

.profile-referral-apply__hint {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--text-secondary);
}

.profile-referral-apply__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: stretch;
	width: 100%;
}

.profile-referral-apply__input {
	flex: none;
	min-width: 0;
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: var(--border-radius-md);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	color: var(--text-primary);
	background: var(--bg-secondary);
	box-sizing: border-box;
}

.profile-referral-apply__input::placeholder {
	text-align: center;
	letter-spacing: 0.12em;
	font-weight: 500;
	color: var(--text-muted, #9ca3af);
}

.profile-referral-apply__btn {
	flex-shrink: 0;
	min-width: 104px;
	height: 44px;
	padding: 0 18px;
	border: none;
	border-radius: var(--border-radius-md);
	background: var(--color-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.profile-referral-apply__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(252, 83, 50, 0.12);
}

.profile-referral-apply__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 380px) {
	.profile-referral-apply__form {
		flex-direction: column;
	}

	.profile-referral-apply__btn {
		width: 100%;
	}
}

