/*
Exact style rules heavily drawn from the Bootstrap and Vue Bootstrap pagination components:
https://github.com/twbs/bootstrap
https://github.com/bootstrap-vue/bootstrap-vue
*/
.magazine-pagination {
	margin: 10px 0;
}

.magazine-pagination__list {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.magazine-pagination__page {
	display: block;
	padding: .5rem .75rem;
	margin-left: -1px; /* This is so the borders will overlap. */
	line-height: 1.25;
	color: #007bff;
	background: white;
	border: 1px solid #dee2e6;
}

.magazine-pagination__page:not(.magazine-pagination__page--disabled):hover {
	z-index: 2; /* This is to put it above the styles of the current page. */
	color: #0056b3;
	background: #e9ecef;
	cursor: pointer;
}

.magazine-pagination__page--first {
	border-top-left-radius: .25rem;
	border-bottom-left-radius: .25rem;
}

.magazine-pagination__page--last {
	border-top-right-radius: .25rem;
	border-bottom-right-radius: .25rem;
}

#app .magazine-pagination__page--current {
	/* This needed higher specificity than the not disabled rules. */
	z-index: 1;
	color: white;
	background: #007bff;
	border-color: #007bff;
}

.magazine-pagination__page--disabled {
	color: #6c757d;
	border-color: #dee2e6;
}

.magazine-pagination__input {
	width: 50px;
}

.magazine-pagination__popover-inner {
	border: 1px solid #dee2e6;
}

.magazine-pagination__popover-arrow {
	border-color: #dee2e6 !important;
	z-index: -1 !important;
}
