:root {
  --border-radius-default: 1rem;
  --max-width-shortcode-extra-compact: 400px;
  --max-width-shortcode-compact: 600px;
}

#wpludo_main {
  max-width: unset; /* Override certain themes that set a max width */
  width: 100%;
}

.pagination {
  font: 12px Arial, Helvetica, sans-serif;

}

.pagination a {
  background: #fff;
  border: 1px solid #999999;
  color: #999999;
  margin: 2px;
  padding: .2em .4em;
  text-decoration: none;
}

.pagination a:hover {
  background: #fff;
  border: 1px solid #666666;
  color: #bd88fe;
}

.pagination span.inactive {
  background: #fff;
  border: 1px solid #999999;
  color: #f0f0ff;
  margin: 2px;
  padding: .2em .4em;
}

.pagination span.active {
  background: #f4ebff;
  border: 1px solid #e0e0e0;
  color: #e0e0e0;
  font-weight: 700;
  margin: 2px;
  padding: .2em .4em;
}

.bloc_pagination {
  clear: both;
}

html {
  box-sizing: border-box;
}

*,
*:after,
*:before {
  box-sizing: inherit;
}

.main {
  margin: auto;
  max-width: 100%;
  padding: 0 2%;
  width: 100%;
}

.go-row {
  margin: auto;
  margin: 20px;
  max-width: 100%;
}

.go-row.equal-height {
  display: -webkit-flex;
  /* https://stackoverflow.com/questions/19695784/#answer-22892773 */
  display: flex;
  flex-wrap: wrap;
}

.go-column {
  padding: 1em;
  width: 25%;
}
@media screen and (max-width: 1500px) {
  .go-column {
    display: block;
    width: 33%;
  }
}
@media screen and (max-width: 1200px) {
  .go-column {
    display: block;
    width: 50%;
  }
}
@media screen and (max-width: 950px) {
  .go-column {
    display: block;
    width: 100%;
  }
}
@media screen and (max-width: 767px) {
  .go-column {
    display: block;
    width: 50%;
  }
}
@media screen and (max-width: 650px) {
  .go-column {
    display: block;
    width: 100%;
  }
}

.card {
  background-color: white;
  border-radius: var(--border-radius-default);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  /* min-height: 280px; */
  position: relative;
  height: 100%;
  margin-bottom: 5rem;
}

.card .product-data .title {
  color: #000;
}

.card .product-data ul {
  list-style-type: none;
  margin: 1rem 0 1rem 0;
  padding-left: 0;
  line-height: 1.8rem;
}

.card .card-buttons {
  background-color: hsl(0, 0%, 96%);
  border-bottom-left-radius: var(--border-radius-default);
  border-bottom-right-radius: var(--border-radius-default);
  bottom: 0;
  left: 0;
  padding: 1rem 0;
  position: absolute;
  right: 0;
  transition: all 0.3s ease;
}
.card:hover .card-buttons {
  background-color: hsl(0, 0%, 93%);
}

.card .availability-icon {
  opacity: 0.6;
  position: absolute;
  right: -12px;
  top: -12px;
  transition: all 0.3s ease;
}
.card:hover .availability-icon {
  opacity: 1;
}

.card a.view-cart {
  color: yellow;
}
.card a.view-cart:hover {
  text-decoration: underline;
}

.go-container {
  padding: 0 1.2rem;
}

/* .go-container::after,
.row::after {
  clear: both;
  content: "";
  display: table;
} */

/* .title {
  color: grey;
} */

/* .clear {
  clear: both;
} */

/* .go-responsive {
  height: auto;
  width: 80%;
} */

.product-code {
  font-size: 1em;
  overflow: hidden;
  margin: 1rem 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.product-name {
  font-size: 1.3em;
  overflow: hidden;
  margin: 1.5rem 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.product-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-top: 2rem solid transparent; /* Give catalog product image some spacing on top */
  border-top-left-radius: var(--border-radius-default);
  border-top-right-radius: var(--border-radius-default);
  cursor: pointer;
  height: 200px;
  width: 100%;
}

.product-data {
  cursor: pointer;
}

/* -- Catalog filters -- */

div.filter-buttons {
  margin-top: 1rem;
}

div.filter-buttons .btn:last-child {
  margin: 0 0 0 1rem;
}

div.filter-buttons a {
  text-decoration: none; /* Override certain themes that underline links */
}

div.cart-button {
  margin-top: 4em;
  margin-bottom: 2em;
}

div.cart-button a {
  width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1429px) {
  div.filter-buttons {
    display: flex;
    flex-direction: column-reverse;
  }
  div.filter-buttons .btn:last-child {
    margin: 0 0 1.5rem 0;
  }
}

/* -- Catalog messages -- */

div.product-message {
  border-radius: var(--border-radius-default);;
  color: white;
  display: inline-block;
  margin: 1rem;
  padding: 1rem;
  text-align: center;
}

div.product-message.success {
  background-color: #449d44;
}

div.product-message.error {
  background-color: red;
}

/* -- Admin page -- */
#wpludo-admin-order-table {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#wpludo-admin-order-table th.column-code {
	width: 80px;
}

#wpludo-admin-order-table th.column-delete {
	width: 30px;
}

#wpludo-admin-order-table th.column-date {
	width: 160px;
}

#wpludo-admin-order-table th.column-client {
	width: 200px;
}

/* -- Cart page -- */

#wpludo-cart-container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-width-shortcode-compact);
  text-align: center;
}

#wpludo-cart {
  background-color: white;
}

#wpludo-cart td.wpludo-cart-table-product {
	width: 25%;
}

#wpludo-cart td.remove-from-cart {
  width: 1rem;
  margin: 0;
}

/* -- Modal base styles -- */

/* The Modal (background) */
.wpludo-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

/* Modal Container */
.modal-container {
  background-color: #fefefe;
  border-radius: var(--border-radius-default);
  margin: 5rem auto;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
}

.modal-container .loading-message {
  width: 100%;
  padding: 3em;
  text-align: center;
}

img.modal-close {
  float: right;
  margin: 1em 1em 0 0;
}

img.modal-close:hover {
  opacity: 0.7;
}

.modal-close:hover,
.modal-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* -- Modal product details -- */

#modal-product-title {
  background-color: whitesmoke;
  border-top-left-radius: var(--border-radius-default);
  border-top-right-radius: var(--border-radius-default);
  font-weight: bold;
  padding: 1rem;
  text-align: center;
}

#modal-product-title img {
  display: inline;
  height: 1.6rem;
  margin: 0 0 0 0.5rem;
  position: absolute;
}

#modal-product-details img {
  display: block;
  margin: 3rem auto 3rem auto;
}

#modal-product-details > p,
#modal-product-details > div.flex-container {
  margin: 0 3vw 1.5rem 3vw;
  padding: 0;
}

#modal-product-details .title {
  color: black;
  font-weight: 700;
}

#modal-product-details .flex-container {
  display: flex;
  flex-wrap: wrap;
}

#modal-product-details .flex-container > * {
  flex: 1 1 300px;
  margin: 0rem 1rem 1rem 0rem;
}

#modal-product-details .flex-container .unavailable {
  color: red;
}
#modal-product-details .flex-container .available {
  color: green;
}

@media only screen and (max-width: 700px){
  #modal-product-details .flex-container > * {
    margin: 0 0 1rem 0;
  }
}

/* -- Rentals page -- */

#wpludo-rentals-container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-width-shortcode-extra-compact);
  text-align: center;
}

#wpludo-rentals-container input#email {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-width-shortcode-extra-compact);
}

#wpludo-rentals-container p {
  margin-bottom: 1rem;
}