/* Yooker Dashboard - Account page styling */

:root {
	--yk-blue:         #3E61FC;
	--yk-blue-light:   #EBEEFF;
	--yk-green:        #CEAA5D;
	--yk-white:        #ffffff;
	--yk-black:        #000000;
	--yk-text-muted:   #888888;
	--yk-text-body:    #444444;
	--yk-border:       #F9EFD7;
	--yk-bg-card:      #F9EFD7;
	--yk-shadow:       0 2px 8px rgba(0, 0, 0, .00);
	--yk-shadow-hover: 0 6px 20px rgba(62, 97, 252, .15);
	--yk-radius:       16px;
	--yk-radius-sm:    8px;
	--yk-radius-img:   12px;
}

/* ---- Welcome banner ---- */
.yk-dashboard-welcome {
	position: relative;
	background: var(--yk-blue);
	border-radius: var(--yk-radius);
	padding: 32px;
	overflow: hidden;
	color: var(--yk-white);
	box-shadow:
		0 12px 16px -4px rgba(10, 13, 18, 0.08),
		0 4px 6px -2px rgba(10, 13, 18, 0.03),
		0 2px 2px -1px rgba(10, 13, 18, 0.04);
}
.yk-dashboard-welcome__content {
	position: relative;
	z-index: 2;
	max-width: 580px;
}
.yk-dashboard-welcome__title {
	font-size: 36px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--yk-white) !important;
	margin-bottom: 12px;
}
.yk-dashboard-welcome__subtitle {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
	margin: 0;
}
.yk-dashboard-welcome__deco {
	position: absolute;
	right: -160px;
	top: -160px;
	width: 480px;
	height: 480px;
	background: rgba(255,255,255,.10);
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}

/* =========================================================
   MachineryMix account dashboard
   ========================================================= */

.woocommerce-account .woocommerce {
	display: flex;
	gap: 2rem;
}

.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
	float: none;
	flex: 223 1 0;
	width: auto;
	min-width: 0;
}

.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
	float: none;
	flex: 1057 1 0;
	width: auto;
	min-width: 0;
}

.machinerymix-dashboard {
	width: 100%;
}

/* Navigation */

.woocommerce-MyAccount-navigation li a {
	display: block;
	width: 100%;
	padding: 0.5rem 1rem;
	border-radius: .25rem;
}

.woocommerce-MyAccount-navigation li:not(.is-active) a:hover {
	background: white;
}

.woocommerce-MyAccount-navigation li.is-active a {
	color: white !important;
	background: var(--color-content-primary);
}

/* Bovenste blokken */

.machinerymix-dashboard__top {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
	gap: 2rem;
	margin-bottom: 2rem;
}
.machinerymix-dashboard-card,
.edit-account,
.machinerymix-machine-form {
	padding: 24px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
	margin-top: 0 !important;
}
.machinerymix-dashboard-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}
.machinerymix-machines__header h1 {
	padding-top: 0;
}
.machinerymix-dashboard-card h2,
.machinerymix-dashboard-card h3 {
	margin-top: 0;
	margin-bottom: 4px;
	padding-top: 0;
}
.machinerymix-dashboard-card__meta {
	margin: 0;
	font-size: 12px;
	opacity: 0.7;
}

/* Upgradekaart */

.machinerymix-dashboard-card--upgrade {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: #fff;
	background: #002f5f;
}
.machinerymix-dashboard-card--upgrade h3 {
	color: white;
}
.machinerymix-dashboard-card--upgrade p {
	margin-top: 0;
	margin-bottom: 20px;
	color: var(--color-alt-content-text);
}

/* Slotweergave */

.machinerymix-slot-progress {
	margin-top: 20px;
	padding: 1rem 1rem 1.5rem;
	border-radius: 10px;
	background: #E6F4FE;
}
.machinerymix-slot-progress__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: .75rem;
	color: var(--color-content-text);
	font-size: 1rem;
}
.machinerymix-slot-progress__header span.number-used-slots {
	color: #212121;
	font-weight: 700;
}
.machinerymix-slot-progress__header span.slots-label {
	color: #212121;
	font-size: .875rem;
}
.machinerymix-slot-progress__bar {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: .875rem;
	border-radius: .25rem;
	background: #fff;
}
.machinerymix-slot-progress__value {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--color-content-link);
	transition: width .3s ease;
}
.machinerymix-slot-progress__availability {
	margin: .75rem 0 0;
	color: var(--color-content-text);
	font-size: .75rem;
	line-height: 1.4;
}

/* =========================================================
   Mijn advertenties
   ========================================================= */

.machinerymix-dashboard-machines {
	margin-top: 2rem !important;
	padding: 23px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}
.machinerymix-dashboard-machines.is-admin {
	margin-top: 0 !important;
}
.machinerymix-dashboard-machines__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.machinerymix-dashboard-machines__header h2 {
	margin: 0;
}
.machinerymix-dashboard-machines__header .w-btn {
	padding: 0;
	background: transparent;
	box-shadow: none;
}
.machinerymix-machines-table-wrapper {
	width: 100%;
	overflow-x: auto;
}

/* =========================================================
   Advertentietabel
   ========================================================= */

.machinerymix-machines-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	border-spacing: 0;
}

.machinerymix-machines-table col.machinerymix-machines-table__col-machine {
	width: 37.487%;
}

.machinerymix-machines-table col.machinerymix-machines-table__col-status {
	width: 15.096%;
}

.machinerymix-machines-table col.machinerymix-machines-table__col-date {
	width: 23.7085%;
}

.machinerymix-machines-table col.machinerymix-machines-table__col-actions {
	width: 23.7085%;
}

.machinerymix-machines-table th,
.machinerymix-machines-table td {
	box-sizing: border-box;
	padding-left: 0;
	text-align: left;
	vertical-align: middle;
}

.machinerymix-machines-table th:nth-child(3),
.machinerymix-machines-table th:nth-child(4),
.machinerymix-machines-table td:nth-child(3),
.machinerymix-machines-table td:nth-child(4) {
	text-align: right;
}

.machinerymix-machines-table th:not(:last-child),
.machinerymix-machines-table td:not(:last-child) {
	padding-right: 8px;
}

.machinerymix-machines-table th {
	padding-top: 0;
	padding-bottom: 10px;
	border: 0;
	color: var(--color-content-text);
	font-family: var(--h1-font-family);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

.machinerymix-machines-table td {
	padding-top: 12px;
	padding-bottom: 12px;
	border: 0;
	border-top: 1px solid rgb(0 41 83 / 35%);
}

.machinerymix-machines-table tbody tr:last-child td {
	padding-bottom: 0;
}

/* Machinekolom */

.machinerymix-machine {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.machinerymix-machine__image {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
}

.machinerymix-machine__image img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	object-fit: cover;
}

.machinerymix-machine__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.machinerymix-machine__title {
	color: #212121;
	font-size: .875rem;
}

.machinerymix-machine__category {
	margin-top: 2px;
	color: var(--color-content-text);
	font-size: .75rem;
}

/* Status */

.machinerymix-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0 .25rem;
	padding: .25rem .5rem;
	border-radius: 100px;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.machinerymix-status::before {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	font-family: "fontawesome";
	font-size: 13px;
	font-weight: 400;
}

.machinerymix-status--publish::before {
	content: '\f00c';
}

.machinerymix-status--pending::before {
	content: '\f017';
}

.machinerymix-status--publish {
	color: #2E7D32;
	background: #E8F5E9;
}

.machinerymix-status--pending {
	color: #B8651B;
	background: #FDEF94;
}

/* Datum */

.machinerymix-machines-table__date {
	color: var(--color-content-text);
	font-size: .875rem;
	white-space: nowrap;
}

/* Acties */

.machinerymix-machines-table__actions {
	text-align: right;
	white-space: nowrap;
}

.machinerymix-machines-table__actions .machinerymix-delete-machine-form button[type="submit"] {
	padding: unset;
	border-color: unset;
	border-image: none;
	border-radius: unset;
	background: unset;
	font-weight: unset;
	letter-spacing: 0;
	line-height: 1.5 !important;
	transition-duration: .3s;
	--btn-height: unset;
	--btn-border-width: unset;
	--btn-background: unset;
	--btn-hover-background: unset;
}

.machinerymix-machines-table__actions a,
.machinerymix-machines-table__actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	text-decoration: none;
}

.machinerymix-machines-table__actions a + a {
	margin-left: 4px;
}

.machinerymix-machines-table__actions .machinerymix-delete-machine-form button[type="submit"] i,
.machinerymix-machines-table__actions a i {
	color: #9E9E9E !important;
	font-size: 1rem;
	font-weight: 400;
	transition: color ease .3s;
}

.machinerymix-machines-table__actions a:hover i {
	color: var(--color-content-primary) !important;
}

.machinerymix-machines-table__actions .machinerymix-delete-machine-form button[type="submit"]:hover i {
	color: #c62828 !important;
}

/* Lege status */

.machinerymix-dashboard-machines__empty {
	margin: 0;
}

/* =========================================================
   Advertentie-overzicht
   ========================================================= */

.machinerymix-machines__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.machinerymix-machines__header h1 {
	margin: 0;
}

.machinerymix-machines__header .subtitel {
	display: block;
	margin-bottom: 4px;
}

.machinerymix-machines__empty {
	padding: 32px;
	text-align: center;
}

.machinerymix-machines__empty h2 {
	margin-top: 0;
}

.machinerymix-machines__empty p {
	margin-bottom: 20px;
}

/* =========================================================
   Machine bewerken pagina
   ========================================================= */

.machinerymix-machine-form__featured-image,
.machinerymix-machine-form__gallery-item {
	position: relative;
	overflow: hidden;
	width: 120px;
	aspect-ratio: 1;
	border-radius: 8px;
	background: #f5f5f5;
}

.machinerymix-machine-form__featured-image img,
.machinerymix-machine-form__gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.machinerymix-machine-form__gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.machinerymix-machine-form__image-remove,
.machinerymix-machine-form__gallery-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgb(0 0 0 / 65%);
	cursor: pointer;
}

.machinerymix-machine-form__image-remove:hover,
.machinerymix-machine-form__gallery-remove:hover {
	color: #fff;
	background: #c62828;
}

/* =========================================================
   Machine verwijderen
   ========================================================= */

.machinerymix-delete-machine-form {
	display: inline-flex;
	margin: 0 0 0 .5rem;
}

/* =========================================================
   Abonnementen
   ========================================================= */

.machinerymix-subscriptions {
	width: 100%;
}
.machinerymix-subscriptions__current {
	margin-bottom: 2rem;
}
.machinerymix-subscriptions__header {
	margin-bottom: 1rem;
}
.machinerymix-subscriptions__header .subtitel {
	display: block;
	margin-bottom: 4px;
}
.machinerymix-subscriptions__header h2 {
	margin: 0;
	padding-top: 0;
}
.machinerymix-subscriptions__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}
.machinerymix-subscription-card {
	position: relative;
	display: flex;
	flex-direction: column;
}
.machinerymix-subscription-card.is-current {
	outline: 2px solid var(--color-content-primary);
}
.machinerymix-subscription-card__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: .25rem .5rem;
	border-radius: 100px;
	color: #2E7D32;
	background: #E8F5E9;
	font-size: .75rem;
	font-weight: 600;
}
.machinerymix-subscription-card__header {
	padding-right: 7rem;
}
.machinerymix-subscription-card__header h3 {
	margin-bottom: .5rem;
}
.machinerymix-subscription-card__price {
	display: flex;
	align-items: flex-end;
	gap: .35rem;
	color: #212121;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}
.machinerymix-subscription-card__price span {
	color: var(--color-content-text);
	font-size: .75rem;
	font-weight: 400;
	line-height: 1.2;
}
.machinerymix-subscription-card__slots {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-top: 1.5rem;
	padding: .75rem 1rem;
	border-radius: 10px;
	color: #212121;
	background: #E6F4FE;
	font-weight: 600;
}
.machinerymix-subscription-card__features {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}
.machinerymix-subscription-card__features li {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
}
.machinerymix-subscription-card__features i {
	flex: 0 0 auto;
	margin-top: .2rem;
	color: var(--color-content-primary);
}
.machinerymix-subscription-card__features--extra {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgb(0 41 83 / 15%);
}
.machinerymix-subscription-card__footer {
	margin-top: auto;
	padding-top: 1.5rem;
}
.machinerymix-subscription-card__footer .w-btn {
	width: 100%;
}
.machinerymix-subscription-card__current-button {
	pointer-events: none;
	opacity: .6;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

	.woocommerce-dashboard .woocommerce {
		flex-direction: column;
	}
	.woocommerce-dashboard .woocommerce > .woocommerce-MyAccount-navigation,
	.woocommerce-dashboard .woocommerce > .woocommerce-MyAccount-content {
		flex: none;
		width: 100%;
	}
	.machinerymix-dashboard__top {
		grid-template-columns: 1fr;
	}

	.machinerymix-machines-table {
		min-width: 720px;
	}

	.machinerymix-subscriptions__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {

	.machinerymix-machines-table td:nth-child(3),
	.machinerymix-machines-table td:nth-child(4) {
		text-align: left;
	}
	.machinerymix-dashboard-machines {
		padding: 16px;
	}
	.machinerymix-dashboard-machines__header {
		align-items: flex-start;
	}
	.machinerymix-dashboard-card__header {
		flex-direction: column;
	}
	.machinerymix-dashboard-card__button--outline {
		width: 100%;
	}

	.machinerymix-machines-table {
		min-width: 0;
		table-layout: auto;
	}
	.machinerymix-machines-table colgroup,
	.machinerymix-machines-table thead {
		display: none;
	}
	.machinerymix-machines-table,
	.machinerymix-machines-table tbody,
	.machinerymix-machines-table tr,
	.machinerymix-machines-table td {
		display: block;
		width: 100%;
	}
	.machinerymix-machines-table tr {
		padding: 14px 0;
		border-top: 1px solid rgb(0 41 83 / 35%);
	}
	.machinerymix-machines-table tr:first-child {
		padding-top: 0;
		border-top: 0;
	}
	.machinerymix-machines-table tr:last-child {
		padding-bottom: 0;
	}
	.machinerymix-machines-table td {
		padding: 4px 0;
		border: 0;
	}
	.machinerymix-machines-table__machine {
		margin-bottom: 8px;
	}
	.machinerymix-machines-table__status,
	.machinerymix-machines-table__date {
		display: inline-block;
		width: auto;
		margin-right: 12px;
	}
	.machinerymix-machines-table__actions {
		margin-top: 6px;
		text-align: left;
	}

	.machinerymix-machines__header {
		align-items: stretch;
		flex-direction: column;
	}
	.machinerymix-machines__header .w-btn {
		width: 100%;
	}

	.machinerymix-subscription-card__header {
		padding-right: 0;
	}
	.machinerymix-subscription-card__badge {
		position: static;
		align-self: flex-start;
		margin-bottom: 1rem;
	}
}