/* Scoped mobile integrity fixes; visual tokens intentionally inherit the theme. */
:focus-visible {
  outline: 3px solid #ecb31e;
  outline-offset: 3px;
}

/* Staging operations: consent and scroll-safe open maps. */
.open_map_embed {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: inherit;
    background: #eef0f4;
}
.open_map_embed iframe {
    display: block;
    width: 100%;
    border: 0;
    pointer-events: none;
}
.open_map_embed.is-interactive iframe { pointer-events: auto; }
.open_map_enable {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    min-height: 48px;
    padding: 10px 24px;
    border: 0;
    border-radius: 999px;
    background: #20243a;
    color: #fff;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(32,36,58,.22);
}
.open_map_link { margin-top: 12px; text-align: center; }
.reseller_card_map_link { display: inline-block; margin-top: 12px; color: #3a405f; text-decoration: underline; }
.reseller_login_page { min-height: 70vh; background: #f7f8fb; }
.reseller_login_card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 40px; background: #fff; box-shadow: 0 22px 70px rgba(32,36,58,.12); }
.reseller_login_intro { padding: 72px; color: #fff; background: #20243a; }
.reseller_login_intro h1 { margin: 36px 0 22px; color: #fff; font-size: clamp(44px,5vw,72px); line-height: 1.05; }
.reseller_login_intro strong { color: #f2b91f; }
.reseller_login_intro p { color: #d9dbe6; font-size: 20px; line-height: 1.6; }
.reseller_login_action { display: flex; flex-direction: column; justify-content: center; padding: 72px; }
.reseller_login_action h2 { margin: 0 0 18px; color: #20243a; font-size: 38px; }
.reseller_login_action p { margin: 0 0 28px; color: #4c5f70; font-size: 18px; line-height: 1.6; }
.reseller_login_secondary { display: inline-block; margin-top: 22px; color: #3a405f; text-decoration: underline; }
.reseller_login_help { display: grid; gap: 10px; margin-top: 38px; padding-top: 26px; border-top: 1px solid #e7e8ee; font-size: 15px; }
.reseller_login_help a { color: #3a405f; text-decoration: underline; }

.cookie_consent[hidden] { display: none !important; }
.cookie_consent {
    position: fixed;
    z-index: 10050;
    right: 24px;
    bottom: 24px;
    left: 24px;
    color: #fff;
}
.cookie_consent_inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-radius: 22px;
    background: #171717;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.cookie_consent h2 { margin: 0 0 6px; color: #fff; font-size: 22px; }
.cookie_consent p { margin: 0; color: #d7d7d7; font-size: 15px; line-height: 1.5; }
.cookie_consent a { color: #f2b91f; text-decoration: underline; }
.cookie_consent_actions { display: flex; flex: 0 0 auto; gap: 10px; }
.cookie_choice {
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid #f2b91f;
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
}
.cookie_choice.primary { background: #f2b91f; color: #111; }
.cookie_choice.secondary { background: transparent; color: #fff; }

@media (max-width: 767px) {
    .cookie_consent { right: 12px; bottom: 12px; left: 12px; }
    .cookie_consent_inner { align-items: stretch; flex-direction: column; gap: 16px; padding: 18px; border-radius: 18px; }
    .cookie_consent_actions { display: grid; grid-template-columns: 1fr 1fr; }
    .open_map_enable { width: calc(100% - 32px); }
    .reseller_login_card { grid-template-columns: 1fr; border-radius: 24px; }
    .reseller_login_intro, .reseller_login_action { padding: 34px 24px; }
    .reseller_login_intro h1 { margin-top: 24px; }
}

.screen_reader_text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.menu_toggle {
  min-width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

/* Ensure the intended final animation state wins over directional presets. */
.animate-on-scroll.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Keep billing-model photography proportional while reducing the overly tall
   portrait presentation. The crop preserves the existing card treatment. */
.card_grid_image > img.billing_model_visual {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 38%;
}

/* WordPress supplies intrinsic width/height attributes for catalogue images.
   The theme overrides width but previously left the height attribute active,
   stretching landscape meter photography into a portrait box. */
.product_image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Homepage images now include intrinsic dimensions for layout stability.
   Keep every content image fluid whenever its container changes width. */
.page-template-index .main_app_content img {
  height: auto;
}

/* The Login/Get Quote links already live in the mobile drawer. Hide only the
   duplicate desktop action list when the menu toggle replaces desktop nav. */
@media only screen and (max-width: 1100px) {
  .header_right > .other_menu,
  .header_right > div > .other_menu {
    display: none !important;
  }
}

@media only screen and (max-width: 960px) {
  .support_grid,
  .billing_hero_grid,
  .why_bill_better_grid,
  .what_bill_better_handles_grid,
  .shop_feature_block_grid,
  .shop_feature_block.reverse .shop_feature_block_grid,
  .app_portal_grid,
  .reseller_finder_grid,
  .reseller_page_grid {
    grid-template-columns: minmax(0, 1fr);
    grid-gap: 40px;
  }

  .billing_hero_grid_image,
  .what_bill_better_handles_grid_image,
  .shop_feature_block.reverse .shop_feature_block_image,
  .shop_feature_block.reverse .shop_feature_block_content {
    grid-column: auto;
    grid-row: auto;
  }

  .billing_hero_grid_image,
  .why_bill_better_grid_image,
  .what_bill_better_handles_grid_image,
  .shop_feature_block_image,
  .shop_feature_block_content,
  .support_grid_form,
  .app_portal_card,
  .reseller_finder_panel,
  .reseller_finder_map,
  .reseller_page_grid_list,
  .reseller_page_grid_map {
    min-width: 0;
    width: 100%;
  }

  .billing_hero_grid_image img,
  .why_bill_better_grid_image img,
  .what_bill_better_handles_grid_image img,
  .shop_feature_block_image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .reseller_page_grid_map {
    height: 480px;
  }
}

@media only screen and (max-width: 768px) {
  .smart_metering_grid {
    grid-template-columns: minmax(0, 1fr);
    grid-gap: 30px;
  }

  .smart_metering_grid::after {
    display: none;
  }

  .smart_metering_grid_title {
    margin-bottom: 30px;
  }

  .smart_metering_grid_items li {
    margin-bottom: 30px;
  }

  .what_bill_better_handles_grid_content_list {
    grid-template-columns: minmax(0, 1fr);
    grid-gap: 30px;
  }

  .app_portal_hero .section_title {
    max-width: 100%;
  }

  .app_portal_card {
    padding: 32px 28px;
  }

  .reseller_page_grid_list,
  .reseller_finder_panel {
    padding: 24px;
  }

  .reseller_page_grid_map,
  .reseller_finder_map {
    height: 420px;
    min-height: 420px;
  }

  .quote_modal_overlay {
    align-items: flex-start;
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quote_modal {
    display: block;
    max-width: 640px;
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 20px;
  }

  .quote_modal_left {
    min-height: 0;
    padding: 32px 28px;
    justify-content: flex-start;
    overflow: hidden;
  }

  .quote_modal_left_inner,
  .quote_modal_right {
    width: 100%;
    min-width: 0;
  }

  .quote_modal_right {
    padding: 32px 28px;
    overflow: visible;
  }

  .quote_modal_close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .quote_form .form_grid {
    grid-template-columns: minmax(0, 1fr);
    grid-gap: 0;
  }

  .quote_form .form_group input[type="text"],
  .quote_form .form_group input[type="email"],
  .quote_form .form_group input[type="tel"],
  .quote_form .form_group input[type="date"],
  .quote_form .form_group input[type="time"],
  .quote_form .form_group textarea,
  .quote_form .form_group select,
  .support_grid_form .form_group input,
  .support_grid_form .form_group textarea,
  .reseller_grid .form_group input,
  .reseller_grid .form_group textarea,
  #resellerSearch,
  #subscribe_email {
    font-size: 16px !important;
  }
}

@media only screen and (max-width: 500px) {
  .shop_feature_block_grid,
  .shop_feature_block.reverse .shop_feature_block_grid,
  .support_grid,
  .billing_hero_grid,
  .why_bill_better_grid,
  .what_bill_better_handles_grid,
  .app_portal_grid,
  .reseller_finder_grid,
  .reseller_page_grid {
    grid-gap: 30px;
  }

  .shop_feature_block_title {
    font-size: 2em;
  }

  .quote_modal_overlay {
    padding: 8px;
  }

  .quote_modal {
    max-height: calc(100dvh - 16px);
    border-radius: 15px;
  }

  .quote_modal_left,
  .quote_modal_right {
    padding: 26px 20px;
  }

  .quote_modal_heading {
    font-size: 1.75em;
    padding-right: 42px;
  }

  .quote_modal_subtext {
    margin-bottom: 0;
  }

  .quote_modal_perks,
  .quote_modal_contact_link {
    display: none;
  }

  .floating_whatsapp {
    width: auto;
    max-width: calc(100% - 24px);
    bottom: max(12px, env(safe-area-inset-bottom));
    right: 12px;
    border-radius: 12px;
  }

  .floating_whatsapp_left_content {
    display: none;
  }

  .floating_whatsapp_btn {
    min-height: 44px;
  }

  .floating_whatsapp_close {
    width: 44px;
    height: 44px;
    margin-left: 2px;
    border-radius: 50%;
  }

  .reseller_page_grid_list,
  .reseller_finder_panel {
    padding: 20px;
  }
}
