/* Premium Moving vendor dashboard */
:root{
  --pm-bg:rgba(20, 34, 45, 0.9);
  --pm-card:#14222d;
  --pm-card-ink:#dad9d7;
  --pm-accent:#bf7d5a;
  --pm-ink:#1a1a1a;
  --pm-ink-soft:#475569;
  --pm-surface:#f5f7fb;
  --pm-border:rgba(0,0,0,.06);
  --pm-blue:#325a7a;
}

body.woocommerce-account .pm-dashboard{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 48px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Card wrapper using existing structure */
body.woocommerce-account .pm-dashboard h2.pm-title,
body.woocommerce-account .pm-dashboard .pm-title {
  font-weight: 600;
  font-size: 28px;
  margin: 8px 0 20px;
  color: #ffffff !important;
}

/* Turn each section into a “card” feel without changing markup */
.pm-dashboard hr{
  display: none;
}

.pm-dashboard h3{
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--pm-card-ink);
}

/* Card blocks */
.pm-dashboard .pm-card{
  background: var(--pm-card);
  color: var(--pm-card-ink);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(20,34,45,.18);
  padding: 18px 18px;
  margin: 18px 0;
}

/* Make your existing sections look like cards */
.pm-dashboard .pm-card + .pm-card{ margin-top: 16px; }

/* Table style for your existing tables */
.pm-dashboard .pm-table{
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  overflow: hidden;
}

.pm-dashboard .pm-table thead th{
  text-align: left;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 12px 14px;
  color: #cfd6dc;
  background: rgba(255,255,255,.04);
}

.pm-dashboard .pm-table tbody td{
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--pm-card-ink);
  vertical-align: middle;
}

.pm-dashboard .pm-table tbody tr:hover{
  background: rgba(255,255,255,.06);
}

/* Buttons */
.pm-dashboard .button,
.pm-dashboard a.button{
  background: var(--pm-accent);
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  line-height: 1.1;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(191,125,90,.35);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}

.pm-dashboard .button:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(191,125,90,.45);
}

/* Credit pill near the top */
.pm-dashboard .pm-credit-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(136,176,207,.16);
  color: #deeffc;
  border: 1px solid rgba(136,176,207,.25);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin: 0 0 8px;
}

/* Modal tweaks to match brand */
.pm-modal{
  background: rgba(20,34,45,.6);
}
.pm-modal-content{
  background: var(--pm-card);
  color: var(--pm-card-ink);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(20,34,45,.5);
}
#pm-job-fields strong{
  color: #deeffc;
}
.pm-close{ color: #deeffc; }

/* === PM modal baseline === */
.pm-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
}

/* FIX: force centering ONLY when modal is opened */
.pm-modal[style*="display: block"] {
    display: flex !important;
    justify-content: center;
    align-items: center;
}




/* Centered modal card */
.pm-modal-content {
  background: #0f1821;
  color: #fff;
  width: 90%;
  max-width: 480px;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  position: relative;
  text-align: left;
  font-family: inherit;
}

/* Close icon */
.pm-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* Modal open body lock */
body.pm-modal-open {
  overflow: hidden;
}

/* Buttons inside modal */
.pm-modal .pm-btn,
.pm-modal a.pm-btn {
  display: inline-block;
  background: #BF7D5A;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.pm-modal .pm-btn:hover {
  background: #ff8647;
}

.pm-modal[style*="display: block"] .pm-modal-content {
  animation: pmModalFade 0.25s ease-out;
}

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

body.woocommerce-account .pm-dashboard {
    background: rgba(20, 34, 45, 0.9) !important;
}






/* Center-align all content inside the modal */
.pm-modal-content {
    text-align: center;
}

/* Make the modal title white */
.pm-modal-content h3 {
    color: #ffffff !important;
    text-align: center;
}

/* Equal-width credit buttons */
.pm-modal-content .pm-btn {
    display: block;
    width: 100%;
    max-width: 260px; /* adjust as needed */
    margin: 0 auto 14px;
    text-align: center;
}

.pm-dashboard h2.pm-title {
    color: #ffffff !important;
}


/* Brand colour override for all dashboard buttons */
.pm-dashboard .pm-btn,
.pm-dashboard a.pm-btn,
.pm-dashboard .button,
.pm-dashboard a.button {
    background: #bf7d5a !important;
    box-shadow: 0 4px 14px rgba(191,125,90,.35) !important;
}

/* Brand colour for clickable table links */
.pm-dashboard .pm-table a {
    color: #bf7d5a !important;
}
.pm-dashboard .pm-table a:hover {
    color: #d89f80 !important;
}



/* Base PM button style */
.pm-dashboard .pm-btn,
.pm-dashboard a.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #bf7d5a; /* brand */
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(191,125,90,.35);
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}

/* Small size variant used in the table */
.pm-dashboard .pm-btn.pm-btn--sm {
    min-width: 140px;
    padding: 6px 12px;
}

/* Hover state */
.pm-dashboard .pm-btn:hover,
.pm-dashboard a.pm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(191,125,90,.45);
    background: #d89f80;
}
