/*************************************************
=============== GENERAL
*************************************************/
.wwp-content {
  width: 100%;
}

/*************************************************
=============== LAYOUT
*************************************************/
.grid_1-3,
.grid_2,
.grid_3 {
  display: grid;
  gap: 18px;
}

.grid_1-3 {
  grid-template-columns: 1fr 3fr;
}

.grid_2 {
  grid-template-columns: 1fr 1fr;
}

.grid_3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/*************************************************
=============== PRODUCT
*************************************************/
/*summary*/
.summary .button,
.summary #openPopupBtn {
  margin: 10px !important;
  display: inline-block;
  font-weight: 600;
}

.summary .button.btn-to-variations {
  background-color: #470e17;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1ch;
}

/*tags*/

.tags{
  position: absolute;
  top: -5px;
  right: 5px;
  display: flex;
}


.tag {
  font-size: 0.7em;
  display: inline-block;
  padding: 1px 8px;
  background-color: #eee;
  border-radius: 4px; 
  text-transform: capitalize;
}

/*notes*/
.note-summary {
  margin-top: 20px;
}

.note-container .note-tag {
  display: inline-block;
  background-color: #eee;
  padding: 5px;
  border-radius: 5px;
  margin: auto 5px;
  font-weight: bold;
}
.note-summary .note-container p {
  float: left;
  margin-right: 14px;
}

.note-container .comment {
  font-style: italic;
  padding-top: 5px;
}

.note-container .comment::after {
  clear: both;
  content: "";
}

/*Note in product tabs*/
.wwp-note {
  display: flex;
}

/* Attributes table */
.woocommerce-js table.shop_attributes{
  border: none!important;
}
.woocommerce-js div.product .woocommerce-tabs .shop_attributes td, .woocommerce-js div.product .woocommerce-tabs .shop_attributes th{
  border: none!important;
  padding: .05em .67em!important;
}
.woocommerce-js table.shop_attributes th{
  width: 220px!important;
  font-weight: 600!important;
}

.woocommerce-product-attributes-item__value p {
  margin-top: 10px !important;
}


/* ==== PDF Popup */

.pv-popup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999999;
}

.pv-popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  height: 100vh;
  overflow-y: scroll;
  max-width: 1060px;
  margin: auto;
}

.pv-popup .close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

/* === PRODUCT TABS*/
ul.tabs.wc-tabs {
  display: flex;
  justify-content: stretch;
  align-items: center;
  flex-direction: row;
}

.panel.wc-tab {
  background: #fafafa;
  padding: 30px!important;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs li {
  flex: 1;
  text-align: left;
  width: auto;
  margin: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
.woocommerce
  div.ast-product-tabs-layout-vertical
  .woocommerce-tabs
  ul.tabs
  li:hover::before {
  background: #470e17 !important;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs::before {
  height: 2px;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs li a {
  padding-left: 3% !important;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs li a::before {
  content: "";
  display: inline-block;
  width: 2ch;
  height: 2ch;
  background-size: contain;
  background-image: url("../img/icons/open.png");
  margin-right: 10px;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs li.active a::before {
  background-image: url("../img/icons/close.png");
}

/* === Variations section .shop_table*/
#wwp-variations-table {
  margin: 64px 0;
}
#wwp-variations-table .woocommerce-Price-amount.amount {
  font-weight: 600;
}
.woocommerce #wwp-variations-table table.shop_table_responsive tr td::before,
.woocommerce-page
  #wwp-variations-table
  table.shop_table_responsive
  tr
  td::before {
  content: "";
}

.woocommerce #wwp-variations-table table.shop_table_responsive tr,
.woocommerce-page #wwp-variations-table table.shop_table_responsive tr {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #000;
  align-items: center;
}

.woocommerce #wwp-variations-table table.shop_table_responsive tr td,
.woocommerce-page #wwp-variations-table table.shop_table_responsive tr td {
  text-align: left !important;
  border-width: 0;
}

@media screen and (min-width: 920px) {
  .woocommerce #wwp-variations-table table.shop_table_responsive tr th,
  .woocommerce #wwp-variations-table table.shop_table_responsive tr td {
    flex: 1;
  }
  .woocommerce
    #wwp-variations-table
    table.shop_table_responsive
    tr
    th:last-child,
  .woocommerce
    #wwp-variations-table
    table.shop_table_responsive
    tr
    td:last-child {
    flex: 2;
  }
}

.woocommerce-js table.shop_table, .woocommerce-page table.shop_table {
  border: none!important;
}

/***** ========== Attributes */
.custom-shop-attributes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 0.85em;
  margin-bottom: 18px;
}

.single-col {
  grid-template-columns: 1fr;
  font-size: 0.95em;
  padding: 2em 0;
}

.custom-shop-attributes p {
  margin: 0;
  padding: 0;
}

p.custom-att {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
  align-items: end;
}

p.custom-att.no-label {
  grid-template-columns: 1fr 4fr;
}

.custom-att .woocommerce-product-attributes-item__label {
  font-weight: 600;
}

/*Attributes ICONS*/
.woocommerce-product-attributes-item__label {
  position: relative;
}

.woocommerce-product-attributes-item__label::before,
.meta-domain::before {
  content: "";
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 15px;
  background-size: contain;
  background-position: center;
  margin-top: 10px;
  background-image: url("../img/icons/info.png");
}

.woocommerce-product-attributes-item--attribute_pa_appellation
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/label.png");
}

.woocommerce-product-attributes-item--attribute_pa_chateau
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/bottle.png");
}

.woocommerce-product-attributes-item--attribute_pa_couleur
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/drop.png");
}

.woocommerce-product-attributes-item--attribute_pa_millesime
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/tire-bouchon.png");
}

.woocommerce-product-attributes-item--attribute_pa_region
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/region.png");
}

.woocommerce-product-attributes-item--attribute_pa_degre
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/pourcentage.png");
}

.woocommerce-product-attributes-item--attribute_pa_conditionnement
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/packaging.png");
}

.woocommerce-product-attributes-item--attribute_pa_producteur
  .woocommerce-product-attributes-item__label::before,
.meta-domain::before {
  background-image: url("../img/icons/chateau.png");
}

.woocommerce-product-attributes-item--attribute_pa_pays
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/pays.png");
}

.woocommerce-product-attributes-item--attribute_pa_classement
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/certificate-2.png");
}

.woocommerce-product-attributes-item--attribute_pa_bio
  .woocommerce-product-attributes-item__label::before {
  background-image: url("../img/icons/feuilles.png");
}
/**********************************
***** CHARTS
**********************************/
/*****CHARTS prices -> bar chart*/

.chart {
  display: grid;
  gap: 1%;
  align-items: end;
  min-height: 300px;
  max-width:500px;
  border-top: 2px solid #eee;
  margin-bottom: 65px;
  position: relative;
}

.chart  .horizontal-bar{
  --height : 0;
  position: absolute;
  height: 1px;
  width: 100%;
  left:0;
  bottom: var(--height);
  background-color: rgba(0,0,0,.35);
  z-index: -1;
}



.bar {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: rgba(186, 172, 172, .45);
  color: rgba(0,0,0,.7);
  font-weight:600;
  font-size: .75em;
}

.bar .bullet{
  display: block;
  width : 10px;
  height: 10px;
  margin: 0 auto;
  border-radius: 20px;
  background: #000;
}

.bar .bar-label{
  display:inline-block;
  width: 60px;
  margin: auto 0;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  position: absolute;
  bottom: -30px;
}

/**********************************
***** WISHLIST 
**********************************/
/*Buttons*/
button.wwp-wishlist-btn {
  /*background: url('../img/button/wishlist.png') center no-repeat;*/
  background: url("../img/button/add-favorite.png") center no-repeat;
  background-size: contain;
  box-shadow: none;
  border: none;
  width: 40px;
  height: 30px;
  color: transparent;
  display: block;
}

button.wwp-wishlist-btn.remove-from-wishlist {
  /*background-image: url('../img/button/in-wishlist.png');*/
  background-image: url("../img/button/in-favorite.png");
}

ul.wishlist-products {
  list-style: none;
}

li.wishlist-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

li.wishlist-item > * {
  display: inline-block;
  flex: 1;
}
/**********************************
***** WINE meta card
**********************************/
.data-card-item ul {
  margin-left: 26px;
  list-style-type: none;
}

.meta-label {
  font-weight: bold;
  text-transform: uppercase;
  font-size: .9em;
}

/**********************************
***** PDF SINGLE WINE
**********************************/
#tab-pdf .button{
  width: 100%;
  background: white;
  border: 2px solid #000;
  color: #000;
  text-transform: uppercase;
  font-weight: 800;
}

#pdf{
  font-size: 11pt;
  font-family: sans-serif;
  padding: 26pt;
}

#pdf img{
  max-width:100%;
}

.pdf-grid_2{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pdf-grid_2-1{
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.pdf-grid_1-2{
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.pdf-grid_3{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr
}

/**/
.pdf-content ul{
  margin-top: 0;
  padding: 0;
  padding-left: 10px
}

/*Titles*/
.pdf-title{
  position: relative;
  font-size: 14pt;
  text-transform: uppercase;
  margin-top: 20px;
}
.pdf-title::before{
  content: "";
  display: inline-block;
  width: 14pt;
  height: 14pt;
  margin-right: 10pt;
  background-color: #770014;
  border-radius: 14pt;
}

.pdf-title small {
  font-size: 9pt;
  display: inline-block;
  font-weight: normal;
  margin-left: 29pt;
}
/* Pdf header */
.pdf-header img{
  display: block;
  text-align: center;
  margin: 10pt auto;
}

/* Pdf data content */
.pdf-img{
  position: relative;
  z-index: 1;
}

#pdf .main-img {
  width: 100%;
  height: 70%;
  object-fit: contain;
  margin: -30% auto auto auto;
}

.deco-img{
  position: absolute;
  object-fit: cover;
  object-position: left center;
  width: 140%;
  height: 120px !important;
  max-width: none !important;
  z-index: -1;
  top: 50%;
  left: -40%;
}

.separator-img {
  width: 100%;
  height: 80px !important;
  max-width: 600px !important;
  object-fit: cover; 
  margin: 20px auto;
 
}

/* Pdf footer */
.pdf-footer{
  font-size: 9pt;
}

/*************************************************
=============== ARCHIVE AND TAXONOMIES
*************************************************/
.wwp-tax-header {
  padding: 20px;
  text-align: center;
}
.archive .infos-box {
  padding: 40px 0;
}

/************ SHOP LOOP **/
.woocommerce-js ul.products li.product,
.woocommerce-page ul.products li.product {
  border-bottom: 2px solid #9a0e14;
  padding-bottom: 30px;
}
.woocommerce-js ul.products li.product a img {
  object-fit: contain;
  min-width: 150px !important;
  min-height: 150px !important;
  max-width: 200px !important;
  max-height: 200px !important;
  margin-right: 30px;
}

/* ASTRA THEME support */
.astra-shop-thumbnail-wrap {
  margin-right: 30px;
}

.ast-on-card-button {
  display: none !important;
}


@media screen and (min-width: 924px) {
  .woocommerce-js ul.products li.product,
  .woocommerce-page ul.products li.product,
  .woocommerce-js ul.products li.product.ast-grid-common-col {
    text-align: left !important;
    display: grid;
    grid-template-columns: 1fr 3fr;
  }
}
/*************************************************
=============== CLIENT ACCOUNT
*************************************************/

/*HIDE SOME FIELDS FROM EDITACCOUNT TAB*/
label[for="account_display_name"],
#account_display_name {
  display: none !important;
}
.woocommerce-form-row em {
  display: none;
}

/*************************************************
=============== 
*************************************************/

/*************************************************
=============== CALENDAR
*************************************************/
.entry-content #calendar a {
  text-decoration: none;
}
/*Hide event time (unecessary)*/
.fc-list-event-time {
  display: none;
}
/*Day*/
#calendar.fc .fc-daygrid-day-top{
  flex-direction: row;
}

.fc-daygrid-day-number {
  background: #470e17;
  border-radius: 50px;
  color: white;
  display: flex;
  font-size: 13px;
  font-weight: bold;
  min-width: 3ch;
  text-align: center;
  height: 3ch;
  justify-content: center;
  align-items: center;
}

/*Today bg*/
#calendar.fc .fc-daygrid-day.fc-day-today {
  background-color: #eee;
}

#calendar {
  --scrollbar-color-thumb: #fff;
  --scrollbar-color-track: #ccc;
  --scrollbar-width: thin;
  --scrollbar-width-legacy: 10px;
}

/* Modern browsers with `scrollbar-*` support */
@supports (scrollbar-width: auto) {
  #calendar {
      scrollbar-color: var(--scrollbar-color-thumb) var(--scrollbar-color-track);
      scrollbar-width: var(--scrollbar-width);
  }
}

/* Legacy browsers with `::-webkit-scrollbar-*` support */
@supports selector(::-webkit-scrollbar) {
  #calendar::-webkit-scrollbar-thumb {
      background: var(--scrollbar-color-thumb);
  }
  #calendar::-webkit-scrollbar-track {
      background: var(--scrollbar-color-track);
  }
  #calendar::-webkit-scrollbar {
      max-width: var(--scrollbar-width-legacy);
      max-height: var(--scrollbar-width-legacy);
  }
}

/*************************************************
=============== OTHER PLUGINS AND THEMES COMPATIBILITY
*************************************************/
/* ====== astra theme ====== */
a.ast-button.ast-badge-tax {
  background-color: #9a0e14;
  font-weight: 600;
  letter-spacing: 0.1ch;
}

/*images-*/
.ast-article-single img {
  box-shadow: none;
}

/*Shop*/
.ast-archive-entry-banner {
  background: #fff;
}

.ast-left-sidebar #primary {
  border-left: none;
}
.ast-left-sidebar #secondary {
  border-right: none;
}

/* ====== WPC Filters (filter anything) ====== */
/* Widget forms */
.woocommerce-js .widget_wpc_filters_widget select{
  padding: 0 .8em;
}

/*
@media screen and (max-width: 768px) {
  #wpc_filters_widget-2, .wpc-filters-main-wrap {
    position: fixed;
    top: 30px;
    z-index: 99;
    width: 80%;
  }

  body .wpc-filters-open-button-container a.wpc-open-close-filters-button{
    background-color: white!important;
  }

  .wpc-filters-widget-content.wpc-show-counts-yes.wpc-opened {
    background: white;
    padding: 10px;
  }
}
*/