/* ===========================================
   FORM LAYOUT — MORE PROFESSIONAL VERSION
   =========================================== */

/* Manualy added CSS for better form styling */
.xpartweb-error-msg {
  text-align: center;
  background: #ff000024;
  width: 45%;
  margin: auto;
  padding: 5px 20px;
  border-radius: 10px;
}

.xpartweb-registration-form {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 40px;
  max-width: 640px;
  margin: 40px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* Title */
.xpartweb-registration-form .xpartweb-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #111;
}

/* Input spacing */
.xpartweb-registration-form p {
  margin-bottom: 18px;
}

.xpartweb-registration-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

/* Modern Inputs */
.xpartweb-registration-form input[type="text"],
.xpartweb-registration-form input[type="email"],
.xpartweb-registration-form select,
.xpartweb-registration-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  background: #fafafa;
  transition: 0.2s ease;
}

.xpartweb-registration-form input:focus,
.xpartweb-registration-form textarea:focus,
.xpartweb-registration-form select:focus {
  border-color: #007cba;
  background: #fff;
}

/* ===========================================
     1. TWO-COLUMN ROW (EMAIL + PHONE)
     =========================================== */

.xpartweb-row {
  display: flex;
  gap: 20px;
}

.xpartweb-col {
  flex: 1;
}

/* Mobile Stack */
@media (max-width: 600px) {
  .xpartweb-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ===========================================
     2. COMPACT FILE UPLOAD (INLINE)
     =========================================== */

.xpartweb-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f5;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.xpartweb-upload-wrapper input[type="file"] {
  display: none;
}

/* BLACK BUTTON */
.xpartweb-upload-btn {
  background: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  font-weight: 600;
}

.xpartweb-upload-btn:hover {
  background: #000;
}

/* File name inline */
.xpartweb-file-name {
  font-size: 14px;
  color: #555;
}

/* ===========================================
     3. SUBMIT BUTTON UPDATED (RED)
     =========================================== */

.xpartweb-registration-form input[type="submit"] {
  background: #e52629;
  border: none;
  color: #fff;
  padding: 14px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
  transition: 0.25s ease;
}

.xpartweb-registration-form input[type="submit"]:hover {
  background: #c51c1f;
}

/* =========================================
   XPartWeb Admin Bulk Pricing Manager
========================================= */

.xpartweb-bulk-pricing-wrap {
  max-width: 100%;
  margin-top: 24px;
}

.xpartweb-bulk-pricing-title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.xpartweb-bulk-pricing-desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

.xpartweb-bulk-pricing-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.xpartweb-bulk-pricing-search-input,
.xpartweb-bulk-pricing-category-select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  box-shadow: none;
}

.xpartweb-bulk-pricing-search-input {
  min-width: 280px;
  flex: 1 1 320px;
}

.xpartweb-bulk-pricing-category-select {
  min-width: 200px;
}

.xpartweb-bulk-pricing-search-input:focus,
.xpartweb-bulk-pricing-category-select:focus,
.xpartweb-bulk-price-input:focus {
  border-color: #2271b1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

.xpartweb-bulk-pricing-search-form .button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
}

.xpartweb-bulk-pricing-search-form .button:not(.button-primary) {
  border-color: #d1d5db;
  background: #fff;
  color: #111827;
}

.xpartweb-bulk-pricing-search-form .button:not(.button-primary):hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.xpartweb-bulk-pricing-meta {
  margin: 0 0 14px;
  font-size: 14px;
  color: #374151;
}

.xpartweb-bulk-pricing-form {
  margin: 0;
}

.xpartweb-bulk-pricing-table {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
  margin-top: 0;
}

.xpartweb-bulk-pricing-table thead th {
  background: #f8fafc;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-transform: none;
  vertical-align: middle;
}

.xpartweb-bulk-pricing-table tbody td {
  padding: 12px;
  vertical-align: middle;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.xpartweb-bulk-pricing-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.xpartweb-bulk-pricing-table tbody tr:hover td {
  background: #f9fbff;
}

.xpartweb-bulk-pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.xpartweb-bulk-pricing-table td:first-child {
  font-weight: 600;
  color: #1f2937;
  line-height: 1.45;
}

.xpartweb-bulk-pricing-table td:nth-child(2),
.xpartweb-bulk-pricing-table td:nth-child(3) {
  color: #4b5563;
}

.xpartweb-bulk-price-input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #111827;
}

.xpartweb-bulk-pricing-save-wrap {
  margin: 18px 0 0;
}

.xpartweb-bulk-pricing-save-wrap .button.button-primary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
}
.xpartweb-bulk-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}

.xpartweb-bulk-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  background: #fff;
  color: #2271b1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  transition: none;
}

.xpartweb-bulk-pagination .page-numbers:hover {
  background: #f6f7f7;
  border-color: #8c8f94;
  color: #135e96;
}

.xpartweb-bulk-pagination .page-numbers.current {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.xpartweb-bulk-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #646970;
  min-width: auto;
  padding: 0 4px;
}

.xpartweb-bulk-pagination .page-numbers:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #111827;
  transform: translateY(-1px);
}

.xpartweb-bulk-pagination .page-numbers.current {
  background: linear-gradient(135deg, #2271b1, #135e96);
  border-color: #2271b1;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(34, 113, 177, 0.22);
}

.xpartweb-bulk-pagination .page-numbers.current:hover {
  transform: none;
}

.notice.notice-success.is-dismissible {
  border-radius: 10px;
}

@media (max-width: 1400px) {
  .xpartweb-bulk-pricing-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .xpartweb-bulk-pricing-table thead th,
  .xpartweb-bulk-pricing-table tbody td {
    min-width: 150px;
  }

  .xpartweb-bulk-pricing-table thead th:first-child,
  .xpartweb-bulk-pricing-table tbody td:first-child {
    min-width: 320px;
  }

  .xpartweb-bulk-pricing-table thead th:nth-child(2),
  .xpartweb-bulk-pricing-table tbody td:nth-child(2) {
    min-width: 180px;
  }

  .xpartweb-bulk-pricing-table thead th:nth-child(3),
  .xpartweb-bulk-pricing-table tbody td:nth-child(3) {
    min-width: 150px;
  }
}

@media (max-width: 782px) {
  .xpartweb-bulk-pricing-title {
    font-size: 24px;
  }

  .xpartweb-bulk-pricing-search-form {
    padding: 14px;
  }

  .xpartweb-bulk-pricing-search-input,
  .xpartweb-bulk-pricing-category-select {
    width: 100%;
    min-width: 100%;
    flex: 1 1 100%;
  }

  .xpartweb-bulk-pricing-search-form .button {
    width: 100%;
    justify-content: center;
  }

  .xpartweb-bulk-pagination {
    gap: 8px;
  }

  .xpartweb-bulk-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
  }
}
.xpw-documents-wrap {
  max-width: 820px;
}

.xpw-documents-header {
  background: #111;
  color: #fff;
  padding: 28px 32px;
  border-radius: 14px;
  margin-bottom: 22px;
}

.xpw-documents-kicker {
  display: inline-block;
  color: #ed1c24;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.xpw-documents-header h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.1;
}

.xpw-documents-header p {
  color: #ddd;
  margin: 0;
  font-size: 15px;
}

.xpw-documents-form {
  display: grid;
  gap: 18px;
}

.xpw-document-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.xpw-document-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.xpw-document-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
}

.xpw-document-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.xpw-document-status {
  background: #ffe9e9;
  color: #ed1c24;
  border-radius: 50px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.xpw-current-files {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.xpw-current-files strong {
  display: block;
  color: #111;
  margin-bottom: 8px;
}

.xpw-file-link {
  display: inline-block;
  color: #ed1c24;
  font-weight: 600;
  text-decoration: none;
  margin-right: 10px;
  word-break: break-all;
}

.xpw-file-link:hover {
  text-decoration: underline;
}

.xpw-no-file {
  display: block;
  color: #777;
  font-style: italic;
}

.xpw-upload-box {
  display: block;
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}

.xpw-upload-box:hover {
  border-color: #ed1c24;
  background: #fff8f8;
}

.xpw-upload-title {
  display: block;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.xpw-upload-note {
  display: block;
  color: #777;
  font-size: 13px;
  margin-bottom: 12px;
}

.xpw-upload-box input[type="file"] {
  width: 100%;
}

.xpw-documents-actions {
  margin-top: 4px;
}

.xpw-documents-submit {
  background: #ed1c24 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 15px 28px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}

.xpw-documents-submit:hover {
  background: #c9151b !important;
}

@media (max-width: 767px) {
  .xpw-documents-header {
    padding: 22px;
  }

  .xpw-documents-header h2 {
    font-size: 28px;
  }

  .xpw-document-card-top {
    display: block;
  }

  .xpw-document-status {
    display: inline-block;
    margin-top: 12px;
  }
}
.xpw-documents-success {
  background: #f0fff4;
  border: 1px solid #b7ebc6;
  border-left: 4px solid #22c55e;
  color: #166534;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-weight: 600;
}

.xpw-documents-success::before {
  content: "✓";
  display: inline-block;
  margin-right: 8px;
  font-weight: 800;
}
