/* Drox Order Manager — My Account Order Detail CSS */

.droxom-order-detail {
	margin: 20px 0;
}

/* Documents / factures */
.droxom-documents__title {
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: 700;
	color: var(--ma-text, #1f2937);
}
.droxom-documents__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.droxom-documents__badge--invoice {
	background: #dcfce7;
	color: #166534;
}
.droxom-documents__badge--proforma {
	background: #fff7ed;
	color: #9a3412;
}
.droxom-documents__note {
	margin: 14px 0 0;
	color: var(--ma-muted, #6b7280);
	font-size: 13px;
}
.droxom-documents__download {
	white-space: nowrap;
}

/* ── Timeline ── */
.droxom-timeline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 16px;
	background: var(--ma-card-bg, #fff);
	border-radius: var(--ma-card-r, 8px);
	margin-bottom: 20px;
	overflow-x: auto;
}
.droxom-timeline__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 80px;
	opacity: .4;
	transition: opacity .2s;
}
.droxom-timeline__step--done,
.droxom-timeline__step--active {
	opacity: 1;
}
.droxom-timeline__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
	transition: background .2s;
}
.droxom-timeline__step--done .droxom-timeline__dot,
.droxom-timeline__step--active .droxom-timeline__dot {
	background: #f5700a;
	box-shadow: 0 0 0 3px rgba(245, 112, 10, .2);
}
.droxom-timeline__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f3f4f6;
	color: var(--ma-muted, #6b7280);
	transition: background .2s, color .2s;
}
.droxom-timeline__step--done .droxom-timeline__icon,
.droxom-timeline__step--active .droxom-timeline__icon {
	background: rgba(245, 112, 10, 0.1);
	color: var(--ma-accent, #f5700a);
}
.droxom-timeline__label {
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	color: var(--ma-text, #333);
	white-space: nowrap;
}
.droxom-timeline__connector {
	flex: 1;
	height: 2px;
	background: #ddd;
	min-width: 20px;
	transition: background .2s;
}
.droxom-timeline__connector--done {
	background: #f5700a;
}
.droxom-timeline__cancelled {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: #fee;
	border-radius: 6px;
	color: #d63638;
	font-weight: 600;
	width: 100%;
	justify-content: center;
}
.droxom-timeline__cancelled .droxom-timeline__icon {
	font-size: 24px;
}

/* ── Awaiting Payment Banner ── */
.droxom-awaiting-banner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-left: 4px solid #f5700a;
	border-radius: var(--ma-card-r, 8px);
	margin-bottom: 20px;
}
.droxom-awaiting-banner--failed {
	background: #fef2f2;
	border-color: #fecaca;
	border-left-color: #ef4444;
}
.droxom-awaiting-banner__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(245, 112, 10, 0.12);
	color: #f5700a;
	flex-shrink: 0;
}
.droxom-awaiting-banner--failed .droxom-awaiting-banner__icon {
	background: rgba(239, 68, 68, 0.12);
	color: #ef4444;
}
.droxom-awaiting-banner__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--ma-text, #1f2937);
	margin-bottom: 4px;
}
.droxom-awaiting-banner__text {
	font-size: 13px;
	color: var(--ma-muted, #6b7280);
	margin: 0;
	line-height: 1.6;
}
.droxom-awaiting-banner__details {
	margin-top: 8px;
}
.droxom-awaiting-banner__link {
	font-size: 13px;
	font-weight: 600;
	color: #f5700a;
	text-decoration: none;
	transition: opacity .15s;
}
.droxom-awaiting-banner__link:hover {
	opacity: .7;
}

/* ── Timeline step for pending status ── */
.droxom-timeline__step--active.droxom-timeline__step--awaiting .droxom-timeline__dot {
	background: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, .25);
	animation: droxom-pulse 2s ease-in-out infinite;
}
.droxom-timeline__step--active.droxom-timeline__step--awaiting .droxom-timeline__icon {
	background: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
}
@keyframes droxom-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
	50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, .12); }
}

/* ── Tracking Card ── */
.droxom-tracking-card {
	background: var(--ma-card-bg, #fff);
	border-radius: var(--ma-card-r, 8px);
	padding: 20px;
	margin-bottom: 16px;
	border-left: 4px solid #f5700a;
}
.droxom-tracking-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--ma-text, #333);
}
.droxom-tracking__number,
.droxom-tracking__carrier {
	margin: 0 0 6px;
	font-size: 13px;
}
.droxom-tracking__link {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 20px;
	background: #f5700a;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: background .15s;
}
.droxom-tracking__link:hover {
	background: #e06509;
	color: #fff;
}

/* ── VIN Card ── */
.droxom-vin-card {
	background: var(--ma-card-bg, #fff);
	border-radius: var(--ma-card-r, 8px);
	padding: 20px;
	margin-bottom: 16px;
	border-left: 4px solid #3b82f6;
}
.droxom-vin-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--ma-text, #333);
}
.droxom-vin__number {
	margin: 0;
	font-size: 14px;
	font-family: monospace;
	letter-spacing: .5px;
	color: var(--ma-text, #333);
}

/* ── Refund Card ── */
.droxom-refund-card {
	background: var(--ma-card-bg, #fff);
	border-radius: var(--ma-card-r, 8px);
	padding: 20px;
	margin-bottom: 16px;
	border-left: 4px solid #6c757d;
}
.droxom-refund-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--ma-text, #333);
}
.droxom-refund-card p {
	margin: 0 0 6px;
	font-size: 13px;
}

/* ── Cancellation Notice ── */
.droxom-cancellation-notice {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-left: 4px solid #f59e0b;
	border-radius: var(--ma-card-r, 8px);
	padding: 18px 20px;
	margin-bottom: 16px;
}
.droxom-cancellation-notice--none {
	background: #fef2f2;
	border-color: #fecaca;
	border-left-color: #ef4444;
}
.droxom-cancellation-notice__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--ma-text, #1f2937);
	margin-bottom: 4px;
}
.droxom-cancellation-notice--none .droxom-cancellation-notice__title {
	color: #b32d2e;
}
.droxom-cancellation-notice__text {
	font-size: 13px;
	color: var(--ma-muted, #6b7280);
	margin: 0;
	line-height: 1.6;
}

/* ── Refunded Timeline ── */
.droxom-timeline__refunded {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: #f0fdf4;
	border-radius: 6px;
	color: #166534;
	font-weight: 600;
	width: 100%;
	justify-content: center;
}
.droxom-timeline__refunded .droxom-timeline__icon {
	font-size: 24px;
}

/* ── Action Buttons ── */
.droxom-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
}
.droxom-btn {
	padding: 10px 24px;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s;
}
.droxom-btn:hover {
	opacity: .85;
}
.droxom-btn--confirm {
	background: #2ea043;
	color: #fff;
}
.droxom-btn--cancel {
	background: #d63638;
	color: #fff;
}
.droxom-btn--return {
	background: #f5700a;
	color: #fff;
}
.droxom-btn--claim {
	background: #d63638;
	color: #fff;
}
.droxom-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.droxom-timeline {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.droxom-timeline__connector {
		width: 2px;
		height: 16px;
		min-width: unset;
		align-self: center;
	}
	.droxom-timeline__step {
		flex-direction: row;
		min-width: unset;
	}
	.droxom-actions {
		flex-direction: column;
	}
	.droxom-btn {
		width: 100%;
		text-align: center;
	}
}

/* ═══════════════════════════════════════════════════════════════════
   WC DEFAULT ORDER DETAIL STYLING
   Targets the unstyled WC elements on /my-account/view-order/{id}/
   ═══════════════════════════════════════════════════════════════════ */

/* ── Order info banner (order #, date, email, total) ── */
.woocommerce-order-details .woocommerce-order-overview,
.droxom-order-detail ~ .woocommerce-order-overview.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}
.woocommerce-order-details .woocommerce-order-overview li,
.droxom-order-detail ~ .woocommerce-order-overview.order_details li {
	background: var(--ma-card-bg, #fff);
	border: 1px solid var(--ma-border, #e5e7eb);
	border-radius: var(--ma-card-r, 8px);
	padding: 14px 16px;
	text-align: center;
	list-style: none;
}
.woocommerce-order-details .woocommerce-order-overview li strong,
.droxom-order-detail ~ .woocommerce-order-overview.order_details li strong {
	display: block;
	font-size: 16px;
	color: var(--ma-accent, #f5700a);
	margin-top: 2px;
}
.woocommerce-order-details .woocommerce-order-overview li label,
.woocommerce-order-details .woocommerce-order-overview li span,
.droxom-order-detail ~ .woocommerce-order-overview.order_details li label,
.droxom-order-detail ~ .woocommerce-order-overview.order_details li span {
	font-size: 11px;
	color: var(--ma-muted, #6b7280);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ── Section headings ── */
.woocommerce-order-details h2,
.woocommerce-customer-details h2,
.woocommerce-customer-details .woocommerce-column__title,
.woocommerce-order .woocommerce-order-details__title,
.droxom-order-detail ~ h2 {
	font-size: 15px;
	font-weight: 600;
	color: var(--ma-text, #1f2937);
	border-bottom: 2px solid var(--ma-accent, #f5700a);
	padding-bottom: 8px;
	margin: 28px 0 14px;
}

/* ── Order items table ── */
.woocommerce-order-details table.woocommerce-table--order-details,
.woocommerce-order-details table.shop_table,
.droxom-order-detail ~ table.shop_table {
	width: 100%;
	border-collapse: collapse;
	background: var(--ma-card-bg, #fff);
	border: 1px solid var(--ma-border, #e5e7eb);
	border-radius: var(--ma-card-r, 8px);
	overflow: hidden;
	margin: 0 0 24px;
}
.woocommerce-order-details table th,
.woocommerce-order-details table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--ma-border, #e5e7eb);
	font-size: 13px;
}
.woocommerce-order-details table thead th {
	background: #f9fafb;
	font-weight: 600;
	color: var(--ma-text, #1f2937);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.woocommerce-order-details table tfoot td,
.woocommerce-order-details table tfoot th {
	font-weight: 600;
}
.woocommerce-order-details table tfoot tr:last-child td,
.woocommerce-order-details table tfoot tr:last-child th {
	border-bottom: none;
	font-size: 15px;
	color: var(--ma-accent, #f5700a);
}
.woocommerce-order-details table .product-name a {
	color: var(--ma-accent, #f5700a);
	text-decoration: none;
	font-weight: 500;
}
.woocommerce-order-details table .product-name a:hover {
	text-decoration: underline;
}
.woocommerce-order-details table .product-quantity {
	color: var(--ma-muted, #6b7280);
	font-size: 12px;
}

/* ── Address columns ── */
.woocommerce-customer-details .woocommerce-columns,
.droxom-order-detail ~ .woocommerce-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 16px 0 24px;
}
.woocommerce-customer-details .woocommerce-column,
.droxom-order-detail ~ .woocommerce-column {
	background: var(--ma-card-bg, #fff);
	border: 1px solid var(--ma-border, #e5e7eb);
	border-radius: var(--ma-card-r, 8px);
	padding: 20px;
}
.woocommerce-customer-details .woocommerce-column address,
.droxom-order-detail ~ .woocommerce-column address {
	font-style: normal;
	font-size: 13px;
	line-height: 1.7;
	color: var(--ma-text, #1f2937);
}
.woocommerce-customer-details .woocommerce-column__title,
.droxom-order-detail ~ .woocommerce-column__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--ma-text, #1f2937);
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--ma-accent, #f5700a);
}

/* ── Status message ── */
.woocommerce-order .woocommerce-order-details .woocommerce-message,
.droxom-order-detail ~ .woocommerce-message {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	border-left: 4px solid #22c55e;
	border-radius: var(--ma-card-r, 8px);
	padding: 14px 20px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	color: #166534;
}

/* ── Responsive order detail ── */
@media (max-width: 768px) {
	.woocommerce-customer-details .woocommerce-columns,
	.droxom-order-detail ~ .woocommerce-columns {
		grid-template-columns: 1fr;
	}
	.woocommerce-order-details .woocommerce-order-overview,
	.droxom-order-detail ~ .woocommerce-order-overview.order_details {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 480px) {
	.woocommerce-order-details .woocommerce-order-overview,
	.droxom-order-detail ~ .woocommerce-order-overview.order_details {
		grid-template-columns: 1fr;
	}
	.woocommerce-order-details table th,
	.woocommerce-order-details table td {
		padding: 8px 10px;
		font-size: 12px;
	}
}
