﻿/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

#dch iframe {
  border-radius: 16px !important;
}

/* Formerly stored in Custom JS Plugin CSS options. */
.wpml-ls-menu-item .wpml-ls-flag {
  max-width: 18px;
}

.top-menu ul li .sub-menu li.wpml-ls-menu-item > a {
  padding: 5px 15px;
}

.ri-block .title-cont p {
  display: none;
}

.site-header {
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-template-default #main h1 {
  margin: 0.4em 0;
}

.ui-widget {
  font-family: Montserrat, Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

@media (min-width: 768px) {
  .script-inner-wrapper {
    max-width: 1150px !important;
  }

  .script-wrapper {
    min-height: 626px !important;
  }

  #dch {
    min-height: 396px !important;
  }
}

.rental-logos {
  padding-top: 5px !important;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
}


.rental-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rental-logo a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.rental-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.script-wrapper--localrent {
  min-height: 0 !important;
}

.rental-localrent-hero-row {
  flex: 0 0 100%;
  width: 100%;
}

.script-wrapper--localrent .script-inner-wrapper {
  padding-top: 16px;
  padding-bottom: 16px;
}

.script-wrapper--localrent .script-inner-wrapper2 {
  padding-bottom: 12px;
}

.script-wrapper--localrent .entry-title {
  margin: 14px 0 8px !important;
}

.script-wrapper--localrent .preim {
  margin: 0;
  padding-bottom: 10px;
}

.script-wrapper--localrent .breadcrumb {
  margin-top: 10px !important;
}

.localrent-hero-description {
  margin: 0 0 12px;
  color: #fff;
}

.rental-localrent-widget,
.rental-page-modules {
  margin-bottom: 80px;
}

.rental-localrent-widget {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 20px;
  position: relative;
}

/* External Localrent code mounts asynchronously and can expand into a long list. */
.rental-localrent-skeleton {
  display: none;
}

@supports selector(.rental-localrent-widget:has(.mrcwhitelabel)) {
  .rental-localrent-widget:not(:has(.mrcwhitelabel)) {
    min-height: 420px;
  }

  .rental-localrent-widget:not(:has(.mrcwhitelabel)) .rental-localrent-skeleton {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    display: grid;
    width: 100%;
    min-height: 420px;
    padding: 24px;
    gap: 20px;
    background: #fff;
  }

  .rental-localrent-widget:not(:has(.mrcwhitelabel)) .rental-localrent-widget__content {
    visibility: hidden;
  }

  .rental-localrent-widget:has(.mrcwhitelabel) .rental-localrent-skeleton {
    display: none;
  }

  .rental-localrent-widget:has(.mrcwhitelabel) .rental-localrent-widget__content {
    visibility: visible;
  }

  .rental-localrent-widget:not(:has(.mrcwhitelabel)) + .rental-logos,
  .rental-localrent-widget:not(:has(.mrcwhitelabel)) ~ .content-area {
    display: none;
  }
}

.rental-localrent-skeleton__cards > span,
.rental-localrent-skeleton__line,
.rental-localrent-skeleton__fields span,
.rental-localrent-skeleton__button {
  background: linear-gradient(90deg, #edf1f3 25%, #f7f9fa 37%, #edf1f3 63%);
  background-size: 400% 100%;
  animation: rental-localrent-skeleton-pulse 1.4s ease infinite;
}

.rental-localrent-skeleton__search {
  display: grid;
  padding: 24px;
  gap: 16px;
  border: 1px solid #e3e9ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 42, 53, .06);
}

.rental-localrent-skeleton__line {
  display: block;
  height: 18px;
  border-radius: 6px;
}

.rental-localrent-skeleton__line--title {
  width: 32%;
}

.rental-localrent-skeleton__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rental-localrent-skeleton__fields span {
  display: block;
  height: 54px;
  border-radius: 10px;
}

.rental-localrent-skeleton__button {
  display: block;
  width: 180px;
  height: 48px;
  margin-left: auto;
  border-radius: 10px;
}

.rental-localrent-skeleton__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rental-localrent-skeleton__cards > span {
  display: block;
  height: 110px;
  border-radius: 12px;
}

@keyframes rental-localrent-skeleton-pulse {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rental-localrent-skeleton__search,
  .rental-localrent-skeleton__cards > span,
  .rental-localrent-skeleton__line,
  .rental-localrent-skeleton__fields span,
  .rental-localrent-skeleton__button {
    animation: none;
  }
}

/* Legacy hero layout, moved from the old plugin to the child theme. */
.rental-page-hero .script-inner-wrapper2 {
  min-height: 0 !important;
  padding: 1px 0 20px;
}

.rental-page-hero .script-inner-wrapper {
  width: 100%;
  max-width: 1150px !important;
  margin: 0 auto;
}

.rental-page-hero .script-inner-wrapper .breadcrumb {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  opacity: 1;
}

.rental-page-hero .breadcrumb,
.rental-page-hero .breadcrumb a,
.rental-page-hero .breadcrumb span {
  font-size: 12px;
}

.rental-page-hero .preim {
  padding-bottom: 0;
  color: #fff;
  text-align: center;
}

.rental-page-hero .rental-page-widget--discovercars #dch {
  width: 96%;
  max-width: 1150px;
  margin: 0 auto;
}

/* The hero begins directly after the header on supported page templates. */
body.page-template-default .site-header,
body.page-template-template-localrent .site-header,
body.page-template-template-localrent-php .site-header,
body.page-template-template-home .site-header,
body.page-template-template-home-php .site-header {
  margin-bottom: 0 !important;
  border-bottom: 0;
  box-shadow: none;
}

body.page-template-default .main-navigation + .header-separator,
body.page-template-template-localrent .main-navigation + .header-separator,
body.page-template-template-localrent-php .main-navigation + .header-separator,
body.page-template-template-home .main-navigation + .header-separator,
body.page-template-template-home-php .main-navigation + .header-separator {
  height: 0;
  margin: 0;
  border: 0;
}

@media (min-width: 768px) {
  body.page-template-default .mobile-menu-placeholder + .site-content,
  body.page-template-template-localrent .mobile-menu-placeholder + .site-content,
  body.page-template-template-localrent-php .mobile-menu-placeholder + .site-content,
  body.page-template-template-home .mobile-menu-placeholder + .site-content,
  body.page-template-template-home-php .mobile-menu-placeholder + .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: transparent;
    border-top: 0;
  }

  .rental-page-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-right: -50vw;
    margin-bottom: 20px;
    margin-left: -50vw;
  }

  .rental-page-hero .entry-title {
    margin: 30px 0 !important;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .9);
  }

  .rental-page-hero .breadcrumb span,
  .rental-page-hero .breadcrumb a {
    color: #fff !important;
  }

  .rental-page-hero .preim {
    padding-bottom: 30px;
  }

  .script-wrapper--localrent.rental-page-hero .entry-title {
    margin: 14px 0 8px !important;
  }

  .script-wrapper--localrent.rental-page-hero .preim {
    margin: 0;
    padding-bottom: 10px;
  }

  .script-wrapper--localrent.rental-page-hero .script-inner-wrapper .breadcrumb {
    margin-top: 10px !important;
  }
}

@media (min-width: 1200px) {
  body.page #content {
    max-width: 1190px !important;
  }
}

@media (max-width: 767px) {
  .rental-localrent-skeleton__fields,
  .rental-localrent-skeleton__cards {
    grid-template-columns: 1fr;
  }

  .rental-localrent-skeleton__button {
    width: 100%;
  }

  body.page-template-default .mobile-menu-placeholder + .site-content,
  body.page-template-template-localrent .mobile-menu-placeholder + .site-content,
  body.page-template-template-localrent-php .mobile-menu-placeholder + .site-content,
  body.page-template-template-home .mobile-menu-placeholder + .site-content,
  body.page-template-template-home-php .mobile-menu-placeholder + .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: transparent;
    border-top: 0;
  }

  .script-wrapper.rental-page-hero {
    width: 100% !important;
    margin-bottom: 30px;
    margin-left: 0 !important;
    padding: 0 0 10px;
  }

  .rental-page-hero .script-inner-wrapper {
    padding: 0 15px;
  }

  .rental-page-hero .entry-title {
    padding: 30px 0 10px !important;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .9);
  }

  .script-wrapper--localrent .entry-title {
    margin: 0 0 6px !important;
    padding: 16px 0 6px !important;
  }

  .script-wrapper--localrent .script-inner-wrapper {
    padding-top: 0;
    padding-bottom: 10px;
  }

  .script-wrapper--localrent .preim {
    margin-bottom: 8px;
    padding-bottom: 0;
  }

  .rental-page-hero .preim {
    margin-bottom: 20px;
  }
}

@media (min-width: 768px) {
  .rental-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  .rental-logo {
    flex: 0 0 calc(10% - 16px);
    max-width: 120px;
    min-width: 60px;
  }

}

@media (max-width: 767px) {
  .site-content {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px !important;
  }

  .page-template-default #main h1 {
    margin-top: 0px !important;
  }

  .script-wrapper {
    min-height: 684px !important;
    width: 100vw !important;
    margin-left: -10px;
  }

  #dch {
    min-height: 414.2px !important;
  }

  .rental-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  .entry-content figure.wp-caption.alignright {
    float: none !important;
  }
}

.site-footer .footer-bottom li.menu-item span.removed-link {
  padding-right: 7px !important;
}

.site-footer .footer-bottom li.menu-item:first-child span.removed-link {
  padding-right: 10px !important;
}

.entry-content .cars-module-grid {
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: separate; /* Required for border-radius */
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  table-layout: auto;
  background: #F9F9F9;
  border: 1px solid #F9F9F9;
}
th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  white-space: normal;
}
th {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  font-weight: 600;
}
th:first-child {
  border-top-left-radius: 12px;
}
th:last-child {
  border-top-right-radius: 12px;
}
tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}
tbody tr:nth-of-type(odd) {
  background-color: #F4F4F4;
}

tbody tr:nth-of-type(even) {
  background-color: #F9F9F9;
}

tbody tr:hover {
  background-color: #e6e6e6;
}

@media (max-width: 768px) {
  th, td {
    padding: 6px 8px;
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .footer-widgets {
      padding-bottom: 10px;
  }
  .footer-widget {
    margin-left: 0px;
    margin-right: 0px;
  }
}

.footer-widget ul {
  list-style: none;
  padding-left: 10px;
  margin-left: 10px;
}

.footer-widget ul li {
  margin-bottom: 8px;
}

.footer-widget ul li a {
  text-decoration: none;
}

.site-footer {
  padding-top: 30px;
}

.entry-content blockquote:not(.wpremark).info {
  border-radius: 12px;
}

.inst-block.inst-block-fullwidth, .ri-block.ri-block-fullwidth {
  border-radius: 20px !important;
}

.inst-block, .ri-block { 
border-radius: 15px !important;
}

.ndncc-block-wrapper, .ndncc-block, .benefit-block {
  border-radius: 20px !important;
}
