/* Safe UltraMsg option inside the walk notification card. */
.walk-whatsapp-create-card{
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid rgba(14,139,98,.18);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(236,253,245,.96),rgba(255,255,255,.98));
  box-shadow:0 12px 30px rgba(16,32,51,.05);
}
.walk-whatsapp-create-card.is-disabled,
.walk-whatsapp-create-card.is-form-disabled{
  background:#f8fafc;
  border-color:#e3e8ef;
}
.walk-whatsapp-create-copy{
  display:flex;
  align-items:flex-start;
  gap:13px;
}
.walk-whatsapp-create-icon{
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#0d8b62;
  color:#fff;
  font-size:1.15rem;
  box-shadow:0 10px 24px rgba(13,139,98,.18);
}
.walk-whatsapp-create-card.is-disabled .walk-whatsapp-create-icon,
.walk-whatsapp-create-card.is-form-disabled .walk-whatsapp-create-icon{
  background:#a8b3c1;
  box-shadow:none;
}
.walk-whatsapp-create-title-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
}
.walk-whatsapp-create-title-row h4{
  margin:0;
  color:var(--ink);
  font-size:1rem;
}
.walk-whatsapp-create-copy p{
  margin:5px 0 0;
  color:var(--muted);
  line-height:1.55;
}
.walk-whatsapp-status,
.walk-whatsapp-safety-badges span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  font-size:.76rem;
  font-weight:900;
}
.walk-whatsapp-status.ready{
  background:#dcfce7;
  color:#087443;
}
.walk-whatsapp-status.setup{
  background:#fff3cd;
  color:#9a6500;
}
.walk-whatsapp-safety-badges{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}
.walk-whatsapp-safety-badges span{
  background:#fff;
  border:1px solid #dfe7e3;
  color:#526173;
}
.walk-whatsapp-create-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  width:fit-content;
  min-height:46px;
  padding:10px 14px;
  border:1px solid rgba(13,139,98,.22);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font-weight:900;
  cursor:pointer;
}
.walk-whatsapp-create-toggle input{
  width:20px;
  height:20px;
  accent-color:#0d8b62;
}
.walk-whatsapp-create-toggle:has(input:disabled){
  opacity:.62;
  cursor:not-allowed;
}
.walk-whatsapp-create-note{
  margin:0;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.5;
}
@media(max-width:680px){
  .walk-whatsapp-create-card{padding:14px;}
  .walk-whatsapp-create-copy{display:grid;}
  .walk-whatsapp-create-toggle{width:100%;}
}

/* Professional notification variables + template controls. */
.walk-notification-template-tools{
  display:grid;
  gap:13px;
  padding:16px;
  border:1px solid rgba(79,70,229,.14);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(238,242,255,.78),rgba(255,255,255,.98));
}
.walk-notification-template-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.walk-notification-template-head h4{
  margin:2px 0 4px;
  color:var(--ink);
  font-size:1rem;
}
.walk-notification-template-head p:not(.eyebrow){
  margin:0;
  color:var(--muted);
  line-height:1.5;
  font-size:.86rem;
}
.walk-notification-variable-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.walk-notification-variable-chips button{
  appearance:none;
  border:1px solid #d8def5;
  border-radius:999px;
  background:#fff;
  color:#3730a3;
  min-height:34px;
  padding:7px 11px;
  font:inherit;
  font-size:.78rem;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(15,23,42,.04);
  transition:transform .15s ease,border-color .15s ease,background .15s ease;
}
.walk-notification-variable-chips button:hover,
.walk-notification-variable-chips button:focus-visible{
  transform:translateY(-1px);
  border-color:#a5b4fc;
  background:#eef2ff;
  outline:none;
}
.walk-notification-variable-note{
  margin:0;
  padding:10px 12px;
  border-radius:13px;
  background:#fff;
  color:#526173;
  font-size:.8rem;
  line-height:1.5;
}
.walk-notification-variable-note strong{
  color:#0f766e;
}
#walkNotifyMessage{
  min-height:270px;
  line-height:1.55;
  font-family:inherit;
}
@media(max-width:680px){
  .walk-notification-template-head{
    display:grid;
  }
  .walk-notification-template-head .btn{
    width:100%;
  }
  .walk-notification-variable-chips button{
    flex:1 1 calc(50% - 8px);
  }
}

/* Default-on clarity for walk WhatsApp notification. */
.walk-whatsapp-create-card.is-selected {
  border-color: rgba(20, 139, 94, .44);
  box-shadow: 0 18px 45px rgba(20, 139, 94, .10);
}


/* Explicit, safe WhatsApp updates while editing an existing walk. */
.walk-whatsapp-create-card.is-edit-mode{
  border-color:rgba(37,99,235,.22);
  background:linear-gradient(135deg,rgba(239,246,255,.94),rgba(255,255,255,.98));
}
.walk-whatsapp-create-card.is-edit-mode .walk-whatsapp-create-icon{
  background:#2563eb;
  box-shadow:0 10px 24px rgba(37,99,235,.16);
}
.walk-whatsapp-create-card.is-edit-mode.is-form-disabled .walk-whatsapp-create-icon{
  background:#94a3b8;
  box-shadow:none;
}


.walk-whatsapp-repeat-override {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 120, 20, .28);
  border-radius: 14px;
  background: rgba(255, 247, 224, .72);
  color: #26334a;
}
.walk-whatsapp-repeat-override[hidden] { display: none !important; }
.walk-whatsapp-repeat-override input { margin-top: 4px; }
.walk-whatsapp-repeat-override span { display: grid; gap: 2px; }
.walk-whatsapp-repeat-override small { color: #6b7280; line-height: 1.35; }

/* Manageable WhatsApp message presets */
.walk-preset-picker-pro{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px 14px;
  align-items:end;
  padding:14px;
  border:1px solid rgba(8,127,91,.16);
  border-radius:18px;
  background:linear-gradient(135deg,#f4fff8,#fff);
}
.walk-preset-picker-pro label{margin:0}
.walk-preset-picker-pro select{width:100%}
.walk-preset-picker-actions{display:flex;flex-wrap:wrap;gap:8px}
.walk-preset-picker-pro>small{grid-column:1/-1;color:#64748b;font-weight:800;line-height:1.4}
.walk-preset-picker-pro.is-unavailable{border-color:#f59e0b;background:#fffbeb}
@media(max-width:720px){
  .walk-preset-picker-pro{grid-template-columns:1fr}
  .walk-preset-picker-actions .btn{flex:1 1 150px}
  .walk-preset-picker-pro>small{grid-column:1}
}


/* Separate WhatsApp preset selector: never reuses the Push preset record. */
.walk-whatsapp-preset-picker{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px 12px;
  align-items:end;
  padding:13px;
  border:1px solid rgba(13,139,98,.18);
  border-radius:16px;
  background:rgba(255,255,255,.82);
}
.walk-whatsapp-preset-picker label{display:grid;gap:7px;font-weight:900;color:var(--ink)}
.walk-whatsapp-preset-picker select{width:100%;min-height:44px}
.walk-whatsapp-preset-picker small{grid-column:1/-1;color:var(--muted);line-height:1.45}
.walk-whatsapp-preset-picker.is-unavailable{border-color:#e3e8ef;background:#f8fafc}
.walk-whatsapp-preset-picker.is-unavailable select{opacity:.7}
@media(max-width:680px){
  .walk-whatsapp-preset-picker{grid-template-columns:1fr}
  .walk-whatsapp-preset-picker small{grid-column:auto}
  .walk-whatsapp-preset-picker .btn{width:100%}
}
