/*
Theme Name: Canero Configurator
Theme URI: https://ideart.com.au
Author: Marcin Urbanski | IDEART
Author URI: https://ideart.com.au
Description: Child theme for the Canero 3D Configurator platform.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfour
Text Domain: canero_configurator
Tags:
*/

/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
  --oa-accent: #fffb0c;
  --oa-white: #ffffff;
  --oa-black: #121212;
  --oa-text-dark: #333333;
  --oa-input-bg: #dddddd;
}

/* ==========================================================
   BASE
   ========================================================== */

html,
body {
  overflow-x: hidden;
  touch-action: pan-x pan-y;
  cursor: default;
}

:active,
:focus {
  outline: none !important;
  box-shadow: none !important;
}

.wp-block-template-part {
  padding: 0;
  margin: 0;
}

.wp-block-group {
  gap: 5px !important;
  margin: 0 !important;
}

.wp-block-columns {
  padding: 2px 6px;
  margin: 2px 6px;
}

/* ==========================================================
   GALLERY GRID
   ========================================================== */

.wp-block-post-template.is-layout-grid {
  align-items: stretch;
}

.gallery_tile {
  min-width: 140px;
  height: 100%;
  display: flex;
  text-align: center;
  vertical-align: middle;
  filter: brightness(0.98);
  transition:
    filter 0.3s ease,
    border 0.2s ease;
}

.gallery_tile:hover {
  border-color: var(--oa-white) !important;
  filter: brightness(1.15);
}

.gallery_tile .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin: 0 !important;
}

.post-card .wp-block-post-title,
.post-card .wp-block-post-title a {
  color: #000 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.car_image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.car_image img {
  min-width: 140px;
  max-width: 100%;
  height: auto;
}

/* ==========================================================
   SEARCH
   ========================================================== */

.wp-block-search__input {
  color: var(--oa-text-dark) !important;
  padding: 2px 6px;
  border: 2px solid var(--oa-white) !important;
  font-size: 13px !important;
  background-color: var(--oa-input-bg) !important;
}

.wp-block-search__button {
  border: 2px solid var(--oa-white) !important;
  transition:
    background-color 0.3s ease,
    border 0.3s ease;
}

.wp-block-search__button:hover {
  background-color: var(--oa-black) !important;
  border: 2px solid var(--oa-accent) !important;
}

.wp-block-search__button:hover .search-icon path {
  fill: var(--oa-accent) !important;
}

.wp-block-search__button .search-icon {
  fill: #000 !important;
  color: #000 !important;
}

.wp-block-search__button .search-icon:hover {
  fill: #000 !important;
  color: #000 !important;
}

/* ==========================================================
   FOOTER
   ========================================================== */

@media (max-width: 768px) {
  .footer-columns,
  .footer-columns.is-layout-flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    font-size: 11px !important;
  }

  .footer-columns .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .footer-columns .wp-block-column p {
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .footer-columns .wp-block-column p {
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.4;
  }
}

/* ==========================================================
   STAGGS
   ========================================================== */

.staggs-configurator-main {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.staggs-configurator-main.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
  .wp-block-post-template.is-layout-grid.wp-block-post-template-is-layout-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .wp-block-post-template.is-layout-grid {
    gap: 4px;
  }

  .wp-block-group {
    padding: 10px 16px;
  }
}

@media (max-width: 500px) {
  .wp-block-search__input {
    font-size: 16px !important;
  }

  .wp-block-column h2 {
    font-size: 10px !important;
  }

  .wp-block-column p {
    font-size: 10px !important;
  }

  .wp-block-group {
    padding: 2px !important;
    margin: 0 !important;
    gap: 2px !important;
  }
}
