/* BUTTONS */
.btn-narrow {
	cursor: pointer;
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .25px;
	color: #0000f3;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	background-color: #fff;
	border: 1px solid #e0e0fa;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,243,.12);
	padding: 9px 16px 11px;
	margin-top: 20px;
}
.btn-narrow:hover,
.btn-narrow:focus {
	color: #761CEA;
	box-shadow: 0 2px 20px rgba(0,0,243,.12);
	transition: all .2s;
}
a.btn-blue-narrow {
	cursor: pointer;
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .25px;
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	background-color: var(--colorBlue);
	border-radius: 4px;
	padding: 8px 16px;
}
a.btn-blue-narrow:hover,
a.btn-blue-narrow:focus {
	color: #fff;
	background-color: var(--colorBlueHover);
	transition: all .3s;
}
/**/

/* CUSTOM POPUP */
#popup-wrapper {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,243,.8);
	overflow: auto;
}
.popup-box {
	z-index: 999999;
	position: absolute;
	display: none;
	top: 100px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 640px;
	height: auto;
	min-height: 218px;
	background-color: #FFF;
	box-shadow: 0 3px 22px 0 rgba(0,0,0,.11);
	margin-bottom: 60px;
	padding: 60px;
}
.popup-close {
	cursor: pointer;
	position: absolute;
	z-index: 999;
	top: 15px;
	right: 15px;
	width: 31px;
	height: 31px;
	background: #E6E6E6 url("../img/close.svg") center no-repeat;
	background-size: 9px;
	border-radius: 12px;
}
.popup-close:hover {
	opacity: .8;
	transition: opacity .2s;
}
.popup-inner .agreement-header {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.29px;
	line-height: 20px;
	color: #232325;
	margin-bottom: 20px;
}
.popup-inner .popup-title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.29px;
	line-height: 1.2;
	color: #232325;
	margin-bottom: 24px;
}
.popup-inner p {
	font-size: 1em;
	font-weight: 400;
	letter-spacing: -0.29px;
	line-height: 1.68;
	color: #232325;
}
.popup-inner p + p {
	margin-top: 1em;
}
.popup-inner ul li {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: -0.29px;
	line-height: 20px;
	color: #232325;
}
.popup-inner ul li + li {
	margin-top: 1em;
}
.popup-inner .agreement {
	max-height: 280px;
	overflow: scroll;
	border: 1px solid #E6E6E6;
	padding: 10px 15px 10px 10px;
}
.popup-inner a#db-url {
	width: 100%;
	margin-top: 40px;
}


@media screen and (max-width: 768px) {
	.popup-box {
		top: 0;
		left: 0;
		right: 0;
		height: 100vh;
		transform: translateX(0);
		box-shadow: none;
		margin-bottom: 0;
		padding: 60px 15px;
	}
}
/**/

/* READER POPUP */
#popup-db.popup-box {
	max-width: 560px;
}
#popup-reader.popup-box {
	max-width: 940px;
	padding: 80px 110px 60px;
}
#popup-reader.popup-box .decoration-left {
	display: block;
	position: absolute;
	bottom: 15%;
	left: 0;
	width: 80px;
	height: 170px;
	background: url("../img/left-shape.svg") 50% no-repeat;
	background-size: contain
}
#popup-reader.popup-box .decoration-right {
	display: block;
	position: absolute;
	top: 30%;
	right: 0;
	width: 75px;
	height: 198px;
	background: url("../img/right-shape.svg") 50% no-repeat;
	background-size: contain
}
/**/

/* BANNERS */
.catalogue-banners {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-bottom: 80px;
}
.catalogue-banners a {
	position: relative;
	display: block;
	width: calc(100% / 4 - 24px);
	font-family: 'Leto Sans', Arial, Helvetica;
	font-size: 16px;
	font-weight: bold;
	text-transform: uppercase;
	color: #232325;
	background-color: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 3px;
	padding: 20px 60px 20px 25px;
}
.catalogue-banners a:hover {
	color: #4a4a4a;
	background-color: #F9FAFB;
	transition: all .3s;
}
@media screen and (max-width: 1100px) {
	.catalogue-banners a {
		width: calc(100% / 2 - 12px);
		margin-bottom: 24px;
	}
}
@media screen and (max-width: 768px) {
	.catalogue-banners {
		flex-direction: column;
		flex-wrap: wrap;
		margin-left: 0;
	}
	.catalogue-banners a {
		width: 100%;
		height: auto;
		padding: 20px 25px;
		margin-left: 0;
		margin-bottom: 10px;
	}
}
/**/

/* DB */
#online-resourses {
	padding-top: 60px;
	margin-top: -60px;
	-webkit-background-clip: content-box;
	background-clip: content-box;
}

.databases-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 80px;
}

.databases-title {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -.45px;
	color: #232325;
}

.databases-title a {
	display: block;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -.13px;
	color: #0000F3;
	margin-top: 5px;
}

.databases-title a:hover {
	color: #250dc0;
	transition: all .3s;
}

.databases-filters {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ajax_block {
	position: relative;
	width: calc(100% / 4 - 30px);
	height: auto;
	background-color: #fff;
	box-shadow: 0 4px 8px rgba(42,42,243,.16);
	margin-bottom: 40px;
	padding-bottom: 30px;
}

.block_label {
	position: absolute;
	right: -4px;
	background-color: #d83f1c;
	padding: 3px 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .36px;
	color: #fff;
}

.block_index {
	display: none;
}

.block_image img {
	width: 100%;
	background-color: #edf1f5;
}

.block_title {
	font-family: 'Open Sans', Arial, Helvetica;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -.32px;
	line-height: 22px;
	margin-top: 20px;
	padding: 0 25px;
	text-transform: uppercase;
}

.block_subtitle {
	margin-top: 5px;
	margin-left: 25px;
	margin-right: 25px;
	font-size: 12px;
	color: #888;
}

.block_subtitle + .block_description {
	display: block;
}

.block_description {
	display: none;
	font-size: 14px;
	line-height: 1.68;
	padding: 0 20px 0 25px;
	margin-top: 20px;
}

.block_description ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	padding-left: .5em;
}

.block_description ul li {
	padding: 0;
	margin-bottom: 10px;
	line-height: 1.68;
	font-size: 1em;
	font-style: normal;
	font-weight: 400;
	padding-left: 1.2em;
	color: #4a4a4a;
}

.block_description ul li:before {
	content: " ";
	display: block;
	float: left;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	margin-top: .8em;
	margin-right: 0;
	margin-left: -1.5em;
	padding-left: 0;
	background: #0000f3;
}

.block_description a {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.block_tags {
	font-family: 'Open Sans', Arial, Helvetica;
	font-size: 12px;
	letter-spacing: .25px;
	color: #0000f3;
	margin-top: 25px;
	margin-left: 25px;
	margin-right: 20px;
}

.block_note {
	font-size: 13px;
	letter-spacing: -.36px;
	color: #a4a4a4;
}

.block_source {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 25px 25px 0;
}

a.block_info {
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .25px;
	text-transform: uppercase;
	color: #0000f3;
}

a.block_info:hover {
	color: var(--colorBlueHover);
	transition: all .3s;
}

@media screen and (max-width: 1100px) {
	.ajax_block {
		width: calc(100% / 3 - 30px);
	}

	.databases-filters {
		margin-top: 30px;
	}
}

@media screen and (max-width: 768px) {
	.databases-header {
		flex-wrap: wrap;
		margin-bottom: 40px;
	}

	.ajax_block {
		width: 100%;
		margin-bottom: 10px;
	}
}
/* */

/* CUSTOM POPUP (legacy underscore variant) */
.popup_wrapper {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.75);
	z-index: 9999;
	width: 100%;
	height: 100%;
	overflow-y: auto;
}
.popup_reader {
	width: 90%;
	max-width: 618px;
	background-color: #fff;
	position: relative;
	padding: 63px 10px;
	margin: 100px auto;
}
.content_popup_reader {
	margin: 0 auto;
	max-width: 442px;
}
.popup_close {
	cursor: pointer;
	position: absolute;
	width: 31px;
	height: 31px;
	top: 15px;
	right: 15px;
	border-radius: 12px;
	background: #e6e6e6 url('/themes/libfl/images/online-resourses/close.svg');
}
.popup_close:hover {
	opacity: 0.8;
	transition: all .3s;
}
.popup-box .block_label,
.popup-box .block_info {
	display: none;
}
.popup-box .block_title {
	padding: 0;
}
.popup-box .block_description {
	display: block;
	padding: 0;
}
.popup-box .btn-blue-narrow {
	margin-left: 0px;
}
.popup-box .block_tags {
	margin-left: 0px;
}
.popup-box .block_source {
	margin: 25px 0 0;
}

/* BS5: active tab border */
#searchForm .nav-tabs .nav-link.active {
    border-top: 3px solid #f30926;
}

a.adv_search {
    color: #f30926;
}

.catalogue-banners a {
    margin: 15px 0;
}

a.global_search.becomelink:after {
    background: #e6e6e6 url("../img/arrow-back.svg") 50% no-repeat;
}

select.adv-term-type, select.boolean, select.jumpMenu {
    background: url("../img/down.svg") right center no-repeat;
    background-position: 175px 20px;
    background-size: 8px;
}

.btn.btn-primary:active,
.btn.btn-primary:focus,
.btn.btn-primary:hover {
    color: #fff;
    background-color: #f30926;
}

.btn.btn-primary, .btn-success {
    background-color: #f30926;
}

.helper a {
    color: #f30926;
}

.helper a:hover, .helper a:focus {
    color: #f30926;
    text-decoration: underline;
    transition: all .2s;
}

.form-control:focus {
    box-shadow: none;
}

.adv-group-match select {
    color: #f30926;
}

.btn:focus, .btn.focus {
    outline: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.printed-book {
    background: url("../img/book.svg") center no-repeat;
}

span.about_label {
    width: 150px;
}

.search-options-wrapper {
    background: #f9f9f9 url("../img/search.svg") center no-repeat;
    background-size: 18px;
}

select.adv-term-type, select.boolean, select.jumpMenu {
    background: url("../img/down.svg") right center no-repeat;
    background-size: 8px;
}

.btn-clear-narrow {
    color: #f30926;
}

.facet-group .facet .badge {
    margin-right: 5px;
}

.cart-add, .btn-blue {
    background-color: #f30926;
}

.access_info a {
    color: #000;
}

.cart-add:hover, .cart-add:focus, .btn-blue:hover, .btn-blue:focus {
    background-color: #e60e28;
    transition: background-color .2s;
}

.cart-add, .btn-blue {
    width: 180px;
}

.about_info_block a {
    color: #f30926;
}

/* BS5 breadcrumb: custom SVG separator */
.breadcrumb-item + .breadcrumb-item::before {
    background: url("../img/right.svg") no-repeat center;
    background-size: 4px;
    content: "";
    display: inline-block;
    width: 8px;
    height: 10px;
    vertical-align: middle;
}

.form-control-sostav {
    padding: 20px;
    resize: vertical;
    min-height: 200px;
}

.tool-content {
    margin: 20px 0 10px 0;
}

.btn-black {
    width: 160px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .25px;
    line-height: 20px;
    color: #fff !important;
    text-align: center;
    text-transform: uppercase;
    background-color: #000;
    border-radius: 4px;
    padding: 10px 0;
}

.btn-black:hover, .btn-black:focus {
    background-color: #000;
    transition: background-color .2s;
}

h3, .h3 {
    font-size: 20px;
	font-weight: 700;
}

*,*:focus,*:hover{
    outline:none;
}

a:hover {
    color: #F30926;
}

a:focus {
    color: #000;
}

.btn-group-separators > .btn {
    margin-left: 0 !important;
}

.btn-group-separators > .btn:not(:last-child) {
    margin-right: 2px;
}

.btn-grey {
    width: 160px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .25px;
    line-height: 20px;
    color: #333 !important;
    text-align: center;
    text-transform: uppercase;
    background-color: #fff;
    border-radius: 4px;
    padding: 10px 0;
    border: 1px #E6E6E6 solid;
}

.btn-grey:hover, .btn-grey:focus {
    color: red;
    background-color: #dbdbdb;
    transition: background-color .2s;
}

.btn-grey.active {
    background-color: #5a6268;
    color: #fff !important;
    border-color: #545b62;
}

.catalogue-banners {
    justify-content: flex-start;
    margin-bottom: 25px;
}

.catalogue-banners a {
    margin: 15px 0;
    margin-right: 2%;
}

.access_info {
    display: block;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid #ddd;
    margin-top: 35px;
}

/* BS5: nav-tabs active link */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus {
    color: #232325;
    border-top: 3px solid #f30926;
    margin-top: -3px;
}

/* BS5: last breadcrumb-item truncation */
.breadcrumb-item:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(400px, 40vw);
  display: inline-block;
  vertical-align: bottom;
  transition: max-width 0.3s ease;
}

acronym {
    cursor: help;
}

.about_info_block a:hover, .about_info_block a:focus {
    color: #e60e28;
    text-decoration: underline;
    transform: all .2s;
}

/* BS5: pagination link color */
.page-link {
    color: #f30926;
}
.page-link.page-next {
    width: 31px;
    height: 31px;
    background: #e6e6e6 url("../img/arrow-back.svg") center no-repeat;
    background-size: 18px;
    border-radius: 11px;
    transform: rotate(180deg);
}

input[type="radio"] {
    top: 3px;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}
