/*
Theme Name: Serpworks FreeAgent Child
Theme URI: https://serpworks.com/
Description: Serpworks FreeAgent Child: original service cards, single-service customizations and new Services Directory V1 design. Parent FreeAgent theme required.
Author: Serpworks
Template: freeagent
Version: 2.9.85
Text Domain: serpworks-freeagent-child
*/

/* SERPWORKS DASHBOARD LOGO PANEL V1 — 2026-11-04
   Only the top-left JWS dashboard logo panel changes to white.
   The logo image still comes from JWS Theme Options > Dashboard > Logo Dashboard.
   No sidebar background, other header sections, or dashboards actions are changed. */
body .dash_header > .logo {
  background: #fff !important;
  background-color: #fff !important;
  border-right: 1px solid #eee9f7;
}


/* SERPWORKS DASHBOARD LOGO PANEL V2 — 2026-11-04
   Keep the chosen JWS dashboard logo. White panel on mobile too;
   enlarge only the desktop image. No header/side navigation resizing. */
body .dash_header > .logo,
body .dash_header > .logo .main-logo,
body .dash_header > .logo .favi-logo {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Desktop logo: increase the artwork without changing panel dimensions. */
@media (min-width: 1025px) {
  body .dash_header > .logo .main-logo,
  body .dash_header > .logo .main-logo > a {
    max-width: none !important;
  }
  body .dash_header > .logo .main-logo img {
    width: 210px !important;
    max-width: calc(100% - 12px) !important;
    height: auto !important;
    max-height: 60px !important;
    object-fit: contain !important;
  }
}

/* SERPWORKS DASHBOARD LOGO PANEL V3 — responsive logo, 2026-11-04
   Desktop keeps the JWS Theme Options logo on white (V2 above).
   Mobile/tablet use the requested white/blue artwork on dark navy.
   Logo remains clickable via the existing FreeAgent anchor. */
@media (max-width: 1024px) {
  body .dash_header > .logo {
    background: #08252b !important;
    background-color: #08252b !important;
    background-image: none !important;
    border-right-color: transparent;
  }
  body .dash_header > .logo .main-logo,
  body .dash_header > .logo .favi-logo {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }
  body .dash_header > .logo .main-logo > a,
  body .dash_header > .logo .favi-logo > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
    line-height: 1;
  }
  /* Hide only the on-page theme-settings logo at this breakpoint.
     On desktop it remains completely untouched. */
  body .dash_header > .logo .main-logo > a img,
  body .dash_header > .logo .favi-logo > a img {
    display: none !important;
  }
  body .dash_header > .logo .main-logo > a::after,
  body .dash_header > .logo .favi-logo > a::after {
    content: "";
    display: block;
    width: 210px;
    max-width: 100%;
    height: 48px;
    background: url("https://serpworks.com/wp-content/uploads/2026/09/Logo-white-and-blue-serpworks.png") center / contain no-repeat;
  }
  body .dash_header > .logo::before,
  body .dash_header > .logo::after {
    background-color: transparent !important;
    background-image: none !important;
  }
}
@media (max-width: 767px) {
  body .dash_header > .logo .main-logo > a::after,
  body .dash_header > .logo .favi-logo > a::after {
    height: 44px;
  }
}

/* SERPWORKS SERVICE DIRECTORY V2.8 — ACF badges on classic service cards
   Scoped to the /services/ archive; does not affect the single-service page.
   Artwork/colors are inherited from the existing FreeAgent Customizer CSS. */
body.post-type-archive-services .jws-services-layout1 .jws-service-content
.sw28-directory-service-badges {
  display: flex;
  justify-content: center !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #efe8f8;
}
body.post-type-archive-services .jws-services-layout1 .jws-service-content
.sw28-directory-service-badges .vetted-badge {
  max-width: 100%;
  min-width: 0;
  font-size: 10px;
  line-height: 1.35;
  padding: 5px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
body.post-type-archive-services .jws-services-layout1 .jws-service-content
.sw28-directory-service-badges .vetted-badge:is(
  .badge-level_1_seller,
  .badge-level_2_seller,
  .badge-level_3_seller,
  .badge-vetted_seller_badge
) {
  width: 115px;
  height: 48px;
  padding: 0;
  flex-shrink: 1;
  font-size: 0;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  border: 0;
}
@media (max-width: 420px) {
  body.post-type-archive-services .jws-services-layout1 .jws-service-content
  .sw28-directory-service-badges .vetted-badge:is(
    .badge-level_1_seller,
    .badge-level_2_seller,
    .badge-level_3_seller,
    .badge-vetted_seller_badge
  ) {
    width: 106px;
    height: 44px;
  }
}

/* v2.9.15 — Five-star rating design for existing FreeAgent service cards. */
.jws-service-content .sw-card-rating {display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-height:22px;line-height:1.2;}
.jws-service-content .sw-card-rating .sw-card-rating-label {font-size:12px;font-weight:600;color:#596875;}
.jws-service-content .sw-card-rating-stars {position:relative;display:inline-flex;align-items:center;flex:none;width:85px;height:18px;line-height:1;vertical-align:middle;}
.jws-service-content .sw-card-rating-empty,.jws-service-content .sw-card-rating-filled {position:absolute;left:0;top:0;display:flex!important;width:85px;height:18px;align-items:center;gap:0;white-space:nowrap;color:#D5DBE3;}
.jws-service-content .sw-card-rating-filled {overflow:hidden;max-width:85px;color:#F5B819;z-index:1;}
.jws-service-content .sw-card-rating-stars svg {display:block;flex:none;width:17px;height:17px;}
.jws-service-content .sw-card-rating-number {font-size:12px;color:#425260;white-space:nowrap;}
.jws-service-content .sw-card-rating-number .total_review {margin-left:2px;color:#7b8791;}

/* V2.9.56: Logged-out proposal links never carry FreeAgent's modal classes.
   Preserve the visual styling of their corresponding logged-in buttons. */
a.sw-guest-proposal-link { text-decoration:none!important; cursor:pointer; }
body.single-jobs .job-widget a.sw-guest-proposal-single,
#jobs-quickview-inner .job-widget a.sw-guest-proposal-single {
  display:flex!important; width:100%; min-height:48px; align-items:center; justify-content:center;
  gap:9px; padding:12px 18px!important; border:0!important; border-radius:10px!important;
  color:#fff!important; background:linear-gradient(115deg,#8135d5,#6225a9)!important;
  font-weight:750!important; font-size:15px!important; line-height:1.4!important;
  box-shadow:0 5px 13px rgba(100,32,171,.15)!important;
}
body.single-jobs .job-widget a.sw-guest-proposal-single:hover,
#jobs-quickview-inner .job-widget a.sw-guest-proposal-single:hover { filter:brightness(1.08); }
.swjd-directory .swjd-jobs-grid.jws_job_layout5 a.sw-guest-proposal-directory,
.jws_job_wap a.sw-guest-proposal-directory,
.related_jobs a.sw-guest-proposal-directory {
  display:inline-flex!important; flex:0 0 auto!important;
  min-height:45px!important; align-items:center; justify-content:center;
  padding:11px 21px!important; border:0!important; border-radius:9px!important;
  color:#fff!important; background:linear-gradient(115deg,#8b3dec,#5c188f)!important;
  font-size:14px!important; line-height:1.25!important; font-weight:750!important;
  box-shadow:0 5px 13px rgba(100,32,171,.15)!important;
}
.jws_job_wap a.sw-guest-proposal-directory:hover,
.related_jobs a.sw-guest-proposal-directory:hover { filter:brightness(1.08); }
body.single-jobs .related_jobs a.sw-guest-proposal-directory,
#jobs-quickview-inner .related_jobs a.sw-guest-proposal-directory {
  min-height:43px!important; padding:10px 18px!important; font-size:13px!important;
}
@media (max-width:767px) {
  body.single-jobs .related_jobs a.sw-guest-proposal-directory { flex:1 1 auto!important; min-width:130px!important; }
  .swjd-directory .swjd-jobs-grid.jws_job_layout5 a.sw-guest-proposal-directory {
    padding:10px 12px!important; font-size:12.5px!important; min-height:42px!important;
  }
}
