/**
 * GMB product route chrome — grid/display shims + custom-header overrides.
 * Loads after whatsapp-shell.css on /google-business-profile-management-tool.
 */

/* ----- Minimal Bootstrap grid / display (GMB header + footer only) ----- */
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  width: 100%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 576px) {
  .d-sm-none {
    display: none !important;
  }

  .d-sm-flex {
    display: flex !important;
  }

  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }

  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Desktop GMB header visibility (replaces d-none d-lg-block) */
.theme-main-menu-whatsapp.custom-header {
  display: none !important;
}

@media (min-width: 992px) {
  .theme-main-menu-whatsapp.custom-header {
    display: flex !important;
  }
}

/* ----- GMB custom-header (from GmbHeader inline styles) ----- */
.custom-header .navbar-nav .nav-item .nav-link:hover {
  color: #3b82f6 !important;
}

.main-logo {
  position: relative;
  height: 46px;
  width: 180px;
  overflow: hidden;
}

.main-logo img {
  position: absolute;
  left: 0;
  transition: transform 0.3s ease-in-out;
}

.main-logo img:first-child {
  transform: translateY(0);
}

.main-logo img:last-child {
  transform: translateY(100%);
}

.main-logo:hover img:first-child {
  transform: translateY(-100%);
}

.main-logo:hover img:last-child {
  transform: translateY(0);
}

.custom-header .start-free-trial-link {
  background-color: #3b82f6 !important;
  color: white !important;
  padding: 12px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  text-transform: none !important;
  width: 144px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border: none !important;
  box-shadow: none !important;
  transition: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.theme-main-menu-whatsapp.custom-header {
  position: fixed !important;
  z-index: 99 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: transparent !important;
  transition: all 0.4s ease-out !important;
  box-shadow: 0 13px 10px -13px rgba(35, 35, 35, 0.1) !important;
  height: 66px !important;
  align-items: center !important;
}

.theme-main-menu-whatsapp.custom-header.fixed {
  position: fixed !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.theme-main-menu-whatsapp.custom-header .new-inner-class {
  height: 100% !important;
}

.theme-main-menu-whatsapp {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.custom-header .start-free-trial-link:hover {
  background-color: #f6f6f6 !important;
  color: #3b82f6 !important;
  border: 2px solid #3b82f6 !important;
}

.custom-header .start-free-trial-link::before {
  display: none !important;
}

/* ----- Footer extras ----- */
.theme-footer-one {
  background-color: #f6f6f6 !important;
  margin-top: 0 !important;
}

.top-footer,
.bottom-footer,
.bottom-footer-content {
  background-color: #f6f6f6;
}

.footer-about-widget .email {
  font-size: 2vh;
  color: var(--text-color);
  margin: 12px 0 10px;
  display: block;
  text-decoration: none;
}

.footer-about-widget .phone {
  font-size: 2vh;
  color: var(--heading);
  text-decoration: none;
}

.bottom-footer-content {
  padding: 42px 0;
}

.bottom-footer-content p {
  text-align: center;
  margin: 0;
}

.footer-list-ul li a {
  white-space: nowrap;
  display: inline-block;
  margin-bottom: 4px;
  text-decoration: none;
  color: var(--text-color);
}

.footer-list-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .top-footer [class*="col-"] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .footer-list-ul {
    text-align: center;
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 992px) {
  .top-footer .footer-list:not(:last-child) {
    margin-right: 50px;
  }
}

.pt-40 {
  padding-top: 40px !important;
}

.gmb-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
}

.gmb-social-list li a {
  color: #555;
  transition: color 0.2s;
}

.gmb-social-list li a:hover {
  color: #126dfb;
}
