/* Premium product-plan picker. Each D1 product row is one purchasable plan. */
.premium-product-card {
  position: relative;
}

.premium-product-card .product-info {
  gap: 0;
}

.product-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-title-line h3 {
  min-width: 0;
}

.plan-count {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 5px 8px;
  border: 1px solid #ffffff1e;
  border-radius: 999px;
  color: #c9c3e8;
  background: #ffffff0b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.plan-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 17px 0 9px;
  color: #cbc8dc;
  font-size: 11px;
  font-weight: 800;
}

.plan-picker-heading small {
  color: #9df5e3;
  font-size: 10px;
  font-weight: 800;
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.plan-options.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.plan-chip,
.more-plans {
  position: relative;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid #ffffff1b;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff10, #ffffff06);
  color: #e9e7f5;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.plan-chip {
  padding: 9px 10px;
}

.plan-chip:hover,
.plan-chip:focus-visible {
  z-index: 1;
  border-color: #b99dff99;
  background: #8066ff25;
  outline: 0;
  transform: translateY(-2px);
}

.plan-chip.is-selected {
  border-color: #a995ff;
  background: linear-gradient(135deg, #8066ff4d, #4de6d229);
  box-shadow: 0 9px 25px #735aff27, inset 0 1px #ffffff30;
}

.plan-chip-name,
.plan-chip-price {
  display: block;
}

.plan-chip-name {
  max-width: calc(100% - 3px);
  overflow: hidden;
  color: #ddd9ec;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-chip-price {
  margin-top: 6px;
  color: #9df5e3;
  font-size: 14px;
  letter-spacing: -.02em;
}

.plan-chip.is-quote .plan-chip-price {
  color: #d8ccff;
  font-size: 12px;
}

.plan-chip-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  max-width: 72px;
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 999px;
  color: #25152d;
  background: linear-gradient(100deg, #f6d696, #bdf7e6);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-chip.has-badge .plan-chip-name {
  max-width: calc(100% - 76px);
}

.more-plans {
  min-height: 42px;
  padding: 10px 12px;
  color: #d7cffb;
  background: #ffffff08;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.more-plans:hover,
.more-plans:focus-visible {
  border-color: #a995ff;
  background: #8066ff2b;
  outline: 0;
}

.selected-plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 10px 11px;
  border: 1px solid #ffffff13;
  border-radius: 11px;
  background: #090a152e;
}

.selected-plan-summary span {
  min-width: 0;
  color: #aaa7bc;
  font-size: 10px;
  font-weight: 750;
}

.selected-plan-summary b {
  overflow: hidden;
  color: #f1effa;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-product-bottom {
  align-items: stretch;
  gap: 11px;
}

.selected-price {
  display: grid;
  align-content: center;
  gap: 2px;
}

.selected-price small {
  color: #9895a9;
  font-size: 10px;
  font-weight: 750;
}

.premium-product-bottom .add-to-cart,
.premium-product-bottom .ask-price {
  min-width: 129px;
  padding: 11px 12px;
  text-align: center;
}

.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px 20px;
  border: 1px dashed #ffffff24;
  border-radius: 18px;
  color: #aaa8b9;
  text-align: center;
}

@media (max-width: 800px) {
  .premium-product-card .product-info {
    padding: 18px;
  }

  .plan-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-product-bottom .add-to-cart,
  .premium-product-bottom .ask-price {
    min-width: 142px;
  }
}

@media (max-width: 390px) {
  .product-title-line {
    display: block;
  }

  .plan-count {
    display: inline-block;
    margin-top: 8px;
  }

  .premium-product-bottom {
    align-items: center;
  }

  .premium-product-bottom .add-to-cart,
  .premium-product-bottom .ask-price {
    min-width: 0;
  }
}
