/*
Theme Name: Botiga Child
Theme URI: http://athemes.com/theme/botiga
Author: aThemes
Author URI: http://athemes.com
Template: botiga
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: botiga
*/

/* #CF303A */
/* #D5495B */
/* #DD6D7E */

/* WordPress adds random empty <p> around shortcodes so just not show them  */
p:empty {
  display: none;
}

/* Added custom styles for links */
.wei-link-red,
.wei-link-red:visited,
.botiga-wc-loop-product__title:visited,
.woocommerce-product-attributes-item__value a:visited,
.wc-block-product-categories-list-item a:visited {
  color: var(--bt-color-link-default, #cf303a) !important;
}

.wei-link-red:link:hover,
.wei-link-red:visited:hover,
.botiga-wc-loop-product__title:visited:hover,
.woocommerce-product-attributes-item__value a:visited,
.wc-block-product-categories-list-item a:visited:hover {
  color: var(--bt-color-link-hover, #d5495b) !important;
}

/* Change the desktop header grid so that the logo has less space  */
@media (min-width: 1025px) {
  .bhfb-row.bhfb-cols-layout-equal-desktop.bhfb-cols-3 {
    grid-template-columns: 2fr 1fr 2fr !important;
  }
}

/* Global filter on the shopping pages  */
.btsf-filter h4.botiga-accordion-toggle {
  padding-bottom: 16px;
}
.botiga-accordion-toggle + .botiga-accordion-body {
  padding-top: 0px !important;
}
.btsf-filter-list-item {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.btsf-terms-checkbox {
  flex: 1;
  margin-right: 40px;
}

/* Desktop filter on the shopping pages  */
@media (min-width: 990px) {
  .btsf-filter h4.botiga-accordion-toggle {
    font-size: var(--bt-font-size-body, 16px) !important;
  }
}

/* Mobile filter button on the shopping pages */
@media (max-width: 990px) {
  .woocommerce-sorting-wrapper .row .col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .woocommerce-sorting-wrapper .botiga-sorting-left-inner,
  .woocommerce-sorting-wrapper
    .botiga-sorting-left-inner
    .sidebar-open-wrapper {
    width: 100%;
  }
  .sidebar-slide .sidebar-open-wrapper .sidebar-open {
    background-color: #cf303a;
    padding: 10px 18px;
    color: #ffffff;
    justify-content: center;
  }
  .sidebar-slide .sidebar-open-wrapper .sidebar-open svg {
    fill: #ffffff;
  }
}

/* Shopping pages hide extra margin below price */
ul.products li.product .price {
  margin-bottom: 0px !important;
}

/* Get started with your first consult call to action in the sub header */
.cta-consult-sub-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Usp items in the top header */
.bhfb-component-html2,
.header-html {
  width: 100%;
}
.usp-items {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}
.usp-item {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #ffffff;
  flex: 1 1 0;
}
.usp-item:nth-child(1) {
  justify-content: flex-start;
}
.usp-item:nth-child(2) {
  justify-content: center;
}
.usp-item:nth-child(3) {
  justify-content: flex-end;
}
@media only screen and (max-width: 767px) {
  .usp-items {
    justify-content: center;
  }
  .usp-item:nth-child(2),
  .usp-item:nth-child(3) {
    display: none;
  }
  .usp-item:nth-child(1) {
    justify-content: center;
    flex: 0 1 auto;
  }
}

/* Woocommerce cart sticky totals fixes */
@media (min-width: 992px) {
  .cart-layout2 .woocommerce-cart-form {
    width: 65%;
  }
}
@media (min-width: 992px) {
  .cart-layout2 .cart_totals {
    width: 35% !important;
  }
}

/* Woocommerce checkout country and zipcode correct size */
@media (min-width: 768px) {
  #billing_country_field,
  #billing_postcode_field {
    -ms-flex: 0 0 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  #billing_state_field {
    -ms-flex: 0 0 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Single product page featured image size */
@media only screen and (min-width: 768px) {
  .woocommerce-product-gallery__image img {
    max-height: 450px !important;
    width: auto !important;
  }
}
@media only screen and (max-width: 768px) {
  .woocommerce-product-gallery__image img {
    max-height: 275px !important;
    width: auto !important;
  }
}

/* Product catalog page featured image size */
.botiga-add-to-cart-button-layout1 .attachment-woocommerce_thumbnail {
  max-height: 200px !important;
  width: auto !important;
  margin: auto !important;
}

/* Shop page header text less padding and margin */
.woocommerce-page-header {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}
@media (max-width: 991px) {
  .woocommerce-page-header {
    padding-top: 18px !important;
    padding-bottom: 48px !important;
  }
  .woocommerce-page-header + .content-wrapper {
    margin-top: 47px !important;
    margin-bottom: 40px !important;
  }
}

/* Custom style for the grid in the content of a custom product tab */
.product-custom-tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 32px;
  padding: 0;
  margin: 0;
}
.product-custom-tab-grid .tab-content-card {
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.product-custom-tab-grid .tab-content-card .featured-image {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
}

/* Custom style for the lines lists in the content of a custom product tab */
.product-custom-tab-item-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-custom-tab-item-lines p {
  margin-bottom: 0px;
}

/* Button in footer widget correct hover color */
.bhfb-footer .bhfb-component-widget1 .widget-column .widget a {
  color: var(--wp--preset--color--color-5, #ffffff) !important;
}

/* Category and attribute description */
.term-description p,
.term-description .full-description {
  margin-bottom: 18px !important;
}

/* Woocommerce archive description read more & read less styles */
.wei-woo-term-description {
  position: relative;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.wei-woo-term-description.collapsed {
  max-height: 105px;
}
.wei-woo-term-description.expanded {
  max-height: 40000px;
}
.wei-woo-term-description-content {
  margin: 0;
  padding: 0;
}
.wei-woo-term-description.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
  pointer-events: none;
}
.wei-toggle-read-more-button {
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--bt-color-link-default, #cf303a) !important;
}
.wei-toggle-read-more-button:hover {
  color: var(--bt-color-link-hover, #d5495b) !important;
}
.wei-woo-term-description.collapsed
  + .wei-toggle-read-more-button
  .wei-toggle-read-less-text,
.wei-woo-term-description.expanded
  + .wei-toggle-read-more-button
  .wei-toggle-read-more-text {
  display: none;
}
@media (max-width: 990px) {
  .wei-toggle-read-more-button {
    margin-bottom: 36px;
  }
}

/* Woocommerce categories list widget */
.wc-block-product-categories-list--has-images
  .wc-block-product-categories-list-item__image {
  max-width: 75px !important;
  border-radius: 4px !important;
}
.wc-block-product-categories-list--has-images
  .wc-block-product-categories-list-item {
  margin: 0px 0 12px 60px !important;
}

/* Botiga adds spacing to the pages. Remove it for the following id's */
.page-id-1575 .content-wrapper,
.page-id-313 .content-wrapper {
  margin-top: 42px !important;
}

/* Fluent forms previous, next & submit buttons */
.ff-btn {
  cursor: pointer;
}
.fluentform_wrapper_5.ffs_custom_wrap .ff-el-form-check-radio {
  background-color: #f7f7f7 !important;
}

/* Fluent forms phone select button */
.fluentform .iti__selected-flag {
  border-bottom-left-radius: 0px !important;
  border-top-left-radius: 0px !important;
}

/* Translatepress auto redirect suggestion popup */
#trp_ald_modal_container {
  background-color: rgba(0, 0, 0, 0.6) !important;
}
#trp_ald_modal_popup {
  padding: 24px !important;
}
#trp_ald_modal_popup .trp-ls-shortcode-language {
  background-color: #ffffff !important;
}
#trp_ald_modal_popup .trp-ls-shortcode-current-language {
  padding-left: 12px !important;
}
#trp_ald_popup_change_language {
  background-color: #CF303A !important;
  border-color: #CF303A !important;
}
#trp_ald_x_button_and_textarea {
  gap: 6px !important;
  color: #CF303A !important;
}

#trp_ald_modal_popup #trp_ald_x_button::before {
  color: #CF303A !important;
}
#trp_ald_x_button_textarea {
  color: #CF303A !important;
}

/* Woocommerce single product tabs correctly aligned */
@media (min-width: 768px) {
  .botiga-tabs-style4 .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
  }
  .botiga-tabs-style4 .woocommerce-tabs ul.tabs li:not(:first-child) {
    margin-left: 0px !important;
  }
}

/* WordPress single blog post */
.post-thumbnail .attachment-botiga-extra-large {
  max-height: 300px !important;
  width: auto;
  display: block;
  margin: auto;
}