/* ==========================================================================
   PROTECH MY ACCOUNT PAGE STYLES
   Simple, User-Friendly, Modern UI for WooCommerce Account Endpoints
   ========================================================================== */

/* ── Base Wrapper & Layout ── */
.protech-myaccount-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.protech-myaccount-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Clear Parent Floating / Legacy Constraints ── */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* ── Sidebar Navigation & Profile Card ── */
.protech-myaccount-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.protech-account-user-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.protech-account-user-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
}

.user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.user-avatar-wrap .user-avatar-img,
.user-avatar-wrap img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #2563eb;
  display: block;
}

.user-avatar-placeholder {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
}

.user-info-wrap {
  min-width: 0;
  flex: 1;
}

.user-badge {
  display: inline-block;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.user-display-name {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.user-email-address {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Navigation Menu List ── */
.protech-account-nav-list {
  list-style: none !important;
  padding: 8px !important;
  margin: 0 !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
}

.protech-account-nav-list li {
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-bottom: none !important;
}

.protech-account-nav-list li:last-child {
  margin-bottom: 0 !important;
}

.protech-account-nav-list li a {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  color: #334155 !important;
  font-family: var(--pt-font-heading, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid transparent !important;
}

.protech-account-nav-list li a .nav-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.protech-account-nav-list li a .nav-text-label {
  flex: 1;
}

.protech-account-nav-list li a .nav-chevron {
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Nav Item Hover State */
.protech-account-nav-list li a:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.protech-account-nav-list li a:hover .nav-icon-box {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.protech-account-nav-list li a:hover .nav-chevron {
  color: #2563eb;
  transform: translateX(3px);
}

/* Nav Item Active State */
.protech-account-nav-list li.is-active a,
.protech-account-nav-list li a[aria-current="page"] {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

.protech-account-nav-list li.is-active a .nav-icon-box,
.protech-account-nav-list li a[aria-current="page"] .nav-icon-box {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.protech-account-nav-list li.is-active a .nav-chevron,
.protech-account-nav-list li a[aria-current="page"] .nav-chevron {
  color: #2563eb;
  transform: translateX(3px);
}

/* Logout Special Item */
.protech-account-nav-list li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fee2e2 !important;
}

.protech-account-nav-list li.woocommerce-MyAccount-navigation-link--customer-logout a:hover .nav-icon-box {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* ── Content Card Container ── */
.protech-myaccount-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
  min-height: 480px;
}

/* ── Section Headings & Subtitles ── */
.protech-account-section .section-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.protech-account-section .section-header.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.protech-account-section .section-tag {
  display: inline-block;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 4px;
}

.protech-account-section .section-title {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.protech-account-section .section-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ── Dashboard: Welcome Banner ── */
.dashboard-welcome-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid #e2e8f0;
  border-left: 5px solid #2563eb;
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard-welcome-banner .banner-tag {
  display: inline-block;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 4px;
}

.dashboard-welcome-banner .banner-title {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  text-transform: none;
}

.dashboard-welcome-banner .banner-subtitle {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
  max-width: 520px;
}

.dashboard-welcome-banner .btn-logout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dashboard-welcome-banner .btn-logout-link:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* ── Dashboard: Quick Action 2x2 Grid ── */
.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.dashboard-card:hover {
  border-color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12);
}

.dashboard-card .card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.dashboard-card:hover .card-icon-box {
  transform: scale(1.08);
}

.dashboard-card .card-icon-box.icon-orders {
  background: #eff6ff;
  color: #2563eb;
}

.dashboard-card .card-icon-box.icon-addresses {
  background: #f0fdf4;
  color: #16a34a;
}

.dashboard-card .card-icon-box.icon-account {
  background: #f5f3ff;
  color: #7c3aed;
}

.dashboard-card .card-icon-box.icon-shop {
  background: #fffbeb;
  color: #d97706;
}

.dashboard-card .card-content {
  flex: 1;
}

.dashboard-card .card-title {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
  margin: 0 0 6px 0;
  transition: color 0.2s ease;
}

.dashboard-card:hover .card-title {
  color: #2563eb;
}

.dashboard-card .card-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 12px 0;
  line-height: 1.45;
}

.dashboard-card .card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2563eb;
  transition: gap 0.2s ease;
}

.dashboard-card:hover .card-action-link {
  gap: 9px;
}

/* ── Orders Table & Status Pills ── */
.orders-table-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.protech-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 !important;
  font-size: 13.5px;
}

.protech-orders-table th {
  background: #f8fafc;
  color: #475569;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.protech-orders-table td,
.protech-orders-table th.woocommerce-orders-table__cell {
  padding: 16px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.protech-orders-table tr:last-child td,
.protech-orders-table tr:last-child th.woocommerce-orders-table__cell {
  border-bottom: none;
}

.protech-orders-table tr:hover td,
.protech-orders-table tr:hover th.woocommerce-orders-table__cell {
  background: #fbfcfe;
}

.order-number-link {
  font-family: var(--pt-font-heading, sans-serif);
  font-weight: 800;
  font-size: 14px;
  color: #2563eb !important;
  text-decoration: none !important;
}

.order-number-link:hover {
  text-decoration: underline !important;
}

.order-date-text {
  color: #64748b;
  font-size: 13px;
}

/* Order Status Badges */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.order-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.order-status-badge.status-completed {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.order-status-badge.status-processing {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.order-status-badge.status-on-hold {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.order-status-badge.status-pending {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.order-status-badge.status-cancelled,
.order-status-badge.status-failed {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.order-status-badge.status-refunded {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.order-total-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-total-wrap .total-amount {
  font-weight: 700;
  color: #0f172a;
}

.order-total-wrap .item-count {
  font-size: 12px;
  color: #94a3b8;
}

/* Action Button in Orders */
.protech-btn-action,
.woocommerce-orders-table .button.view {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: var(--pt-font-heading, sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 7px 16px !important;
  text-decoration: none !important;
  display: inline-block !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap;
}

.protech-btn-action:hover,
.woocommerce-orders-table .button.view:hover {
  background: #0f172a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3) !important;
}

/* Pagination */
.protech-account-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.protech-account-pagination .button {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-family: var(--pt-font-heading, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 8px 18px !important;
  transition: all 0.2s ease !important;
}

.protech-account-pagination .button:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

/* ── Empty State ── */
.protech-empty-account-state {
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
}

.protech-empty-account-state .empty-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.protech-empty-account-state .empty-title {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.protech-empty-account-state .empty-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

.protech-empty-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 28px !important;
  text-decoration: none !important;
}

/* ── View Order Details Screen ── */
.back-to-orders-link,
.back-to-addresses-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.back-to-orders-link:hover,
.back-to-addresses-link:hover {
  color: #2563eb;
}

.order-summary-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 28px;
}

.order-summary-banner .summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-summary-banner .summary-label {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.order-summary-banner .summary-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.order-summary-banner .summary-value.total-highlight {
  color: #2563eb;
  font-size: 16px;
}

.order-updates-block {
  margin-bottom: 28px;
}

.order-updates-block .updates-heading {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.protech-order-updates-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.protech-order-updates-list li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
  padding: 14px 18px;
}

.protech-order-updates-list .meta {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 4px 0;
}

.protech-order-updates-list .description {
  font-size: 13.5px;
  color: #1e293b;
  margin: 0;
}

/* Order Details Table Overrides */
.woocommerce-order-details {
  margin-bottom: 32px;
}

.woocommerce-order-details__title {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 16px 0;
}

.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}

.woocommerce-table--order-details thead th {
  background: #f8fafc;
  color: #475569;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.woocommerce-table--order-details tfoot th {
  background: #fafafa;
  font-weight: 700;
  color: #334155;
  text-align: left;
}

.woocommerce-table--order-details tfoot td {
  background: #fafafa;
  font-weight: 700;
  color: #0f172a;
}

/* Customer Addresses in View Order */
.woocommerce-customer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.woocommerce-customer-details .woocommerce-column__title {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.woocommerce-customer-details address {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
  font-style: normal;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

/* ── Address Book (Billing & Shipping Cards) ── */
.protech-address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.protech-address-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.protech-address-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

.address-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.address-type-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-type-info .address-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-type-info .address-title {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
  margin: 0;
}

.btn-edit-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155 !important;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-edit-address:hover {
  background: #2563eb;
  color: #ffffff !important;
}

.formatted-address {
  font-style: normal;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.address-empty-text {
  color: #94a3b8;
  font-style: italic;
}

/* ==========================================================================
   FORM CONTROLS, ADDRESS & ACCOUNT FIELD STRUCTURE (Fixed Alignment)
   ========================================================================== */

/* ── Container Flexbox System ── */
.woocommerce-address-fields__field-wrapper,
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.protech-form-fields-flex {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 0 !important;
}

/* ── Individual Form Rows ── */
.protech-myaccount-content .form-row,
.woocommerce-address-fields .form-row,
.woocommerce-EditAccountForm .form-row,
.protech-edit-address-section .form-row,
.protech-edit-account-section .form-row {
  display: block !important;
  float: none !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* First Column Field (Left 48.5%) */
.protech-myaccount-content .form-row-first,
.protech-myaccount-content .woocommerce-form-row--first,
.woocommerce-address-fields .form-row-first,
.woocommerce-EditAccountForm .form-row-first,
.protech-edit-address-section .form-row-first {
  width: calc(50% - 10px) !important;
  flex: 0 0 calc(50% - 10px) !important;
  max-width: calc(50% - 10px) !important;
  float: none !important;
  clear: none !important;
}

/* Last Column Field (Right 48.5%) */
.protech-myaccount-content .form-row-last,
.protech-myaccount-content .woocommerce-form-row--last,
.woocommerce-address-fields .form-row-last,
.woocommerce-EditAccountForm .form-row-last,
.protech-edit-address-section .form-row-last {
  width: calc(50% - 10px) !important;
  flex: 0 0 calc(50% - 10px) !important;
  max-width: calc(50% - 10px) !important;
  float: none !important;
  clear: none !important;
}

/* Full Width Field (100%) */
.protech-myaccount-content .form-row-wide,
.protech-myaccount-content .woocommerce-form-row--wide,
.woocommerce-address-fields .form-row-wide,
.woocommerce-EditAccountForm .form-row-wide,
.protech-edit-address-section .form-row-wide,
.protech-myaccount-content .form-row:not(.form-row-first):not(.form-row-last):not(.woocommerce-form-row--first):not(.woocommerce-form-row--last) {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* ── Label Styling ── */
.protech-myaccount-content .form-row label,
.woocommerce-address-fields .form-row label,
.woocommerce-EditAccountForm .form-row label,
.protech-auth-card label {
  display: block !important;
  font-family: var(--pt-font-heading, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
}

.protech-myaccount-content label .required,
.woocommerce-address-fields label .required,
.woocommerce-EditAccountForm label .required,
.protech-auth-card label .required {
  color: #dc2626 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

/* ── Input Wrappers & Fields ── */
.woocommerce-input-wrapper {
  display: block !important;
  width: 100% !important;
}

.protech-myaccount-content input.input-text,
.protech-myaccount-content select,
.protech-myaccount-content textarea,
.woocommerce-address-fields input.input-text,
.woocommerce-address-fields select,
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm select,
.protech-auth-card input.input-text,
.protech-auth-card input.input {
  display: block !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  outline: none !important;
  min-height: 44px !important;
  line-height: 1.5 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.protech-myaccount-content textarea {
  min-height: 90px !important;
  resize: vertical !important;
}

.protech-myaccount-content input.input-text:focus,
.protech-myaccount-content select:focus,
.protech-myaccount-content textarea:focus,
.woocommerce-address-fields input.input-text:focus,
.woocommerce-address-fields select:focus,
.woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-EditAccountForm select:focus,
.protech-auth-card input.input-text:focus,
.protech-auth-card input.input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14) !important;
  background: #ffffff !important;
}

/* ── Select2 Customization ── */
.protech-myaccount-content .select2-container,
.woocommerce-address-fields .select2-container {
  width: 100% !important;
  display: block !important;
}

.protech-myaccount-content .select2-container--default .select2-selection--single,
.woocommerce-address-fields .select2-container--default .select2-selection--single {
  height: 44px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.protech-myaccount-content .select2-container--default .select2-selection--single .select2-selection__rendered,
.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  padding-left: 0 !important;
}

.protech-myaccount-content .select2-container--default .select2-selection--single .select2-selection__arrow,
.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
  right: 12px !important;
}

.protech-myaccount-content .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.14) !important;
}

/* ── Form Section Cards (Account Details & Password) ── */
.form-section-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

.form-section-card .card-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.form-section-card .section-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.form-section-card .card-inner-title {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0;
}

.form-section-card .card-inner-subtitle {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.form-field-hint {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.35;
}

.form-submit-row {
  margin-top: 24px;
}

.protech-save-btn,
.protech-auth-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 32px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

/* ── Login & Register Forms (Split Layout) ── */
.protech-auth-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.protech-auth-wrapper.has-registration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.protech-auth-wrapper.single-auth-column {
  max-width: 480px;
  margin: 0 auto;
}

.protech-auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.05);
}

.auth-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.auth-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-icon-wrap.register-icon {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.auth-icon-wrap.icon-success {
  background: #ecfdf5;
  color: #059669;
}

.auth-header-text {
  flex: 1;
}

.auth-badge {
  display: inline-block;
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.auth-badge.badge-new {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
}

.auth-badge.badge-success {
  color: #059669;
  background: #ecfdf5;
}

.auth-title {
  font-family: var(--pt-font-heading, sans-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.auth-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* Registration Benefits */
.register-benefits {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
}

.protech-auth-form .form-group-item {
  margin-bottom: 16px;
}

.protech-auth-form .form-row-split-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .protech-auth-form .form-row-split-names {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.protech-auth-card .woocommerce-privacy-policy-text {
  display: none !important;
}

.form-options-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 16px 0 20px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.custom-checkbox-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--pt-font-body, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  user-select: none !important;
}

.custom-checkbox-label input[type="checkbox"],
.custom-checkbox-label .woocommerce-form__input-checkbox {
  margin: 0 !important;
  padding: 0 !important;
  width: 16px !important;
  height: 16px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  accent-color: #2563eb !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

.custom-checkbox-label .checkbox-text {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1 !important;
}

.lost-password-link {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #dc2626 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: color 0.2s ease !important;
}

.lost-password-link:hover {
  color: #b91c1c !important;
  text-decoration: underline !important;
}

.auth-footer-link {
  margin-top: 20px;
  text-align: center;
}

.auth-footer-link .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer-link .back-link:hover {
  color: #2563eb;
}

.confirmation-body {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── WooCommerce Notices in Account ── */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-radius: 8px !important;
  padding: 14px 20px !important;
  font-size: 13.5px !important;
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.woocommerce-message {
  background: #f0fdf4 !important;
  border-left: 4px solid #16a34a !important;
  color: #15803d !important;
}

.woocommerce-error {
  background: #fef2f2 !important;
  border-left: 4px solid #dc2626 !important;
  color: #b91c1c !important;
}

.woocommerce-info {
  background: #eff6ff !important;
  border-left: 4px solid #2563eb !important;
  color: #1d4ed8 !important;
}

/* ── Responsive Adjustments ── */
@media (max-width: 991px) {
  .protech-myaccount-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .protech-auth-wrapper.has-registration {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .order-summary-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .protech-myaccount-content {
    padding: 24px 18px;
  }

  .dashboard-action-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .protech-address-grid {
    grid-template-columns: 1fr;
  }

  .woocommerce-customer-details {
    grid-template-columns: 1fr;
  }

  .order-summary-banner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .protech-auth-card {
    padding: 24px 20px;
  }

  /* Form Rows on Mobile: 100% width */
  .protech-myaccount-content .form-row-first,
  .protech-myaccount-content .form-row-last,
  .protech-myaccount-content .woocommerce-form-row--first,
  .protech-myaccount-content .woocommerce-form-row--last,
  .woocommerce-address-fields .form-row-first,
  .woocommerce-address-fields .form-row-last,
  .woocommerce-EditAccountForm .form-row-first,
  .woocommerce-EditAccountForm .form-row-last {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Responsive Orders Table to Cards on mobile */
  .protech-orders-table thead {
    display: none;
  }

  .protech-orders-table,
  .protech-orders-table tbody,
  .protech-orders-table tr,
  .protech-orders-table td,
  .protech-orders-table th.woocommerce-orders-table__cell {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .protech-orders-table tr {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  }

  .protech-orders-table td,
  .protech-orders-table th.woocommerce-orders-table__cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
  }

  .protech-orders-table td:last-child,
  .protech-orders-table th.woocommerce-orders-table__cell:last-child {
    border-bottom: none;
    padding-top: 12px;
  }

  .protech-orders-table td::before,
  .protech-orders-table th.woocommerce-orders-table__cell::before {
    content: attr(data-title);
    font-family: var(--pt-font-heading, sans-serif);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    text-align: left;
    margin-right: 12px;
  }
}
