
/* V439F - Customer <-> Agency synchronization */

.v439f-customer-sync{
  padding:12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:color-mix(in srgb,var(--brand-green) 3%,var(--background));
}
.v439f-sync-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  padding-bottom:9px;
  border-bottom:1px solid var(--border);
}
.v439f-sync-head>div>span{
  display:block;
  font-weight:800;
  letter-spacing:.07em;
  color:var(--muted-foreground);
}
.v439f-sync-head>div>strong{
  display:block;
  margin-top:3px;
}
.v439f-sync-head>small{
  color:var(--muted-foreground);
}

.v439f-match-alert{
  margin-top:9px;
  padding:9px 10px;
  border:1px solid #fed7aa;
  border-radius:8px;
  background:#fff7ed;
  color:#9a3412;
  font-weight:650;
  line-height:1.4;
}
.v439f-match-list{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.v439f-match-list article{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--background);
}
.v439f-match-list article.selected{
  border-color:#86efac;
  background:#f0fdf4;
}
.v439f-match-list article strong,
.v439f-match-list article small{
  display:block;
}
.v439f-match-list article small{
  margin-top:3px;
  color:var(--muted-foreground);
  line-height:1.4;
}
.v439f-match-list article>button{
  min-height:38px;
  padding:0 10px;
  border:1px solid #22c55e;
  border-radius:8px;
  background:var(--background);
  color:#15803d;
  font-weight:750;
  cursor:pointer;
}
.v439f-match-list article.selected>button{
  background:#16a34a;
  color:#fff;
}
.v439f-reasons{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:6px;
}
.v439f-reasons span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:3px 7px;
  border-radius:999px;
  background:#ffedd5;
  color:#c2410c;
  font-weight:700;
}

.v439f-sync-ok{
  margin-top:9px;
  padding:9px 10px;
  border:1px solid #bbf7d0;
  border-radius:8px;
  background:#f0fdf4;
}
.v439f-sync-ok strong,
.v439f-sync-ok small{
  display:block;
}
.v439f-sync-ok strong{
  color:#166534;
}
.v439f-sync-ok small{
  margin-top:3px;
  color:#15803d;
  line-height:1.4;
}

/* Desktop: user's standing requirement for Agency menu */
@media(min-width:761px){
  .v439f-customer-sync,
  .v439f-customer-sync *{
    font-size:14px!important;
  }
  .v439f-sync-head>div>strong{
    font-size:16px!important;
  }
}

/* Mobile */
@media(max-width:760px){
  .v439f-customer-sync{
    padding:9px;
    border-radius:11px;
  }
  .v439f-sync-head{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
    padding-bottom:8px;
  }
  .v439f-sync-head>div>span{
    font-size:9px;
  }
  .v439f-sync-head>div>strong{
    font-size:12px;
  }
  .v439f-sync-head>small{
    font-size:9px;
  }
  .v439f-match-alert{
    padding:8px;
    font-size:10px;
  }
  .v439f-match-list article{
    grid-template-columns:1fr;
    gap:8px;
    padding:9px;
    border-radius:10px;
  }
  .v439f-match-list article strong{
    font-size:11px;
  }
  .v439f-match-list article small{
    font-size:9px;
  }
  .v439f-reasons span{
    min-height:24px;
    font-size:9px;
  }
  .v439f-match-list article>button{
    width:100%;
    min-height:42px;
    font-size:10px;
  }
  .v439f-sync-ok{
    padding:8px;
  }
  .v439f-sync-ok strong{
    font-size:10px;
  }
  .v439f-sync-ok small{
    font-size:9px;
  }
}
