/* =========================================================
   My Terminals block
   ========================================================= */

/* Two-column layout: terminals + cart sidebar */
.myvanraak-terminals-layout {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.myvanraak-terminals-main {
	flex: 1 1 0;
	min-width: 0;
}

/* ── Cart sidebar ──────────────────────────────────────── */

.myvanraak-cart-sidebar {
	flex: 0 0 320px;
	width: 320px;
	position: sticky;
	top: 2rem;
	background: #fff;
	border: 1px solid var(--theme-border-color);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.08 );
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.myvanraak-cart-header {
	border-bottom: 1px solid var(--theme-border-color);
	margin-bottom: 0.75rem;
}

.myvanraak-cart-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.myvanraak-cart-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4em;
	height: 1.4em;
	padding: 0 0.3em;
	background: var(--theme-palette-color-1);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1;
}

.myvanraak-cart-empty-msg {
	margin: 0;
	color: #757575;
	font-size: 0.875rem;
	line-height: 1.5;
	padding-top: .75rem;
}

/* Cart items list */
.myvanraak-cart-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--theme-border-color);
}

.myvanraak-cart-item:last-child {
	border-bottom: none;
}

.myvanraak-cart-item-main {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.myvanraak-cart-item-depot {
	display: block;
	font-size: 0.75rem;
	color: var(--theme-palette-color-4);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.myvanraak-cart-item-product {
	display: block;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--theme-palette-color-1);
}

.myvanraak-cart-item-meta {
	display: block;
	font-size: 0.8rem;
	color: #666;
}

.myvanraak-cart-item-total {
	display: block;
	font-size: 0.8rem;
	color: #555;
	margin-top: 0.15rem;
}

/* Bid price input per cart item */
.myvanraak-cart-bid-field {
	margin-top: 0.5rem;
}

.myvanraak-cart-bid-label,
.myvanraak-bid-expiry-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.myvanraak-bid-expiry-time {
	display: flex;
	align-items: center;
	gap: 4px;
}

.myvanraak-bid-price-input {
	width: 100%;
	padding: 4px 8px;
	border: 1px solid var(--theme-border-color);
	border-radius: 4px;
	font-size: 0.875rem;
	box-sizing: border-box;
}

.myvanraak-bid-price-input:focus {
	border-color: var(--theme-palette-color-1);
	outline: 1px solid var(--theme-palette-color-1);
}
.myvanraak-bid-expiry-note {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: var(--theme-palette-color-3);
}

/* Remove button */
.myvanraak-cart-remove {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: #aaa;
	padding: 2px;
	border-radius: 4px;
	transition: color 0.12s ease, background-color 0.12s ease;
}

.myvanraak-cart-remove:hover {
	color: #d63638;
	background-color: rgba(214, 54, 56, 0.08);
}

.myvanraak-cart-remove svg {
	display: block;
	width: 20px;
	height: 20px;
}

/* Cart footer actions */
.myvanraak-cart-footer {
	
}

.myvanraak-cart-note,
.myvanraak-mixed-contract {
	margin-bottom: 0.75rem;
}

.myvanraak-cart-note label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.myvanraak-mixed-contract-field {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
}

.myvanraak-mixed-contract-field input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 0.1rem;
}

.myvanraak-mixed-contract-label {
	font-size: 0.75rem;
	line-height: 1.35;
}

.myvanraak-cart-note-input {
	width: 100%;
	min-height: 80px;
	padding: 6px 8px;
	border: 1px solid var(--theme-border-color);
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.4;
	box-sizing: border-box;
	resize: vertical;
}

.myvanraak-cart-note-input:focus {
	border-color: var(--theme-palette-color-1);
	outline: 1px solid var(--theme-palette-color-1);
}

.myvanraak-cart-disclaimer {
	font-size: 0.75rem;
	line-height: 1.4;
	color: #666;
	margin-bottom: 0.75rem;
}

.myvanraak-cart-disclaimer a {
	color: inherit;
	text-decoration: underline;
}

.myvanraak-cart-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.myvanraak-cart-actions .myvanraak-button {
	width: 100%;
	text-align: center;
	justify-content: center;
}

.myvanraak-cart-actions .myvanraak-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Cart message (success / error toast): the shared notification box style. */
.myvanraak-cart-message {
	padding: 0.65rem 1rem;
	background: #f0f6fc;
	border: 1px solid var(--theme-border-color, #ddd);
	border-radius: 8px;
	font-size: 0.875rem;
	line-height: 1.4;
}

.myvanraak-cart-message--success {
	background: #edfaef;
	border-color: #00a32a;
	color: #1a4d2e;
}

.myvanraak-cart-message--error {
	background: #fcf0f1;
	border-color: #d63638;
	color: #7c1e20;
}

/* Add-to-cart row on product cards */
.myvanraak-add-to-cart {
	margin-top: auto;
	padding-top: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.myvanraak-qty-wrap {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	width: 100%;
}

.myvanraak-qty-input {
	width: 100%;
	padding: 5px 8px;
	border: 1px solid var(--theme-border-color);
	border-radius: 4px;
	font-size: 0.875rem;
	min-width: 0;
	box-sizing: border-box;
	background: #fff !important;
}

.myvanraak-qty-input:focus {
	border-color: var(--theme-palette-color-1);
	outline: 1px solid var(--theme-palette-color-1);
}

.myvanraak-qty-unit {
	font-size: 0.8rem;
	color: #757575;
	white-space: nowrap;
}

.myvanraak-add-btn {
	width: 100%;
	padding: 6px 12px;
	text-align: center;
	background: var(--theme-palette-color-1);
	color: #fff;
	border: 1px solid var(--theme-palette-color-1);
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s ease;
	white-space: nowrap;
}

.myvanraak-add-btn:hover,
.myvanraak-add-btn--in-cart {
	background: var(--theme-palette-color-2);
	border-color: var(--theme-palette-color-2);
}

/* Responsive: stack cart below terminals on small screens */
@media ( max-width: 768px ) {
	.myvanraak-terminals-layout {
		flex-direction: column;
	}

	.myvanraak-cart-sidebar {
		flex: none;
		width: 100%;
		position: static;
	}
}

.myvanraak-terminal-section {
	margin-bottom: 2.5rem;
}

.myvanraak-terminal-header {
	margin-bottom: 1rem;
}

.myvanraak-terminal-name {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.myvanraak-terminal-name .ph {
	color: var(--theme-palette-color-1);
	font-size: 1em;
	flex-shrink: 0;
}

.myvanraak-terminal-address {
	margin: 0;
	color: #666;
	font-size: 0.9rem;
}

/* Product grid */
.myvanraak-products-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 1rem;
}

/* Product card */
.myvanraak-product-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.25rem 1rem;
	background: #fff;
	border: 1px solid var(--theme-border-color);
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.06 );
	transition: box-shadow 0.15s ease;
}

.myvanraak-product-card:hover {
	box-shadow: 0 3px 10px rgba( 0, 0, 0, 0.1 );
}

.myvanraak-product-icon {
	display: block;
	font-size: 1.5rem;
	color: var(--theme-palette-color-1);
	margin-bottom: 0;
	line-height: 1;
}

.myvanraak-product-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.myvanraak-product-description {
	margin: 0;
	color: var(--theme-palette-color-4);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Price display */
.myvanraak-product-price {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid var(--theme-border-color);
}

.myvanraak-price-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--theme-palette-color-4);
}

.myvanraak-price-value {
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--theme-palette-color-4);
	line-height: 1.1;
}

.myvanraak-price-unit {
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--theme-palette-color-4);
}

.myvanraak-price-unavailable .myvanraak-price-label {
	color: #aaa;
	text-transform: none;
	letter-spacing: 0;
	font-style: italic;
	font-weight: 400;
	font-size: 0.85rem;
}

/* Form wrapper */
.myvanraak-login-form-wrapper {
	max-width: 480px;
}

/* Notification boxes share the geometry of the price refresh bar: an 8px radius
   and a full 1px border. The accent colour is the border colour (blue for info,
   green for success, red for error): no separate bar on the left. */
.myvanraak-notice {
	padding: 0.65rem 1rem;
	margin-bottom: 1.25rem;
	background: #f0f6fc;
	border: 1px solid var(--theme-border-color, #ddd);
	border-radius: 8px;
}

.myvanraak-notice-error {
	border-color: var(--theme-palette-color-3);
	background: #fcf0f1;
}

.myvanraak-notice-success {
	border-color: #00a32a;
	background: #edfaef;
}

.myvanraak-notice-info {
	position: relative;
	border: 1px solid var(--theme-border-color, #ddd);
	background: #f0f6fc;
}

/* Company notification box: the shared notice style (8px radius, 1px accent
   border) plus a little extra room on the right so the message stays clear
   of the × dismiss button. */
.myvanraak-notice.myvanraak-company-notification {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.65rem 2.6rem 0.65rem 1rem;
}

.myvanraak-notice p {
	margin: 0;
}

/* Rich-text company notification message (from the WYSIWYG editor) */
.myvanraak-notice-text > :last-child {
	margin-bottom: 0;
}

.myvanraak-notice-text p {
	margin: 0 0 0.6em;
}

.myvanraak-notice-text h3,
.myvanraak-notice-text h4 {
	margin: 0 0 0.4em;
	font-size: 1.05em;
}

.myvanraak-notice-text ul,
.myvanraak-notice-text ol {
	margin: 0 0 0.6em;
	padding-left: 1.3em;
}

.myvanraak-notice-text li {
	margin: 0.2em 0;
}

.myvanraak-notice-text blockquote {
	margin: 0 0 0.6em;
	padding-left: 0.8em;
	border-left: 3px solid rgba( 0, 0, 0, 0.15 );
}

.myvanraak-notice-text a {
	color: inherit;
	text-decoration: underline;
}

/* Form fields */
.myvanraak-form-field {
	margin-bottom: 16px;
}

.myvanraak-form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.myvanraak-form-field input[type="text"],
.myvanraak-form-field input[type="email"],
.myvanraak-form-field input[type="password"] {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--theme-border-color);
	border-radius: 4px;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}

.myvanraak-form-field input:focus {
	border-color: var(--theme-palette-color-1);
	outline: 1px solid var(--theme-palette-color-1);
}

.myvanraak-form-field-checkbox label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
}

/* Buttons */
.myvanraak-button {
	display: inline-block;
	padding: 8px 20px;
	border: 1px solid var(--theme-palette-color-1);
	border-radius: 4px;
	background: var(--theme-palette-color-1);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.myvanraak-button:hover,
.myvanraak-button:focus {
	background: var(--theme-palette-color-2);
	border-color: var(--theme-palette-color-2);
	color: #fff;
}

.myvanraak-button-secondary {
	background: #fff;
	border-color: var(--theme-palette-color-2);
	color: #2271b1;
}

.myvanraak-button-secondary:hover,
.myvanraak-button-secondary:focus {
	background: #f0f0f1;
	border-color: var(--theme-palette-color-2);
	color: #135e96;
}

.myvanraak-button-primary {
	width: 100%;
	text-align: center;
}

/* Required indicator */
.myvanraak-form-field .required {
	color: var(--theme-palette-color-3);
}

/* Company info (read-only) */
.myvanraak-company-info {
	padding: 12px 16px;
	background: #f6f7f7;
	border: 1px solid var(--theme-border-color);
	border-radius: 4px;
	line-height: 1.6;
}

/* Divider */
.myvanraak-divider {
	border: 0;
	border-top: 1px solid var(--theme-border-color);
	margin: 24px 0;
}

/* Description text */
.myvanraak-description {
	color: #757575;
	font-size: 13px;
	margin-bottom: 16px;
}

/* Logged-in state */
.myvanraak-login-logged-in {

}

.myvanraak-login-logged-in p {
	font-size: 16px;
	margin-bottom: 12px;
}

/* =========================================================
   History blocks (Order History & Bid History)
   ========================================================= */

/* ── Description line ─────────────────────────────────── */

.mvr-history-description {
	font-size: 0.95rem;
	color: #444;
	margin: 0 0 1.25rem;
	line-height: 1.5;
}

.mvr-history-description strong {

}

/* ── Status badges ────────────────────────────────────── */

.mvr-status-badge {
	display: inline-block;
	padding: 2px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 999px;
	line-height: 1.6;
	white-space: nowrap;
	text-transform: capitalize;
}

.mvr-status-pending {
	background: #fff3cd;
	color: #856404;
}

.mvr-status-confirmed,
.mvr-status-completed,
.mvr-status-accepted {
	background: #d4edda;
	color: #155724;
}

.mvr-status-cancelled,
.mvr-status-rejected {
	background: #f8d7da;
	color: #721c24;
}

.mvr-status-processing {
	background: #cce5ff;
	color: #004085;
}

/* ── Desktop table ────────────────────────────────────── */

.mvr-history-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.mvr-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.mvr-history-table thead {
	background: var(--theme-palette-color-4);
}

.mvr-history-table th {
	text-align: left;
	padding: 10px 12px;
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	border: 1px solid var(--theme-palette-color-4);
	white-space: nowrap;
}

/* ── Sortable headers ─────────────────────────────────── */

.mvr-sort-header {
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	transition: background 0.12s ease;
}

.mvr-sort-header:hover {
	background: rgba( 255, 255, 255, 0.1 );
}

.mvr-sort-icon {
	display: inline-block;
	margin-left: 4px;
	font-size: 0.75rem;
	opacity: 0.6;
	vertical-align: middle;
}

.mvr-sort-active .mvr-sort-icon {
	opacity: 1;
}

/* ── Table rows ───────────────────────────────────────── */

.mvr-history-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--theme-border-color);
	vertical-align: middle;
	background: #fff;
}

.mvr-history-row {
	transition: background 0.1s ease;
}

.mvr-history-row:hover td {
	background: #f9f9f9;
}

.mvr-history-row.mvr-row-expanded td {
	background: #f0f6fc;
}

.mvr-history-detail td {
	padding: 0 12px 12px;
	background: #fafafa;
}

/* ── Detail items (shared desktop + mobile) ───────────── */

.mvr-detail-items {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.75rem 0;
}

.mvr-detail-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	padding: 0.5rem 0.75rem;
	background: #fff;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
	font-size: 0.85rem;
}

.mvr-detail-depot {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--theme-palette-color-4);
	flex-basis: 100%;
}

.mvr-detail-product {
	font-weight: 700;
	color: var(--theme-palette-color-1);
}

.mvr-detail-qty {
	color: #555;
}

.mvr-detail-price,
.mvr-detail-prices {
	margin-left: auto;
	font-weight: 600;
	white-space: nowrap;
}

.mvr-detail-posted {
	display: inline-block;
	margin-left: 0.75rem;
	color: #888;
	font-weight: 400;
	font-size: 0.8rem;
}

/* ── Pagination ───────────────────────────────────────── */

.mvr-pagination {
	margin-top: 1rem;
}

.mvr-pagination-inner {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.mvr-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid var(--theme-border-color);
	border-radius: 4px;
	background: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--theme-palette-color-4);
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
	-webkit-tap-highlight-color: transparent;
}

.mvr-page-btn:hover:not(:disabled) {
	background: #f0f6fc;
	border-color: var(--theme-palette-color-1);
}

.mvr-page-btn.mvr-page-active {
	background: var(--theme-palette-color-1);
	border-color: var(--theme-palette-color-1);
	color: #fff;
}

.mvr-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ── Mobile card view ─────────────────────────────────── */

.mvr-history-cards {
	display: none;
}

.mvr-history-card {
	background: #fff;
	border: 1px solid var(--theme-border-color);
	border-radius: 10px;
	padding: 1rem;
	margin-bottom: 0.75rem;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.05 );
}

.mvr-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.mvr-card-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.mvr-card-id {
	font-weight: 700;
	font-size: 1rem;
	color: var(--theme-palette-color-1);
}

.mvr-card-date {
	font-size: 0.8rem;
	color: #888;
	white-space: nowrap;
}

.mvr-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: #555;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--theme-border-color);
}

.mvr-card-by {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.mvr-card-by .ph {
	font-size: 1em;
	color: var(--theme-palette-color-4);
}

.mvr-card-items {
	font-size: 0.8rem;
	color: #888;
}

.mvr-card-detail {
	padding-top: 0.75rem;
}

.mvr-card-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	margin-top: 0.75rem;
	padding: 8px;
	background: none;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--theme-palette-color-1);
	cursor: pointer;
	transition: background 0.12s ease;
	-webkit-tap-highlight-color: transparent;
}

.mvr-card-toggle:hover {
	background: #f0f6fc;
}

.mvr-toggle-icon {
	transition: transform 0.2s ease;
	font-size: 1em;
}

.mvr-card-expanded .mvr-toggle-icon {
	transform: rotate( 180deg );
}

/* ── Responsive: swap table ↔ cards at 768px ──────────── */

@media ( max-width: 768px ) {
	.mvr-history-table-wrap {
		display: none;
	}

	.mvr-history-cards {
		display: block;
	}

	/* Detail items stack vertically on small screens */
	.mvr-detail-item {
		flex-direction: column;
		gap: 0.25rem;
		margin-bottom: 1rem;
	}

	.mvr-detail-price,
	.mvr-detail-prices {
		margin-left: 0;
	}

	.mvr-detail-posted {
		display: block;
		margin-left: 0;
		margin-top: 0.15rem;
	}

	/* Larger tap targets for pagination on mobile */
	.mvr-page-btn {
		min-width: 40px;
		height: 40px;
	}
}

/* Profile form h3 */
.myvanraak-profile-form h3 {
	margin: 0 0 4px;
	font-size: 18px;
}

/* Readonly field */
.myvanraak-form-field-readonly label {
	margin-bottom: 8px;
}

/* ── My Terminals block ─────────────────────────────────── */

.myvanraak-terminal-section {
	margin-bottom: 40px;
}

.myvanraak-terminal-header {
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--theme-border-color);
}

h3.myvanraak-terminal-name {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.myvanraak-terminal-address {
	margin: 0;
	color: #757575;
	font-size: 14px;
}

/* Products grid */
.myvanraak-products-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 16px;
	margin-top: 8px;
}

.myvanraak-product-card {
	padding: 16px;
	background: #f6f7f7;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
}

.myvanraak-product-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	margin-block-end: 0 !important;
}

.myvanraak-product-description {
	margin: 0;
	font-size: 13px;
	color: #505050;
	line-height: 1.5;
}

/* Form links (lost password etc.) */
.myvanraak-form-links {
	text-align: center;
}

.myvanraak-form-links a {
	font-size: 13px;
	color: #2271b1;
	text-decoration: none;
}

.myvanraak-form-links a:hover {
	color: #135e96;
	text-decoration: underline;
}

/* Profile logout section */
.myvanraak-profile-logout {
	text-align: left;
}

/* Logout block */
.myvanraak-logout-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.myvanraak-logout-wrapper p {
	margin: 0;
	color: #50575e;
}

/* =========================================================
   Price refresh countdown bar
   ========================================================= */

.myvanraak-price-refresh-bar {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.65rem 1rem;
	background: #f0f6fc;
	border: 1px solid var(--theme-border-color, #ddd);
	border-radius: 8px;
	margin-bottom: 1.25rem;
}

.myvanraak-price-refresh-info {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.85rem;
	color: var(--theme-palette-color-4, #555);
	flex-wrap: wrap;
}

.myvanraak-price-refresh-icon {
	font-size: 1.1em;
	color: var(--theme-palette-color-1, #2271b1);
	flex-shrink: 0;
}

.myvanraak-price-refresh-label {
	font-weight: 500;
}

.myvanraak-price-refresh-countdown {
	font-weight: 700;
	font-size: 1rem;
	color: var(--theme-palette-color-1, #2271b1);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	min-width: 2.6rem;
	text-align: right;
}

.myvanraak-price-refresh-status {
	margin-left: auto;
	font-size: 0.8rem;
	color: #757575;
	font-style: italic;
}

/* Progress track */
.myvanraak-price-refresh-track {
	height: 6px;
	background: #d0dae4;
	border-radius: 999px;
	overflow: hidden;
}

/* Progress fill – width and background-color are driven by JS */
.myvanraak-price-refresh-fill {
	height: 100%;
	width: 100%;
	border-radius: 999px;
	background-color: var(--theme-palette-color-1, #2271b1);
	transition: width 1s linear, background-color 0.5s ease;
}

/* Pulse animation while fetching */
.myvanraak-refresh-bar--refreshing .myvanraak-price-refresh-fill {
	animation: myvanraak-progress-pulse 0.9s ease-in-out infinite;
}

@keyframes myvanraak-progress-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.4; }
}

/* =========================================================
   Price-change dismissable notification (cart sidebar)
   ========================================================= */

/* Price-change notice: same box, with the amber accent kept as the border colour. */
.myvanraak-price-change-notice {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.65rem 2.4rem 0.65rem 1rem;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #664d03;
	margin-bottom: 0.5rem;
}

.myvanraak-price-change-msg {
	flex: 1 1 0;
	margin: 0;
}

.myvanraak-notice-dismiss {
	position: absolute;
    right: 8px;
    top: 5px;
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.15rem;
	line-height: 1;
	padding: 0;
	transition: color 0.12s ease;
}

.myvanraak-notice-dismiss:hover,
.myvanraak-notice-dismiss:focus {
	color: #523e02;
	outline: none;
}

/* =========================================================
   Product card price-update flash animation
   ========================================================= */

@keyframes myvanraak-price-flash {
	0%   { background-color: transparent; }
	25%  { background-color: #edfaef; }
	100% { background-color: transparent; }
}

.myvanraak-price-updated {
	animation: myvanraak-price-flash 1.5s ease;
}

/* =========================================================
   Market Trend block
   ========================================================= */

.myvanraak-market-trend-container {
	background: #fff;
	border: 1px solid var(--theme-border-color);
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.myvanraak-market-trend-header {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--theme-border-color);
}

.myvanraak-market-trend-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--theme-palette-color-1);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.myvanraak-market-trend-title .ph {
	font-size: 1.2em;
	color: var(--theme-palette-color-2);
}

.myvanraak-market-trend-controls {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: stretch;
}

.myvanraak-product-selector {
	width: 100%;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.myvanraak-product-selector:focus {
	border-color: var(--theme-palette-color-1);
	box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.1);
	outline: none;
}

.myvanraak-current-date {
	font-size: 0.85rem;
	color: var(--theme-palette-color-4);
	font-weight: 500;
}

.myvanraak-market-trend-chart-wrapper {
	position: relative;
	min-height: 300px;
	background: #fafafa;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
	overflow: hidden;
}

.myvanraak-market-chart {
	width: 100% !important;
	height: 300px !important;
}

.myvanraak-chart-message {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	padding: 1rem;
	color: #666;
	font-size: 0.85rem;
	max-width: 80%;
}

.myvanraak-chart-message.myvanraak-error {
	color: var(--theme-palette-color-3);
	background: #fcf0f1;
	border: 1px solid #f5c2c7;
	border-radius: 4px;
}

.myvanraak-current-price {
	margin-top: 1.5rem;
	padding: 1rem;
	background: #f0f6fc;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
	text-align: center;
}

.myvanraak-current-price .myvanraak-price-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--theme-palette-color-4);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
}

.myvanraak-current-price .myvanraak-price-value {
	display: inline-block;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--theme-palette-color-1);
}

/* Responsive styles */
@media (max-width: 768px) {
	.myvanraak-market-trend-container {
		padding: 1rem;
	}

	.myvanraak-market-trend-header {
		flex-direction: column;
		align-items: stretch;
	}

	.myvanraak-market-trend-title {
		font-size: 1.25rem;
		justify-content: center;
	}

	.myvanraak-market-trend-controls {
		flex-direction: column;
	}

	.myvanraak-market-chart {
		height: 250px !important;
	}
}

/* Loading animation */
@keyframes myvanraak-loading-pulse {
	0%,
	100% {
		opacity: 0.6;
	}
	50% {
		opacity: 1;
	}
}

.myvanraak-chart-message[data-loading="true"] {
	animation: myvanraak-loading-pulse 1.5s ease-in-out infinite;
}

/* =========================================================
   Market Trend block — debug mode
   ========================================================= */

.myvanraak-market-trend-debug .myvanraak-market-trend-chart-wrapper {
	background: transparent;
	border: none;
	min-height: auto;
}

.myvanraak-debug-badge {
	display: inline-block;
	margin-left: 0.75rem;
	padding: 0.25rem 0.5rem;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: #ED1C2E;
	border-radius: 4px;
	vertical-align: middle;
}

.myvanraak-market-trend-debug-controls {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
}

.myvanraak-market-trend-debug-update {
	min-width: 120px;
}

.myvanraak-market-trend-debug-update:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.myvanraak-market-trend-debug-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.myvanraak-market-trend-debug-item {
	background: #fff;
	border: 1px solid var(--theme-border-color);
	border-radius: 8px;
	padding: 1.25rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.myvanraak-market-trend-debug-title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--theme-palette-color-1);
}

.myvanraak-market-trend-debug-chart-area {
	position: relative;
	min-height: 300px;
	background: #fafafa;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 1.25rem;
}

.myvanraak-market-trend-debug-chart-area canvas {
	width: 100% !important;
	height: 300px !important;
}

.myvanraak-market-trend-debug-table-wrap {
	overflow-x: auto;
}

.myvanraak-market-trend-debug-table-title {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--theme-palette-color-4);
}

.myvanraak-market-trend-debug-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	background: #fafafa;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
	overflow: hidden;
}

.myvanraak-market-trend-debug-table th,
.myvanraak-market-trend-debug-table td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--theme-border-color);
	text-align: left;
}

.myvanraak-market-trend-debug-table th {
	width: 55%;
	font-weight: 600;
	color: var(--theme-palette-color-4);
	background: #f0f0f0;
}

.myvanraak-market-trend-debug-table td {
	font-family: monospace;
	font-size: 0.9em;
	color: var(--theme-text-color);
}

.myvanraak-market-trend-debug-table tr:last-child th,
.myvanraak-market-trend-debug-table tr:last-child td {
	border-bottom: none;
}

@media (max-width: 768px) {
	.myvanraak-market-trend-debug-item {
		padding: 1rem;
	}

	.myvanraak-market-trend-debug-chart-area {
		min-height: 250px;
	}

	.myvanraak-market-trend-debug-chart-area canvas {
		height: 250px !important;
	}
}

/* =========================================================
   Logout Nav block
   ========================================================= */

.myvanraak-logout-nav-block {
	display: inline-block;
}

.myvanraak-logout-nav-greeting {
	margin: 0 0 8px 0;
	color: #50575e;
	font-size: 14px;
}

.myvanraak-logout-nav-link {
	/* Inherits button styles from .myvanraak-button classes */
	text-decoration: none;
}

/* =========================================================
   Mobile scroll to cart button
   ========================================================= */

.myvanraak-scroll-to-cart-btn {
	display: none; /* Hidden by default */
	width: 100%;
	margin-top: 0px;
	padding: 8px 12px;
	background: var(--theme-palette-color-1);
	color: #fff;
	border: 1px solid var(--theme-palette-color-1);
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s ease;
	text-align: center;
}

.myvanraak-scroll-to-cart-btn:hover {
	background: var(--theme-palette-color-2);
	border-color: var(--theme-palette-color-2);
}

/* Show on mobile when cart has items */
@media (max-width: 768px) {
	.myvanraak-scroll-to-cart-btn.has-items {
		display: block;
	}
}

/* =========================================================
   My Profile block — Two-column layout
   ========================================================= */

.myvanraak-profile-two-col {
	display: flex;
	gap: 5rem;
	align-items: flex-start;
}

.myvanraak-profile-col {
	flex: 1 1 0;
	min-width: 0;
}

.myvanraak-profile-col h3 {
	margin: 0 0 12px;
	font-size: 16px;
}

.myvanraak-profile-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.myvanraak-profile-actions .myvanraak-form-field {
	margin-bottom: 0;
}

.myvanraak-profile-actions .myvanraak-button-primary {
	width: auto;
	min-width: 160px;
}

/* Stack columns on mobile */
@media ( max-width: 768px ) {
	.myvanraak-profile-two-col {
		flex-direction: column;
		gap: 1.5rem;
	}
}

/* =========================================================
   My Profile block — Terminal & Product ordering
   ========================================================= */

.myvanraak-profile-terminals-order {
	background: #f6f7f7;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
	padding: 12px;
}

.myvanraak-profile-terminal-row {
	background: #fff;
	border: 1px solid var(--theme-border-color);
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 8px;
	cursor: grab;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.myvanraak-profile-terminal-row:last-child {
	margin-bottom: 0;
}

.myvanraak-profile-terminal-row.dragging {
	opacity: 0.6;
	border-color: var(--theme-palette-color-1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.myvanraak-profile-terminal-row .myvanraak-drag-handle {
	cursor: grab;
	color: #999;
	font-size: 14px;
	margin-right: 6px;
	user-select: none;
}

.myvanraak-profile-terminal-row .myvanraak-drag-handle:active {
	cursor: grabbing;
}

.myvanraak-profile-products-list {
	margin-top: 8px;
	margin-left: 20px;
	padding-left: 8px;
	border-left: 2px solid var(--theme-border-color);
}

.myvanraak-profile-product-item {
	background: #fafafa;
	border: 1px solid var(--theme-border-color);
	border-radius: 4px;
	padding: 6px 10px;
	margin-bottom: 4px;
	cursor: grab;
	font-size: 0.9rem;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.myvanraak-profile-product-item:last-child {
	margin-bottom: 0;
}

.myvanraak-profile-product-item.dragging {
	opacity: 0.6;
	border-color: var(--theme-palette-color-1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.myvanraak-profile-product-item .myvanraak-drag-handle {
	cursor: grab;
	color: #999;
	font-size: 12px;
	margin-right: 6px;
	user-select: none;
}

.myvanraak-profile-product-item .myvanraak-drag-handle:active {
	cursor: grabbing;
}


