/*
  Font only: theme names (robotolight, robotoregular, robotomedium, robotothin)
  point to Toyota Type so live design is unchanged and all weights are used.
*/

/* =========================
   Toyota Type (all weights)
   ========================= */
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-LightIt.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-Book.ttf') format('truetype');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-BookIt.ttf') format('truetype');
  font-weight: 350;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-RegularIt.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-SemiboldIt.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-BoldIt.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Toyota Type';
  src: url('/fonts/ToyotaType-BlackIt.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* About Us page: subheading under main title */
.about-us-subheading {
  font-family: 'Toyota Type', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  margin: 0.35em 0 1em;
  color: #333;
  letter-spacing: 0.02em;
}

/* Select a Model section (index): all car headings use Toyota Type from /fonts */
#select_car h1,
#select_car .tabbing .item p a,
#select_car .car360img h3,
#select_car .car360img h3 a,
#select_car #car_detail .car360img h3,
#select_car #car_detail .car360img h3 a {
  font-family: 'Toyota Type', sans-serif;
}
#select_car h1 {
  font-weight: 400;
}

/* =========================
   Theme font names → Toyota Type (match live: same usage, Toyota instead of Roboto)
   ========================= */
@font-face {
  font-family: 'robotolight';
  src: url('/fonts/ToyotaType-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'robotothin';
  src: url('/fonts/ToyotaType-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'robotoregular';
  src: url('/fonts/ToyotaType-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'robotomedium';
  src: url('/fonts/ToyotaType-Semibold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Body uses theme’s regular font (now Toyota Type) so all pages get it */
body {
  font-family: 'robotoregular', sans-serif;
}

/* All headings: 40px */
h1, h2, h3, h4, h5, h6 {
  font-size: 40px;
}

/* Rupee symbol stays theme font */
.rupee,
.rupee * {
  font-family: "girnar-rupee", sans-serif !important;
}

/* Model intro block (e.g. Toyota Glanza) – top align with image, left align with engine column */
.model-intro-block {
  font-family: 'Toyota Type', 'robotoregular', sans-serif;
  text-align: left;
  margin: 0 0 1em 0;
  vertical-align: top;
}
.carmodel .caroverinfo > .model-intro-block {
  margin-top: 10%;
  margin-left: 16%;
  text-align: left;
}

/* Left-align Get March Offers button on model overview */
.carmodel .caroverinfo .select-button {
  margin-left: 16%;
  margin-right: auto;
  margin-top: 114px;
}

/* Price in our Cities: same width as Variants (both inside .main) */
.carmodel .main > .nearcity_citieswrap {
  max-width: 100%;
  box-sizing: border-box;
}

/* Glanza intro text block: centered content */
.glanza-intro-text-wrap {
  text-align: center;
}
.glanza-intro-text-wrap .glanza-intro-text {
  text-align: center;
  margin: 0;
  font-family: 'Toyota Type', 'robotoregular', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2e3942;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Fortuner intro text block: reuse Glanza styling */
.fortuner-intro-text-wrap {
  text-align: center;
}
.fortuner-intro-text-wrap .fortuner-intro-text {
  text-align: center;
  margin: 0;
  font-family: 'Toyota Type', 'robotoregular', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2e3942;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Other model intro text blocks: reuse same styling */
.fortuner-legender-intro-text-wrap,
.camry-intro-text-wrap,
.vellfire-intro-text-wrap,
.landcruiser-intro-text-wrap {
  text-align: center;
}
.fortuner-legender-intro-text-wrap .fortuner-legender-intro-text,
.camry-intro-text-wrap .camry-intro-text,
.vellfire-intro-text-wrap .vellfire-intro-text,
.landcruiser-intro-text-wrap .landcruiser-intro-text {
  text-align: center;
  margin: 0;
  font-family: 'Toyota Type', 'robotoregular', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2e3942;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.model-intro-block .model-intro-heading {
  font-family: 'Toyota Type', 'robotoregular', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35em;
  color: #2e3942;
  line-height: 1.2;
}
.model-intro-block .model-intro-subheading {
  font-family: 'Toyota Type', 'robotoregular', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5em;
  color: #2e3942;
  line-height: 1.35;
}
.model-intro-block .model-intro-paragraph {
  font-family: 'Toyota Type', 'robotoregular', sans-serif;
  font-size: 1rem;
  margin: 0;
  color: #717171;
  line-height: 1.5;
}

/* New Cars: four car blocks per row on desktop (same as live); mobile keeps theme centering */
.newcarwrap .cars ul {
  list-style: none;
  padding: 0;
}
@media screen and (max-width: 1179px) {
  .newcarwrap .cars ul {
    margin-left: auto;
    margin-right: auto;
  }
  .newcarwrap .cars li {
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (min-width: 1180px) {
  .newcarwrap .cars ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    gap: 0 10px;
    margin-bottom: 0;
  }
  .newcarwrap .cars li {
    width: calc((100% - 30px) / 4);
    margin: 0 0 26px 0 !important;
    float: none;
    flex-shrink: 0;
  }
  .newcarwrap .cars li .listhold {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

/* Outlet desktop: align search bar and Search button in one row (same as live) */
@media screen and (min-width: 1007px) {
  .outlet_main .noutsearch {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
  .outlet_main .noutsearch .drop {
    float: none;
    flex-shrink: 0;
  }
  .outlet_main .noutsearch a.nout-viewbtn {
    flex-shrink: 0;
    vertical-align: middle;
  }
  .outlet_main .noutsearch .lodingimg {
    flex-shrink: 0;
    align-self: center;
  }
}

/* Hide Facebook and Twitter icons in header (all pages) */
.headertop a.sprite.twitter,
.headertop a.sprite.fb {
  display: none !important;
}

/* =========================
   Mobile menu: keep panel full width, not pushed right (override theme float/width)
   Mobile only (max 767px) – tablet uses desktop nav per live site
   ========================= */
@media screen and (max-width: 767px) {
  /* Sticky nav bar: logo row stays at top when scrolling (mobile) */
  header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
  }
  #menu,
  #menu .main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }
  /* White menu panel: full width. No min-height so slideToggle slides down from top. */
  #menu .main .menu_aberto,
  #menu .main ul.menu_aberto {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    z-index: 101 !important;
  }
  #menu .main .menu_aberto,
  #menu .main ul.menu_aberto {
    top: 72px !important;
  }
}
/* Mobile: panel scrolls down from right below the red Sales bar (logo + red bar) */
@media screen and (max-width: 766px) {
  #menu .main .menu_aberto,
  #menu .main ul.menu_aberto {
    top: 110px !important;   /* align menu directly below fixed mobile header (no gap) */
  }
}

/* =========================
   Mobile nav bar: FIXED at top when scrolling (logo + red bar stay constant).
   Uses position:fixed so nav bar always stays visible regardless of overflow/theme.
   ========================= */
@media screen and (max-width: 766px) {
  /* Fixed nav bar: always at top when scrolling on mobile */
  body.container {
    padding-top: 114px !important; /* reserve space for fixed header */
  }
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    display: flex;
    flex-direction: column;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  header::before,
  header::after {
    display: none !important;
  }
  header .headertop::before,
  header .headertop::after {
    display: none !important;
  }
  /* Pull banner up to remove white space between red bar and banner (home/index mobile) */
  section#mainslider {
    margin-top: -52px !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-top: none !important;
    outline: none !important;
  }
  section#mainslider::before,
  section#mainslider::after {
    display: none !important;
  }
  #mainslider #toplsidermain {
    box-shadow: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border: none !important;
  }
  #mainslider .topslider,
  #mainslider .slick-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  /* Kill white strip + shadow + red line: menu panel when closed still paints box-shadow/borders */
  #menu .main .menu_aberto,
  #menu .main ul.menu_aberto {
    box-shadow: none !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  #menu .main .menu_aberto::before,
  #menu .main ul.menu_aberto::before {
    display: none !important;
  }
  /* No extra space from clear div inside header */
  header .clear {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Keep natural order: headermain (logo + hamburger) on top, headertop (red bar) below */
  header .headermain {
    order: 0;
  }
  header .headertop {
    order: 1;
    background: #d71921;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  /* No space between red bar and scrollable content: pull first section up to remove gap */
  header ~ section:first-of-type {
    margin-top: -32px !important;
    padding-top: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  header ~ section:first-of-type::before {
    display: none !important;
  }
  header ~ section:first-of-type .main {
    padding-top: 0 !important;
  }
  /* Breadcrumb / first section: no top padding so no white gap under red bar */
  section.breadcump,
  section.breadcump .main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  /* Red bar below nav: left-aligned phone icon + Sales number */
  header .headertop .main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 16px;
    padding-right: 16px;
    min-height: 44px;
    box-sizing: border-box;
  }
  header .headertop .phno {
    float: none;
    width: auto;
    max-width: none;
    height: auto;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  header .headertop .phno .sprite {
    margin: 0 10px 0 0;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }
  header .headertop .phno a {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    border: none;
    margin: 0;
    padding: 0;
  }
  /* Hide extra elements in red bar on mobile so only Sales shows */
  header .headertop .mobitoplink,
  header .headertop .mobdots,
  header .headertop .toplink {
    display: none !important;
  }

  /* Mobile menu: no overrides – use theme (live) styles: text-align: center, padding-left: 9px on li a */
}

/* Hide question mark (?) icon next to price breakdown on price pages */
.NewPricepgwrap .noteicon {
  display: none !important;
}

/* Get March Offers popup: two-column layout and footer same as live */
#custom_popup.get-march-offers .popupinner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  padding: 25px 15px 0;
}
#custom_popup.get-march-offers .popupinner .inputvalue {
  width: 100%;
  margin-bottom: 20px;
}
#custom_popup.get-march-offers .popupinner #outlet-name-block {
  grid-column: 1 / -1;
}
#custom_popup.get-march-offers .buttonwrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f7f7f7;
}
#custom_popup.get-march-offers .buttonwrap .manda {
  float: none;
  text-align: left;
  padding: 0;
  margin: 0;
}
#custom_popup.get-march-offers .buttonwrap .popupbutton {
  float: none;
  margin: 0;
}
#custom_popup.get-march-offers .popupbutton .select-button {
  text-transform: uppercase;
  padding: 10px 24px;
}

/* Get March Offers popup: mobile – single column, full-width, stacked footer */
@media (max-width: 600px) {
  /* Let Fancybox container shrink so popup can be full width */
  .fancybox-inner,
  .fancybox-skin {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  #custom_popup.get-march-offers .popupwrap {
    min-width: 0 !important;
    max-width: 100%;
    width: 100% !important;
    margin: 0;
    box-sizing: border-box;
  }
  #custom_popup.get-march-offers .popupinner {
    grid-template-columns: 1fr;
    gap: 0 0;
    padding: 20px 12px 0;
  }
  #custom_popup.get-march-offers .popupinner .inputvalue {
    margin-bottom: 16px;
  }
  #custom_popup.get-march-offers .popupinner #outlet-name-block {
    grid-column: 1;
  }
  #custom_popup.get-march-offers .buttonwrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 12px;
  }
  #custom_popup.get-march-offers .buttonwrap .manda {
    text-align: center;
    order: 2;
  }
  #custom_popup.get-march-offers .buttonwrap .popupbutton {
    order: 1;
    width: 100%;
  }
  #custom_popup.get-march-offers .popupbutton .select-button {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
  }
  #custom_popup.get-march-offers .popuptitle {
    padding-right: 40px;
    font-size: 18px;
    padding-left: 12px;
  }
}

/* Insurance expiry datepicker: always on top, no overlap by error messages */
.ui-datepicker,
.ui-datepicker.insurance-expiry-datepicker {
  z-index: 99999 !important;
}
.field-insurance-insurance_expiry_date .help-block {
  position: relative;
  z-index: 1;
}

/* Book Service: Request Date & Time – live inline calendar (same as live) */
.nb-inline-calendar,
#bookservice-inline-calendar {
  position: fixed;
  z-index: 99999;
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 10px;
  font-size: 14px;
  min-width: 260px;
}
.nb-inline-calendar.nb-cal-visible { display: block; }
.nb-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 4px 0;
}
.nb-cal-prev, .nb-cal-next {
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
}
.nb-cal-prev:hover, .nb-cal-next:hover { background: #e8e8e8; }
.nb-cal-title { font-weight: 600; }
.nb-cal-today-wrap { margin-bottom: 8px; }
.nb-cal-today-btn {
  background: #e8e8e8;
  border: 1px solid #ccc;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
}
.nb-cal-today-btn:hover { background: #ddd; }
.nb-cal-table { width: 100%; border-collapse: collapse; }
.nb-cal-table th { padding: 6px 4px; font-size: 12px; color: #666; }
.nb-cal-table td { text-align: center; padding: 2px; }
.nb-cal-cell {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
}
.nb-cal-cell.nb-cal-day:hover { background: #e8e8e8; }
.nb-cal-cell.nb-cal-today { font-weight: 700; color: #c00; }
.nb-cal-cell.nb-cal-selected { background: #c00; color: #fff; }
.nb-cal-cell.nb-cal-disabled { color: #bbb; cursor: not-allowed; }

/* Callback button: use same red icon button on all devices */
.clickcall,
.callparenttab a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.callwrap {
  display: block !important;
  right: 16px !important;
  left: auto !important;
  bottom: 24px !important;
  height: auto !important;
  z-index: 100002 !important;
  pointer-events: auto !important;
}
.clickcall {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  position: relative;
  background: #16a34a !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden;
  cursor: pointer;
}
.clickcall.grow {
  width: 72px !important;
}
.clickcall i {
  position: absolute;
  left: 19px !important;
  top: 19px !important;
  width: 34px !important;
  height: 34px !important;
  background: url("/images/download.png") no-repeat center center;
  background-size: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}
.clickcall i img {
  display: none !important;
}
.clickcall span,
.clickcall span::before,
.callparenttab {
  display: none !important;
  content: none !important;
}
.callparenttab a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Call button + popup: always on top on mobile so tap works on all pages */
@media screen and (max-width: 1006px) {
  .callwrap {
    right: 14px !important;
    bottom: 18px !important;
  }
  .clickcall {
    transform-origin: center center;
    animation:
      callbackEntryGlow 0.95s cubic-bezier(.2, .9, .25, 1) both,
      callbackNudge 0.75s ease-in-out 0.95s 3,
      callbackBob 2.15s ease-in-out 2.4s infinite;
  }
  .clickcall i {
    animation: callbackIconBeat 1.05s ease-in-out 2.2s infinite;
  }
  .callpopupbg {
    z-index: 100000 !important;
    pointer-events: auto !important;
  }
  .callparenttab {
    z-index: 100001 !important;
    pointer-events: auto !important;
  }
}

/* Desktop-only callback button (matches red circular style) */
@media screen and (min-width: 1007px) {
  .callwrap {
    right: 20px;
    bottom: 42px;
  }

  .clickcall {
    transform-origin: center center;
    animation:
      callbackEntryGlow 0.95s cubic-bezier(.2, .9, .25, 1) both,
      callbackNudge 0.75s ease-in-out 0.95s 3,
      callbackBob 2.15s ease-in-out 2.4s infinite;
  }

  .clickcall::before,
  .clickcall::after {
    /* Desktop: no outer circles/rings */
    display: none !important;
    content: none !important;
    animation: none !important;
  }

  .clickcall::after {
    animation-delay: 0.85s;
  }

  .clickcall.grow {
    width: 82px !important;
  }

  .clickcall i {
    width: 38px !important;
    height: 38px !important;
    left: 24px !important;
    top: 22px !important;
    animation: callbackIconBeat 1.05s ease-in-out 2.2s infinite;
  }

  .clickcall {
    width: 82px !important;
    height: 82px !important;
  }
}

@keyframes callbackEntryGlow {
  0% { opacity: 0; transform: scale(0.6) translateY(28px) rotate(-9deg); }
  45% { opacity: 1; transform: scale(1.08) translateY(-3px) rotate(3deg); }
  72% { transform: scale(0.96) translateY(2px) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); }
}

@keyframes callbackBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-2deg); }
  50% { transform: translateY(-2px) rotate(2deg); }
  75% { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes callbackNudge {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-7px) rotate(-5deg); }
  40% { transform: translateX(7px) rotate(5deg); }
  60% { transform: translateX(-5px) rotate(-3deg); }
  80% { transform: translateX(5px) rotate(3deg); }
}

@keyframes callbackIconBeat {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45)); }
  50% { transform: scale(1.13); filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.75)); }
}

@keyframes callbackRing {
  0% { transform: scale(0.82); opacity: 0; }
  20% { opacity: 0.72; }
  100% { transform: scale(1.34); opacity: 0; }
}

/* Desktop floating callback form, anchored above the red button */
#floating-callback-frame-wrap {
  position: fixed;
  right: 12px;
  bottom: 128px;
  width: 378px;
  height: 620px;
  z-index: 100120;
  animation: callbackWidgetIn 0.28s ease-out;
}

#floating-callback-frame-wrap::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: -14px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid #ffffff;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.08));
}

#floating-callback-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  display: block;
}

@keyframes callbackWidgetIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Call popup (Showroom/Workshop): internal modal – no gsp_modal dependency */
.callpopup.callpopup-open {
  display: block !important;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  max-width: calc(100vw - 24px);
  max-height: 80vh;
  overflow: auto;
  z-index: 100001 !important;
  padding: 10px 15px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  -webkit-overflow-scrolling: touch;
  pointer-events: auto !important;
}
.callpopup.callpopup-open .callpopwrap {
  max-height: 350px;
}
.callpopup.callpopup-open .callpclose {
  position: absolute;
  right: 6px;
  top: 7px;
}

/* =========================
   Responsive: all devices (price-in-pune & shared layout)
   ========================= */
/* =========================
   Base: no horizontal scroll, proper viewport
   ========================= */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  scroll-behavior: smooth;
}
body.container {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
}

/* Page width: content max-width; centered on all screen sizes */
.main {
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 768px) {
  .main { padding-left: 20px; padding-right: 20px; }
}

@media screen and (min-width: 1007px) {
  .main { padding-left: 20px; padding-right: 20px; }
}

/* iPad Pro / large-tablet width: match live header/nav fit (no extra side squeeze) */
@media screen and (min-width: 1007px) and (max-width: 1179px) {
  .main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* =========================
   Desktop: optimize for desktop screen size (proper width, centering)
   ========================= */
@media screen and (min-width: 1180px) {
  body.container {
    max-width: 100%;
    display: block;
  }
  .main {
    max-width: 1280px;
    padding-left: 24px;
    padding-right: 24px;
  }
  /* Keep header/footer .main in sync so nav and content align */
  header .main,
  header .headertop .main,
  .newftr .main,
  section.copyright .main {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Large desktop: use more width for content when screen is wide */
@media screen and (min-width: 1600px) {
  .main {
    max-width: 1400px;
    padding-left: 32px;
    padding-right: 32px;
  }
  header .main,
  header .headertop .main,
  .newftr .main,
  section.copyright .main {
    max-width: 1400px;
  }
}

/* Price page: city dropdown same size, hover and font as fuel type box */
.NewPricepgwrap .cityselectblock .newprice_citydrop {
  width: 180px;
  max-width: 180px;
  height: 35px;
  margin-left: 14px;
  margin-top: -5px;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  top: 0;
  box-sizing: border-box;
  background: #fff;
}
.NewPricepgwrap .cityselectblock .newprice_citydrop:hover {
  border-color: #d71921;
}
.NewPricepgwrap .cityselectblock .newprice_citydrop .newprice_cityinputnam {
  border: none !important;
  border-radius: 3px;
  height: 35px;
  box-sizing: border-box;
}
.NewPricepgwrap .cityselectblock .newprice_citydrop input[type="text"] {
  height: 35px !important;
  line-height: 35px !important;
  font-size: 14px !important;
  color: #717171 !important;
  font-family: "robotoregular", "Toyota Type", sans-serif !important;
  padding-left: 10px !important;
  padding-right: 28px !important;
  border: none !important;
  box-sizing: border-box;
}
.NewPricepgwrap .cityselectblock .newprice_citydrop .icondroper {
  height: 35px;
  top: 0;
  background: url(/themes/knight/image/br_down.png) no-repeat 95% 50% transparent;
}
.NewPricepgwrap .cityselectblock .newprice_citydrop:hover .icondroper {
  background: url(/themes/knight/image/br_downhover.png) no-repeat 95% 50% transparent;
}

/* Price page: heading, city box and fuel type on one line, aligned */
.NewPricepgwrap .tabheading {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
}
.NewPricepgwrap .cityselectblock {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: auto;
  float: none;
  margin-top: 0;
}
.NewPricepgwrap .cityselectblock h1.heading {
  margin-bottom: 0;
  margin-right: 0;
  margin-top: 0;
  display: inline-block;
  vertical-align: middle;
  line-height: 35px;
}
.NewPricepgwrap .fueltypeblock {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: auto;
  float: none;
  margin-left: auto;
  margin-right: -8px;
  margin-top: 0;
}
.NewPricepgwrap .fueltypeblock .heading {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  margin-right: 6px;
  margin-top: -12px;
  vertical-align: middle;
  line-height: 1;
  height: 35px;
}
.NewPricepgwrap .fueltypeblock > .fueltypeblock {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}
.NewPricepgwrap .fueltypeblock form {
  display: inline-flex;
  align-items: center;
}
.NewPricepgwrap .fueltypeblock .select-wrapper {
  margin-top: -5px;
}

/* Price page + model tabs: mobile only (tablet 768–1006 uses theme 767px layout like live) */
@media screen and (max-width: 767px) {
  h1, h2, h3, h4, h5, h6 { font-size: 40px; }
  .cd-tabs nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: none !important;
  }
  .cd-tabs nav::-webkit-scrollbar { display: none; }
  .cd-tabs-navigation {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e3e3e3;
    position: relative;
  }
  .cd-tabs-navigation > li {
    float: none;
    flex: 0 0 auto;
  }
  .cd-tabs-navigation::after,
  .cd-tabs-navigation:after,
  .cd-tabs nav::after,
  .cd-tabs nav:after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
  }
  .cd-tabs-navigation a {
    min-width: 96px;
    font-size: 13px;
    padding: 0 10px;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }
  .breadcump .main { padding-top: 8px; padding-bottom: 8px; word-break: break-word; }
  .breadcump a, .breadcump span { font-size: 13px; }
  #page.headtitle .titlecont h1 { font-size: 40px; word-break: break-word; }
  /* Price page mobile: all centered, stacked below by below (heading, then city, then fuel) */
  .NewPricepgwrap .tabheading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .NewPricepgwrap .cityselectblock {
    float: none;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .NewPricepgwrap .cityselectblock h1.heading {
    font-size: 0 !important;
    line-height: 0;
    margin: 0;
    text-align: center;
    color: transparent;
    overflow: hidden;
  }
  .NewPricepgwrap .cityselectblock h1.heading::before {
    content: "Get On Road Price";
    display: block;
    font-size: 20px;
    line-height: 1.3;
    color: #000;
    font-family: "robotomedium", "Toyota Type", sans-serif;
  }
  .NewPricepgwrap .cityselectblock .newprice_citydrop { margin-left: 0; }
  .NewPricepgwrap .fueltypeblock {
    float: none;
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    justify-content: center;
  }
  .NewPricepgwrap .fueltypeblock .heading { display: inline-block; margin: 0 6px 0 0; }
  .NewPricepgwrap .fueltypeblock > .fueltypeblock { justify-content: center; }
  .NewPricepgwrap img { max-width: 100%; height: auto; }
  .nearcity_citieswrap.nearcity_locateout { padding: 15px 0; }
  .nearcity_locateout .nearcity_title { font-size: 14px; margin-bottom: 10px; }
  .nearcity_locateout .nearcity_allcity { display: flex; flex-wrap: wrap; gap: 8px; }
  .nearcity_locateout .nearcity_allcity a { margin-right: 0; padding-right: 8px; border-right: 1px solid; margin-bottom: 4px; }
  .carvariantblock .dealerprice { float: none; display: block; padding: 8px 0 0 10px; }
  .NewPricepgwrap .newprice_termscon { position: static; margin-top: 10px; text-align: right; padding-right: 10px; }
  .carvariantblock .carvariantslider .varianttext.last.anothrlast a { display: inline-block; white-space: nowrap; font-size: 12px; padding: 6px 10px; }
  /* Model pages: mobile */
  .carmodel .caroverinfo > .model-intro-block { margin-left: 8%; margin-top: 24px; }
  .carmodel .caroverinfo .select-button { margin-left: 8%; margin-top: 48px; }
  .glanza-intro-text-wrap .glanza-intro-text,
  .fortuner-intro-text-wrap .fortuner-intro-text,
  .fortuner-legender-intro-text-wrap .fortuner-legender-intro-text,
  .camry-intro-text-wrap .camry-intro-text,
  .vellfire-intro-text-wrap .vellfire-intro-text,
  .landcruiser-intro-text-wrap .landcruiser-intro-text {
    font-size: 0.95rem;
    padding: 0 10px;
    max-width: 100%;
  }
  .glanza-intro-text-wrap,
  .fortuner-intro-text-wrap,
  .fortuner-legender-intro-text-wrap,
  .camry-intro-text-wrap,
  .vellfire-intro-text-wrap,
  .landcruiser-intro-text-wrap {
    padding: 16px 12px;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 767px) {
  h1, h2, h3, h4, h5, h6 { font-size: 40px; }
  .main { padding-left: 12px; padding-right: 12px; }
  .cd-tabs-navigation a { min-width: 88px; font-size: 12px; }
  .NewPricepgwrap .innermain { padding: 0 4px; }
  .newpriceleft img { max-width: 100%; min-width: 280px; max-height: 400px; }
  .carvariantblock .variantstick { width: 140px; min-width: 140px; }
  .carvariantblock .variantvariable { min-width: 460px; }
  .carvariantblock .variantname { font-size: 14px; }
  .carvariantblock .varianttext { font-size: 12px; padding: 6px 0 10px 10px; }
  .carvariantblock .varianttext.last { font-size: 13px; }
  /* Toyota Glanza page: mobile */
  .carmodel .carinfo {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
  }
  .carmodel .carinfo li {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    padding: 6px 4px;
    box-sizing: border-box;
    border-right: 1px solid #d3d6d7 !important;
  }
  .carmodel .carinfo li:last-child { border-right: none !important; }
  .carmodel .carinfo .value { font-size: 18px; }
  .carmodel .carinfo .descip-bottom { font-size: 11px; }
  .carmodel .carinfo li.metericon { margin-top: -1px; }
  .carmodel .caroverinfo > .model-intro-block { margin-left: 0; margin-top: 16px; padding: 0 8px; box-sizing: border-box; text-align: center; }
  .carmodel .caroverinfo > .model-intro-block .model-intro-heading,
  .carmodel .caroverinfo > .model-intro-block .model-intro-subheading,
  .carmodel .caroverinfo > .model-intro-block .model-intro-paragraph { text-align: center; }
  .carmodel .model-intro-block .model-intro-heading { font-size: 40px; line-height: 1.25; }
  .carmodel .model-intro-block .model-intro-subheading { font-size: 1rem; }
  .carmodel .model-intro-block .model-intro-paragraph { font-size: 0.9rem; }
  .carmodel .caroverinfo .select-button { margin-left: auto; margin-right: auto; margin-top: 24px; width: 100%; max-width: 280px; display: block; box-sizing: border-box; }
  .glanza-intro-text-wrap,
  .fortuner-intro-text-wrap,
  .fortuner-legender-intro-text-wrap,
  .camry-intro-text-wrap,
  .vellfire-intro-text-wrap,
  .landcruiser-intro-text-wrap { padding: 16px 12px; box-sizing: border-box; }
  .glanza-intro-text-wrap .glanza-intro-text,
  .fortuner-intro-text-wrap .fortuner-intro-text,
  .fortuner-legender-intro-text-wrap .fortuner-legender-intro-text,
  .camry-intro-text-wrap .camry-intro-text,
  .vellfire-intro-text-wrap .vellfire-intro-text,
  .landcruiser-intro-text-wrap .landcruiser-intro-text {
    font-size: 14px;
    line-height: 1.55;
    padding: 0;
    max-width: 100%;
  }
  .carmodel .main > .nearcity_citieswrap { padding-left: 12px; padding-right: 12px; box-sizing: border-box; }
  .model-intro-block .model-intro-heading,
  .model-intro-block .model-intro-subheading,
  .glanza-intro-text-wrap .glanza-intro-text,
  .fortuner-intro-text-wrap .fortuner-intro-text,
  .fortuner-legender-intro-text-wrap .fortuner-legender-intro-text,
  .camry-intro-text-wrap .camry-intro-text,
  .vellfire-intro-text-wrap .vellfire-intro-text,
  .landcruiser-intro-text-wrap .landcruiser-intro-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media screen and (max-width: 480px) {
  h1, h2, h3, h4, h5, h6 { font-size: 40px; }
  .main { padding-left: 10px; padding-right: 10px; }
  .breadcump .main { padding-left: 10px; padding-right: 10px; }
  #page.headtitle .titlecont { padding: 0 4px 15px; }
  #page.headtitle .titlecont h1 { font-size: 40px; }
  .NewPricepgwrap { padding-top: 12px; }
  .NewPricepgwrap .cityselectblock h1.heading { font-size: 0; }
  .newpriceleft img { max-width: 100%; min-width: 260px; max-height: 380px; }
  .newpricemain { margin-top: 8px; margin-bottom: 24px; padding: 0 4px 10px; }
  .carvariantblock { margin-top: 10px; }
  .carvariantblock .variantstick { width: 120px; min-width: 120px; }
  .carvariantblock .variantvariable { min-width: 400px; }
  .carvariantblock .variantname { font-size: 13px; padding: 8px 0 8px 8px; }
  .carvariantblock .varianttext { font-size: 11px; padding: 5px 0 8px 8px; }
  .carvariantblock .varianttext.last { font-size: 12px; padding: 0 0 8px 8px; }
  .carvariantblock .carvariantslider .varianttext.last.anothrlast a { font-size: 11px; padding: 5px 8px; }
  .nearcity_locateout .nearcity_allcity a { font-size: 13px; }
  .stickyshortcut .feature ul { flex-wrap: wrap; justify-content: center; }
  /* Toyota Glanza: very small screens */
  .glanza-intro-text-wrap .glanza-intro-text,
  .fortuner-intro-text-wrap .fortuner-intro-text,
  .fortuner-legender-intro-text-wrap .fortuner-legender-intro-text,
  .camry-intro-text-wrap .camry-intro-text,
  .vellfire-intro-text-wrap .vellfire-intro-text,
  .landcruiser-intro-text-wrap .landcruiser-intro-text {
    font-size: 13px;
  }
  .carmodel .model-intro-block .model-intro-heading { font-size: 40px; }
}

@media screen and (max-width: 359px) {
  h1, h2, h3, h4, h5, h6 { font-size: 40px; }
  .cd-tabs-navigation a { min-width: 78px; font-size: 11px; padding: 0 6px; }
  .carvariantblock .variantstick { width: 110px; min-width: 110px; }
  .carvariantblock .variantvariable { min-width: 360px; }
}

/* =========================
   FAQ section (home + FAQ page): search and list
   ========================= */
.faq-search-wrap {
  margin-bottom: 20px;
  max-width: 400px;
}
.faq-search-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.faq-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
}
.faq-search-input:focus {
  outline: none;
  border-color: #d71921;
  box-shadow: 0 0 0 2px rgba(215, 25, 33, 0.15);
}
.faq-search-count {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}
.faq-no-results {
  padding: 20px;
  text-align: center;
  color: #666;
  background: #f5f5f5;
  border-radius: 4px;
}
.faq-no-results a { color: #d71921; }
.faq-view-all { margin-top: 20px; }
.faq-view-all a { color: #d71921; font-weight: 600; }

/* =========================
   Home: Quick action buttons (.feature) – swap default and hover colors
   ========================= */
/* IMPORTANT: Scope to the homepage quick-action strip only.
   Many inner pages use `.stickyshortcut .feature` (floating action bar);
   global changes here can break that layout across breakpoints. */
body > section.feature { background: #d71921; }
body > section.feature li:hover,
body > section.feature li.active { background: #ad141b; }

/* Increase height and center-align buttons (icon + text) */
body > section.feature {
  padding-top: 26px;
  padding-bottom: 26px;
}
body > section.feature .main > ul {
  display: flex;
  justify-content: center;
  align-items: center; /* keep top/bottom gap non-hoverable */
}
body > section.feature li {
  float: none;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 93px;
}
body > section.feature li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
}
body > section.feature li a .sprite {
  margin: 0 0 10px;
}

@media screen and (max-width: 767px) {
  body > section.feature { padding-top: 18px; padding-bottom: 18px; }
  body > section.feature li { height: 87px; }
  body > section.feature li a .sprite { margin-bottom: 8px; }
}
.dealer-intro .dealer-intro-card,
.dealer-intro .dealer-intro-title,
.dealer-intro .dealer-intro-subtitle,
.dealer-intro .dealer-intro-text,
.dealer-intro .dealer-intro-text p {
  font-family: 'Toyota Type', 'robotoregular', sans-serif;
}
.dealer-intro {
  padding: 167px 0 181px;
  background: transparent;
}
.dealer-intro .dealer-intro-card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 22px 22px 18px;
  text-align: center;
  box-sizing: border-box;
}
.dealer-intro .dealer-intro-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #d71921;
}
.dealer-intro .dealer-intro-subtitle {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: #2e3942;
}
.dealer-intro .dealer-intro-text p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 2.3;
  color: #717171;
}
.dealer-intro .dealer-intro-text p:last-child {
  margin-bottom: 0;
}
@media screen and (max-width: 767px) {
  body > section.feature + .dealer-intro { margin-top: 12px; }
  .dealer-intro { padding: 26px 0 40px; background: transparent; }
  .dealer-intro .dealer-intro-card { padding: 16px 14px 14px; border-radius: 6px; }
  .dealer-intro .dealer-intro-title {
    font-size: 30px !important;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
  }
  .dealer-intro .dealer-intro-subtitle {
    font-size: 13px !important;
  }
  .dealer-intro .dealer-intro-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
  }
}

/* Tablet (768px - 1006px): use theme defaults from global/media CSS (same as live site). */

/* =========================
   Mobile footer: remove grey line below social icons (Facebook, Instagram, etc.)
   ========================= */
@media screen and (max-width: 1006px) {
  footer > .newftrmobi,
  .newftrmobi .newftrsocial,
  footer > .newftrmobi .newftrsocial,
  footer .newftrmobi {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  footer .newftr {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
  }
  footer .clear {
    border: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  footer > .newftrmobi .newftrsocial {
    padding-bottom: 0 !important;
  }
  /* Remove any pseudo-element line between social and copyright */
  footer > .newftrmobi::before,
  footer > .newftrmobi::after,
  footer .newftr::before,
  footer .newftr::after,
  footer .copyright::before {
    display: none !important;
    content: none !important;
    border: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* =========================
   Mobile footer: show Contact Us, Terms, Privacy, Disclaimer, Sitemap
   ========================= */
@media screen and (max-width: 1006px) {
  .copyright .ftrlink2 {
    display: block !important;
    float: none;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .copyright .ftrlink2 ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 0;
  }
  .copyright .ftrlink2 li {
    float: none;
    display: inline-block;
    margin: 0;
    padding: 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    line-height: 1.4;
  }
  .copyright .ftrlink2 li:last-child {
    border-right: none;
    padding-right: 0;
  }
  .copyright .ftrlink2 li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    white-space: nowrap;
  }
  .copyright .ftrlink2 li a:hover {
    color: #fff;
  }
  .copyright .allright {
    float: none;
    text-align: center;
    display: block;
    width: 100%;
  }
  /* No line between social icons and rest of footer on mobile */
  section.copyright {
    border-top: none !important;
  }
}
@media screen and (max-width: 480px) {
  .copyright .ftrlink2 li {
    padding: 0 6px;
  }
  .copyright .ftrlink2 li a {
    font-size: 11px;
  }
}
