.mdc-libro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.mdc-libro[hidden] {
  display: none;
}

body:has(#mdc-libro:not([hidden])) #cookie-notice {
  visibility: hidden;
}

.mdc-libro__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 18, 24, 0.55);
}

.mdc-libro__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 0;
  padding: 0;
  background: #f7f1e8;
  color: #2c2420;
  border: 0;
  border-left: 8px solid #6e273c;
  box-shadow: 0 24px 60px rgba(42, 18, 24, 0.28);
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.mdc-libro__photo {
  display: block;
  width: 100%;
  height: 100%;
  align-self: start;
  object-fit: cover;
}

.mdc-libro__body {
  padding: 28px 40px 28px 28px;
}

.mdc-libro__kicker {
  margin: 0 0 8px;
  color: #6e273c;
  font-family: Raleway, Lato, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mdc-libro__dialog h2 {
  margin: 0 0 16px;
  color: #6e273c;
  font-family: Raleway, Lato, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
}

.mdc-libro__dialog p {
  margin: 0 0 14px;
}

.mdc-libro__title-book {
  font-style: italic;
}

.mdc-libro__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
}

.mdc-libro__contacts a {
  color: #6e273c;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 39, 60, 0.35);
}

.mdc-libro__contacts a:hover {
  border-bottom-color: #6e273c;
}

.mdc-libro__cta {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 18px;
  background: #6e273c;
  color: #fff;
  font-family: Raleway, Lato, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mdc-libro__cta:hover {
  background: #541c2d;
  color: #fff;
}

.mdc-libro__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 241, 232, 0.94);
  color: #6e273c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mdc-libro__close:hover {
  color: #2c2420;
}

@media (max-width: 700px) {
  .mdc-libro__dialog {
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
  }

  .mdc-libro__body {
    padding: 18px 22px 22px 18px;
  }

  .mdc-libro__dialog h2 {
    font-size: 26px;
    padding-right: 28px;
  }
}
