.rrghf {
  position: relative;
  width: 100%;
}

.rrghf-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #d5d9e3;
  border-radius: 16px;
  background: #fff;
  color: #3f4a62;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.rrghf-toggle:hover,
.rrghf.is-open .rrghf-toggle {
  border-color: #c5cad7;
}

.rrghf-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b4b4b;
  flex: 0 0 auto;
}

.rrghf-toggle-text {
  color: #8b93a7;
  font-size: 15px;
  line-height: 1.3;
}

.rrghf-toggle-summary {
  margin-left: auto;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

.rrghf-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 50;
  width: 100%;
  min-width: 320px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
  border: 1px solid #eceff5;
  box-sizing: border-box;
}

.rrghf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid #eceff5;
}

.rrghf-row:last-of-type {
  border-bottom: 0;
}

.rrghf-row-left {
  min-width: 0;
}

.rrghf-row-title {
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.rrghf-row-help {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

.rrghf-counter {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.rrghf-counter-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #d5d9e3;
  background: #fff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.rrghf-counter-btn:hover {
  border-color: #b7bed1;
}

.rrghf-counter-value {
  min-width: 18px;
  color: #111827;
  font-size: 18px;
  text-align: center;
}

.rrghf-close {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .rrghf-panel {
    min-width: 0;
  }

  .rrghf-row-title {
    font-size: 18px;
  }

  .rrghf-counter {
    gap: 14px;
  }

  .rrghf-counter-btn {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}
