.tip-box {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.tip-box__header {
  margin-bottom: 0;
}

.tip-box__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: var(--text-label);
  line-height: 1.5;
  margin: 0;
}

.tip-box__checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0 0;
  cursor: pointer;
  accent-color: var(--color-brand);
  border: 2px solid var(--color-border);
  border-radius: 4px;
}

.tip-box__checkbox:checked {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}

.tip-box__text {
  flex: 1;
  color: var(--color-text);
}

.tip-box__options {
  margin-top: 16px;
}

.tip-box__buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.tip-box__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  font-size: var(--text-label);
  min-height: 60px;
}

.tip-box__button:hover {
  border-color: var(--color-brand);
  background: #f0fdf4;
}

.tip-box__button.is-active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.tip-box__button-label {
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: 4px;
  opacity: 0.8;
}

.tip-box__button.is-active .tip-box__button-label {
  opacity: 1;
}

.tip-box__button-amount {
  font-weight: 600;
  font-size: var(--text-base);
}

.tip-box__button--none {
  font-weight: 500;
}

.tip-box__custom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xs);
}

.tip-box__custom-label {
  flex: 1;
  position: relative;
  margin-bottom: 0 !important;
}

.tip-box__custom-input {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: var(--text-label);
  background: #fff;
}

.tip-box__custom-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(78, 132, 21, 0.1);
}

.tip-box__custom-currency {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: var(--text-label);
  pointer-events: none;
}

.tip-box__custom-minus,
.tip-box__custom-plus {
  width: 40px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: var(--text-lg);
  line-height: 1;
  color: var(--color-text);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.tip-box__custom-minus:hover,
.tip-box__custom-plus:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: #f0fdf4;
}

.tip-box__custom-submit {
  padding: 8px 16px;
  height: 40px;
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  font-size: var(--text-label);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tip-box__custom-submit:hover {
  background: var(--color-brand-dark);
}

.tip-box__footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  font-size: var(--text-label);
  color: var(--color-text-muted);
  text-align: left;
}
@media (max-width: 640px) {
  .tip-box__buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .tip-box__custom {
    flex-wrap: wrap;
  }

  .tip-box__custom-label {
    width: 100%;
    order: -1;
    margin-bottom: 8px;
  }

  .tip-box__custom-submit {
    width: 100%;
    margin-top: 8px;
  }
}
