@import "../main/variables";

.nv-single-post-wrap,
.nv-index-posts {
	margin-bottom: $spacing-aired;
}

.nv-sidebar-wrap {
	padding: $spacing-aired 15px;
	margin-bottom: $spacing-md;
	flex-grow: 1;

	&.hide:not(.shop-sidebar) {
		display: none;
	}
}

.widget {
	word-break: break-word;
	margin-bottom: $spacing-xl;

	&:last-child {
		margin: 0;
	}

	select {
		max-width: 100%;
		width: 100%;
	}

	.widget-title {
		margin-bottom: $spacing-xs;
		font-weight: 700;
		font-size: var(--h4fontsize);
	}

	ul {
		padding: 0;

		ul {
			padding-left: $spacing-xs;
		}
	}

	li {
		margin-top: $spacing-xs;
	}
}

.wp-block-search .wp-block-search__button {

	@extend %nv-button-primary;
}

.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {

	@extend %nv-form-fields;
}


.post-date {
	display: block;
	font-size: $text-sm;
	opacity: 0.7;
}

.widget_recent_entries a {
	color: var(--nv-text-color);
}

.widget_calendar {

	td,
	th {
		padding: $spacing-xs;
	}
}

@mixin sidebar--laptop() {

	.nv-sidebar-wrap {
		max-width: 30%;

		&.nv-right {
			padding-left: 45px;
		}

		&.nv-left {
			padding-right: 45px;
		}

		&.hide.shop-sidebar {
			display: none;
		}
	}
}
