.revenue-nudge {
  width: 100%;
  color: var(--brand-ink, #111);
}

.revenue-nudge[hidden] {
  display: none !important;
}

.revenue-nudge--inline {
  grid-column: 1 / -1;
  margin: 4px 0 10px 128px;
  width: calc(100% - 128px);
  padding: 0 0 18px 20px;
  border-left: 2px solid rgba(14, 164, 122, 0.5);
  background: transparent;
  box-shadow: none;
}

.revenue-nudge--cart {
  margin: 12px 0 14px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  background: transparent;
}

.revenue-nudge__heading {
  margin: 0 0 10px;
  font-family: "Alice", Georgia, serif;
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.05;
  color: #111;
  letter-spacing: -0.02em;
}

.revenue-nudge--cart .revenue-nudge__heading {
  font-family: "Alice", Georgia, serif;
  font-size: 24px;
  color: #111;
}

.revenue-nudge__rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.revenue-pick {
  display: grid;
  gap: 6px;
  align-content: start;
  border-radius: 0;
  padding: 0;
}

.revenue-pick--inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  padding: 8px 0 10px;
  box-shadow: none;
}

.revenue-pick--inline:last-child {
  border-bottom: 0;
}

.revenue-pick--cart {
  background: #f7f6f2;
  border: 1px solid #e8e3da;
  padding: 12px;
  color: #111;
}

.revenue-pick__eyebrow {
  width: max-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0a7d5e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.revenue-pick--inline .revenue-pick__eyebrow,
.revenue-pick--inline .revenue-pick__title,
.revenue-pick--inline .revenue-pick__reason {
  grid-column: 1;
}

.revenue-pick--inline .revenue-pick__add {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.revenue-pick__title {
  margin: 0;
  color: #111;
  font-family: "Alice", Georgia, serif;
  font-size: 20px;
  line-height: 1.02;
  font-weight: 400;
}

.revenue-pick__reason {
  min-height: 0;
  margin: 0;
  color: #6b6868;
  font-size: 14px;
  line-height: 1.35;
}

.revenue-pick__add {
  width: max-content;
  border: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 9px 14px;
  transition: background 0.18s ease, transform 0.12s ease;
}

.revenue-pick__add:hover {
  background: #0ea47a;
}

.revenue-pick__add:disabled {
  cursor: default;
  background: #0ea47a;
}

.revenue-analytics {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  max-height: min(72vh, 520px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #d9d1c4;
  background: rgba(255, 253, 247, 0.96);
  color: #111;
  box-shadow: 0 22px 60px rgba(17, 17, 17, 0.2);
  backdrop-filter: blur(10px);
}

.revenue-analytics__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.revenue-analytics__head p {
  margin: 0 0 2px;
  color: #0a7d5e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.revenue-analytics__head h3 {
  margin: 0;
  font-family: "Alice", Georgia, serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.revenue-analytics__head button {
  border: 1px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.revenue-analytics__note,
.revenue-analytics__empty {
  margin: 10px 0 12px;
  color: #6b6868;
  font-size: 12px;
  line-height: 1.4;
}

.revenue-analytics__row {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.revenue-analytics__row strong {
  font-family: "Alice", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.revenue-analytics__row span {
  color: #6b6868;
  font-size: 12px;
}

@media (max-width: 600px) {
  .revenue-nudge--inline {
    margin: 2px 0 10px 86px;
    width: calc(100% - 86px);
    padding: 0 0 16px 14px;
  }

  .revenue-nudge__rail {
    grid-template-columns: 1fr;
  }

  .revenue-pick__title {
    font-size: 18px;
  }

  .revenue-pick--cart .revenue-pick__add {
    width: 100%;
  }

  .revenue-pick--inline {
    column-gap: 10px;
  }

  .revenue-pick--inline .revenue-pick__add {
    padding: 8px 10px;
    font-size: 12px;
  }

  .revenue-analytics {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: 65vh;
  }
}
