.exfu-cart-upload-wrapper {
  margin-top: 10px;
  padding-top: 10px;
}

.exfu-cart-upload-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exfu-cart-upload-btn {
  background: #0073aa;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.exfu-cart-upload-btn:hover {
  background: #005a87;
  color: white;
}

.exfu-cart-upload-btn.has-files {
  background: #00a32a;
}

.exfu-file-count {
  background: #f0f0f0;
  color: #333;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
}

.exfu-upload-modal,
.exfu-checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exfu-modal-content {
  background: white;
      width: 100%;
max-width: 700px;
    max-height: 80vh;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.exfu-modal-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exfu-modal-header h4 {
  margin: 0;
  color: #333;
}

.exfu-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exfu-modal-close:hover {
  color: #333;
}

.exfu-modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}
.exfu-upload-section {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.exfu-upload-section h3,
.exfu-upload-section h4,
.exfu-upload-section h5 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.exfu-cart-upload-wrapper {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.exfu-checkout-uploads {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.exfu-upload-area{
    margin-top: 10px;
}

.exfu-checkout-uploads.inline .exfu-checkout-item-files {
    flex-direction: column;
    align-items: self-start;
}

.exfu-checkout-uploads.inline .exfu-checkout-item-files *{
    width: 100%;
}


.exfu-cart-item-upload,
.exfu-checkout-item-upload {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  background: #fff;
}

.exfu-upload-container {
  max-width: 600px;
}

.exfu-upload-dropzone {
  border: 2px dashed #ccc;
  border-radius: 5px;
  padding: 20px;
  margin: 10px 0;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.exfu-upload-dropzone:hover,
.exfu-upload-dropzone.exfu-dragover {
  border-color: #0073aa;
  background: #f0f8ff;
}

.exfu-upload-icon {
  font-size: 34px;
  /* margin-bottom: 10px; */
}

.exfu-upload-dropzone p {
  margin: 0;
  font-size: 16px;
  color: #666;
}

.exfu-browse-btn {
  background: #0073aa;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.exfu-browse-btn:hover {
  background: #005a87;
}

.exfu-upload-dropzone small {
  display: block;
  /* margin-top: 10px; */
  color: #999;
  font-size: 12px;
}

.exfu-file-list {
  margin: 20px 0;
}

.exfu-existing-files-list {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  background: #f8f9fa;
}

.exfu-existing-files-list h5 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 14px;
}

.exfu-existing-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  margin-bottom: 5px;
  background: #fff;
}

.exfu-existing-file-item.exfu-status-pending {
  border-left: 4px solid #ffc107;
}

.exfu-existing-file-item.exfu-status-approved {
  border-left: 4px solid #28a745;
}

.exfu-existing-file-item.exfu-status-rejected {
  border-left: 4px solid #dc3545;
}

.exfu-file-meta {
  font-size: 11px;
  color: #6c757d;
  display: block;
}

.exfu-file-notes {
  font-size: 11px;
  color: #495057;
  font-style: italic;
  display: block;
  margin-top: 2px;
}

.exfu-file-status {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.exfu-status-pending .exfu-file-status {
  background: #fff3cd;
  color: #856404;
}

.exfu-status-approved .exfu-file-status {
  background: #d4edda;
  color: #155724;
}

.exfu-status-rejected .exfu-file-status {
  background: #f8d7da;
  color: #721c24;
}

.exfu-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  margin-bottom: 5px;
  background: #fff;
}

.exfu-file-info {
  display: flex;
  align-items: center;
  flex: 1;

}

.exfu-file-icon {
  font-size: 24px;
  margin-right: 10px;
  max-width: 24px;
}

.exfu-file-details {
  display: flex;
  flex-direction: column;
}

.exfu-file-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.exfu-file-size {
  font-size: 12px;
  color: #666;
}

.exfu-remove-file {
  background: #dc3232;
  color: white;
  border: none;
  max-width: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exfu-remove-file:hover {
  background: #a02020;
}

.exfu-upload-notes {
  margin: 20px 0;
}

.exfu-upload-notes label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.exfu-notes-textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  resize: vertical;
  font-family: inherit;
}

.exfu-upload-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.exfu-upload-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.exfu-upload-btn {
  background: #00a32a;
  color: white;
}

.exfu-upload-btn:hover:not(:disabled) {
  background: #008a20;
}

.exfu-upload-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}


.exfu-upload-progress {
  margin: 20px 0;
}

.exfu-progress-bar {
  width: 100%;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.exfu-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00a32a, #00d084);
  width: 0%;
  transition: width 0.3s ease;
}

.exfu-progress-text {
  display: block;
  text-align: center;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

.exfu-message {
  padding: 10px;
  border-radius: 3px;
  margin: 15px 0;
  font-weight: 500;
}

.exfu-message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.exfu-message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .exfu-upload-section {
    padding: 15px;
  }

  .exfu-upload-dropzone {
    padding: 30px 15px;
  }

  .exfu-upload-actions {
    flex-direction: column;
  }

  .exfu-upload-btn {
    width: 100%;
  }

  .exfu-file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .exfu-remove-file {
    align-self: flex-end;
  }
}

/* Order Files Styling */
.exfu-order-files {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.exfu-order-product-files {
  margin-bottom: 25px;
}

.exfu-order-product-files h4 {
  margin: 0 0 10px 0;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.exfu-order-files-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exfu-order-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  margin-bottom: 5px;
  background: #fff;
  flex-wrap: wrap;
}

.exfu-order-file-item.exfu-status-pending {
  border-left: 4px solid #ffc107;
}

.exfu-order-file-item.exfu-status-approved {
  border-left: 4px solid #28a745;
}

.exfu-order-file-item.exfu-status-rejected {
  border-left: 4px solid #dc3545;
}

.exfu-order-file-item .exfu-file-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.exfu-order-file-item .exfu-file-name {
  font-weight: 500;
  color: #333;
  flex: 1;
}

.exfu-order-file-item .exfu-file-size {
  font-size: 12px;
  color: #666;
}

.exfu-order-file-item .exfu-file-status {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.exfu-order-file-item .exfu-file-notes {
  width: 100%;
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-top: 5px;
}

/* Checkout Files Styling */
.exfu-checkout-uploads {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.exfu-checkout-item-files {

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exfu-checkout-item__container{
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  background: #fff;
}



.exfu-checkout-files-list {
  margin: 10px 0;
}

.exfu-checkout-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  margin-bottom: 5px;
  background: #f8f9fa;
}

.exfu-checkout-file-item.exfu-status-pending {
  border-left: 3px solid #ffc107;
}

.exfu-checkout-file-item.exfu-status-approved {
  border-left: 3px solid #28a745;
}

.exfu-checkout-file-item.exfu-status-rejected {
  border-left: 3px solid #dc3545;
}



.exfu-checkout-upload-btn, .exfu-refresh-order-files-btn {
  background: #0073aa;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.exfu-checkout-upload-btn:hover, .exfu-refresh-order-files-btn:hover {
  background: #005a87;
  color: white;
}

.exfu-no-files {
  color: #666;
  font-style: italic;
  margin: 10px 0;
}
.exfu-checkout-file-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.exfu-custom-name-input {
  width: 100%;
}

.exfu-custom-naming {
  padding-bottom: 10px;
}

#exfu-upload-popup .exfu-upload-section {
  max-height: 70vh;
  overflow-x: auto;
}

#exfu-close-popup-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 50%;
  cursor: pointer;
}

#exfu-upload-popup {
  display: none;
  display: flex;
}

.exfu-order-requirements p {
  margin: 0;
}

.exfu-checkout-inline-upload .exfu-existing-files-container{
    display: none;
}

.exfu-checkout-inline-upload .exfu-upload-container{
    max-width: 100%;
}

.exfu-approval-notice p{
    margin: 0;
}

.exfu-files-info{
  display: flex;
  flex-direction: column;
}


.exfu-order-uploads {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.exfu-refresh-button-container{
  padding: 10px 0;
  display: inline-block;
}

.exfu-popup-button {
			position: relative;
			display: inline-block;
			padding-right: 2.5em;
		}
		.exfu-badge {
			position: absolute;
			top: -8px;
			right: -8px;
			background-color: #ff3b30;
			color: white;
			border-radius: 50%;
			padding: 0.25em 0.55em;
			font-size: 12px;
			font-weight: bold;
			line-height: 1;
		}

    
    .exfu-container__order{
          display: inline-block;
    padding-right: 10px;
    }

    .exfu-refresh-button-container{

    }