/* Shared LeadPages icon picker — marketplace playground / demos */

.iconctl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-pick {
  width: 42px;
  height: 42px;
  border: 1px solid var(--theme-border, var(--line, #e4d5cd));
  border-radius: 9px;
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #2e2a2b);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
}

.icon-pick:hover,
.icon-pick:focus-visible {
  border-color: var(--theme-primary, var(--rose, #a84a5e));
  box-shadow: 0 0 0 3px var(--theme-accent-soft, rgba(168, 74, 94, 0.15));
  outline: none;
}

.icon-pick .lp-ic {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.icon-input {
  width: 72px;
  text-align: center;
  font-size: 12px;
  padding: 8px 6px;
  border: 1px solid var(--theme-border, var(--line, #e4d5cd));
  border-radius: 8px;
  font-family: inherit;
  background: var(--theme-surface, #fff);
  color: inherit;
}

.icon-ov {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.55);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px;
}

.icon-box {
  background: #fff;
  border-radius: 16px;
  width: min(680px, 100%);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  color: #2e2a2b;
}

.icon-top {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #e4d5cd;
  flex-wrap: wrap;
}

#icon-search,
.icon-top input[type="text"] {
  flex: 1;
  min-width: 160px;
  padding: 11px 14px;
  border: 1px solid #e4d5cd;
  border-radius: 10px;
  font: inherit;
  background: #faf5f2;
  color: #2e2a2b;
}

.icon-top .btn {
  appearance: none;
  border: 1px solid #e4d5cd;
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.icon-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid #e4d5cd;
}

.icchip {
  border: 1px solid #e4d5cd;
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}

.icchip.on {
  background: #2f413a;
  color: #fff;
  border-color: #2f413a;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 8px;
  padding: 16px;
  overflow: auto;
}

.icbtn {
  aspect-ratio: 1;
  border: 1px solid #e4d5cd;
  border-radius: 10px;
  background: #fff;
  color: #2e2a2b;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.icbtn:hover,
.icbtn:focus-visible {
  transform: translateY(-1px);
  border-color: #a84a5e;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
  outline: none;
}

.icbtn .lp-ic {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.lp-ic {
  display: inline-block;
  vertical-align: middle;
}
