/* BookAssist cookie-consent banner styles. The banner markup is injected
   at runtime by ba-js-cookie-banner (see CookieBanner.tsx); its UMD ships
   no CSS, so these rules make #cookie-bg-overlay / #cookie-consent / .ck-*
   visible. Transversal (all templates), linked by CookieBannerSheet only when
   the banner is on for the request. */
*,
:after,
:before {
  box-sizing: border-box;
}
#cookie-container a,
#cookie-container a:active {
  color: #fff;
}
#cookie-container a:hover,
#cookie-container a:visited {
  color: #ddd;
}

#cookie-container {
  /*font-size: 14px;*/
  font-family: Helvetica, sans-serif;
}
#cookie-container hr {
  border: 0;
  height: 2px;
  background-color: #7c7c7c;
  margin: 0 0 2rem;
}
#cookie-container p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

#cookie-bg {
  /*display: none;*/
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,.5);
}

#cookie-consent {
  background-color: rgba(37, 37, 37, 0.9);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  max-height: 100%;
  overflow-y: auto;
  width: 100%;
  border-bottom: 1px solid #7c7c7c;
}
.ck-btn {
  border: 0;
  border-radius: 0;
  display: inline-block;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  min-width: 250px;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0.375rem 3rem;
  outline-color: transparent;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.ck-btn-block {
  display: block;
  width: 100%;
}
.ck-btn-green {
  background-color: #74b34b;
  color: #272727;
}
.ck-btn-green:hover {
  background-color: #8dd95b;
}
.ck-btn-grey {
  background-color: #bfbfbf;
  color: #272727;
}
.ck-btn-grey:hover {
  background-color: #d9d9d9;
}

.ck-category-info {
  position: relative;
  max-width: 570px;
  max-height: 20000px;
  overflow: hidden;
  padding: 1rem;
  -webkit-transition: max-height 1s ease-in-out;
  -moz-transition: max-height 1s ease-in-out;
  -o-transition: max-height 1s ease-in-out;
  -ms-transition: max-height 1s ease-in-out;
  transition: max-height 1s ease-in-out;
}
.ck-category-info.ck-category-closed {
  max-height: 0px;
  overflow: hidden;
}
.ck-category-info-text {
  padding: 0 25px 10px;
}
.ck-close {
  position: absolute;
  right: 0px;
  top: 12px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.ck-close:hover {
  opacity: 0.5;
}
.ck-close:before,
.ck-close:after {
  top: 4px;
  position: absolute;
  left: 11px;
  content: ' ';
  height: 17px;
  width: 2px;
  background-color: white;
}
.ck-close:before {
  transform: rotate(45deg);
}
.ck-close:after {
  transform: rotate(-45deg);
}
.ck-column {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 1;
  padding: 0 15px;
}
.ck-container {
  margin: 0 auto;
  max-width: 1280px;
  min-width: 320px;
  padding: 2rem 1rem 0;
}
.ck-container + .ck-container,
hr + .ck-container {
  padding-top: 0;
  padding-bottom: 2rem;
}
.ck-form {
  margin: 2px 0 1rem;
  padding: 0 3rem;
}

.ck-form-check {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
}
.ck-form-check label {
  display: inline;
  margin-bottom: 0;
  color: #fff;
  padding: 0 3px;
}
.ck-form-check-input{
  margin: 3px 3px 3px 4px;
}

.ck-justify-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.ck-mt1 {
  margin-top: 1rem;
}
.ck-mt2 {
  margin-top: 2rem;
}
.ck-mt3 {
  margin-top: 3rem;
}
.ck-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
.ck-text-center {
  text-align: center;
}
.ck-text-left {
  text-align: left;
}
.ck-text-right {
  text-align: right;
}

@media screen and (max-width: 768px) {
  .ck-container {
    overflow: auto;
  }
  .ck-column {
    min-width: 100%;
    width: 100%;
    margin: 10px 0;
  }
  .ck-row {
    margin-left: 0;
    margin-right: 0;
  }
  .ck-btn {
    width: 100%;
    padding: 0.7rem 1rem;
  }
  .ck-form-check {
    display: block;
    margin: 2rem 0;
  }
  .ck-close {
    position: relative;
    right: auto;
    top: 12px;
    width: 24px;
    height: 24px;
    display: inline-block;
    margin-bottom: 2rem;
    cursor: pointer;
  }
  .ck-close:before,
  .ck-close:after {
    top: 0px;
    position: absolute;
    left: 11px;
    height: 25px;
  }
}

@media screen and (min-width: 769px) and (max-width: 950px) {
  .ck-btn {
    min-width: 200px;
    padding: 0.375rem 1rem;
  }
}

#ba-edit-cookie {
  cursor: pointer;
  outline: none !important;
}

#cookie-bg-overlay {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 19999;
}

@media screen and (max-width: 576px) {
  #cookie-consent {
    height: 100%;
  }
}

.cb-transparent {
  height: 100%;
  position: fixed;
  top:0;
  width: 100%;
  z-index:19999
}

.ck-i-icon {
  cursor: pointer;
  margin-left: 5px;
  vertical-align: middle;
}
.ck-i-icon > img {
  width: 14px;
  height: 14px;
}

#cookie-bg-overlay {
  transform: none !important;
  animation: none !important;
}

/* Destination-only override: the banner's info icon is an inline <svg>, but
   Tailwind Preflight (active on the public tree) forces `svg { display: block }`,
   dropping the icon to its own line. Restore the inline flow here so the icon
   sits alongside the text (same 14px sizing as `.ck-i-icon > img`). */
.ck-i-icon > svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
