/**
 * @file
 * "I want a song" product page: "En savoir plus" button of the formula cards
 * and its pop-up. The rest of the page is styled by the theme
 * (components/_song-request.scss).
 */

.song-request {
  --sr-more-blue: #29abe2;
  --sr-more-blue-dark: #1c8fc0;
}

/* ============== CARD BUTTON ============== */

/* Column layout so the button sticks to the bottom of equal-height cards. */
.song-request__formule {
  display: flex;
  flex-direction: column;
}

.song-request__formule-actions {
  margin-top: auto;
  padding-top: 14px;
}

.song-request__formule-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sr-more-blue);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s;
}

.song-request__formule-more:hover,
.song-request__formule-more:focus-visible {
  background: var(--sr-more-blue-dark);
}

/* ============== POP-UP ============== */

html.song-request-modal-open {
  overflow: hidden;
}

.song-request__modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.song-request__modal[hidden] {
  display: none;
}

.song-request__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 28, 0.55);
}

.song-request__modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  outline: 0;
}

.song-request__modal-head {
  position: relative;
  padding: 22px 60px 22px 26px;
  background: var(--sr-more-blue);
}

.song-request__modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.song-request__modal-close:hover,
.song-request__modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.38);
}

.song-request__modal-title {
  color: #fff;
  font-weight: 800;
  font-size: 25px;
  line-height: 1.15;
}

.song-request__modal-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 8px;
}

.song-request__modal-price strong {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}

.song-request__modal-price span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.song-request__modal-body {
  padding: 24px 26px 26px;
}

.song-request__modal-text {
  margin: 0 0 18px;
  color: #5b6069;
  font-size: 14px;
  line-height: 1.55;
}

.song-request__modal-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.song-request__modal-list li {
  position: relative;
  padding-left: 24px;
  color: #1c1c1c;
  font-size: 14px;
  line-height: 1.45;
}

.song-request__modal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sr-more-blue);
  font-weight: 800;
  font-size: 15px;
}

.song-request__modal-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--sr-more-blue);
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.song-request__modal-note {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fafbfc;
  color: #6a6f78;
  font-size: 13px;
  line-height: 1.5;
}

.song-request__modal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.song-request__modal-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--sr-more-blue);
  box-shadow: 0 14px 26px -10px rgba(41, 171, 226, 0.6);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s;
}

.song-request__modal-primary:hover,
.song-request__modal-primary:focus-visible {
  background: var(--sr-more-blue-dark);
}

.song-request__modal-link {
  padding: 0;
  border: 0;
  background: none;
  color: #8a8f98;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.song-request__modal-link:hover,
.song-request__modal-link:focus-visible {
  color: #5b6069;
}

@media (max-width: 640px) {
  .song-request__modal {
    padding: 12px;
  }

  .song-request__modal-box {
    max-height: calc(100vh - 24px);
  }

  .song-request__modal-title {
    font-size: 22px;
  }
}
