/* إنشاء حساب — واجهة موحّدة مع نظام الشكاوى */
.cx-register-page {
  --cx-reg-pad: clamp(0.75rem, 3vw, 1.25rem);
  padding: var(--cx-reg-pad) var(--cx-reg-pad) 2.5rem;
  background: linear-gradient(160deg, #eef3f7 0%, #f8fafc 45%, #e8f0f6 100%);
  min-height: 60vh;
}

.cx-register-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
}

.cx-register-page .login-box.cx-register-card {
  padding: 0;
  border: 1px solid var(--cx-line, #e2e8ef);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(2, 21, 38, 0.12);
}

.cx-register-page .login-box:hover {
  box-shadow: 0 22px 52px rgba(2, 21, 38, 0.14);
}

.cx-register-page .login-header.cx-register-header {
  background: linear-gradient(145deg, #041f2e 0%, #0a4d6e 48%, #12708f 100%);
  padding: 1.5rem 1.25rem 1.35rem !important;
  text-align: center;
  position: relative;
}

.cx-register-page .login-header.cx-register-header::before {
  display: none !important;
}

.cx-register-header__badge {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.25rem;
}

.cx-register-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.cx-register-page .login-header.cx-register-header h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.cx-register-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

/* شريط الخطوات الموحّد */
.cx-register-toolbar {
  padding: 1rem 1.1rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid #e8eef3;
}

.cx-stepper {
  position: relative;
  margin-bottom: 0.65rem;
}

.cx-stepper__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}

.cx-stepper__rail {
  position: absolute;
  top: 1.15rem;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 999px;
  background: #e4eaef;
  z-index: 0;
  overflow: hidden;
}

.cx-stepper__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(270deg, #0f7a5f 0%, #1a7a9c 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-inline-start: auto;
}

.cx-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  min-width: 0;
}

.cx-stepper__dot {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #8a9aab;
  background: #f0f4f8;
  border: 2px solid #e2e8ef;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.cx-stepper__dot.is-active {
  color: #fff;
  background: linear-gradient(145deg, #0a4d6e, #1a7a9c);
  border-color: #1a7a9c;
  box-shadow: 0 0 0 4px rgba(26, 122, 156, 0.18);
  transform: scale(1.06);
}

.cx-stepper__dot.is-done {
  color: #fff;
  background: #0f7a5f;
  border-color: #0f7a5f;
}

.cx-stepper__dot.is-done i {
  display: none;
}

.cx-stepper__dot.is-done::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
}

.cx-stepper__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #8a9aab;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.cx-stepper__item.is-current .cx-stepper__label {
  color: #0a4d6e;
}

.cx-stepper__item.is-done .cx-stepper__label {
  color: #0f7a5f;
}

.cx-stepper__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.15rem;
}

.cx-stepper__caption {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #1c2834;
}

.cx-stepper__count {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6b7c;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f0f4f8;
}

.cx-draft-hint {
  margin: 0;
  padding: 0.55rem 1rem;
  background: #e8f4fc;
  border-bottom: 1px solid #cce4f2;
  color: #0a4d6e;
  font-size: 0.84rem;
  text-align: center;
}

.cx-register-form {
    padding: clamp(1rem, 3vw, 1.35rem) !important;
}

/* خطوة واحدة فقط — إخفاء بقية المراحل */
.cx-register-form .register-step {
  display: none !important;
}

.cx-register-form .register-step.active {
  display: block !important;
}

.cx-form-legend {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--cx-muted, #5a6b7c);
  text-align: end;
}

.cx-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.cx-field-grid .form-group--full {
  grid-column: 1 / -1;
}

.cx-register-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cx-ink, #1c2834);
}

.cx-required {
    color: #e02424;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    margin-inline-start: 0.15rem;
}

.cx-optional {
    color: var(--cx-muted, #5a6b7c);
    font-size: 0.78rem;
    font-weight: 500;
    margin-inline-start: 0.25rem;
}

.cx-file-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.cx-upload-card {
    border: 2px dashed #c5d3df;
    border-radius: 14px;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cx-upload-card.is-filled {
    border-color: rgba(15, 122, 95, 0.45);
    border-style: solid;
    background: #f5fbf8;
}

.cx-upload-empty {
    text-align: center;
    padding: 0.65rem 0.5rem 0.75rem;
    color: var(--cx-muted, #5a6b7c);
}

.cx-upload-empty i {
    font-size: 1.75rem;
    color: var(--cx-accent, #1a7a9c);
    margin-bottom: 0.35rem;
}

.cx-upload-empty p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

.cx-upload-preview {
    text-align: center;
    margin-bottom: 0.65rem;
}

.cx-upload-preview img {
    display: block;
    max-width: min(100%, 220px);
    max-height: 132px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto 0.45rem;
    border-radius: 10px;
    border: 1px solid var(--cx-line, #e2e8ef);
    object-fit: contain;
    background: #fff;
}

.cx-upload-name {
    margin: 0;
    font-size: 0.78rem;
    color: var(--cx-muted, #5a6b7c);
    word-break: break-all;
}

.cx-upload-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.cx-upload-actions .cx-upload-btn--clear {
    grid-column: 1 / -1;
}

.cx-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    border-radius: 11px;
    border: 1px solid var(--cx-line, #e2e8ef);
    background: #fff;
    color: var(--cx-brand-2, #0a4d6e);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cx-upload-btn:hover {
    border-color: var(--cx-accent, #1a7a9c);
    background: #eef7fb;
    transform: translateY(-1px);
}

.cx-upload-btn--cam {
    background: var(--cx-brand-2, #0a4d6e);
    color: #fff;
    border-color: var(--cx-brand-2, #0a4d6e);
}

.cx-upload-btn--cam:hover {
    background: var(--cx-brand, #021526);
    color: #fff;
}

.cx-upload-btn--clear {
    color: var(--cx-danger, #b42318);
    border-color: #f0d2cf;
    background: #fff7f6;
}

.cx-register-form .form-group input,
.cx-register-form .form-group select {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--cx-line, #e2e8ef);
  border-radius: 12px;
  font-size: 0.92rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cx-register-form .form-group input:focus,
.cx-register-form .form-group select:focus {
  border-color: var(--cx-accent, #1a7a9c);
  box-shadow: 0 0 0 3px rgba(26, 122, 156, 0.18);
  outline: none;
}

.cx-register-form .form-group input.is-invalid,
.cx-register-form .form-group select.is-invalid {
  border-color: var(--cx-danger, #b42318);
}

.cx-register-form .validation-error {
  color: var(--cx-danger, #b42318);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.cx-signature-svg {
  width: 100%;
  max-height: 140px;
  display: block;
  background: #fff;
}

.cx-signature-view .cx-signature-svg {
  max-height: 120px;
}

.cx-register-form .info-icon {
  margin-inline-start: auto;
  color: var(--cx-accent, #1a7a9c);
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0.9;
}

.cx-file-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--cx-muted, #5a6b7c);
}

.cx-file-input {
  padding: 0.45rem !important;
  font-size: 0.85rem !important;
}

.cx-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cx-password-wrap input {
  padding-inline-start: 4.25rem !important;
}

.cx-password-wrap .toggle-password {
  position: absolute;
  inset-inline-start: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--cx-muted, #5a6b7c);
}

.cx-password-wrap .cx-copy-pass {
  position: absolute;
  inset-inline-start: 2.15rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--cx-brand-2, #0a4d6e);
  cursor: pointer;
  padding: 0.25rem;
}

.cx-sign-pad {
  border: 1px solid #d4e2ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cx-sign-pad.is-signed {
  border-color: rgba(15, 122, 95, 0.45);
}

.cx-sign-pad.is-invalid-upload {
  border-color: #e02424;
  box-shadow: 0 0 0 3px rgba(224, 36, 36, 0.12);
}

.cx-sign-pad__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e8eef3;
  background: #f4f8fb;
}

.cx-sign-pad__status {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5a6b7c;
}

.cx-sign-pad.is-signed .cx-sign-pad__status {
  color: #0f7a5f;
}

.cx-sign-pad__actions {
  display: flex;
  gap: 0.4rem;
}

.cx-sign-pad__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.3rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #d4e2ec;
  background: #fff;
  color: #0a4d6e;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cx-sign-pad__btn--danger {
  color: #b42318;
  border-color: #f0d2cf;
  background: #fff8f7;
}

.cx-sign-pad__canvas-wrap {
  position: relative;
  padding: 0.65rem;
  background:
    linear-gradient(#fafcfd 1px, transparent 1px),
    linear-gradient(90deg, #fafcfd 1px, transparent 1px);
  background-size: 18px 18px;
  background-color: #fff;
}

.cx-sign-pad__canvas-wrap canvas {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 2px dashed #c5d3df;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

.cx-sign-pad.is-signed .cx-sign-pad__canvas-wrap canvas {
  border-style: solid;
  border-color: rgba(15, 122, 95, 0.35);
}

.cx-sign-pad__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1rem;
  pointer-events: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9aa8b6;
}

.cx-register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cx-line, #e2e8ef);
}

.cx-register-actions .cx-reg-btn {
  flex: 1 1 auto;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.cx-register-actions .cx-reg-btn:hover {
  transform: translateY(-1px);
}

.cx-reg-btn--primary {
  background: var(--cx-brand-2, #0a4d6e);
  color: #fff;
}

.cx-reg-btn--primary:hover {
  background: var(--cx-brand, #021526);
}

.cx-reg-btn--secondary {
  background: #fff;
  color: var(--cx-brand-2, #0a4d6e);
  border-color: var(--cx-line, #e2e8ef);
}

.cx-reg-btn--danger {
  background: #fff;
  color: var(--cx-danger, #b42318);
  border-color: #f3d0cd;
}

.cx-register-form .login-button {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  margin-top: 0.5rem;
  background: var(--cx-brand-2, #0a4d6e);
}

.cx-review-card {
  background: var(--cx-soft, #f4f7fa);
  border: 1px solid var(--cx-line, #e2e8ef);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.cx-review-card h5,
.cx-review-card h6 {
  margin: 0 0 0.65rem;
  color: var(--cx-brand-2, #0a4d6e);
  font-size: 0.98rem;
}

#reviewData {
  list-style: none;
  padding: 0;
  margin: 0;
}

#reviewData li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed #e2e8ef;
  font-size: 0.9rem;
  line-height: 1.55;
}

#reviewData li:last-child {
  border-bottom: none;
}

.cx-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.cx-captcha-row img {
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--cx-line, #e2e8ef);
}

.cx-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--cx-line, #e2e8ef);
}

.cx-terms input {
  margin-top: 0.2rem;
  width: auto;
  min-height: auto;
}

.cx-terms label {
  font-size: 0.86rem;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.cx-register-footer {
  padding: 0 1.25rem 1.25rem;
  text-align: center;
}

.cx-register-footer a {
  color: var(--cx-brand-2, #0a4d6e);
  font-weight: 600;
  text-decoration: none;
}

.cx-register-footer a:hover {
  text-decoration: underline;
}

.image-preview img {
  max-width: 120px;
  border-radius: 10px;
  border: 1px solid var(--cx-line, #e2e8ef);
  margin: 0.25rem;
}

@media (max-width: 639.98px) {
  .cx-field-grid {
    grid-template-columns: 1fr;
  }

  .cx-register-actions {
    flex-direction: column;
  }

  .cx-register-actions .cx-reg-btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .cx-register-actions .cx-reg-btn--grow {
    flex: 1 1 0;
  }
}

/* انتقال بين الخطوات */
.cx-register-form .register-step.active {
  animation: cxRegStepIn 0.38s ease;
}

.register-step.cx-step-animate {
  animation: cxRegStepIn 0.38s ease;
}

@keyframes cxRegStepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-register-form .register-step.active,
  .register-step.cx-step-animate,
  .cx-upload-card.cx-upload-pop {
    animation: none;
  }
}

@media (max-width: 479.98px) {
  .cx-stepper__label {
    display: none;
  }

  .cx-stepper__item.is-current .cx-stepper__label {
    display: block;
  }

  .cx-stepper__dot {
    width: 2.05rem;
    height: 2.05rem;
    font-size: 0.75rem;
  }
}

/* قسم المرفقات */
.cx-uploads-section {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #d4e2ec;
  background: linear-gradient(165deg, #f8fbfd 0%, #f1f6fa 100%);
}

.cx-uploads-section__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--cx-brand-2, #0a4d6e);
}

.cx-uploads-section__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--cx-muted, #5a6b7c);
  line-height: 1.5;
}

.cx-uploads-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.cx-upload-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cx-upload-field .cx-upload-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cx-upload-field .cx-upload-actions {
  margin-top: auto;
}

.cx-upload-field .form-group {
  margin-bottom: 0;
}

.cx-upload-card {
  position: relative;
  cursor: pointer;
  outline: none;
}

.cx-upload-card:focus-visible {
  border-color: var(--cx-accent, #1a7a9c);
  box-shadow: 0 0 0 3px rgba(26, 122, 156, 0.22);
}

.cx-upload-card.is-dragover {
  border-color: var(--cx-accent, #1a7a9c);
  background: #e8f6fb;
  transform: scale(1.01);
}

.cx-upload-card.is-busy::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  z-index: 2;
}

.cx-upload-card.is-busy::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 3px solid #c5d3df;
  border-top-color: var(--cx-accent, #1a7a9c);
  border-radius: 50%;
  animation: cxSpin 0.7s linear infinite;
  z-index: 3;
}

@keyframes cxSpin {
  to {
    transform: rotate(360deg);
  }
}

.cx-upload-card.is-invalid-upload {
  border-color: #e02424;
  background: #fff8f7;
}

.cx-upload-card.cx-upload-pop {
  animation: cxUploadPop 0.5s ease;
}

@keyframes cxUploadPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.cx-upload-badge {
  position: absolute;
  top: 0.55rem;
  inset-inline-end: 0.55rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0d5c46;
  background: #d4f2e7;
  border: 1px solid #9fd9c4;
}

.cx-upload-preview img {
  max-height: 132px;
  box-shadow: 0 4px 14px rgba(2, 21, 38, 0.1);
}

.cx-register-page--edit .cx-upload-preview {
  margin-bottom: 0.45rem;
}

.cx-register-page--edit .cx-upload-preview img {
  max-height: 104px;
  max-width: min(100%, 180px);
}

.cx-register-page--edit .cx-upload-name {
  font-size: 0.78rem;
  margin: 0;
  opacity: 0.88;
}

.cx-register-page--edit .cx-upload-actions {
  gap: 0.35rem;
}

.cx-register-page--edit .cx-upload-btn {
  min-height: 38px;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
}

/* قوة كلمة المرور */
.cx-pass-strength {
  margin-top: 0.45rem;
}

.cx-pass-strength__track {
  height: 6px;
  border-radius: 999px;
  background: #e2e8ef;
  overflow: hidden;
}

.cx-pass-strength__track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.25s ease, background 0.25s ease;
  background: #e02424;
}

.cx-pass-strength.is-fair .cx-pass-strength__track span {
  background: #e89b20;
}

.cx-pass-strength.is-good .cx-pass-strength__track span {
  background: #1a7a9c;
}

.cx-pass-strength.is-strong .cx-pass-strength__track span {
  background: #0f7a5f;
}

.cx-pass-strength__label {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--cx-muted, #5a6b7c);
}

/* مراجعة الصور */
.cx-review-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.cx-review-media-item {
  margin: 0;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--cx-line, #e2e8ef);
  background: #fff;
  text-align: center;
}

.cx-review-media-item figcaption {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cx-brand-2, #0a4d6e);
}

.cx-review-media-item .image-preview img {
  max-width: 100%;
  max-height: 110px;
  margin: 0 auto;
}

@media (min-width: 520px) {
  .cx-uploads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .cx-uploads-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}