/* GWW_BUSINESS_REVIEW_BUTTON_UX_V2 */
.gww-business-review-btn { background:#fff!important; color:#245fae!important; border:1px solid #2f7de1!important; text-decoration:none!important; }
.gww-business-review-btn:hover { background:#eef5ff!important; color:#174f99!important; text-decoration:none!important; }
.gww-business-contact-card > .gww-business-primary-btn,
.gww-business-contact-card > .gww-business-secondary-btn { width:100%!important; min-height:44px!important; display:flex!important; align-items:center!important; justify-content:center!important; text-align:center!important; white-space:normal!important; padding:10px 12px!important; }


/* GWW_BUSINESS_PROFILE_MOCKUP_LAYOUT_V5 */
@media (min-width: 900px) {
    .gww-profile-tier--business .gww-business-hero-copy,
    .gww-modern-business-profile.gww-profile-tier .gww-business-hero-copy {
        width: min(720px, 100%) !important;
        max-width: 720px !important;
    }

    .gww-profile-tier--business .gww-business-hero-actions,
    .gww-modern-business-profile.gww-profile-tier .gww-business-hero-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        max-width: none !important;
        gap: 10px !important;
    }

    .gww-profile-tier--business .gww-business-hero-actions > *,
    .gww-profile-tier--business .gww-business-hero-btn,
    .gww-modern-business-profile.gww-profile-tier .gww-business-hero-actions > *,
    .gww-modern-business-profile.gww-profile-tier .gww-business-hero-btn {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

.gww-business-contact-card > .gww-business-primary-btn,
.gww-business-contact-card > .gww-business-secondary-btn {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* GWW_BUSINESS_HERO_WIDE_CARD_V6
   Desktop-only: preserve the existing two-column hero and photo position,
   but allow the business information card in column 2 to use the available space.
*/
@media (min-width: 900px) {
    html body .gww-profile-tier--business.gww-tier-advanced
    .gww-business-hero .gww-business-hero-copy,
    html body .gww-modern-business-profile.gww-profile-tier.gww-tier-advanced
    .gww-business-hero .gww-business-hero-copy {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        align-self: center !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
    }

    html body .gww-profile-tier--business.gww-tier-advanced
    .gww-business-hero .gww-business-hero-actions,
    html body .gww-modern-business-profile.gww-profile-tier.gww-tier-advanced
    .gww-business-hero .gww-business-hero-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        max-width: 100% !important;
        gap: 10px !important;
    }

    html body .gww-profile-tier--business.gww-tier-advanced
    .gww-business-hero .gww-business-hero-actions > *,
    html body .gww-modern-business-profile.gww-profile-tier.gww-tier-advanced
    .gww-business-hero .gww-business-hero-actions > * {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        white-space: nowrap !important;
    }
}


/* GWW_BUSINESS_HERO_GRID_FLEX_V7
   Desktop-only. Fix the actual parent grid track that capped column 2 at 500/520px.
*/
@media (min-width: 901px) {
  html body .gww-profile-tier--business.gww-tier-advanced .gww-business-hero-grid,
  html body .gww-modern-business-profile.gww-profile-tier.gww-tier-advanced .gww-business-hero-grid {
    display:grid !important;
    grid-template-columns:max-content minmax(0,1fr) !important;
    gap:22px !important;
    width:min(1180px,calc(100% - 40px)) !important;
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  html body .gww-profile-tier--business.gww-tier-advanced .gww-business-hero-grid > .gww-business-logo-card,
  html body .gww-modern-business-profile.gww-profile-tier.gww-tier-advanced .gww-business-hero-grid > .gww-business-logo-card {
    grid-column:1 !important;
    grid-row:1 !important;
  }

  html body .gww-profile-tier--business.gww-tier-advanced .gww-business-hero-grid > .gww-business-hero-copy,
  html body .gww-modern-business-profile.gww-profile-tier.gww-tier-advanced .gww-business-hero-grid > .gww-business-hero-copy {
    grid-column:2 !important;
    grid-row:1 !important;
    justify-self:stretch !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}


/* GWW_BUSINESS_HERO_SOCIAL_ICON_POLISH_V9_1
   Visual-only: slightly smaller/tighter social icons in the business hero.
*/
.gww-profile-tier--business .gww-business-hero-copy .gww-share {
    gap: 7px !important;
}

.gww-profile-tier--business .gww-business-hero-copy .gww-share a {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 13px !important;
    line-height: 30px !important;
}


/* GWW_BUSINESS_CONTACT_SIDEBAR_POLISH_V10
   Desktop-only, visual-only: lightly tighten the Basic/Modern business contact sidebar.
   Width, typography, button dimensions and functionality are intentionally preserved.
*/
@media (min-width: 901px) {
    .gww-modern-business-profile.gww-profile-tier--business
    .gww-business-contact-card .gww-business-contact-line.gww-contact-item {
        padding-top: 11px !important;
        padding-bottom: 11px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .gww-modern-business-profile.gww-profile-tier--business
    .gww-business-contact-card > .gww-business-primary-btn {
        margin-top: 10px !important;
        margin-bottom: 6px !important;
    }

    .gww-modern-business-profile.gww-profile-tier--business
    .gww-business-contact-card > .gww-business-secondary-btn {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* GWW_BUSINESS_SIDEBAR_WEBSITE_GRID_SPAN_V16 */
@media (min-width: 901px) {
 .gww-profile-tier--business .gww-business-contact-card .gww78-website-row > .gww81-contact-copy {
   grid-column: 1 / -1 !important;
   width: 100% !important;
   max-width: 100% !important;
 }
 .gww-profile-tier--business .gww-business-contact-card .gww78-website-row > .gww81-contact-copy > .gww81-contact-label {
   margin-left: 42px !important;
 }
 .gww-profile-tier--business .gww-business-contact-card .gww78-website-row > .gww81-contact-copy > a.gww-business-stats-btn[data-type="website_clicks"] {
   width: 100% !important;
   max-width: 100% !important;
   margin-left: 0 !important;
   margin-right: 0 !important;
 }
}
