@font-face {
  font-family: 'Hero New';
  font-style: normal;
  font-weight: normal;
  src: local('Hero New Light'), url('../font/Hero New Light.woff') format('woff');
}

@font-face {
  font-family: 'Hero New';
  font-style: normal;
  font-weight: bold;
  src: local('Hero New Medium'), url('../font/Hero New Medium.woff') format('woff');
}

@font-face {
  font-family: 'LibreBaskerville';
  font-style: normal;
  font-weight: normal;
  src: local('Baskerville'), url('../font/LibreBaskerville-Bold.otf') format('woff');
}

:root {
  --main-color: rgb(137, 23, 23);
  --secondary-color: rgb(205, 226, 219);
  --main-gap: 2rem;
  --column-size: 22rem;
  --border-radius: 0.5rem;
  --animation-timing: 0.2s;
  --main-red: rgb(255, 0, 0);
  --main-green: rgb(155, 255, 100);
  --main-orange: rgb(255, 177, 94);
}

body {
  color: var(--main-color);
  font-family: 'Hero New', sans-serif;
  letter-spacing: 0.1rem;
  height: 100vh;
  max-width: 150rem;
}

/* --- MOBILE NAV --- */
.mobile_nav {
  display: none;
}

.mobile_close {
  display: none;
}

/* --- MAIN NAV --- */
header {
  background-color: var(--secondary-color);
  padding: 3rem;
  width: var(--column-size);
  height: 100vh;
  top: 0;
  left: 0;
  position: fixed;
  text-transform: uppercase;
  overflow-y: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

/* logo */
header div.logo {
  margin-bottom: 2rem;
}

header div.logo a {
  display: block;
}

header div.logo h2 {
  font-size: 1.1rem;
  line-height: 1.6rem;
  padding: 0;
  margin: 0;
  font-weight: bold;
}

header div.logo img.logo {
  display: block;
  width: 100%;
  height: auto;
  margin-left: -.5rem;
  margin-bottom: 0.2rem;
}

/* nav */
header nav {
  margin-bottom: 5rem;
}

header nav ul li {
  margin-bottom: 0.8rem;
}

header nav ul li a {
  display: inline-block;
  padding: 0.2rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid white;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  display: block;
  height: 1px;
  width: 0;
  transition: width 0.2s;
  overflow: hidden;
}

body.wine header nav ul li a.wine::after,
body.domain header nav ul li a.domain::after,
body.about header nav ul li a.about::after,
body.contact header nav ul li a.contact::after {
  background-color: var(--main-color);
  width: 100%;
}

header nav ul li a:hover::after {
  background-color: var(--main-color);
  width: 100%;
}

/* user */
header div.user ul li {
  padding-bottom: 0.3rem;
}

header div.user ul li a {
  display: inline-block;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid white;
}

header div.user ul li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  display: block;
  height: 1px;
  width: 0;
  transition: width 0.2s;
  overflow: hidden;
  z-index: 10;
}

body.login header div.user ul li a.login::after,
body.creation header div.user ul li a.creation::after,
body.my_basket header div.user ul li a.my_basket::after,
body.my_orders header div.user ul li a.my_orders::after,
body.my_account header div.user ul li a.my_account::after {
  background-color: var(--main-color);
  width: 100%;
}

header div.user ul li a:hover::after {
  background-color: var(--main-color);
  width: 100%;
}

header div.user ul li a span {
  display: inline-block;
  width: 1.3rem;
}

header div.user div.username {
  margin-bottom: 0.5rem;
}

header div.user ul li #basket_menu_number {
  display: inline-block;
}

header div.user ul li div.number {
  z-index: 0;
  display: inline-block;
  background-color: var(--main-color);
  color: white;
  padding: 0.15rem 0.4rem;
  font-size: 0.85rem;
  margin-top: -0.1rem;
  margin-bottom: -0.1rem;
  border-radius: var(--border-radius);
  font-weight: bold;
}

/* footer */
header div.footer {
  margin-top: auto;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.5);
  padding: 2rem 0;
}

header div.footer a {
  transition: color var(--animation-timing);
}

body.cgv header div.footer a.cgv,
body.mentions header div.footer a.mentions {
  color: black;
}

header div.footer a:hover {
  color: black;
}

header div.footer ul {
  margin-bottom: 0.3rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header div.footer ul.advantage li {
  padding-bottom: 0.2rem;
}

header div.footer div.abus {
  font-size: 0.7rem;
}

/* --- extras --- */
body.extras main h1,
body.extras main h2,
body.extras main p,
body.extras main ul {
  max-width: 40rem;
  padding-bottom: 2rem;
}

body.extras main h1 {
  font-weight: bold;
  font-size: 2rem;
}

body.extras main h2 {
  font-weight: bold;
  font-size: 1.6rem;
}

/* --- MAIN SECTION --- */
main {
  background-color: white;
  margin-left: var(--column-size);
  padding: var(--main-gap);
  min-height: 100vh;
}

/* --- HOME --- */
body.home main,
body.connexion main,
body.about main,
body.contact main,
body.infos main,
body.my_basket main,
body.my_orders main,
body.my_order main,
body.my_account main {
  background-image: url('../img/coin-de-vigne.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* --- WAITER --- */
.waiter {
  width: 12rem;
}

@keyframes waiter_rotation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes waiter_blink {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.2;
  }
}

.waiter img {
  width: 5rem;
  height: 5rem;
  margin: 3.5rem 3.5rem 1rem 3.5rem;
  animation-name: waiter_rotation;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.waiter div {
  text-align: center;
  padding-bottom: 2rem;
  animation-name: waiter_blink;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
}

/* --- TITRE SOULIGNÉ --- */
h1.souligne,
h2.souligne,
h3.souligne {
  text-align: center;
  font-size: 2rem;
  text-transform: uppercase;
  padding-bottom: 1rem;
  margin: 3rem 0;
  background-image: url('../img/souligne.svg');
  background-position: bottom center;
  background-size: 5rem;
  background-repeat: no-repeat;
}

.souligne.small {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

h3.small_bold {
  font-size: 1.5rem;
  margin-top: 2rem;
  font-weight: bold;
  text-transform: uppercase;
}

h3.small_bold:first-child {
  margin-top: 0;
}

/* --- WINE LIST --- */
body.wine_list div.filters {
  position: fixed;
  top: 0;
  width: calc(var(--column-size) - 2rem);
  height: 100vh;
  overflow-y: auto;
  padding-right: 2rem;
}

body.wine_list div.filters .show_filters{
  display:none;
}

body.wine_list div.filters .title {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
}

body.wine_list div.filters #filters_form{
  margin-bottom: 3rem;
  display:block;
}

body.wine_list div.filters .mobile_menu {
  display:none;
}

body.wine_list div.filters #filters_form input[type='submit'] {
  margin-top: 2rem;
}

body.wine_list div#ajax_bottle_list {
  margin-left: var(--column-size);
}


/* current filters */
body.wine_list div.current_filters {
  width:100%;
  margin-bottom:2rem;
  display:flex;
  flex-wrap: wrap;
}

body.wine_list div.current_filters .button {
  display:inline-block;
  padding:0.3rem 0.5rem;
  border: 1px solid var(--main-color);
  margin:0 0.5rem 0.5rem 0;
  cursor:pointer;
  border-radius:var(--border-radius);
  font-size:0.9rem;
  line-height:0.9rem;
  order:2;
}

body.wine_list div.current_filters .button.search{
  order:1;
}

/* bottle list */
body.wine_list div.bottle_list {
  display: flex;
  flex-wrap: wrap;
}

body.wine_list div.bottle_list a.bottle_thumbnail {
  margin: 0 var(--main-gap) var(--main-gap) 0;
}


/* pagination */
body.wine_list .pagination {
  display: block;
  width: 100%;
  margin-top: 2rem;
  border-top: 1px solid var(--secondary-color);
  padding-top: 2rem;
  margin-bottom: 5rem;
  text-align: center;
}

body.wine_list .pagination a,
body.wine_list .pagination .current {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  border: 1px solid var(--secondary-color);
  border-radius: 2rem;
  transition: all var(--animation-timing);
}

body.wine_list .pagination .current {
  background-color: var(--secondary-color);
  cursor: default;
}

body.wine_list .pagination a:hover {
  background-color: var(--main-color);
  color: white;
  border-color: var(--main-color);
}

/* --- BOTTLE THUMBNAIL --- */
a.bottle_thumbnail {
  display: block;
}

a.bottle_thumbnail article {
  border: 1px solid var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: grid;
  width: 16rem;
  grid-template-rows: 23rem auto;
  transition: background-color var(--animation-timing);
}

a.bottle_thumbnail:hover article {
  background-color: var(--secondary-color);
  color: black;
}

a.bottle_thumbnail article div.image {
  background-image: url('../img/bouteille.svg');
  background-position: center;
  background-size: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: calc(-1rem - 1px);
  margin-bottom: 1rem;
  overflow: hidden;
}

a.bottle_thumbnail article .region {
  display: inline-block;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: solid 1px rgba(0, 0, 0, 0.2);
}

a.bottle_thumbnail article .domain {
  font-size: 1.1rem;
}

a.bottle_thumbnail article .name {
  font-weight: bold;
  font-size: 1.1rem;
}

a.bottle_thumbnail article div.price {
  display: inline-block;
  margin-top: 0.5rem;
  padding-top: 0.3rem;
  border-top: solid 1px rgba(0, 0, 0, 0.2);
  font-weight: bold;
}

a.bottle_thumbnail article div.price span.discounted{
  text-decoration: line-through;
  padding-right:0.5rem;
}


/* --- LABELS --- */
a.bottle_thumbnail .labels {
  position: absolute;
  display:grid;
  grid-gap: 0.5rem;
  top: -1rem;
  right: -1rem;
  justify-items:end;
}

/* ON TOP

a.bottle_thumbnail .on_top {
  color: white;
  text-transform: uppercase;
  transform: rotate(-6deg);
  font-size:0.9rem;
  font-weight:bold;
  letter-spacing:0.1rem;
}

a.bottle_thumbnail .on_top span {
  display: block;
  padding: 0.2rem 0.8rem;
}


a.bottle_thumbnail .on_top span.first {
  background-image: url('../img/banniere_droite.svg');
  background-size: cover;
  background-position: center left;
  text-align: right;
  margin-left: -1rem;
}

a.bottle_thumbnail .on_top span.second {
  background-image: url('../img/banniere_gauche.svg');
  background-size: cover;
  background-position: center right;
  text-align: left;
  margin-right: -1rem;
  margin-top: -0.5rem;
}
*/

/* LABEL */

a.bottle_thumbnail .label {
  display:inline-block;
  color:black;
  background-color:white;
  text-transform: uppercase;
  font-size:0.8rem;
  font-weight:bold;
  letter-spacing:0.1rem;
  padding: 0.2rem 0.8rem;
  outline:1px solid rgba(0,0,0,0.2);
  outline-offset: -1px;
}

a.bottle_thumbnail .label::after {
  display:block;
  position:absolute;
  right:0;
  bottom:-1rem;
  content: '';
  width:1rem;
  height:1rem;
  background-image: url('../img/ombre_label.png');
  background-size: 1rem 1rem;
  background-position:center;
}

/* On TOP */
a.bottle_thumbnail .label.new {
  background-color: var(--main-color);
  color:white;
}

/* DISCOUNT */
a.bottle_thumbnail .label.discount {
  background-color: var(--main-green);
}

/* NEW */
a.bottle_thumbnail .label.on_top {
  background-color: var(--secondary-color);
}

/* FAVORITE */
a.bottle_thumbnail .label.favorite {
  background-color: yellow;
}

/* --- TEXT DESCRIPTION --- */
.text_description p {
  padding-bottom: 1rem;
}

.text_description p:last-child {
  padding-bottom: 0rem;
}

/* --- WINE DETAIL --- */
body.wine_detail .back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid var(--secondary-color);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color var(--animation-timing);
}

body.wine_detail .back:hover {
  background-color: var(--secondary-color);
}

body.wine_detail article.bottle {
  display: grid;
  grid-template-columns: minmax(10rem, 40rem) minmax(10rem, 40rem);
  grid-gap: var(--main-gap);
  align-items: start;
}

/* slideshow
body.wine_detail #slideshow{
  width:100%;
}

body.wine_detail #slideshow img{
  display:block;
  width:100%;
  height:auto;
}

body.wine_detail #previews{
  display:flex;
  flex-wrap: wrap;
  margin-top:1rem;
}

body.wine_detail #previews img{
  display:block;
  cursor:pointer;
  margin:0 1rem 1rem 0;
}

body.wine_detail article.bottle div.images div.preview a{
  display:block;
}

body.wine_detail article.bottle div.images div.preview img{
  display:block;
  width:5rem;
  height:auto;
  margin:0 1rem 1rem 0;
}

*/
/* image */
body.wine_detail .bottle .image {
  width: 100%;
}

body.wine_detail .bottle .image img {
  width: 100%;
  height: auto;
}

/* infos */
body.wine_detail article.bottle div.infos {
  display: grid;
  grid-gap: 1rem;
  color: black;
  justify-items: start;
}

body.wine_detail article.bottle div.infos .display_label{
  display:inline-block;
  padding:0.8rem;
  font-size:1rem;
  text-transform: uppercase;
  outline:1px solid rgba(0,0,0,0.2);
  outline-offset: -1px;
}

body.wine_detail article.bottle div.infos .on_top{
  background-color:var(--secondary-color);
}

body.wine_detail article.bottle div.infos .new{
  background-color:var(--main-color);
  color:white;
}

body.wine_detail article.bottle div.infos .favorite{
  background-color:yellow;
  color:black;
}

body.wine_detail article.bottle div.infos span.label {
  display: block;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.5);
}

body.wine_detail article.bottle div.infos div.region span.region {
  display: inline-block;
  opacity: 0.7;
  font-size: 1.2rem;
  padding-bottom: 0.3rem;
  border-bottom: solid 1px rgba(0, 0, 0, 0.2);
}

body.wine_detail article.bottle div.infos div.name {
  font-size: 1.5rem;
}

body.wine_detail article.bottle div.infos div.name h1,
body.wine_detail article.bottle div.infos div.name div {
  font-weight: bold;
}

body.wine_detail article.bottle div.infos div.name,
body.wine_detail article.bottle div.infos div.year {
  font-size: 2rem;
}

/* extras */
div.extras {
  margin-top: 4rem;
  border-top: 1px solid var(--main-color);
  padding-top: 4rem;
}

div.extras div.chapo {
  position: absolute;
  display: inline-block;
  top: -0.8rem;
  background-color: white;
  text-transform: uppercase;
  padding: 0 1rem 0 0;
}

/* --- ORDER WINE --- */
div.order_wine {
  display: block;
  width: 100%;
  max-width: 20rem;
  border: 1px solid var(--main-color);
  border-radius: var(--border-radius);
}

div.order_wine form.normalize {
  grid-gap: 0;
}

div.order_wine .price {
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  color: var(--main-color);
}

div.order_wine .hidden_price {
  font-size: 1.5rem;
}

div.order_wine .price.discounted {
  font-size: 1.2rem;
  text-decoration:line-through;
}

div.order_wine .price.alone{
  border-bottom:1px solid var(--main-color);
}

div.order_wine .price.alone.discounted{
  border-bottom:none;
}

div.order_wine .discount_display {
  font-size:1.3rem;
  padding: 0.5rem 1rem;
  color:var(--main-green);
  background-color: black;
  font-weight: bold;
  text-transform: uppercase;
}

div.order_wine .discount_price {
  background-color:var(--main-green);
  color: black;
}

div.order_wine .bottle_available {
  padding: 0.5rem 1rem;
}

div.order_wine .quantity {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

div.order_wine .add button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 0;
  border: 0;
  background-color: var(--main-color);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--animation-timing);
  text-align: left;
  outline: 0px !important;
  appearance: none;
}

div.order_wine .add button span{
  padding-right:0.4rem;
}

div.order_wine .add button:hover,
div.order_wine .add button:focus {
  background-color: black;
}

div.order_wine .error,
div.order_wine .success {
  padding: 1rem;
}

div.order_wine .error {
  background-color: var(--main-red);
  color: white;
}

div.order_wine .success {
  background-color: var(--main-green);
}

div.order_wine .r2d2 {
  background-color: var(--main-orange);
  padding: 1rem;
  font-size: 1.1rem;
}

/* --- FULL DOMAIN --- */
div.full_domain {
  display: grid;
  grid-template-columns: minmax(30rem, 1fr) 2fr;
  grid-gap: var(--main-gap);
}

div.full_domain div.domain {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--main-gap);
}

div.full_domain div.domain h4,
div.full_domain div.domain h3 {
  grid-column: 1 / 3;
}

div.full_domain .sisters_list {
  display: flex;
  flex-wrap: wrap;
}

div.full_domain .sisters_list a {
  margin: 0 var(--main-gap) var(--main-gap) 0;
}

/* --- DOMAIN THUMBNAIL --- */
div.domain_thumbnail {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
}

div.domain_thumbnail div.image {
  width: 100%;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

div.domain_thumbnail div.image img {
  width: 100%;
  height: auto;
}

div.domain_thumbnail div.title {
  margin-top: -3rem;
  text-align: center;
}

div.domain_thumbnail h3.souligne {
  font-size: 1.5rem;
  margin-top: 0;
  padding: 1rem 1.2rem;
  border: 2px solid var(--main-color);
  display: inline-block;
  background-color: white;
  background-image: none;
  border-radius: var(--border-radius);
}

div.domain_thumbnail div.description {
  padding: 0rem 2rem 2rem 2rem;
}

/* --- DOMAIN LIST --- */
body.domain_list div.domain_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
}

/* --- USERS --- */
body.user.connexion main {
  display: grid;
  grid-gap: var(--main-gap);
  grid-template-columns: 30rem 30rem;
  align-items: start;
}

body.user div.connexion {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.1rem 2rem 2rem 2rem;
  border-radius: var(--border-radius);
}

body.user div.connexion .forget {
  margin-top: 2rem;
  display: inline-block;
  font-weight: bold;
}

body.user div.connexion p {
  padding-bottom: 1rem;
}

body.user div.connexion .important {
  font-weight: bold;
}

/* --- BASKET / ORDERS --- */
body.orders section.basket ,
body.orders section.orders,
body.user section.account {
  border: 2px solid var(--main-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  max-width: 80rem;
  background-color:white;
}

/* process */
body.orders section.basket div.process {
  background-color: var(--main-color);
  margin: -3rem -3rem 2rem -3rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  line-height: 1.6rem;
}

body.orders section.basket div.process ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

body.orders section.basket div.process ul li a {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 0.5rem;
  align-items: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

body.orders section.basket div.process li span.fa-arrow-right {
  display: block;
  padding: 1rem;
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: rgba(255, 255, 255, 0.5);
}

body.orders section.basket div.process li div.picto span {
  display: block;
  line-height: 3rem;
}

body.orders.basket section.basket div.process ul li a.basket,
body.orders.delivery section.basket div.process ul li a.delivery,
body.orders.billing section.basket div.process ul li a.billing,
body.orders.validation section.basket div.process ul li a.validation {
  color: white;
}

/* articles */
body.orders ul.articles {
  margin-bottom: 2rem;
  width: 100%;
}

body.orders ul.articles li {
  display: grid;
  grid-template-columns: 40% 19% 15% 19% 7%;
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
}

body.orders ul.articles li:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.05);
}

body.orders ul.articles li>div {
  padding: 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--secondary-color);
}

body.orders ul.articles li.total {
  background-color: white;
  font-weight: bold;
}

body.orders ul.articles li.total>div {
  border-bottom: 0px;
}

body.orders ul.articles .label{
  display:none;
}

body.orders ul.articles .region {
  display: inline-block;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: solid 1px rgba(0, 0, 0, 0.2);
}

body.orders ul.articles .domain {
  font-size: 1.1rem;
}

body.orders ul.articles .name {
  font-weight: bold;
  font-size: 1.1rem;
}

body.orders ul.articles .quantity .help {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

body.orders ul.articles .quantity form.normalize {
  grid-gap: 0;
}

body.orders ul.articles .price {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.5);
}

body.orders ul.articles .VAT_price {
  font-size: 1.3rem;
}

body.orders ul.articles .price.discounted,
body.orders ul.articles .VAT_price.discounted{
  text-decoration: line-through;
}

body.orders ul.articles .discount{
  background-color: var(--main-green);
  padding:0.2rem 0.7rem;
  display:inline-block;
  outline:1px solid rgba(0,0,0,0.2);
  outline-offset: -1px;
  color:black;
  text-transform:uppercase;
  font-size:0.9rem;
  margin:0.5rem 0;
}

body.orders ul.articles .prices * {
  font-weight: bold;
}

body.orders ul.articles .del {
  width: 5rem;
}

body.orders ul.articles form.normalize * {
  width:100%;
  font-size: 0.9rem;
}

body.orders ul.articles .del form.normalize button {
  background-color: transparent;
  color: var(--main-color);
  font-size: 1.2rem;
}

body.orders ul.articles .del form.normalize button span {
  font-size: inherit;
}

/* delivery_and_discount */
div.delivery_and_discount {
  display: grid;
  grid-gap: 3rem;
  align-items: start;
}

/* unavailable delivery */
div.delivery_and_discount div.unavailable_delivery,
div.order_summary div.unavailable_delivery {
  background-color:var(--main-orange);
  color:black;
  font-weight:bold;
  padding:2rem;
  text-align:center;
  font-size:1.3rem;
  border-radius: var(--border-radius);
}

div.order_summary div.unavailable_delivery{
  margin:1rem 0;
}

/* delivery_choices */
div.delivery_choices {
  display: grid;
  grid-gap: var(--main-gap);
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

div.delivery_choices form.normalize button.choice {
  display: block;
  padding: 1rem;
  margin: 0;
  cursor: pointer;
  border-radius: var(--border-radius);
  border: 1px solid var(--secondary-color);
  background-color: transparent;
  color: rgba(0, 0, 0, 0.7);
  text-align: left;
}

div.delivery_choices form.normalize button.choice span.fa {
  display: none;
}

div.delivery_choices form.normalize button.choice.checked {
  background-color: var(--secondary-color);
  color: black;
}

div.delivery_choices form.normalize button.choice.checked span.fa {
  display: inline-block;
}

div.delivery_choices .choice h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* discount */
.delivery_and_discount div.discount {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-gap: 1rem;
  align-items: center;
  max-width: 30rem;
}

/* price_summary */
.delivery_and_discount div.right {
  display: grid;
  grid-gap: var(--main-gap);
}

ul.price_summary {
  width: 100%;
  display: table;
}

ul.price_summary li {
  display: table-row;
}

ul.price_summary li div {
  display: table-cell;
  padding: 0.5rem;
}

ul.price_summary li:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.05);
}

ul.price_summary li div.TTC{
  font-size:1.2rem;
}

ul.price_summary li div.HT, ul.price_summary li div.VAT{
  color:rgba(0,0,0,0.5);
}

ul.price_summary li.total div {
  font-weight: bold;
}

/* continue */
a.normalize.button.continue,
form.normalize button.continue {
  width: auto;
  margin-left: auto;
  font-size: 1.3rem;
  padding: 1rem 1.3rem;
  margin-top: 2rem;
  letter-spacing: 0.1rem;
}

/* address */
form.normalize.address {
  max-width: 40rem;
  margin: auto;
}

form.normalize.address .row.divided.city {
  grid-template-columns: 10rem auto;
}

form.normalize.address .row.address textarea {
  height: 8rem;
}

form.normalize.address div.phone {
  margin-top: 2rem;
}

form.normalize.address div.comment {
  margin-bottom: 2rem;
}

form.normalize.address span.optional {
  color: rgba(0, 0, 0, 0.4);
}

/* validation */
body.my_basket.validation form.cgv {
  display: block;
  margin-top: 3rem;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
}

body.my_basket.validation form.cgv.normalize button.continue {
  margin-left: 0;
}

body.my_basket.validation form.cgv a {
  display: inline-block;
  color: rgb(0, 0, 0, 0.7);
  text-decoration: underline;
  margin-top: 0.5rem;
}

/* --- MY ORDERS --- */

body.orders section.orders h1.souligne,
body.user section.account h1.souligne{
  margin-top:0;
}


body.my_orders ul.orders {
  display: grid;
  grid-gap: 2rem;
}

body.my_orders ul.orders li {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 2fr;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  transition: all var(--animation-timing);
}

body.my_orders ul.orders a {
  display: block;
}

body.my_orders ul.orders a:hover li {
  border: 1px solid var(--main-color);
  background-color: rgba(0, 0, 0, 0.05);
}

body.my_orders ul.orders li div.label {
  color: rgba(0, 0, 0, 0.7);
  padding: 1rem 1rem 0.3rem 1rem;
  font-size: 0.8rem;
}

body.my_orders ul.orders li div.value {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  color: black;
}

body.my_orders ul.orders li div.value.paiement {
  background-color: yellow;
}

body.my_orders ul.orders li div.value.running {
  background-color: var(--main-green);
}

body.my_orders ul.orders li div.value span.fa {
  display: none;
}

body.my_orders ul.orders li div.value.paiement span.fa-credit-card,
body.my_orders ul.orders li div.value.running span.fa-sync-alt,
body.my_orders ul.orders li div.value.cancel span.fa-times,
body.my_orders ul.orders li div.value.finished span.fa-check {
  display: inline-block;
}

/* --- ORDER SUMMARY --- */
div.order_summary div.address_block {
  display: inline-block;
  margin-top: 0.5rem;
}

div.order_summary div.address_block>div {
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

div.order_summary div.address_block>div:last-child {
  border-bottom: none;
  padding-bottom: 0rem;
  margin-bottom: 0rem;
}

/* --- MY ORDER --- */
body.my_order .order {
  display: grid;
  grid-gap: var(--main-gap);
}

body.my_order .process ul{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--main-radius);
}

body.my_order .process li.title {
  background-color: var(--main-color);
  color: white;
  padding: 0.5rem;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.9rem;
  width:100%;
}

body.my_order .process .step {
  padding: 1rem;
  text-align: center;
  width:20rem;
}

body.my_order .process .step .date {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
}

body.my_order .process .step .state {
  font-size: 1.2rem;
}

body.my_order .process .step span {
  display: none;
  font-size: 1.7rem;
  margin-bottom:0.5rem;
}


body.my_order .process .step.step_10 span.fa-tasks,
body.my_order .process .step.step_20 span.fa-credit-card,
body.my_order .process .step.step_30 span.fa-file-invoice,
body.my_order .process .step.step_40 span.fa-shipping-fast,
body.my_order .process .step.step_50 span.fa-dolly,
body.my_order .process .step.step_60 span.fa-check,
body.my_order .process .step.step_100 span.fa-times,
body.my_order .process .step.step_110 span.fa-times {
  display: block;
}

body.my_order .success {
  padding: 2rem;
  background-color: var(--main-green);
  margin-bottom: 2rem;
  border-radius: var(--main-radius);
}

/* payment_waiting */
.payment_waiting {
  background-color: yellow;
  padding: 2rem;
  margin-bottom: 2rem;
  color: black;
}

.payment_waiting .choices {
  display: grid;
  grid-gap: 2rem;
}

.payment_waiting h2 {
  font-size: 2rem;
  padding-bottom: 1rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.payment_waiting .cb {
  display: block;
  font-size: 1.1rem;
  border: 2px solid black;
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: background-color var(--animation-timing);
}


.payment_waiting .amex {
  display: inline-block;
  font-size: 1.1rem;
  border: 1px solid black;
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: background-color var(--animation-timing);
}

.payment_waiting .other .amex h3{
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-gap: 1rem;
  padding-bottom:0;

}

.payment_waiting .cb:hover,
.payment_waiting .amex:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.payment_waiting .cb h3 {
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.payment_waiting .other h3 {
  font-weight: bold;
  font-size: 1.3rem;
  padding-bottom: 0.5rem;
}

.payment_waiting .other h3.choices {
  font-weight: bold;
}

.payment_waiting .other div.choices_table div{
  padding-top:1rem;
}

.payment_waiting p {
  padding-bottom: 1rem;
}

.payment_waiting p:last-child {
  padding-bottom: 0;
}

/* invoice */
body.my_order .follow {
  margin-bottom: 2rem;
}

body.my_order a.normalize.button.download_invoice {
  display: inline-block;
  width: auto;
}

/* --- MY ACCOUNT --- */

.my_account ul.infos{
  margin-bottom:4rem;
}

.my_account ul.infos:last-child{
  margin-bottom:0;
}

.my_account ul.infos > li {
  display:grid;
  grid-template-columns: 20rem auto;
  grid-gap: var(--main-gap);
  align-items: center;
  font-size:1.1rem;
  margin-bottom:1rem;
}

.my_account ul.infos > li div:first-child{
  text-align:right;
  color:rgba(0,0,0,0.5);
}

.my_account a.normalize.button,
.my_account form.normalize input[type="submit"],
.my_account form.normalize button{
  display:inline-block;
  width:auto;
}

.my_account .buttons{
  display:flex;
  justify-content: space-between;
}

/* --- ABOUT / CONTACT / INFOS--- */
body.about div.about,
body.contact div.contact,
body.infos div.infos {
  max-width: 50rem;
  background-color: white;
  padding: 2rem;
}

body.about div.about p,
body.contact div.contact p,
body.infos div.infos p {
  padding-bottom: 1rem;
}

body.infos div.infos h2 {
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  margin-top: 1rem;
}
