@charset "utf-8";

html, body {
  font-family: Helvetica;
  font-size: 15px;
}

body {
  margin: 0px;
}

a:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

a[target="_blank"]:not(.external-exception):after {
  white-space: nowrap;
  content: "\e89e";
  position: relative;
  font-family: 'Material Symbols Outlined';
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  display: contents;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  outline: none !important;
}

.btn, :-moz-any-link:focus {
  outline: none !important;
}

a.image-link {
  text-decoration: none;
}

.main-wrapper {
  min-height: 100vh;
  position: relative;
  height: auto !important;
  height: 100%;
  margin: 0 auto -68px;
  padding-top: 78px;
}

.main-scene-banner {
  width: 100%;
  margin-top: 24px;
}

.page {
  padding-top: 36px;
  padding-bottom: 36px;
}

.page .page_inner {
  border-radius: 4px;
}

.navbar, .rd-footer {
  border-width: 0px;
  width: 100%;
  clear: both;
  z-index: 10;
}

.navbar, .rd-footer, .navbar a, .rd-footer a {
  text-decoration: none;
}

.rd-footer-links {
  max-width: 350px;
  margin: 0 auto 16px;
}

.rd-footer-links-column {
  width: 50%;
}

.rd-footer-links a {
  display: block;
  line-height: 1.75em;
}

.rd-footer a:hover, .rd-footer a:active {
  text-decoration: underline;
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  z-index: 1000;
}

.navbar {
  width: 100%;
  height: 78px;
}

.navmenu {
  width: 100%;
  height: 40px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.navmenu-item {
  padding-left:20px;
  padding-right:20px;
  text-decoration: none;
  font-size: 15px;
}

.navbar {
  border-top: 0;
  white-space: nowrap;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.navbar > .container {
  padding-top: 5px;
  padding-bottom: 5px;
}

.navbar-brand {
  font-family: "IM Fell English";
  display: flex;
  align-items: center;
  float: left;
  font-size: 18px;
  line-height: 20px;
  height: 50px;
}

.fb-logo {
  display: block;
  height: 54px;
  width: 54px;
  margin-left: 0.5rem;
}

.fb-brand-block {
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 460px) {

.fb-brand-block .fb-brand-subtitle {
  display: none !important;
}

}

@media (max-width: 360px) {

.fb-brand-block {
  display: none !important;
}

}

.fb-brand-title {
  display: block;
  font-size: 27px;
  line-height: normal;
}

.fb-brand-subtitle {
  display: block;
  font-size: 18px;
  line-height: normal;
  font-style: oblique;
}

.navbar .navbar-toggler-icon {
  background: none;
  width: auto;
  height: auto;
  line-height: 0;
}

.navbar .navbar-toggler-icon:before {
  position: relative;
  display: inline-block;
  content: "\e5d2";
  font-family: 'Material Symbols Outlined';
  speak: none;
  font-size: 32px;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: transform .2s ease-in-out;
}

.push, .rd-footer {
  height: 117px;
}

.rd-footer {
  position: absolute;
  bottom: 0;
  border-bottom: 0;
  padding-top: 4px;
}

.rd-footer-container {
  position: relative;
}

.rd-footer-center {
  text-align: center;
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  font-size: 12.5px;
  margin-top: 0.3em;
  margin-bottom: 0.1em;
}

.rd-footer-center p {
  margin-top: 0.6em;
  margin-bottom: 1em;
}

.rd-footer-left {
  text-align: left;
  position: absolute;
  left: 0;
  top: 10px;
}

.rd-footer-right {
  text-align: left;
  position: absolute;
  right: 0;
  top: 5px;
}

.block-title {
  font-family: "Fira Sans Extra Condensed";
  display: block;
  text-align: center;
  font-size: 30px;
  padding-bottom: 10px;
  font-weight: 500;
}

.card {
  margin-bottom: 20px;
}

.navbar-collapse {
  padding-left: 10px;
}

@media (min-width: 992px) {

.navbar-collapse {
  margin-top: 6px;
}

}

@media (min-width: 768px) {

.navbar-expand .navbar-nav {
  padding-left: 1.2rem;
  margin-top: 0.5px;
}

.nav-link.fb-navlink-noicon {
  margin-top: 0.5px;
}

}

@media (max-width: 767.98px) {

.navbar-collapse a.nav-link {
  padding-top: 0.5em;
  line-height: 2em;
}

.navbar-brand {
  margin-right: 0px;
}

}

.nav-link.fb-navlink-noicon {
  padding-left: 1.5rem;
  padding-right: 0rem;
}

.navbar-collapse a:hover, .navbar-collapse a:focus {
  text-decoration: underline;
}

@media (max-width: 767.98px) {

ul.navbar-nav {
  margin-top: 15px;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 2px;
}

.nav-link.fb-navlink-noicon {
  padding-left: 1rem;
  padding-right: 0rem;
}

}

a.dropdown-toggle::after {
  border: none;
  margin-left: 0;
  vertical-align: -6px;
  position: relative;
  display: inline-block;
  content: "\e5c5";
  left: -4px;
  font-family: 'Material Symbols Outlined';
  speak: none;
  font-size: 22px;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

span.dropdown-separator {
  display: block;
  height: .5px;
  background: #777777;
  margin: 3px 0; 
}

a.dropdown-item {
  text-decoration: none;
  line-height: 1.5em;
  font-size: 1.2rem;
  padding: 7px 18px;
}

@media (max-width: 767.98px) {

a.dropdown-item {
  line-height: 2em;
}

}

a img {
  transition: transform .2s ease-in-out;
}

a img:hover, a:hover img {
  transform: scale(1.015);
}

div.sticky-top {
  z-index: 5;
}

.margin-h-5px {
  margin: 0 5px 0 5px;
}

a.imgref {
  text-decoration: none;
}

.accordion-button.faq {
  font-family: "Fira Sans Extra Condensed";
  font-weight: 400;
  font-size: 18px;
}

.accordion-button.faq:before {
  right: 5px;
}

.accordion-body.faq {
  padding-top: 10px;
  padding-left: 45px;
  font-size: 16px;
}

.faq a.question-link:before {
  display: inline-block;
  content: "\e157";
  position: relative;
  top: 4px;
  left: 4px;
  font-family: 'Material Symbols Outlined';
  speak: none;
  font-size: 22px;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.form-switch.cookies-control input {
  transform: scale(1.6);
  margin-left: 30px;
  margin-right: 20px;
  margin-top: 11px;
}

.form-switch.cookies-control label {
  padding-top: 10px;
}

div.cookie-consent {
  display: block;
}

div.cookie-consent .modal-header .modal-title {
  width: 100%;
  text-align: center;
  margin-top: 5px;
}

div.cookie-consent .modal-footer {
  padding-top: 0;
  justify-content: flex-start;
}

div.cookie-consent ul {
  list-style-type: none;
  width: 100%;
  padding: 0;
}

div.cookie-consent ul li:not(:first-child) {
  display: list-item;
  text-align: left;
  margin-top: 20px;
}

div.cookie-consent ul li a {
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
  width: 100%;
  padding: 10px;
  border-radius: 3px;
}

div.cookie-consent ul li a:before {
  display: inline-block;
  content: "\e5ca";
  position: relative;
  left: 0;
  top: 4px;
  margin-right: 8px;
  font-family: 'Material Symbols Outlined';
  speak: none;
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

div.breadcrumbs {
  padding-bottom: 14px;
  font-size: 0;
  opacity: 80%;
}

div.breadcrumbs a, div.breadcrumbs span {
  font-size: 13px;
}

div.breadcrumbs .separator:before {
  font-family: 'Material Symbols Outlined';
  content: "\e5cc";
  padding-left: 6px;
  padding-right: 6px;
  vertical-align: -4px;
  font-size: 18px;
}

span.help:before {
  font-family: 'Material Symbols Outlined';
  content: "\e887";
  padding-left: 0px;
  padding-right: 6px;
  vertical-align: -3px;
  font-size: 18px;
}

.tooltip-inner {
  text-align:left;
  padding: 15px 10px 15px 15px;
  font-size: 15px;
}

.nolink {
  text-decoration: underline;
}

.btn.btn-outline-navbar {
  padding: 0.3rem 0.75rem;
}

.btn.btn-noborder-navbar {
  padding: 0.3rem 0.3rem 0.3rem 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-noborder-navbar:focus {
  outline: none;
  box-shadow: none;
}

.btn.btn-noborder-navbar span.material-symbols-outlined {
  font-size: 2.2rem;
}

.btn.btn-noborder-navbar span.username {
  padding: 0rem 0.2rem 0rem 0rem;
}

.material-icons-outlined {
  vertical-align: middle;
  line-height: 1;
  font-size: 22px;
}

.material-icons-outlined.mio-lg {
  vertical-align: middle;
  line-height: 1;
  font-size: 28px;
}

.article {
  padding-top: 20px;
  padding-bottom: 40px;
}

.article h1 {
  padding-top: 20px;
  padding-bottom: 15px;
  text-align: center;
}

.article h2 {
  padding-top: 20px;
  padding-bottom: 5px;
}

.article h3 {
  padding-top: 20px;
  padding-bottom: 5px;
}

.mascot {
  width: 100%;
  padding-top: 24px;
  padding-left: 10px;
  padding-right: 10px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.app-header .app-logo {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
}

.app-header .app-header-text {
  line-height: 1.3;
}

h2 {
  padding-top: 5px;
  padding-bottom: 15px;
  font-size: 25px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
}

h1 {
  padding-top: 5px;
  padding-bottom: 15px;
  font-size: 30px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
}

.login-section {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.login-section input {
  border: 0.5px solid #555555;
  border-radius: 4px;
  min-height: 48px;
  padding: 10px;
}

.login-section input::placeholder {
  color: #bbbbbb;
}

.login-section form, .login-section input, .social-button, .primary-button, .secondary-button, .cancel-button {
  width: 340px;
}

@media (max-width: 400px) {

.login-section form, .login-section input, .social-button, .primary-button, .secondary-button, .cancel-button {
  width: 100%;
}

}

.login-section .forgot-password-container {
  margin-top: -6px;
  margin-bottom: 16px;
  padding-left: 7px;
}

.login-section .password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-section .password-wrapper input {
  flex: 1;
  padding-right: 2.7rem;
}

.login-section .toggle-password {
  position: absolute;
  right: 0.2rem;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 0.5rem;
  padding: 0.55rem 0.5rem 0.25rem 0.5rem;
  color: #999999;
}

.social-or-separator {
  margin: 0.7rem;
}

.primary-button, .secondary-button, .cancel-button, .social-button {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s ease;
}

.product_page .primary-button, .product_page .secondary-button {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
}

.primary-button {
  min-height: 64px;
  background: #57452b;
  border: 1px solid #555555;
  color: #eeeeee;
}

.product_page .primary-button {
  min-height: 46px;
  background: #57452b;
  border: 1px solid #555555;
  color: #eeeeee;
}

.cancel-button, .social-button {
  min-height: 64px;
  margin: 0.1rem;
  background: #ffffff;
  border: 1px solid #555555;
  color: #555555;
}

.product_page .secondary-button {
  min-height: 46px;
}

@media (max-width: 360px) {

.primary-button, .secondary-button, .cancel-button, .social-button {
  font-size: 1.1rem;
  min-height: 60px;
}

.product_page .primary-button, .product_page .secondary-button {
  font-size: 1.1rem;
  min-height: 42px;
}

}

.primary-button:disabled {
  opacity: 50%;
}

.social-button:hover, .primary-button:hover, .secondary-button:hover {
  text-decoration: none;
}

.primary-button:hover {
  background: #715b3d;
  border: 1px solid #4a3a22;
}

.primary-button:active {
  background: #715b3d;
}

.secondary-button {
  background: #ffffff;
  border: 1px solid #555555;
  color: #555555;
}

.cancel-button:hover, .social-button:hover, .secondary-button:hover {
  background: #e6e6e6;
  color: #555555;
}

.cancel-button:active, .social-button:active, .secondary-button:active {
  background: #d6d6d6;
  color: #555555;
}

.social-button img {
  height: 32px;
  margin-right: 0.75rem;
}

.errorlist {
  margin: -0.3rem 0.5rem 0.5rem 0.5rem;
  padding: 0;
  list-style: none;
  color: #ff4400;
  font-size: 0.9rem;
}

.form-group .errorlist {
  margin: 0.7rem 0.5rem 0.5rem 0.5rem;
}

.errorlist li {
  margin: 0;
}

.form-group.checkbox-input {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.form-group.checkbox-input label {
  padding: 1px 0px 0px 4px;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.5em;
  height: 1.5em;
  min-height: 1.5em;
  margin-right: 0.5em;
  background-color: white;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:checked {
  background-color: #57452b;
  border-color: #57452b;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 7.5px;
  width: 8px;
  height: 16px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

p.meta_field {
  margin-bottom: 0.3rem;
}

p.meta_field > .meta_title {
  font-weight: bolder;
}

.product_page .book_tag {
  display: inline;
  overflow-wrap: anywhere;
  background: #27698f20;
  border-radius: 4px;
  padding: 1px 4px;
  margin: 2px;
}

.product_page .book_tag:before {
  font-family: 'Material Symbols Outlined';
  content: "\f05b";
  padding-left: 0px;
  padding-right: 3px;
  vertical-align: -3px;
  font-size: 16px;
}

.author_list, .subject_list {
  padding-bottom: 0.7em;
}

.author_list .author_item, .subject_list .subject_item {
  display: inline-block;
  background: #27698f20;
  border-radius: 4px;
  padding: 1px 4px;
  margin: 2px;
}

.author_list .author_item:before {
  font-family: 'Material Symbols Outlined';
  content: "\e7fd";
  padding-left: 0px;
  padding-right: 3px;
  vertical-align: -3px;
  font-size: 16px;
}

.subject_list .subject_item:before {
  font-family: 'Material Symbols Outlined';
  content: "\f05b";
  padding-left: 0px;
  padding-right: 3px;
  vertical-align: -3px;
  font-size: 16px;
}

.product_page h1 {
  text-align: left;
  font-weight: bold;
  padding-top: 30px;
  padding-bottom: 5px;
}

.product_page h2 {
  text-align: left;
  font-size: 22px;
  font-weight: normal;
  margin-top: -12px;
  padding-bottom: 5px;
}

.scrollable_book_list {
  padding-top: 5px;
}

.scrollable_book_list h2 {
  text-align: left;
  font-weight: bold;
  padding-bottom: 5px;
  color: #777777;
}

.book_left_container {
  float: none;
  width: 100%;
  padding: 0;
  background: transparent;
}

@media (min-width: 768px) {

.product_page h1 {
  padding-top: 5px;
  padding-bottom: 0;
}

.book_left_container {
  float: left;
  width: 300px;
  padding: 0 2.5rem .5rem 0;
}

}

.book_cover_container {
  display: flex;
  justify-content: center;
}
.scrollable_book_list .book_cover_container {
}
.scrollable_book_list .book_cover_wrapper {
  height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-bottom: 8px;
}
.book_cover {
  position: relative;
  display: inline-block;
}
.book_cover img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* overlay: spine + edges */
.book_cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;         /* darken relative to the pixels below, like your darker() */
  background:
    /* Spine band (centred ~1.0 * --spine; ~0.5 * --spine wide) */
    linear-gradient(to right,
      rgba(0,0,0,0) calc(var(--spine) * 0.75),
      rgba(0,0,0,0.15) calc(var(--spine) * 0.90),
      rgba(0,0,0,0.25) calc(var(--spine) * 1.00),
      rgba(0,0,0,0.15) calc(var(--spine) * 1.10),
      rgba(0,0,0,0)  calc(var(--spine) * 1.25)
    ),
    /* Left edge (gentle) */
    linear-gradient(to right,
      rgba(0,0,0,0.10) 0,
      rgba(0,0,0,0) calc(var(--edge) / 2)
    ),
    /* Top edge (gentle) */
    linear-gradient(to bottom,
      rgba(0,0,0,0.10) 0,
      rgba(0,0,0,0) calc(var(--edge) / 2)
    ),
    /* Right edge (strong) */
    linear-gradient(to left,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0.25) var(--edge)
    ),
    /* Bottom edge (strong) */
    linear-gradient(to top,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0.25) var(--edge)
    );
  background-repeat: no-repeat;
  background-size:
    100% 100%,                 /* spine layer spans element; stops limit the effect */
    var(--edge) 100%,          /* left edge */
    100% var(--edge),          /* top edge */
    var(--edge) 100%,          /* right edge */
    100% var(--edge);          /* bottom edge */
  background-position:
    left top,
    left top,
    left top,
    right top,
    left bottom;
}

.book_price {
  text-align: right;
  font-size: 180%;
  font-weight: bold;
  padding-right: 5px;
}

.book_price p {
  margin-top: .4rem;
  margin-bottom: .5rem;
}

.scrollable_book_list .book_href {
}

.scrollable_book_list .book_title {
  display: -webkit-box;
  -webkit-line-clamp: 3;     /* limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;   /* shows "…" if overflow */
  white-space: normal;       /* allow wrapping */
  line-height: 1.2;          /* tweak for compact look */
  max-height: calc(1.2em * 3);   /* exactly 3 lines tall */
  margin-bottom: 0.1em;
}

.scrollable_book_list .book_price {
  font-size: 85%;
  text-align: left;
  font-weight: normal;
}

.action_buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0px 10px;
}

.action_buttons form {
  flex: 0 1 160px;
}

.action_buttons form button {
  white-space: nowrap;
  width: 100%;
}

.book_mascot {
  float: right;
  width: 25%;
  background: transparent;
  padding-left: 30px;
}

hr {
  overflow: hidden;
}

.book_description {
  max-height: 150px;
  overflow: clip;
}

.collapsible_area_toggle {
  text-align: center;
}

.product_page .show_more:before {
  font-family: 'Material Symbols Outlined';
  content: "\e313";
  vertical-align: -4px;
  font-size: 18px;
}

.product_page .show_less:before {
  font-family: 'Material Symbols Outlined';
  content: "\e316";
  vertical-align: -4px;
  font-size: 18px;
}

.scrollable_book_list .scroll_left:before {
  font-family: 'Material Symbols Outlined';
  content: "\e2ea";
  vertical-align: -4px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 24px;
  color: #27698fc0;
}

.scrollable_book_list .scroll_right:after {
  font-family: 'Material Symbols Outlined';
  content: "\e5e1";
  vertical-align: -4px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 24px;
  color: #27698fc0;
}

.scrollable_book_list .scroll_left:hover, .scrollable_book_list .scroll_right:hover {
  text-decoration: none;
}

.scrollable_book_list .scroll_disabled {
  opacity: 30%;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 767.98px) {

.scrollable_book_list h2 {
  text-align: center;
}

}

@media (max-width: 767.98px) {

.container.page {
  padding: 0px;
}

.container.page .page_inner {
  background: transparent;
  box-shadow: none;
}

.author_list .author_item, .subject_list .subject_item, .product_page .book_tag {
  display: inline-block;
  margin: 0.4em 0.8em 0.4em 0;
  border: 1px solid #27698f40;
  text-wrap-mode: nowrap;
}

}

@media (max-width: 575.98px) {

.card-body {
  padding: 1rem 0rem;
}

.card {
  margin-bottom: 5px;
}

.book_description {
  max-height: 120px;
}

p.meta_field {
  margin-bottom: 0.6rem;
}

.product_page .book_tag {
  line-height: 180%;
}

.page_inner {
  padding: 15px;
}

}

.book_list {
  border: 1px solid #cccccc;
  border-radius: 6px;
  margin: 0 -3px;
}

h1.book_list_title {
  font-weight: bold;
}

.book_card {
  background: #ffffff;
  transition: border 0.2s ease;
  border-radius: 6px;
  min-height: 120px;
  display: flex;
  padding: 8px;
  gap: 10px;
  color: #555555;
}

.book_card .buttons_container {
  max-width: 30%;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
  padding: 5px 0;
}

.book_card .buttons_container .primary-button, .book_card .buttons_container .secondary-button {
  font-size: 120%;
  max-width: 100%;
  width: unset;
  white-space: nowrap;
  min-height: unset;
  padding: 5px 10px;
  border-radius: 3px;
}

.book_card_container {
  padding: 0;
}

.book_card_container:not(:first-child) {
  border-top: 1px solid #cccccc;
}

@media (min-width: 768px) {

.book_card_container:not(:first-child) {
  border-top: none;
}

.book_card_container {
  padding: 0 7px 14px 7px;
}

.book_list {
  border: none;
  border-radius: 0px;
  margin: 0;
}

.book_card {
  border: 1px solid #cccccc;
}

}

.book_card .book_cover {
  height: auto;
  max-width: unset;
}

.book_card .book_cover img {
  max-height: 180px;
  max-width: 120px;
}

.book_card .book_cover_wrapper {
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.book_card .book_info {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.book_card .book_info p {
  margin-bottom: 0;
}

.book_card .book_info p.book_title {
  font-size: 120%;
  font-weight: bold;
}

.book_card .book_info p.book_summary {
  margin-top: 0.3rem;
  font-size: 94%;
}

.book_card .book_info p.book_title, .book_card .book_info p.book_authors, .book_card .book_info p.book_series {
  display: -webkit-box;
  -webkit-line-clamp: 3;     /* limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;   /* shows "…" if overflow */
  overflow-wrap: anywhere;
  white-space: normal;       /* allow wrapping */
  line-height: 1.2;          /* tweak for compact look */
  max-height: calc(1.2em * 3);   /* max 3 lines tall */
  margin-bottom: 0.3rem;
}

.book_card .book_info p.book_series {
  font-weight: bold;
}

.book_card .book_info p.book_summary {
  display: -webkit-box;
  -webkit-line-clamp: 4;     /* limit to 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;   /* shows "…" if overflow */
  overflow-wrap: anywhere;
  white-space: normal;       /* allow wrapping */
  line-height: 1.2;          /* tweak for compact look */
  max-height: calc(1.2em * 4);   /* max 4 lines tall */
  margin-bottom: 0.3rem;
}

.book_card .book_price {
  margin-top: auto;
  text-align: left;
  font-size: 120%;
}

.waiting_indicator {
  margin-top: 15px;
}

@media (max-width: 360px) {

.book_card {
  flex-wrap: wrap;
}

.book_card .buttons_container {
  max-width: unset;
}

}

.book-scroller, .book-scroller-small {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding-bottom: .25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.book-scroller::-webkit-scrollbar, .book-scroller-small::-webkit-scrollbar {
  display: none;
}

.book-card{
  flex: 0 0 calc((100% - (var(--gap) * (var(--items) - 1))) / var(--items));
  scroll-snap-align:start;
  text-decoration:none;
}
.book-card .card-img-top{
  object-fit:cover;       /* crop neatly */
}

@media (max-width: 767.98px) {

input#search-query {
  font-size: 18px;
  height: 44px;
}

}

@media (min-width: 768px) {

#search-form {
  padding-left: 0.5rem;
}

#search-button {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

}

.book-scroller{ --items: 2; --gap: 20px; gap: 20px; }
@media (min-width: 500px){ .book-scroller{ --items: 3; --gap: 24px; gap: 24px; } }
@media (min-width: 768px){ .book-scroller{ --items: 4; --gap: 30px; gap: 30px; } }
@media (min-width: 992px){ .book-scroller{ --items: 5; --gap: 30px; gap: 30px; } }
@media (min-width: 1200px){ .book-scroller{ --items: 6; --gap: 30px; gap: 30px; } }

.book-scroller-small{ --items: 3; --gap: 20px; gap: 20px; }
@media (min-width: 500px){ .book-scroller-small{ --items: 4; --gap: 24px; gap: 24px; } }
@media (min-width: 768px){ .book-scroller-small{ --items: 5; --gap: 30px; gap: 30px; } }
@media (min-width: 992px){ .book-scroller-small{ --items: 6; --gap: 30px; gap: 30px; } }
@media (min-width: 1200px){ .book-scroller-small{ --items: 7; --gap: 30px; gap: 30px; } }

a.help_icon:before {
  font-family: 'Material Symbols Outlined';
  content: 'help';
  vertical-align: -4px;
  font-size: 20px;
}

a.help_icon:hover {
  text-decoration: none;
}
