.line-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.line-picker.is-open {
  visibility: visible;
  pointer-events: auto;
}

.line-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.line-picker.is-open .line-picker__backdrop {
  opacity: 1;
}

.line-picker__panel {
  position: relative;
  z-index: 1;
  width: min(24rem, calc(100% - 1.5rem));
  margin: 0 0 calc(5.5rem + env(safe-area-inset-bottom, 0px));
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.25rem;
  background: #fff;
  color: #171717;
  border: 1px solid #e5e5e5;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transform: translate3d(0, 16px, 0);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

html.dark .line-picker__panel {
  background: #151515;
  color: #fff;
  border-color: #2a2a2a;
}

.line-picker.is-open .line-picker__panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.line-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.line-picker__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.line-picker__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: #737373;
  cursor: pointer;
}

.line-picker__close:hover {
  background: #f4f4f5;
  color: #171717;
}

html.dark .line-picker__close:hover {
  background: #0a0a0a;
  color: #fff;
}

.line-picker__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.line-picker__list[hidden] {
  display: none;
}

.line-picker__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

html.dark .line-picker__row {
  background: #111;
  border-color: #2a2a2a;
}

.line-picker__row:hover,
.line-picker__row:focus-visible {
  border-color: #d4af37;
  outline: none;
}

.line-picker__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.line-picker__icon--call {
  background: rgba(212, 175, 55, 0.16);
  color: #d4af37;
}

.line-picker__icon--wa {
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
}

.line-picker__copy {
  min-width: 0;
}

.line-picker__copy strong,
.line-picker__copy small {
  display: block;
}

.line-picker__copy strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.line-picker__copy small {
  margin-top: 0.15rem;
  color: #737373;
  font-size: 0.75rem;
}

.line-picker.is-anchored .line-picker__backdrop {
  background: transparent;
}

.line-picker.is-anchored .line-picker__panel {
  position: fixed;
  width: min(18.5rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  margin: 0;
  transform: translate3d(0, 8px, 0);
}

.line-picker.is-anchored.is-open .line-picker__panel {
  transform: translate3d(0, 0, 0);
}

@media (min-width: 768px) {
  .line-picker.is-anchored .line-picker__panel {
    width: 20.5rem;
  }
}
