#wclc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 99998;
}
#wclc-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#wclc-card {
  background: #fff;
  max-width: 520px;
  width: 92%;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
#wclc-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
/* Make the two inputs share a row and be responsive */
#wclc-card .row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr; /* email bigger, phone smaller */
  gap: 10px;
}

/* Ensure children can shrink properly inside grid/flex */
#wclc-card .row > * {
  min-width: 0;
}

/* Compact input appearance (override theme if needed) */
#wclc-card input[type="text"],
#wclc-card input[type="email"],
#wclc-card input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px !important; /* more compact */
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 11px !important; /* smaller text inside inputs */
  line-height: 1.2;
}

/* Labels slightly smaller to match */
#wclc-card label {
  font-size: 13px !important;
}

/* Mobile: stack fields full width */
@media (max-width: 520px) {
  #wclc-card .row {
    grid-template-columns: 1fr;
  }
}

#wclc-card .actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
#wclc-card button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
#wclc-cancel {
  background: #f1f5f9;
}
.wclc-consent-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.wclc-consent-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  /* accent-color: #0c6e04;*/
  margin: 0;
  flex-shrink: 0;
}

.wclc-consent-inline label {
  cursor: pointer;
  user-select: none;
  flex: 1;
  color: #333;
}
#wclc-save {
  all: unset;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  background: var(
    --wp-admin-theme-color,
    var(--wp--preset--color--primary, #2271b1)
  );
  color: #fff;
  text-align: center;
}
#wclc-save:hover {
  opacity: 0.9;
}
#wclc-error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}
