/* Paper type listing cards (fineart-print page) */

/* Flex row so every card in a row shares the same height */
.paperlist-row {
  display: flex;
  flex-wrap: wrap;
}

.paperlist-row > div {
  display: flex;
  padding-left: 8px;
  padding-right: 8px;
}

/* Card container */
.paperlist-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 30px;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  position: relative;
  overflow: hidden;
}

/* Image wrapper with hover swap */
.paperlist-imgwrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.paperlist-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.paperlist-imgwrap .paperlist-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
}

.paperlist-imgwrap:hover .paperlist-img-hover {
  opacity: 1;
}

/* Card title */
.paperlist-title {
  padding: 0 15px;
}

/* Selling point list; flex-grow pushes the price footer to the card bottom */
.paperlist-points {
  flex-grow: 1;
  color: #3f3f3f;
  padding: 0 15px 10px 20px;
  position: relative;
  top: -10px;
}

.paperlist-points h3 {
  position: relative;
  padding: 2px 2px 2px 15px;
  margin: 2px 2px 5px 2px;
  font-size: 16px;
  line-height: 1.5;
}

.paperlist-points h3::before {
  content: "\2013";
  position: absolute;
  left: 0;
  top: 0;
  color: #555555;
  font-size: 18px;
  line-height: 1.5;
}

/* Price + button footer */
.paperlist-footer {
  padding: 10px 10px 0 25px;
}

.paperlist-price {
  color: #555555;
}

.paperlist-btn {
  margin: 0 20px 10px 0;
  border-width: 1px !important;
}

.paperlist-btn .paperlist-btn-label {
  font-weight: normal !important;
  color: #555555;
}

/* Link to the paper detail tabs below the listing */
.paperlist-details {
  padding: 5px 15px 20px 15px;
}

/* "CREATE NOW" call to action under the intro text of each paper details tab */
.paperdetails-cta {
  display: inline-block;
  margin: 0 0 10px 0;
}

/* Override the Bootstrap btn-sm sizing so the CTA reads as the primary action */
.paperdetails-cta .btn {
  padding: 14px 38px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.paperdetails-cta .btn font {
  font-size: inherit;
  font-weight: inherit;
}

/* Full-width CTA on small screens so it stays easy to tap */
@media (max-width: 575.98px) {
  .paperdetails-cta {
    display: block;
    width: 100%;
  }

  .paperdetails-cta .btn {
    width: 100%;
    padding: 14px 20px;
  }
}

/* Shipping promo section (fineart-print page): light grey rounded cards */
.shippingpromo-badge {
  background-color: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.shippingpromo-card {
  background-color: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
}

.shippingpromo-img {
  max-height: 260px;
  border-radius: 8px;
}
