/* Customer portal form controls aligned with the public contact/registration UI. */
body.woocommerce-account .snx-card label{
  display:block;
  color:#182033;
  font-weight:650;
  line-height:1.35;
}
body.woocommerce-account .snx-card input.input-text,
body.woocommerce-account .snx-card textarea.input-text,
body.woocommerce-account .snx-card select{
  width:100%;
  min-height:50px;
  margin-top:8px;
  padding:12px 46px 12px 15px;
  border:1px solid #d8e0ec;
  border-radius:11px;
  background-color:#fff;
  color:#182033;
  font:inherit;
  line-height:1.3;
  box-shadow:none;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
body.woocommerce-account .snx-card select{
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23182033' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px;
}
body.woocommerce-account .snx-card input.input-text:focus,
body.woocommerce-account .snx-card textarea.input-text:focus,
body.woocommerce-account .snx-card select:focus{
  border-color:#f67836;
  box-shadow:0 0 0 3px rgba(246,120,54,.14);
}
body.woocommerce-account .snx-card textarea.input-text{min-height:130px;resize:vertical;padding-right:15px}
body.woocommerce-account .snx-card>form:not(.snx-inline-form){max-width:720px}
body.woocommerce-account .snx-card>form:not(.snx-inline-form)>p{margin:0 0 18px}
body.woocommerce-account .snx-inline-form select{
  width:auto;
  min-width:145px;
  min-height:40px;
  margin:0;
  padding:8px 38px 8px 12px;
  border-radius:9px;
}
body.woocommerce-account .snx-session-actions{
  align-items:center;
  gap:14px 24px;
}
body.woocommerce-account .snx-session-actions form{margin:0}
body.woocommerce-account .snx-session-actions .snx-text-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0;
  text-align:left;
}
@media(max-width:700px){
  body.woocommerce-account .snx-card>form:not(.snx-inline-form){max-width:none}
  body.woocommerce-account .snx-inline-form{align-items:stretch}
  body.woocommerce-account .snx-inline-form select{width:100%}
  body.woocommerce-account .snx-session-actions{align-items:stretch}
  body.woocommerce-account .snx-session-actions form,
  body.woocommerce-account .snx-session-actions button{width:100%;justify-content:center}
}


/* Team member form: one full-width row followed by two two-column rows. */
body.woocommerce-account .snx-member-form{
  max-width:880px!important;
}
body.woocommerce-account .snx-member-form-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
body.woocommerce-account .snx-member-form-row-single{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
body.woocommerce-account .snx-member-form-row-single>p{
  grid-column:1;
}
body.woocommerce-account .snx-member-form-row>p{
  min-width:0;
  margin:0 0 18px!important;
}
body.woocommerce-account .snx-member-form>.snx-btn{
  margin-top:2px;
}
@media(max-width:700px){
  body.woocommerce-account .snx-member-form-row,
  body.woocommerce-account .snx-member-form-row-single{
    grid-template-columns:1fr;
    gap:0;
  }
  body.woocommerce-account .snx-member-form-row-single>p{grid-column:auto}
}


/* Full-width team form and member management dialogs. */
body.woocommerce-account .snx-member-add-card .snx-member-form{
  width:100%!important;
  max-width:none!important;
}
body.woocommerce-account .snx-member-form-row-single{
  grid-template-columns:1fr!important;
}
body.woocommerce-account .snx-member-dialog,
body.woocommerce-account .snx-confirm-dialog{
  width:min(760px,calc(100vw - 32px));
  max-width:none;
  max-height:calc(100vh - 32px);
  padding:0;
  overflow:auto;
  border:0;
  border-radius:20px;
  background:#fff;
  color:#172033;
  box-shadow:0 28px 80px rgba(17,24,39,.24);
}
body.woocommerce-account .snx-member-dialog::backdrop,
body.woocommerce-account .snx-confirm-dialog::backdrop{
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(4px);
}
body.woocommerce-account .snx-dialog-shell{padding:26px}
body.woocommerce-account .snx-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}
body.woocommerce-account .snx-dialog-head h2{margin:4px 0 0!important}
body.woocommerce-account .snx-dialog-close{
  display:grid;
  width:40px;height:40px;
  padding:0;
  place-items:center;
  border:1px solid #e2e7ef;
  border-radius:10px;
  background:#f7f9fc;
  color:#172033;
  font-size:1.55rem;
  cursor:pointer;
}
body.woocommerce-account .snx-member-edit-form{max-width:none!important}
body.woocommerce-account .snx-dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:8px;
}
body.woocommerce-account .snx-confirm-dialog{
  width:min(480px,calc(100vw - 32px));
  padding:30px;
  text-align:center;
}
body.woocommerce-account .snx-confirm-icon{
  display:grid;
  width:54px;height:54px;
  margin:0 auto 18px;
  place-items:center;
  border-radius:50%;
  background:#fee2e2;
  color:#dc2626;
  font-size:1.5rem;
  font-weight:800;
}
body.woocommerce-account .snx-confirm-dialog h2{margin:0 0 10px!important}
body.woocommerce-account .snx-confirm-dialog p{margin:0 0 24px!important}
body.woocommerce-account .snx-confirm-dialog .snx-dialog-actions{justify-content:center}
body.woocommerce-account .snx-btn-danger{
  border-color:#dc2626!important;
  background:#dc2626!important;
  color:#fff!important;
}
body.woocommerce-account .snx-member-status{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
}
body.woocommerce-account .snx-member-status.is-active{background:#e8f7ef;color:#18794e}
body.woocommerce-account .snx-member-status.is-inactive{background:#f1f3f6;color:#667085}
@media(max-width:700px){
  body.woocommerce-account .snx-dialog-shell,
  body.woocommerce-account .snx-confirm-dialog{padding:20px}
  body.woocommerce-account .snx-dialog-actions{flex-direction:column-reverse}
  body.woocommerce-account .snx-dialog-actions .snx-btn{width:100%}
}

/* Branded success feedback; red remains reserved for errors. */
body.woocommerce-account .snx-alert.snx-alert-success{
  border-color:var(--snx-orange,#f97316)!important;
  background:var(--snx-orange,#f97316)!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(249,115,22,.16);
}
body.woocommerce-account .snx-alert.snx-alert-success :is(a,strong){color:#fff!important}


/* Team feedback as dismissing top-right toasts. */
body.woocommerce-account .snx-team-toast{
  position:fixed;
  z-index:100000;
  top:24px;
  right:24px;
  width:min(430px,calc(100vw - 32px));
  margin:0!important;
  padding:16px 20px!important;
  border-radius:12px!important;
  color:#fff!important;
  box-shadow:0 18px 46px rgba(17,24,39,.22)!important;
  animation:snx-toast-in .24s ease-out both;
  transition:opacity .28s ease,transform .28s ease;
}
body.woocommerce-account .snx-team-toast strong{
  color:#fff!important;
  font-weight:800!important;
}
body.woocommerce-account .snx-team-toast.snx-alert-deleted,
body.woocommerce-account .snx-team-toast.snx-alert-error{
  border-color:#dc2626!important;
  background:#dc2626!important;
}
body.woocommerce-account .snx-team-toast.is-hiding{
  opacity:0;
  transform:translateY(-10px);
}
body.woocommerce-account .snx-member-delete-trigger{margin-right:auto!important}
body.woocommerce-account .snx-btn-danger-outline{
  border-color:#dc2626!important;
  background:#fff!important;
  color:#dc2626!important;
}
body.woocommerce-account .snx-btn-danger-outline:hover{
  background:#fef2f2!important;
  color:#b91c1c!important;
}
@keyframes snx-toast-in{
  from{opacity:0;transform:translateY(-10px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:700px){
  body.woocommerce-account .snx-team-toast{top:16px;right:16px}
  body.woocommerce-account .snx-member-delete-trigger{margin-right:0!important}
}

/* Solid red delete action inside the member edit dialog. */
body.woocommerce-account dialog.snx-member-dialog .snx-dialog-actions button.snx-member-delete-trigger{
  border-color:#dc2626!important;
  background:#dc2626!important;
  color:#fff!important;
}
body.woocommerce-account dialog.snx-member-dialog .snx-dialog-actions button.snx-member-delete-trigger:hover,
body.woocommerce-account dialog.snx-member-dialog .snx-dialog-actions button.snx-member-delete-trigger:focus-visible{
  border-color:#b91c1c!important;
  background:#b91c1c!important;
  color:#fff!important;
}

/* Five-column team table without the internal alias. */
body.woocommerce-account .snexus-registration-portal .snx-team-table .snx-table-row{
  grid-template-columns:1.15fr 1.45fr 1fr .72fr .8fr!important;
}
@media(max-width:1100px){
  body.woocommerce-account .snexus-registration-portal .snx-team-table .snx-table-row{min-width:820px}
}
@media(max-width:620px){
  body.woocommerce-account .snexus-registration-portal .snx-team-table .snx-table-row{min-width:0;grid-template-columns:1fr!important}
}
