.cfuw-admin-files-box {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #c3c4c7;
  background: #fff;
}

.cfuw-order-received-files {
  width: calc(100% - 32px) !important;
  max-width: var(--wp--style--global--wide-size, 1340px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.cfuw-order-received-title {
  width: calc(100% - 32px) !important;
  max-width: var(--wp--style--global--wide-size, 1340px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}

.cfuw-admin-files-box h3 {
  margin: 0 0 12px;
}

.cfuw-cart-files {
  display: block;
  margin-top: 6px;
  font-size: 0.9em;
  line-height: 1.5;
}

.cfuw-cart-files strong {
  font-weight: 600;
}
.cfuw-upload {
  margin: 22px 0;
  padding: 0;
  font-family: inherit;
}
.cfuw-cart-upload {
  display: block !important;
  width: 100%;
  clear: both;
}
.cfuw-cart-upload .cfuw-upload-dropzone {
  display: flex !important;
  width: 100%;
  box-sizing: border-box;
}
.cfuw-cart-upload .cfuw-upload-files {
  display: grid !important;
  width: 100%;
}
.cfuw-cart-upload {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 !important;
  padding: 0 !important;
  clear: both !important;
  white-space: normal !important;
}
.cfuw-cart-upload .cfuw-upload-dropzone {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
  padding: 10px 20px !important;
  border: 2px dashed #b8c0cc !important;
  border-radius: 6px !important;
  white-space: normal !important;
}
.cfuw-cart-upload .cfuw-upload-files {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 12px !important;
}
.cfuw-cart-upload .cfuw-upload-file {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 20px !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #c4c4c4 !important;
  padding: 10px !important;
  border-radius: 10px !important;
}
.variation .cfuw-cart-upload,
.variation .cfuw-upload {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 !important;
  clear: both !important;
  white-space: normal !important;
  vertical-align: top !important;
}
.variation {
  display: block !important;
  width: 100% !important;
}
.variation dt:empty,
.variation dd:has(.cfuw-cart-upload) {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
}
.variation dd:has(.cfuw-cart-upload)::before,
.variation dd:has(.cfuw-cart-upload)::after {
  content: none !important;
}
.variation dd .cfuw-upload-dropzone,
.variation dd .cfuw-upload-files,
.variation dd .cfuw-upload-file {
  float: none !important;
  white-space: normal !important;
  vertical-align: top !important;
}
.variation .cfuw-cart-upload .cfuw-upload-dropzone {
  display: flex !important;
  width: 100% !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
  border: 2px dashed #b8c0cc !important;
}
.variation .cfuw-cart-upload .cfuw-upload-files {
  display: grid !important;
  width: 100% !important;
  margin-top: 10px !important;
}
.variation .cfuw-cart-upload .cfuw-upload-file {
  display: grid !important;
  border: 1px solid #c4c4c4 !important;
  padding: 10px !important;
}
.cfuw-upload-dropzone {
  min-height: 72px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed #b8c0cc;
  border-radius: 6px;
  color: #586474;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.cfuw-upload-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cfuw-upload-dropzone:hover,
.cfuw-upload.is-dragover .cfuw-upload-dropzone {
  border-color: #2271b1;
  background: #f5f9fd;
}
.cfuw-upload-cloud {
  color: #5d6b7c;
  font-size: 25px;
  line-height: 1;
}
.cfuw-upload-divider {
  color: #a3acb8;
}
.cfuw-upload-browse {
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  background: #626a75;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.cfuw-upload-browse:hover {
  background: #424a55;
}
.cfuw-upload-count {
  margin-left: auto;
  color: #697586;
  font-size: 12px;
}
.cfuw-upload-message {
  margin-top: 8px;
  color: #b32d2e;
  font-size: 13px;
}
.cfuw-upload-formats {
  margin-top: 8px;
  color: #697586;
  font-size: 12px;
}
.cfuw-upload-files {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.cfuw-upload-file {
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  gap: 9px;
  align-items: center;
  border:solid 1px #c4c4c4;
  padding: 10px;
  border-radius: 10px;
}
.cfuw-upload-file-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd2dc;
  border-radius: 50%;
  color: #2271b1;
  font-size: 16px;
}
.cfuw-upload-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2271b1;
  font-size: 13px;
}
.cfuw-upload-progress {
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 6px;
  background: #e5e7eb;
}
.cfuw-upload-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #43b75a;
}
.cfuw-upload-remove {
  border: 0;
  background: transparent;
  color: #b83280;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}
.cfuw-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 520px) {
  .cfuw-upload-dropzone {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cfuw-upload-count {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

.cfuw-account-files {
  --cfuw-account-ink: #263445;
  --cfuw-account-muted: #697586;
  --cfuw-account-border: #dfe4ea;
  --cfuw-account-blue: #2271b1;
  max-width: 920px;
  color: var(--cfuw-account-ink);
}

.cfuw-account-files > h2 {
  margin: 0 0 22px;
  color: var(--cfuw-account-ink);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: 0;
}

.cfuw-account-order {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--cfuw-account-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(38, 52, 69, 0.06);
}

.cfuw-account-order h3 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f3;
  font-size: 17px;
  line-height: 1.3;
}

.cfuw-account-order h3 a {
  color: var(--cfuw-account-blue);
  text-decoration: none;
}

.cfuw-account-order h3 a:hover,
.cfuw-account-order h3 a:focus {
  color: #135e96;
  text-decoration: underline;
}

.cfuw-account-product + .cfuw-account-product {
  margin-top: 18px;
}

.cfuw-account-product h4 {
  margin: 0 0 9px;
  color: var(--cfuw-account-ink);
  font-size: 14px;
  line-height: 1.4;
}

.cfuw-account-file-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cfuw-account-file-list li {
  padding: 10px 12px;
  border: 1px solid #edf0f3;
  border-radius: 5px;
  background: #f8fafc;
}

.cfuw-account-file-list li::before {
  content: none;
}

.cfuw-account-file-list a {
  display: block;
  overflow: hidden;
  color: var(--cfuw-account-blue);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfuw-account-file-list a:hover,
.cfuw-account-file-list a:focus {
  color: #135e96;
}

.cfuw-account-uploader {
  margin-top: 22px;
}

.cfuw-account-uploader .cfuw-upload-browse {
  padding: 6px 10px;
  font-size: 12px;
}

.cfuw-account-uploader .cfuw-upload-dropzone {
  justify-content: flex-start !important;
  text-align: left;
  position: relative;
  pointer-events: auto;
}

.cfuw-account-uploader .cfuw-upload-browse {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.cfuw-account-uploader .cfuw-upload-dropzone.is-dragover {
  border-color: var(--cfuw-account-blue);
  background: #f0f7fc;
}

.cfuw-account-delete-form {
  display: contents;
}

.cfuw-account-upload-submit {
  display: block;
  margin-top: 10px;
  border: 0;
  border-radius: 5px;
  padding: 10px 15px;
  background: var(--cfuw-account-blue);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.cfuw-account-upload-submit:hover,
.cfuw-account-upload-submit:focus {
  background: #135e96;
}

@media (max-width: 520px) {
  .cfuw-account-order {
    padding: 16px;
  }

  .cfuw-account-files > h2 {
    margin-bottom: 16px;
  }

  .cfuw-account-upload-submit {
    width: 100%;
  }
}
