/* Static styles for dynamically created address and pickup-point UI in the account. */

.pickup-points-section {
  margin-top: 18px;
}

.pickup-points-heading {
  margin-bottom: 14px;
}

.pickup-provider-card {
  padding: 16px;
  border: 1px solid rgba(125, 105, 173, .24);
  border-radius: 16px;
  background: rgba(125, 105, 173, .055);
}

.pickup-provider-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.pickup-provider-name {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 800;
}

.pickup-provider-actions,
.pickup-editor-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pickup-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(125, 105, 173, .18);
}

.pickup-editor label {
  position: relative;
  display: grid;
  gap: 7px;
}

.pickup-editor select,
.pickup-editor input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #7d69ad44;
  border-radius: 12px;
  background: #fff;
  color: #251b2d;
}

.pickup-point-select {
  grid-column: 1 / -1;
}

.cdek-city-control,
.gar-control {
  position: relative;
}

.cdek-suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #7d69ad55;
  border-radius: 13px;
  background: #fffdfb;
  box-shadow: 0 18px 48px #49365d2b;
}

.cdek-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid #49365d18;
  background: transparent;
  color: #251b2d;
  text-align: left;
  cursor: pointer;
}

.cdek-suggestion:last-child {
  border-bottom: 0;
}

.cdek-suggestion:hover {
  background: #7d69ad10;
}

.cdek-suggestion span {
  color: #746b7c;
  font-size: 12px;
}

.cdek-suggestion-state {
  padding: 11px;
  color: #746b7c;
}

.cdek-suggestion-state.error {
  color: #b72d57;
}

.pickup-point-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #7d69ad33;
  border-radius: 12px;
  background: #fff;
}

.pickup-point-card span,
.pickup-point-card small {
  color: #746b7c;
}

.pickup-editor-actions {
  grid-column: 1 / -1;
}

.gar-hint {
  display: block;
  margin-top: 6px;
  color: #a9a0ba;
  font-size: 12px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.gar-suggestions {
  position: absolute;
  z-index: 90;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #20e7ff55;
  border-radius: 13px;
  background: #0a0716;
  box-shadow: 0 18px 48px #0008;
}

.gar-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid #ffffff12;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.gar-suggestion:last-child {
  border-bottom: 0;
}

.gar-suggestion:hover {
  background: #20e7ff12;
}

.gar-suggestion b {
  font-size: 14px;
}

.gar-suggestion span {
  color: #b8aeca;
  font-size: 12px;
}

.gar-suggestion-state {
  padding: 11px;
  color: #b8aeca;
  text-transform: none;
  letter-spacing: 0;
}

.gar-suggestion-state.error {
  color: #ff8cab;
}

@media (max-width: 700px) {
  .pickup-provider-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .pickup-editor {
    grid-template-columns: 1fr;
  }

  .pickup-point-select {
    grid-column: auto;
  }
}
