.rwph-wrap{--rw:#123b82;--rw2:#2563eb;--ink:#14213d;--muted:#75809a;--line:#e3e9f3;direction:rtl;text-align:right;font:inherit;color:var(--ink)}
.rwph-head{display:flex;justify-content:space-between;align-items:end;margin:0 0 24px}.rwph-head h2{margin:0 0 6px;font-size:28px}.rwph-head p{margin:0;color:var(--muted)}
.rwph-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.rwph-card,.rwph-new-ticket{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;margin:0 0 18px;box-shadow:0 12px 35px rgba(25,48,88,.05)}
.rwph-card header{display:flex;gap:15px;justify-content:space-between;align-items:flex-start}.rwph-card h3{margin:4px 0 0;font-size:19px}.rwph-kicker{font-size:12px;color:var(--muted)}.rwph-badge{background:#eef4ff;color:var(--rw);padding:7px 10px;border-radius:999px;font-size:12px;white-space:nowrap}.rwph-badge.ok{background:#ecfdf3;color:#16794b}.rwph-badge.warn{background:#fff6e8;color:#a35b00}
.rwph-progress{height:7px;background:#edf2f8;border-radius:99px;overflow:hidden;margin:20px 0 7px}.rwph-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--rw),var(--rw2));border-radius:99px}.rwph-progress-label{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.rwph-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.rwph-meta span{background:#f8fafc;border-radius:12px;padding:11px}.rwph-meta small,.rwph-meta b{display:block}.rwph-meta small{color:var(--muted);font-size:11px;margin-bottom:4px}.rwph-meta b{font-size:13px}
.rwph-timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}.rwph-timeline div{font-size:11px;color:#9aa3b5;display:flex;align-items:center;gap:6px}.rwph-timeline i{width:9px;height:9px;border-radius:50%;border:2px solid #cbd5e1}.rwph-timeline .done{color:#1f6a4d}.rwph-timeline .done i{background:#22c55e;border-color:#22c55e}
.rwph-table-wrap{overflow:auto}.rwph-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.rwph-table th,.rwph-table td{padding:14px;border-bottom:1px solid var(--line);text-align:right}.rwph-table tr:last-child td{border-bottom:0}
.rwph-empty{padding:28px;border:1px dashed #cbd5e1;border-radius:16px;text-align:center;color:var(--muted);background:#fbfcfe}.rwph-contract-body{max-height:420px;overflow:auto;background:#fbfcfe;border:1px solid var(--line);padding:18px;border-radius:14px;margin:18px 0;line-height:1.9}.rwph-proof{background:#ecfdf3;color:#166534;padding:12px 14px;border-radius:12px}.rwph-action-box,.rwph-reply,.rwph-form{display:grid;gap:12px;margin-top:14px}.rwph-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rwph-form label,.rwph-action-box label{display:grid;gap:6px}.rwph-form input,.rwph-form select,.rwph-form textarea,.rwph-action-box input,.rwph-reply textarea{width:100%;border:1px solid #d9e0ea;border-radius:11px;padding:11px}.rwph-new-ticket summary{cursor:pointer;font-weight:700;color:var(--rw)}
.rwph-thread{display:grid;gap:10px;margin-top:18px}.rwph-message{padding:12px 14px;border-radius:14px;background:#f7f9fc}.rwph-message.staff{background:#edf5ff}.rwph-message b{display:inline-block;margin-left:8px}.rwph-message small{color:var(--muted)}.rwph-message p{margin:8px 0 0}.rwph-site{direction:ltr;text-align:left}
@media(max-width:800px){.rwph-grid{grid-template-columns:1fr}.rwph-meta{grid-template-columns:1fr 1fr}.rwph-timeline{grid-template-columns:1fr 1fr}.rwph-fields{grid-template-columns:1fr}.rwph-card{padding:16px}.rwph-head h2{font-size:23px}}

/* ===== RasmWeb Project Hub 1.1 — grouped WooCommerce account navigation ===== */
.woocommerce-MyAccount-navigation .rwph-nav-heading{display:block!important;margin:18px 0 7px!important;padding:0 13px 7px!important;border:0!important;border-bottom:1px solid #e7ebf2!important;background:transparent!important;color:#8792a5!important;font-size:11px!important;font-weight:800!important;line-height:1.5!important;letter-spacing:0!important;pointer-events:none!important}
.woocommerce-MyAccount-navigation .rwph-nav-heading:first-child{margin-top:0!important}
.woocommerce-MyAccount-navigation ul>li:not(.rwph-nav-heading)>a{border-radius:10px!important;transition:background .18s ease,color .18s ease,transform .18s ease!important}
.woocommerce-MyAccount-navigation ul>li:not(.rwph-nav-heading)>a:hover{background:#f5f8fd!important;color:#123b82!important;transform:translateX(-2px)}
.woocommerce-MyAccount-navigation .is-active>a,.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link.is-active>a{background:#eef4ff!important;color:#123b82!important;font-weight:800!important}

.wd-my-account-links.rwph-dashboard-groups{display:block!important;margin-top:22px!important}
.rwph-account-group{margin:0 0 28px!important}
.rwph-account-group-title{margin:0 0 12px!important;padding:0 2px 9px!important;border-bottom:1px solid #e7ebf2!important;color:#22314b!important;font-size:15px!important;font-weight:900!important;line-height:1.5!important}
.rwph-account-group-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
.rwph-account-group-grid>*{width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;float:none!important}
.rwph-account-group-grid>div,.rwph-account-group-grid>a{border-radius:16px!important;overflow:hidden!important}
@media(max-width:1024px){.rwph-account-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.rwph-account-group{margin-bottom:22px!important}.rwph-account-group-grid{grid-template-columns:1fr!important;gap:10px!important}.rwph-account-group-title{font-size:14px!important}.woocommerce-MyAccount-navigation .rwph-nav-heading{margin-top:14px!important}}
.woocommerce-MyAccount-navigation-link--customer-logout{margin-top:14px!important;padding-top:12px!important;border-top:1px solid #e7ebf2!important}
.woocommerce-MyAccount-navigation-link--customer-logout>a{color:#b42318!important}

/* ===== RasmWeb Project Hub 1.1.1 — polished WooCommerce My Account ===== */
body.woocommerce-account{
  --rw-account-primary:#123b82;
  --rw-account-primary-2:#2563eb;
  --rw-account-ink:#14213d;
  --rw-account-muted:#7a8699;
  --rw-account-line:#e6ebf3;
  --rw-account-soft:#f6f9fd;
  --rw-account-danger:#b42318;
}

/* Give the whole account area a cleaner SaaS-like rhythm without changing Woodmart's outer grid. */
body.woocommerce-account .woocommerce{
  color:var(--rw-account-ink);
}
body.woocommerce-account .woocommerce-MyAccount-navigation{
  position:sticky;
  top:110px;
  align-self:flex-start;
  background:#fff;
  border:1px solid var(--rw-account-line);
  border-radius:20px;
  padding:12px;
  box-shadow:0 14px 40px rgba(20,33,61,.055);
  overflow:hidden;
}
body.admin-bar.woocommerce-account .woocommerce-MyAccount-navigation{top:142px}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul>li{
  margin:2px 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul>li:not(.rwph-nav-heading)>a{
  display:flex!important;
  align-items:center!important;
  min-height:44px!important;
  padding:10px 13px!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  color:#25324a!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.45!important;
  text-decoration:none!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul>li:not(.rwph-nav-heading)>a:hover{
  background:#f5f8fd!important;
  border-color:#edf2f8!important;
  color:var(--rw-account-primary)!important;
  transform:none!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active>a,
body.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link.is-active>a{
  background:linear-gradient(135deg,var(--rw-account-primary),#1e5ac5)!important;
  border-color:transparent!important;
  color:#fff!important;
  font-weight:800!important;
  box-shadow:0 7px 18px rgba(18,59,130,.16)!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation .rwph-nav-heading{
  margin:18px 7px 7px!important;
  padding:0 6px 7px!important;
  border-bottom:1px solid #edf1f6!important;
  color:#98a2b3!important;
  font-size:11px!important;
  font-weight:800!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation .rwph-nav-heading:first-child{margin-top:4px!important}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout{
  margin-top:13px!important;
  padding-top:11px!important;
  border-top:1px solid #edf1f6!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout>a{
  color:var(--rw-account-danger)!important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout>a:hover{
  color:#912018!important;
  background:#fff4f2!important;
  border-color:#fee4e2!important;
}

/* Main content — less empty space, stronger hierarchy. */
body.woocommerce-account .woocommerce-MyAccount-content{
  min-width:0;
}
body.woocommerce-account .woocommerce-MyAccount-content>p:first-child{
  margin:0 0 22px!important;
  padding:17px 19px!important;
  border:1px solid var(--rw-account-line)!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#5f6d82!important;
  line-height:1.9!important;
  box-shadow:0 10px 30px rgba(20,33,61,.035)!important;
}
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3{
  color:var(--rw-account-ink);
}

/* Woodmart dashboard quick links, grouped by Project Hub. */
body.woocommerce-account .wd-my-account-links.rwph-dashboard-groups{
  display:block!important;
  margin:0!important;
}
body.woocommerce-account .rwph-account-group{
  margin:0 0 26px!important;
  padding:0!important;
}
body.woocommerce-account .rwph-account-group-title{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0 0 12px!important;
  padding:0 2px 10px!important;
  border-bottom:1px solid var(--rw-account-line)!important;
  color:#17233b!important;
  font-size:15px!important;
  font-weight:900!important;
}
body.woocommerce-account .rwph-account-group-title:before{
  content:"";
  width:4px;
  height:17px;
  flex:0 0 4px;
  border-radius:99px;
  background:linear-gradient(180deg,var(--rw-account-primary-2),var(--rw-account-primary));
}
body.woocommerce-account .rwph-account-group-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
body.woocommerce-account .rwph-account-group-grid>*{
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  float:none!important;
  border:1px solid var(--rw-account-line)!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:0 9px 26px rgba(20,33,61,.045)!important;
  overflow:hidden!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
body.woocommerce-account .rwph-account-group-grid>*:hover{
  transform:translateY(-2px)!important;
  border-color:#cfdbef!important;
  box-shadow:0 14px 32px rgba(20,33,61,.075)!important;
}
body.woocommerce-account .rwph-account-group-grid>*>a{
  min-height:118px!important;
  padding:20px 16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  color:#24324a!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.45!important;
  text-align:center!important;
  text-decoration:none!important;
  background:transparent!important;
}
/* Woodmart icons are usually rendered through :before on the anchor. Turn them into a quiet branded icon badge. */
body.woocommerce-account .rwph-account-group-grid>*>a:before{
  margin:0!important;
  width:48px!important;
  height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:14px!important;
  background:#f3f7ff!important;
  color:var(--rw-account-primary)!important;
  font-size:28px!important;
  line-height:48px!important;
  transition:background .18s ease,color .18s ease,transform .18s ease!important;
}
body.woocommerce-account .rwph-account-group-grid>*:hover>a:before{
  background:#eaf1ff!important;
  color:#0f4fbd!important;
  transform:scale(1.03)!important;
}

/* Core WooCommerce tables inside My Account. */
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce-table,
body.woocommerce-account .shop_table{
  border:1px solid var(--rw-account-line)!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 9px 28px rgba(20,33,61,.035)!important;
}
body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-table th,
body.woocommerce-account .shop_table th{
  background:#f7f9fc!important;
  color:#526078!important;
  font-size:12px!important;
  font-weight:800!important;
  border-color:var(--rw-account-line)!important;
}
body.woocommerce-account .woocommerce-orders-table td,
body.woocommerce-account .woocommerce-table td,
body.woocommerce-account .shop_table td{
  border-color:var(--rw-account-line)!important;
  vertical-align:middle!important;
}

/* Forms and buttons in account area. */
body.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="number"],
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea{
  min-height:45px!important;
  border:1px solid #dbe2ec!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:none!important;
  transition:border-color .16s ease,box-shadow .16s ease!important;
}
body.woocommerce-account .woocommerce-MyAccount-content textarea{min-height:120px!important}
body.woocommerce-account .woocommerce-MyAccount-content input:focus,
body.woocommerce-account .woocommerce-MyAccount-content select:focus,
body.woocommerce-account .woocommerce-MyAccount-content textarea:focus{
  border-color:#8db1ec!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;
  outline:0!important;
}
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content button.button,
body.woocommerce-account .woocommerce-MyAccount-content a.button{
  min-height:42px!important;
  padding:10px 17px!important;
  border-radius:10px!important;
  font-weight:800!important;
}
body.woocommerce-account .woocommerce-MyAccount-content .button.alt,
body.woocommerce-account .woocommerce-MyAccount-content button.button.alt{
  background:var(--rw-account-primary)!important;
  color:#fff!important;
  border-color:var(--rw-account-primary)!important;
}
body.woocommerce-account .woocommerce-MyAccount-content .button.alt:hover,
body.woocommerce-account .woocommerce-MyAccount-content button.button.alt:hover{
  background:#0f326f!important;
  border-color:#0f326f!important;
}

/* Notices */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error{
  border-radius:13px!important;
  border-width:1px!important;
  box-shadow:none!important;
}

/* Project Hub endpoints already use their own cards; harmonize them with the account shell. */
body.woocommerce-account .rwph-wrap{
  --rw:#123b82;
  --rw2:#2563eb;
}
body.woocommerce-account .rwph-card,
body.woocommerce-account .rwph-new-ticket{
  border-radius:17px!important;
  border-color:var(--rw-account-line)!important;
  box-shadow:0 10px 30px rgba(20,33,61,.045)!important;
}

@media(max-width:1024px){
  body.woocommerce-account .woocommerce-MyAccount-navigation{position:static;top:auto;margin-bottom:20px}
  body.woocommerce-account .rwph-account-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
  body.woocommerce-account .woocommerce-MyAccount-navigation{padding:9px;border-radius:15px}
  body.woocommerce-account .woocommerce-MyAccount-navigation .rwph-nav-heading{margin-top:13px!important}
  body.woocommerce-account .woocommerce-MyAccount-navigation ul>li:not(.rwph-nav-heading)>a{min-height:42px!important;padding:9px 11px!important;font-size:13px!important}
  body.woocommerce-account .rwph-account-group{margin-bottom:22px!important}
  body.woocommerce-account .rwph-account-group-grid{grid-template-columns:1fr!important;gap:10px!important}
  body.woocommerce-account .rwph-account-group-grid>*>a{min-height:88px!important;padding:15px 14px!important;flex-direction:row!important;justify-content:flex-start!important;text-align:right!important}
  body.woocommerce-account .rwph-account-group-grid>*>a:before{width:42px!important;height:42px!important;min-width:42px!important;font-size:24px!important;line-height:42px!important}
  body.woocommerce-account .woocommerce-MyAccount-content>p:first-child{padding:14px 15px!important;border-radius:13px!important}
}
