/* Lusen Plants — inquiry plant picker (mobile / iPad / desktop) */
.lusen-pp-wrap { margin: 0 0 1rem; max-width: 100%; box-sizing: border-box; }
.lusen-pp-wrap .lusen-pp-field-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.lusen-pp-wrap input.lusen-plant-field,
.lusen-pp-wrap input[name="your-plant"] {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  background: #f7faf9;
  cursor: default;
}
.lusen-pp-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid #00917c;
  border-radius: 6px;
  background: #00917c;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
}
.lusen-pp-open:hover { background: #007a68; border-color: #007a68; color: #fff !important; }
.lusen-pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.lusen-pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #e8f5f2;
  border: 1px solid #b7ddd5;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #1a4d44;
  max-width: 100%;
}
.lusen-pp-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.lusen-pp-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.lusen-pp-chip button {
  border: 0;
  background: transparent;
  color: #00917c;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  min-width: 28px;
  min-height: 28px;
}
.lusen-pp-hint { font-size: 0.85rem; color: #6a7a76; margin: 6px 0 0; }

/* Modal */
.lusen-pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 30, 26, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}
.lusen-pp-modal {
  background: #fff;
  width: 100%;
  max-width: 720px;
  max-height: min(92vh, 900px);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
}
@media (min-width: 768px) {
  .lusen-pp-overlay { align-items: center; padding: 24px; }
  .lusen-pp-modal { border-radius: 12px; max-height: 85vh; }
}
.lusen-pp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5ecea;
  flex-shrink: 0;
}
.lusen-pp-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #1a3c36;
  font-family: inherit;
}
.lusen-pp-close {
  border: 0;
  background: #f0f4f3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  color: #334;
}
.lusen-pp-toolbar {
  padding: 10px 16px;
  border-bottom: 1px solid #e5ecea;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lusen-pp-search {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid #c9d6d2;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}
.lusen-pp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lusen-pp-tab {
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #c9d6d2;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  color: #334;
}
.lusen-pp-tab.is-active {
  background: #00917c;
  border-color: #00917c;
  color: #fff;
}
.lusen-pp-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 20px;
  flex: 1 1 auto;
}
.lusen-pp-group-title {
  margin: 14px 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a7a76;
  font-weight: 700;
}
.lusen-pp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 520px) {
  .lusen-pp-grid { grid-template-columns: 1fr 1fr; }
}
.lusen-pp-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 2px solid #e5ecea;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  min-height: 64px;
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  color: inherit;
}
.lusen-pp-card:hover { border-color: #7bc4b6; }
.lusen-pp-card.is-selected {
  border-color: #00917c;
  background: #f0faf7;
}
.lusen-pp-card img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.lusen-pp-card-ph {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #dfe8e5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a7a76;
  font-size: 0.7rem;
}
.lusen-pp-card-meta { min-width: 0; flex: 1; }
.lusen-pp-card-title {
  font-weight: 600;
  color: #1a3c36;
  font-size: 0.95rem;
  line-height: 1.25;
  display: block;
}
.lusen-pp-card-latin {
  display: block;
  font-size: 0.8rem;
  color: #6a7a76;
  font-style: italic;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lusen-pp-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c9d6d2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
}
.lusen-pp-card.is-selected .lusen-pp-check {
  background: #00917c;
  border-color: #00917c;
  color: #fff;
}
.lusen-pp-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid #e5ecea;
  flex-shrink: 0;
  background: #fff;
}
.lusen-pp-count { font-size: 0.9rem; color: #445; }
.lusen-pp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lusen-pp-btn {
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #c9d6d2;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.lusen-pp-btn-primary {
  background: #00917c;
  border-color: #00917c;
  color: #fff;
}
.lusen-pp-btn-primary:hover { background: #007a68; }
.lusen-pp-empty { padding: 24px 8px; text-align: center; color: #6a7a76; }

body.lusen-pp-lock { overflow: hidden; }

/* ===== 2026-11-20 r2: visible Close/Done, sheet sized to the visual viewport ===== */
.lusen-pp-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  width: 100dvw;
  height: 100dvh;
  max-width: 100dvw;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}
.lusen-pp-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(720px, 100%);
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.lusen-pp-header,
.lusen-pp-toolbar {
  flex-shrink: 0;
}
.lusen-pp-header {
  position: relative;
  z-index: 2;
  gap: 8px;
}
.lusen-pp-header h3 {
  flex: 1 1 auto;
  min-width: 0;
}
.lusen-pp-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lusen-pp-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  background: #fff;
  box-shadow: 0 -4px 12px rgba(16, 33, 29, 0.08);
}
.lusen-pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}
.lusen-pp-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: auto;
  height: auto;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #1a3c36 !important;
  background: #dce8e5 !important;
  color: #10211d !important;
  font-size: 1rem !important;
  font-weight: 700;
  line-height: 1;
  opacity: 1 !important;
  visibility: visible !important;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
}
.lusen-pp-close:hover,
.lusen-pp-close:focus {
  background: #1a3c36 !important;
  color: #fff !important;
}
.lusen-pp-btn,
.lusen-pp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 0.95rem;
  opacity: 1;
  visibility: visible;
}
@media screen and (max-width: 782px) {
  .lusen-pp-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .lusen-pp-count {
    margin: 0;
  }
  .lusen-pp-actions {
    width: 100%;
    justify-content: stretch;
  }
  .lusen-pp-btn,
  .lusen-pp-btn-primary {
    flex: 1 1 0;
  }
}

/* Russian picker controls retain the existing 44px targets and visualViewport sizing. */
.lusen-lang-ru .lusen-pp-tabs { flex-wrap:wrap; }
.lusen-lang-ru .lusen-pp-actions { flex-shrink:0; }
.lusen-lang-ru .lusen-pp-count { overflow-wrap:normal; }
