.driver-rating-card {
  width: min(92vw, 430px);
  padding: 30px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
  text-align: center;
}

#driver-rating-modal {
  z-index: 12000;
}

.driver-rating-success {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #ecfdf3;
  color: #079455;
  font-size: 1.65rem;
}

.driver-rating-card .modal-chip {
  display: inline-flex;
  margin-bottom: 10px;
  color: #079455;
  background: #ecfdf3;
}

.driver-rating-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
  text-align: left;
}

.driver-rating-person span:last-child {
  display: grid;
  min-width: 0;
}

.driver-rating-person small {
  overflow: hidden;
  color: #667085;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-rating-avatar {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #17191c;
  color: #fff;
  font-weight: 900;
}

.driver-rating-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 4px;
}

.driver-rating-picker button {
  padding: 2px;
  border: 0;
  background: transparent;
  color: #d0d5dd;
  font-size: clamp(2rem, 9vw, 2.65rem);
  line-height: 1;
  transition: color .16s ease, transform .16s ease;
}

.driver-rating-picker button.active {
  color: #ff6b00;
  transform: translateY(-2px);
}

.driver-rating-label {
  margin: 8px 0 18px;
  color: #ff6b00;
  font-weight: 900;
}

.driver-rating-card textarea {
  min-height: 90px;
  border-radius: 16px;
  text-align: left;
}

.driver-rating-submit {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: #ff6b00;
  touch-action: manipulation;
}

.driver-rating-submit[aria-busy="true"] {
  opacity: .86;
  transform: scale(.985);
}

.driver-rating-later {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #667085;
  font-weight: 800;
}

.driver-rating-celebration {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .28), transparent 55%);
  opacity: 1;
  transition: opacity .28s ease;
}

.driver-rating-celebration.is-leaving {
  opacity: 0;
}

.driver-rating-celebration-message {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(88vw, 360px);
  padding: 24px 20px 22px;
  border: 1px solid rgba(255, 101, 0, .16);
  border-radius: 26px;
  color: #17191c;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 75px rgba(15, 23, 42, .28);
  text-align: center;
  animation: driver-rating-success-pop .45s cubic-bezier(.2, .9, .25, 1.25) both;
}

.driver-rating-celebration-message strong {
  margin-top: 12px;
  font-size: clamp(1.35rem, 6vw, 1.8rem);
  font-weight: 950;
  line-height: 1.1;
}

.driver-rating-celebration-message small {
  margin-top: 7px;
  color: #667085;
  font-size: .95rem;
  font-weight: 750;
}

.driver-rating-celebration-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #ff7a1a, #ff4f00);
  box-shadow: 0 14px 28px rgba(255, 101, 0, .3);
  font-size: 1.8rem;
}

.driver-rating-confetti-piece {
  position: absolute;
  top: -28px;
  left: var(--confetti-x);
  width: 10px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .1);
  animation: driver-rating-confetti-fall var(--confetti-duration) cubic-bezier(.12, .7, .28, 1) var(--confetti-delay) both;
}

.driver-rating-confetti-piece.shape-1 {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.driver-rating-confetti-piece.shape-2 {
  width: 15px;
  height: 8px;
  border-radius: 8px;
}

@keyframes driver-rating-confetti-fall {
  from {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to {
    transform: translate3d(var(--confetti-drift), 112vh, 0) rotate(var(--confetti-rotation));
    opacity: .96;
  }
}

@keyframes driver-rating-success-pop {
  from {
    transform: translateY(18px) scale(.84);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .driver-rating-confetti-piece {
    animation-duration: .01ms;
  }

  .driver-rating-celebration-message {
    animation: none;
  }
}

@media (max-width: 575px) {
  .driver-rating-card {
    width: calc(100vw - 24px);
    padding: 24px 18px 20px;
    border-radius: 24px;
  }
}
