/* ── Wrapper ───────────────────────────────────────────────────────── */
.cct-oo-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
}

/* ── Order Info (number / date / status) ─────────────────────────────── */
.cct-oo-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	padding: 18px 20px;
}

.cct-oo-info-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cct-oo-info-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #999;
}

.cct-oo-info-value {
	font-size: 0.95rem;
	font-weight: 600;
}

.cct-oo-status-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.4;
	background: #f0f0f0;
	color: #555;
}

.cct-oo-status-completed  { background: #e7f4e7; color: #2a9d5c; }
.cct-oo-status-processing { background: #e5f0fb; color: #2271b1; }
.cct-oo-status-on-hold    { background: #fdf2e0; color: #b8860b; }
.cct-oo-status-pending    { background: #f0f0f0; color: #666666; }
.cct-oo-status-cancelled  { background: #f8e6e6; color: #a94442; }
.cct-oo-status-refunded   { background: #f0f0f0; color: #666666; }
.cct-oo-status-failed     { background: #f8e6e6; color: #a94442; }

/* ── Header ────────────────────────────────────────────────────────── */
.cct-oo-header {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding: 18px 20px;
	margin-bottom: 16px;
}

.cct-oo-heading-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cct-oo-heading-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.cct-oo-heading-icon svg {
	display: block;
	fill: currentColor;
}

.cct-oo-heading {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
}

/* ── Items ─────────────────────────────────────────────────────────── */
.cct-oo-items {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/legacy Edge */
}

.cct-oo-items::-webkit-scrollbar {
	display: none; /* Chrome, Safari, WebKit Edge */
}

.cct-oo-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.cct-oo-item:last-child {
	border-bottom: none;
}

.cct-oo-item-image {
	flex-shrink: 0;
}

.cct-oo-item-image img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.cct-oo-item-details {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cct-oo-item-name {
	font-size: 0.9rem;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

a.cct-oo-item-name:hover {
	text-decoration: underline;
}

.cct-oo-name-nowrap .cct-oo-item-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
}

.cct-oo-item-price-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cct-oo-item-price {
	font-size: 0.85rem;
	font-weight: 600;
}

.cct-oo-item-price-old {
	font-size: 0.8rem;
	font-weight: 500;
	color: #999;
	text-decoration: line-through;
}

.cct-oo-item-discount {
	display: inline-flex;
	align-items: center;
	font-size: 0.8rem;
	font-weight: 600;
	color: #2a9d5c;
	background-color: #e7f4e7;
	padding: 2px 8px;
	border-radius: 4px;
}

.cct-oo-item-qty {
	font-size: 0.8rem;
	color: #777;
}

/* ── Item Category ─────────────────────────────────────────────────── */
.cct-oo-item-category {
	font-size: 0.75rem;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cct-oo-empty {
	padding: 40px 20px;
	text-align: center;
	color: #999;
}

/* ── Footer Totals ─────────────────────────────────────────────────── */
.cct-oo-footer {
	flex-shrink: 0;
}

.cct-oo-footer-totals {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 20px;
}

.cct-oo-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.9rem;
}

.cct-oo-subtotal-price-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cct-oo-subtotal-old {
	font-size: 0.8rem;
	font-weight: 500;
	color: #999;
	text-decoration: line-through;
}

.cct-oo-discount-value {
	color: #2a9d5c;
	font-weight: 600;
}

.cct-oo-total {
	font-size: 1.05rem;
	font-weight: 700;
	padding-top: 6px;
}
