.rgx {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(23, 19, 31, 0.1);
  border-radius: 18px;
  background: #fff;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #17131f;
}
.rgx__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rgx__head strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
}
.rgx__head small {
  display: block;
  margin-top: 2px;
  color: #807a8f;
  font-size: 0.8rem;
  line-height: 1.4;
}
.rgx__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff4dc;
  color: #b07800;
  font-size: 1.15rem;
}
.rgx__field {
  display: grid;
  gap: 6px;
  margin: 0;
}
.rgx__field span {
  color: #4a4458;
  font-size: 0.8rem;
  font-weight: 500;
}
.rgx__field select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 14px;
  border: 1px solid rgba(23, 19, 31, 0.1);
  border-radius: 12px;
  background: #f5f4f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23807a8f'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #17131f;
  font: 500 0.92rem "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  cursor: pointer;
}
.rgx__field select:focus {
  border-color: #17131f;
  outline: none;
  background-color: #fff;
}
.rgx__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rgx__hint {
  margin: 0;
  color: #807a8f;
  font-size: 0.78rem;
  line-height: 1.45;
}

.rgx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(23, 19, 31, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #17131f !important;
  font: 600 0.82rem "Inter", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
}
.rgx-btn[hidden] {
  display: none;
}
.rgx-btn:hover {
  background: #f5f4f7;
}
.rgx-btn--dark {
  border-color: #17131f;
  background: #17131f;
  color: #fff !important;
}
.rgx-btn--dark:hover {
  background: #2b2536;
}

.rgx-or {
  margin: 4px 2px 10px;
  color: #807a8f;
  font: 600 0.72rem "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#sidebarSection .fx--registry {
  background: linear-gradient(160deg, #fff8ea 0%, #fdeef3 100%);
}
#sidebarSection .fx--registry .fx-reg__pics {
  display: flex;
  margin-bottom: auto;
}
#sidebarSection .fx--registry .fx-reg__pic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #fff;
  color: #b07800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.3);
}
#sidebarSection .fx--registry .fx-reg__pic + #sidebarSection .fx--registry .fx-reg__pic {
  margin-left: -10px;
}
#sidebarSection .fx--registry .fx-reg__pic:nth-child(2) {
  transform: rotate(4deg);
}
#sidebarSection .fx--registry .fx-reg__pic:nth-child(3) {
  transform: rotate(-3deg);
}
#sidebarSection .fx--registry .fx-reg__pic img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.rgi {
  display: grid;
  gap: 16px;
  padding-bottom: 1rem;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #17131f;
}
.rgi__head h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rgi__head p {
  margin: 4px 0 0;
  color: #807a8f;
  font-size: 0.88rem;
  line-height: 1.5;
}
.rgi__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 380px) {
  .rgi__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rgi__gift {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.rgi__gift.is-taken {
  opacity: 0.55;
}
.rgi__gift small {
  color: #807a8f;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.rgi__pic {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(150deg, #f6eee2, #efe4f3);
  color: rgba(74, 68, 88, 0.4);
  font-size: 1.5rem;
}
.rgi__pic img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.rgi__pic em {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #8a5b00;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
}
.rgi__pic em.is-taken {
  color: #1f8a4c;
}
.rgi__name {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rgi__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rgi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(23, 19, 31, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #17131f !important;
  font: 600 0.88rem "Inter", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none !important;
}
.rgi-btn:hover {
  background: #f5f4f7;
}
.rgi-btn--dark {
  flex: 1;
  border-color: #17131f;
  background: #17131f;
  color: #fff !important;
}
.rgi-btn--dark:hover {
  background: #2b2536;
}