/* Targeted compatibility and mobile UX fixes layered over styles.css. */

/* Give bidders the important lot context again right beside the bid actions. */
.bid-context-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 2px;
  border: 1.5px dashed var(--ink);
  border-radius: 14px;
  background: var(--canvas-card);
  color: var(--ink);
}

.bid-context-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

.bid-context-title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.bid-context-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.bid-context-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bid-context-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(23, 51, 0, 0.22);
  border-radius: 999px;
  background: var(--canvas-warm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.bid-context-trust {
  padding-top: 8px;
  border-top: 1px dashed rgba(23, 51, 0, 0.18);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* Hosts do not accept bids manually. Make that unmistakable in the room. */
.host-bid-guidance {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1.5px solid var(--green-bold);
  border-radius: 10px;
  background: var(--tint-mint);
  color: var(--ink);
}

.host-bid-guidance strong {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
}

.host-bid-guidance-copy {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.host-sticky-status {
  cursor: default;
  pointer-events: none;
  background: var(--gold-wheat) !important;
  color: var(--ink) !important;
  border: 1px solid var(--gold-primary);
}

/* iOS/WebView touch hardening for the photo controls. */
.photo-selected-row {
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.btn-remove-photo {
  position: relative;
  z-index: 3;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Keep the post-create actions aligned instead of wrapping unevenly. */
.share-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.share-actions-row > button {
  width: 100%;
  min-width: 0;
}

@media (max-width: 600px) {
  .share-sheet-container {
    padding: 8px 0 24px;
  }

  .share-sheet-card {
    padding: 20px 16px;
    gap: 18px;
  }

  .share-success-header {
    align-items: flex-start;
  }

  .share-lot-summary {
    align-items: flex-start;
  }

  .share-lot-info {
    min-width: 0;
  }

  .share-lot-name,
  .share-lot-roomid {
    overflow-wrap: anywhere;
  }

  .share-input-row {
    flex-direction: column;
  }

  .share-url-input,
  .btn-copy-url {
    width: 100%;
    min-width: 0;
  }

  .share-actions-row {
    grid-template-columns: 1fr;
  }
}

/* Give Nimiq Pay's bottom WebView chrome extra breathing room on phones. */
@media (max-width: 767px) {
  .room-view {
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  .room-sticky-bid-bar {
    padding-bottom: max(16px, calc(10px + env(safe-area-inset-bottom)));
  }
}

/* Keep the auction chant readable at a glance. */
.hero-kicker {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transform: none;
}
