
/* Works for sale: protected price access */
.works-sale-heading {
  width: 99%;
  margin: 0 0 0 1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.works-sale-heading .h2 {
  margin: 0;
}

.price-access-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-access-inline-form {
  margin: 0;
}

.price-access-button,
.price-access-submit {
  appearance: none;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1;
  padding: 11px 16px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.price-access-button:hover,
.price-access-button:focus-visible,
.price-access-submit:hover,
.price-access-submit:focus-visible {
  background: #fff;
  color: #111;
  outline: none;
}

.price-access-button--secondary {
  background: transparent;
  color: #111;
}

.price-access-button--secondary:hover,
.price-access-button--secondary:focus-visible {
  background: #111;
  color: #fff;
}

.price-access-status {
  color: #666;
  font-size: .78rem;
  white-space: nowrap;
}

.price-access-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.price-access-modal.is-open {
  display: flex;
}

.price-access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.price-access-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  background: #fff;
  color: #111;
  padding: 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
}

.price-access-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}

.price-access-close:hover,
.price-access-close:focus-visible {
  color: #111;
  outline: none;
}

.price-access-eyebrow {
  margin: 0 0 10px;
  color: #777;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.price-access-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 500;
}

.price-access-copy {
  margin: 0 0 24px;
  color: #666;
  line-height: 1.55;
}

.price-access-form label {
  display: block;
  margin: 0 0 8px;
  color: #333;
  font-size: .78rem;
  text-transform: lowercase;
}

.price-access-form input[type="password"] {
  width: 100%;
  height: 45px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  padding: 0 12px;
  outline: none;
}

.price-access-form input[type="password"]:focus {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}

.price-access-error {
  margin: 9px 0 0;
  color: #9d1c1c;
  font-size: .78rem;
}

.price-access-submit {
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}

body.price-modal-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .works-sale-heading {
    align-items: flex-start;
    margin-top: 20px;
  }

  .price-access-controls {
    gap: 8px;
  }

  .price-access-status {
    display: none;
  }

  .price-access-button {
    padding: 10px 12px;
  }

  .price-access-dialog {
    padding: 30px 24px 26px;
  }
}
