.ptgift-card {
  --ptgift-ink: #31345f;
  --ptgift-purple: #6f42b7;
  --ptgift-soft: #f5f0fc;
  --ptgift-red: #c65e5b;
  --ptgift-line: #e2dced;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  grid-template-areas:
    "image eyebrow action"
    "image title action"
    "image price action";
  align-items: center;
  gap: 3px 14px;
  margin: 18px 0 8px;
  padding: 12px 14px;
  color: var(--ptgift-ink);
  background: linear-gradient(135deg, rgba(247, 243, 253, .98), rgba(255, 255, 255, .98));
  border: 1px solid var(--ptgift-line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(49, 52, 95, .08);
  font-family: "Nokia Sans S60", "Blogger Bold", Arial, sans-serif;
}

.ptgift-card--cart {
  margin: 14px 0 16px;
}

.ptgift__image {
  grid-area: image;
  display: block;
  width: 78px;
  height: 78px;
  overflow: hidden;
  background: #fff;
  border-radius: 17px;
  border: 1px solid rgba(111, 66, 183, .12);
}

.ptgift__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ptgift__eyebrow {
  grid-area: eyebrow;
  margin: 0;
  color: var(--ptgift-purple);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
}

.ptgift__title-wrap {
  position: relative;
  grid-area: title;
  min-width: 0;
  min-height: 36px;
}

.ptgift__title {
  display: -webkit-box;
  max-height: 36px;
  overflow: hidden;
  color: var(--ptgift-ink);
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ptgift__title-wrap:hover .ptgift__title,
.ptgift__title-wrap.is-open .ptgift__title,
.ptgift__title:focus-visible {
  position: absolute;
  inset: -7px -8px auto -8px;
  z-index: 4;
  display: block;
  max-height: none;
  padding: 7px 8px;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--ptgift-line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(49, 52, 95, .16);
}

.ptgift__prices {
  grid-area: price;
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.ptgift__price {
  color: var(--ptgift-red);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
}

.ptgift__old-price {
  position: relative;
  color: #9597aa;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
}

.ptgift__old-price::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 49%;
  height: 1px;
  background: currentColor;
  transform: rotate(-7deg);
}

.ptgift__button {
  grid-area: action;
  min-width: 118px;
  padding: 12px 15px;
  color: #fff;
  background: var(--ptgift-red);
  border: 0;
  border-radius: 999px;
  font: 700 15px/1 "Nokia Sans S60", "Blogger Bold", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(198, 94, 91, .18);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.ptgift__button:hover,
.ptgift__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(198, 94, 91, .26);
}

.ptgift__button[disabled] {
  opacity: .72;
  cursor: default;
  transform: none;
}

.ptgift__button.is-added {
  color: var(--ptgift-ink);
  background: #eef7e6;
  box-shadow: none;
}

@media (max-width: 767px) {
  .ptgift-card {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "image eyebrow eyebrow"
      "image title title"
      "price price action";
    gap: 4px 10px;
    margin: 12px 0 6px;
    padding: 10px;
    border-radius: 18px;
  }

  .ptgift__image {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .ptgift__eyebrow,
  .ptgift__title {
    font-size: 13px;
  }

  .ptgift__title {
    max-height: 32px;
    line-height: 16px;
  }

  .ptgift__prices {
    align-self: center;
    padding-left: 2px;
  }

  .ptgift__price {
    font-size: 16px;
  }

  .ptgift__old-price {
    display: none;
  }

  .ptgift__button {
    justify-self: end;
    min-width: 106px;
    padding: 11px 12px;
    font-size: 13px;
  }
}
