/**
 * Header dashboard shortcode.
 *
 * @package KantoSharkConsignorDashboard
 */

.kscd-header-dashboard-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.kscd-header-dashboard-link:hover,
.kscd-header-dashboard-link:focus {
	text-decoration: underline;
}

.kscd-header-dashboard-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.kscd-header-dashboard-link--mobile {
	display: none;
	width: 40px;
	min-width: 40px;
	height: 40px;
	padding: 10px;
}

.kscd-header-dashboard-link__icon {
	display: block;
	flex: 0 0 auto;
}

.kscd-header-dashboard-link__screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 767px) {
	.kscd-header-dashboard-link--desktop {
		display: none;
	}

	.kscd-header-dashboard-link--mobile {
		display: inline-flex;
	}

	.kscd-header-dashboard-link--mobile .kscd-header-dashboard-link__icon {
		width: 28px;
		height: 28px;
	}

	.elementor-element-49df259.elementor-widget-shortcode {
		--width: auto;
		flex: 0 0 auto;
		width: auto;
		min-width: 0;
	}

	.elementor-element-49df259.elementor-widget-shortcode:not(:has(.kscd-header-dashboard-link--mobile)) {
		display: none;
	}
}
