.gpxdelen-filters {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 15px;
}

.gpxdelen-filters-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gpxdelen-filters input,
.gpxdelen-filters select {
	padding: 8px;
	font-size: 1rem;
	flex: 1 1 180px;
}

.gpxdelen-filters-actions {
	justify-content: space-between;
	margin-bottom: 15px;
}

.gpxdelen-filters-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.gpxdelen-result-count {
	display: flex;
	align-items: center;
	color: #555;
	font-size: 0.9rem;
}

.gpxdelen-pager {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: 10px 0;
	flex-wrap: wrap;
}

.gpxdelen-pager-jump {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gpxdelen-pager-jump select {
	/*
	 * Native select-uiterlijk helemaal uitgezet: browsers reserveren daarbij
	 * eigen (niet via CSS te overrulen) binnenruimte voor het pijltje, wat de
	 * hoogte nooit exact gelijk liet lopen met .gpxdelen-btn. Nu zelf een
	 * pijltje getekend via een achtergrondafbeelding, zodat de hoogte volledig
	 * onder onze eigen controle staat.
	 */
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	height: 34px;
	line-height: 32px;
	margin: 0;
	padding: 0 28px 0 12px;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'%3E%3Cpath d='M5.5 7l4.5 5 4.5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 12px;
}

.gpxdelen-table-wrapper {
	overflow-x: auto;
}

.gpxdelen-table {
	border-collapse: collapse;
	width: 100%;
	margin-top: 10px;
}

.gpxdelen-table th,
.gpxdelen-table td {
	border: 1px solid #ddd;
	padding: 10px;
	text-align: left;
}

.gpxdelen-table thead th {
	background: #f4f4f4;
	position: sticky;
	top: 0;
}

.gpxdelen-table thead th a {
	color: inherit;
	text-decoration: none;
}

.gpxdelen-table thead th a:hover,
.gpxdelen-table thead th a:focus {
	text-decoration: underline;
}

.gpxdelen-table thead th.gpxdelen-sort-active {
	background: #e9e9e9;
}

.gpxdelen-sort-arrow {
	font-size: 0.7em;
	color: #0077cc;
}

.gpxdelen-table tr:hover {
	background: #f1f1f1;
}

.gpxdelen-table .button {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	text-decoration: none;
	color: #fff;
	font-weight: bold;
	text-align: center;
}

.gpxdelen-table .gpx-btn {
	background: #28a745;
}

.gpxdelen-table .gpxdelen-review-btn {
	background: #0077cc;
	border: none;
}

.gpxdelen-table .gpxdelen-col-narrow {
	width: 1%;
	white-space: nowrap;
	text-align: right;
}

.gpxdelen-table .gpxdelen-col-right {
	text-align: right;
}

.gpxdelen-th-unit {
	display: block;
	text-align: center;
	font-weight: normal;
}

.gpxdelen-table .gpxdelen-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 8px;
}

.gpxdelen-rating-cell {
	white-space: nowrap;
}

.gpxdelen-rating-stars {
	color: #f5a623;
	letter-spacing: 1px;
}

.gpxdelen-rating-count {
	color: #666;
	font-size: 0.85rem;
	margin-left: 4px;
}

@media (max-width: 700px) {
	.gpxdelen-table,
	.gpxdelen-table thead,
	.gpxdelen-table tbody,
	.gpxdelen-table th,
	.gpxdelen-table td,
	.gpxdelen-table tr {
		display: block;
	}

	.gpxdelen-table thead {
		display: none;
	}

	.gpxdelen-table tr {
		margin-bottom: 1rem;
		border: 1px solid #ddd;
		padding: 10px;
		border-radius: 8px;
		background: #fff;
	}

	.gpxdelen-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 6px 0;
	}

	.gpxdelen-table td::before {
		content: attr(data-label);
		font-weight: bold;
		color: #444;
		margin-right: 10px;
	}
}

@media (max-width: 480px) {
	.gpxdelen-filters input,
	.gpxdelen-filters select,
	.gpxdelen-filters button {
		flex: 1 1 100%;
	}
}

.gpxdelen-upload .gpxdelen-step p {
	margin-bottom: 12px;
}

.gpxdelen-upload label {
	font-weight: 600;
}

.gpxdelen-upload input[type="text"],
.gpxdelen-upload input[type="number"],
.gpxdelen-upload input[type="date"],
.gpxdelen-upload input[type="file"],
.gpxdelen-upload select {
	width: 100%;
	max-width: 400px;
	padding: 8px;
	box-sizing: border-box;
}

.gpxdelen-status {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 1.2em;
}

.gpxdelen-status--error {
	color: #b32d2e;
}

.gpxdelen-similar-warning {
	margin-top: 12px;
	padding: 12px 16px;
	border: 1px solid #f0c36d;
	background: #fff8e6;
	border-radius: 6px;
	max-width: 480px;
}

.gpxdelen-similar-list {
	margin: 8px 0 12px;
	padding-left: 20px;
}

.gpxdelen-similar-list li {
	padding: 2px 0;
}

.gpxdelen-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 3px solid rgba(0, 119, 204, 0.2);
	border-top-color: #0077cc;
	border-radius: 50%;
	animation: gpxdelen-spin 0.8s linear infinite;
}

@keyframes gpxdelen-spin {
	to {
		transform: rotate(360deg);
	}
}

.gpxdelen-meta-table {
	border-collapse: collapse;
	margin-bottom: 20px;
}

.gpxdelen-meta-table th,
.gpxdelen-meta-table td {
	padding: 6px 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.gpxdelen-meta-table .gpxdelen-edit-field {
	display: none;
	width: 100%;
	max-width: 260px;
	padding: 4px 6px;
	box-sizing: border-box;
}

.gpxdelen-meta-table.is-editing .gpxdelen-view {
	display: none;
}

.gpxdelen-meta-table.is-editing .gpxdelen-edit-field {
	display: inline-block;
}

.gpxdelen-meta-table .gpxdelen-lookup-btn {
	display: none;
	margin-left: 6px;
	padding: 3px 8px;
	font-size: 0.85rem;
}

.gpxdelen-meta-table.is-editing .gpxdelen-lookup-btn {
	display: inline-block;
}

.gpxdelen-meta-table .gpxdelen-lookup-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

@media (max-width: 480px) {
	.gpxdelen-meta-table,
	.gpxdelen-meta-table tbody,
	.gpxdelen-meta-table tr,
	.gpxdelen-meta-table th,
	.gpxdelen-meta-table td {
		display: block;
		width: 100%;
	}

	.gpxdelen-meta-table tr {
		margin-bottom: 10px;
	}

	.gpxdelen-meta-table th {
		border-bottom: none;
		padding-bottom: 0;
	}

	.gpxdelen-meta-table td {
		padding-top: 2px;
	}

	.gpxdelen-meta-table .gpxdelen-edit-field {
		max-width: 100%;
	}
}

.gpxdelen-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

@media (max-width: 480px) {
	.gpxdelen-actions {
		flex-direction: column;
		align-items: stretch;
	}
}

.gpxdelen-btn {
	display: inline-block;
	padding: 6px 12px;
	border: none;
	border-radius: 6px;
	background: #0077cc;
	color: #fff;
	font-weight: bold;
	font-size: 1rem;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.gpxdelen-btn[hidden] {
	display: none;
}

.gpxdelen-btn:hover,
.gpxdelen-btn:focus {
	background: #005fa3;
	color: #fff;
}

.gpxdelen-btn--secondary {
	background: #666;
}

.gpxdelen-btn--secondary:hover,
.gpxdelen-btn--secondary:focus {
	background: #444;
}

/* Stravas eigen merkkleur, zodat de knop meteen herkenbaar is. */
.gpxdelen-btn--strava {
	background: #fc4c02;
}

.gpxdelen-btn--strava:hover,
.gpxdelen-btn--strava:focus {
	background: #c93d02;
}

.gpxdelen-btn--disabled {
	opacity: 0.5;
	cursor: default;
	pointer-events: none;
}

.gpxdelen-btn--danger {
	background: #b32d2e;
}

.gpxdelen-btn--danger:hover,
.gpxdelen-btn--danger:focus {
	background: #8f2423;
}

/*
 * WooCommerce "Mijn account"-pagina laten aansluiten bij de rest van
 * GPXdelen (dezelfde blauwe accentkleur als .gpxdelen-btn).
 */
.woocommerce-MyAccount-navigation-link a {
	color: #333;
}

.woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-MyAccount-navigation-link a:focus {
	color: #0077cc;
}

.woocommerce-MyAccount-navigation-link.is-active a {
	color: #0077cc;
	font-weight: bold;
}

.woocommerce-MyAccount-content a {
	color: #0077cc;
}

.gpxdelen-my-routes-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.gpxdelen-my-routes-item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.gpxdelen-my-routes-item a {
	font-weight: bold;
	text-decoration: none;
}

.gpxdelen-my-routes-meta {
	color: #666;
	font-size: 0.9rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.gpxdelen-rating,
.gpxdelen-comments {
	margin-top: 24px;
}

.gpxdelen-dialog {
	max-width: 480px;
	width: 90%;
	padding: 20px;
	border: none;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.gpxdelen-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.gpxdelen-dialog h2 {
	margin-top: 0;
}

.gpxdelen-climbs-list {
	margin: 8px 0 16px;
	padding-left: 20px;
}

.gpxdelen-climbs-list li {
	padding: 2px 0;
}

.gpxdelen-review-btn {
	gap: 3px;
}

.gpxdelen-review-count {
	font-size: 0.75rem;
	line-height: 1;
}

.gpxdelen-reviews-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gpxdelen-reviews-list li {
	padding: 8px 0;
	border-top: 1px solid #e0e0e0;
}

.gpxdelen-reviews-list li:first-child {
	border-top: none;
}

.gpxdelen-review-meta {
	margin: 0 0 4px;
	font-size: 0.85rem;
	color: #666;
}

.gpxdelen-reviews-list p {
	margin: 0;
}

.gpxdelen-rating-summary {
	font-weight: bold;
}

.gpxdelen-stars {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	width: fit-content;
	border: 0;
	padding: 0;
	margin: 0 0 8px;
}

.gpxdelen-stars input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	white-space: nowrap !important;
}

.gpxdelen-stars label {
	cursor: pointer;
	font-size: 1.75rem;
	line-height: 1;
	color: #ccc;
	padding: 0 2px;
}

.gpxdelen-stars label:hover,
.gpxdelen-stars label:hover ~ label,
.gpxdelen-stars input:checked ~ label {
	color: #f5a623;
}

.gpxdelen-stars input:focus-visible ~ label {
	outline: 2px solid #0077cc;
	outline-offset: 2px;
}
