
._100vw {width: 100%}

/* ========================================
   EXPRESS CHECKOUT SECTION
   ======================================== */
.express-checkout-section {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 0.8rem;
  padding: 2.4rem;
  margin-bottom: 3.2rem;
}

.express-checkout-title {
  font-size: 2rem;
  margin-top: 0 !important;
  margin-bottom: 0.8rem !important;
  color: #333;
}

.express-checkout-subtitle {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 1.6rem;
  font-weight: 400;
}

.express-checkout-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.express-checkout-buttons > div {
  min-height: 48px;
}

.express-divider {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 2.4rem 0 0;
}

.express-divider span:first-child,
.express-divider span:last-child {
  flex: 1;
  height: 1px;
  background: #d0d0d0;
}

.express-divider-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* ========================================
   INLINE VALIDATION STYLES
   ======================================== */
.field-input.valid,
input.valid,
textarea.valid {
  border-color: #4caf50 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234caf50'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.6rem;
  padding-right: 3.6rem;
}

.field-input.invalid,
input.invalid,
textarea.invalid {
  border-color: #f44336 !important;
  border-width: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23f44336'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.6rem;
  padding-right: 3.6rem;
}

.field-error {
  display: block;
  color: #f44336;
  font-size: 1.3rem;
  margin-top: 0.4rem;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for better accessibility */
.field-input:focus,
input:focus,
textarea:focus {
  outline: 2px solid #2196f3;
  outline-offset: 2px;
}

.field-input.invalid:focus,
input.invalid:focus,
textarea.invalid:focus {
  outline-color: #f44336;
}

.field-input.valid:focus,
input.valid:focus,
textarea.valid:focus {
  outline-color: #4caf50;
}

#order {
  background-color: #ffffff;
  padding:  1.6rem .8rem;
}
#order .titles {
  display: inline-flex;
  align-items: center;
  font-family: 'Oswald';
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .1rem;
  margin:.8rem 0 .4rem;
  
}
#order .sub-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#discount {
  width: 100%;
}
#discount > p {
  width: 100%;
  
}
#discount .amount {
  margin: 0 0 0 auto;
}
#discount .amount::before {
 content: '-';
}
#discount .discount {
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 .8rem;
  color: #FF0000;
}
.tranquility .accordion_tabs:not(:last-child){margin-bottom:1.6rem;}
.checkout-actions {
  order:2;
}
#order.visible {
  top: 0;
}
#order .invisible {
  display: none;
}
#order .item {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  margin-bottom: .8rem;
}
#order picture img {
  max-width: 6.4rem;
  margin-right: .4rem;
}
.item-infos {
  display: inline-flex;
  flex-direction: column;
  max-width: 50%;
  font-size: 1.2rem;
  padding-left: .8rem;
}
.item-infos .item-price {
  font-weight: 700;
}
#order .item .material-symbols-rounded {
  font-size: 2rem;
}
.item-actions {
  margin: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.item-actions > select {
  margin-right: .8rem !important;
  border-color: rgba(0,0,0,.37);
  font-size: 1.6rem;
}


.already-customer {

  margin-top: 1.6rem;
}
.step {

    display: inline-flex;
    width: 3.2rem;
    height: 3.2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: #9E9E9E;
    color: #ffffff;
    /* border: 0.1rem solid #9E9E9E; */
    border-radius: 50%;
    margin-right: 0.8rem;
    font-size: 1.6rem;
    overflow: hidden;
}
.step .number, .step .icon {
  width: 3.2rem;
  height:3.2rem;
  text-align: center;
  line-height: 3.2rem;
  transition: transform, .3s;
}


.step.check {
    background-color: #689F38;
    color: #ffffff;
}

.step.check .number, .step.check .icon {
  transform: translateY(-3.2rem);
}
.decorate {
  align-items: center;
    justify-content: center;
    margin: 1.6rem 0;
    font-size: 3.2rem;
    font-family: Oswald;    
}

.decorate b {
  font-weight: 500;
}



.checkout-methods > .payment-items:not(:last-child){margin-bottom: 1.6rem;}

.payment-items.pay-later{
  display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.8rem 1.2rem;
    border-width: 0.2rem;
    border-style: solid;
    background-color: #FFFFFF;

}

.pay-later .pro-features {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-family: Oswald;
    text-transform: uppercase;
    font-size: 2.4rem;
    
}

.pay-later  .pay-when-shipping{font-weight: 500;margin-bottom:2.4rem;}

.pay-later button .icon {
  font-size: 2.4rem;
}

.shipping-info {
  font-weight: 500;
  font-size: 1.4rem;
}

.shipping-method {
  padding: 1.2rem;
  background: #f9f9f9;
  border-radius: 0.4rem;
  margin: 0.8rem 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.bloc-carrier {
  padding: 1.2rem;
  margin: 1.6rem 0;
  clear: both;
  overflow: hidden;
}
.delivery-type {
  
  font-weight: 600;
}
.delivery-type:first-letter{
  text-transform: capitalize;
}
.our-terms {
  text-align: right;
  font-weight: 400;
  text-transform: none;
  font-size: 1.4rem;
  padding: 2.4rem 0;
}

.delivery-method {
    margin-bottom: 2.4rem;
    padding-left: 1.6rem;
}
.delivery-method > p {
    font-weight: 300;
    margin-bottom: 0;
}

.delivery-method > p:first-of-type {
        font-family: Oswald;
    background-color: #fafafa;
    color: #1997c6;
    font-weight: 500;
    height: 3.2rem;
    /* text-decoration: underline; */
    text-transform: uppercase;
    font-size: 1.4rem;
    line-height: 3.2rem;
}
.delivery-method > p > span:first-of-type {
    display: inline-block;
    font-weight: bold;   
    margin-right: 1.6rem;    
    font-size: 1.4rem;
}

.pickup p {

  font-size: 1.6rem;
    font-family: 'Oswald';
    font-weight: 500;
}
.pickup .admin_area_2 {
  text-transform: uppercase;
  padding-left: .8rem;
}

label.update-address + input {
  display:none;
}

.paycard-header {
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 2.4rem;
  font-family: Oswald;
  font-weight: 500;
  margin: 1.6rem 0 0.8rem;


}

.paycard-header > span {
  width: 100%;
}
.paycard-header > img {

  max-height: 2rem;
}

.error-msg {
  color: #ff0000;
  font-size: 1.4rem;
  font-weight: 500;
}
.accept-cgv {
  display: none;
}
.accept-cgv.off {
  position: absolute;
    z-index: 103;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(250, 250, 250, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.accept-cgv-message {
  background: #f8f9fa;
  border: 1.5px solid #d0d0d0;
  border-radius: 12px;
  padding: 1.6rem 2rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accept-cgv-message .icon-warning {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.accept-cgv-message .message-text {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  color: #555;
  font-weight: 400;
}

.accept-cgv-message .message-text strong {
  color: #333;
  font-weight: 600;
}

.accept-cgv-message .arrow-down {
  font-size: 2.4rem;
  animation: bounce 2s infinite;
  color: #999;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
.conditions {
  padding-top:2.4rem;
}
label[for="cgv"] {padding-left:.8rem;font-size: 1.4rem;}


/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

/* Small phones (375px - 767px) */
@media only screen and (max-width: 767px) {
  #order {
    padding: 1.6rem 0.8rem;
  }

  /* Express checkout mobile optimization */
  .express-checkout-section {
    padding: 1.6rem;
    margin-bottom: 2.4rem;
  }

  .express-checkout-title {
    font-size: 1.8rem;
  }

  .express-checkout-subtitle {
    font-size: 1.3rem;
  }

  /* Larger touch targets for mobile - CRITICAL */
  .btn,
  button[type="submit"],
  .field-input,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  textarea {
    min-height: 48px !important;
    font-size: 1.6rem;
    padding: 1.2rem;
  }

  /* Accordion headers - larger tap area */
  .accordion_tabs > h5.titles {
    padding: 1.6rem 1.2rem;
    min-height: 56px;
    font-size: 1.6rem;
  }

  .accordion_tabs > label {
    min-height: 56px;
    min-width: 56px;
  }

  /* Checkout summary on mobile - FIXED: removed sticky to avoid overlap */
  .checkout-cart {
    order: 1;
    margin-bottom: 2.4rem;
    position: relative;
    background: white;
    padding: 1.6rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 0.8rem;
  }

  /* Sticky CTA button at bottom */
  #checkout-submit {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 !important;
    z-index: 999;
    min-height: 56px !important;
    font-size: 1.8rem !important;
    font-weight: 600;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  }

  /* Add padding to prevent content hiding behind sticky button */
  .conditions {
    padding-bottom: 7.2rem;
  }

  /* Hide delivery map on mobile, show list only */
  .map {
    display: none !important;
  }

  .sidebar {
    width: 100% !important;
  }

  .map-container {
    flex-direction: column;
  }

  /* Simplify tabs on mobile */
  .tabs.tabs-checkout {
    flex-wrap: wrap;
  }

  .tabs.tabs-checkout li {
    flex: 1 1 45%;
    min-width: 45%;
  }

  .tabs.tabs-checkout li a {
    font-size: 1.3rem;
    padding: 1.2rem 0.8rem;
  }

  /* Payment method logos */
  .paycard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .paycard-header img {
    max-width: 100%;
    height: auto;
  }

  /* Express checkout buttons horizontal on mobile */
  .express-checkout-buttons {
    gap: 1rem;
  }

  /* CRITICAL FIX: Accordion content spacing on mobile */
  .accordion_tabs > input:checked + label + div,
  .accordion_tabs > input:checked + label + h5 + div {
    padding: 1.6rem 1.2rem;
    margin-top: 0.8rem;
    overflow: visible;
  }

  /* Point relais section mobile fixes */
  .tab_content {
    padding: 1.2rem;
  }

  .bloc-carrier {
    padding: 1.2rem 0.8rem;
    margin: 1.2rem 0;
    max-width: 100%;
  }

  .shipping-method {
    padding: 1rem;
    margin: 0.8rem 0;
    font-size: 1.4rem;
    line-height: 1.5;
  }

  #shipping-info {
    max-width: 100%;
    overflow-wrap: break-word;
    margin: 0.8rem 0;
  }

  /* Delivery method mobile spacing */
  .delivery-method {
    margin-bottom: 1.6rem;
    padding-left: 0.8rem;
  }

  .delivery-method > p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
  }

  /* Pickup address display on mobile */
  .pickup {
    padding: 1.2rem;
    background: #f9f9f9;
    border-radius: 0.4rem;
    margin: 1.2rem 0;
  }

  .pickup p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
  }
}

/* Tablet (768px - 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  #order {
    padding: 2.4rem 1.6rem;
  }

  .checkout-actions {
    width: 60%;
  }

  .checkout-cart {
    width: 35%;
  }

  /* Touch targets still important on tablet */
  .btn,
  button[type="submit"] {
    min-height: 44px;
    padding: 1rem 1.6rem;
  }

  .field-input,
  input[type="text"],
  input[type="tel"],
  input[type="email"] {
    min-height: 44px;
  }

  .accordion_tabs > h5.titles {
    min-height: 50px;
    padding: 1.4rem 1rem;
  }

  /* Express checkout on tablet */
  .express-checkout-section {
    padding: 2rem;
  }

  .express-checkout-buttons {
    flex-direction: row;
    gap: 1.2rem;
  }

  .express-checkout-buttons > div {
    flex: 1;
  }
}

/* Desktop (1024px+) */
@media only screen and (min-width: 1024px) {
  .baseline > div.red {
    
    align-self: end;
    
}
  #order {
    min-height: calc(100vh - 98px);
        padding: 3.2rem 2.4rem 4.8rem;
        background: linear-gradient(to right, #fafafa 60%, #ffffff 60% 100%);
  }
  #order .titles {    
     margin: 1.6rem 0; 
  }
  .tranquility > .accordion_tabs {
      margin-top: 2.4rem;
  }
  .tranquility > .accordion_tabs:first-child {
    margin-top: 3.2rem;
  }
  .checkout-actions {order:unset;}
  .decorate {
  flex-direction: row;
  
}

  .paycard-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* Panier sticky/flottant dans la colonne de droite */
  .checkout-cart {
    position: sticky;
    top: 2.4rem;
    align-self: flex-start;
    max-height: calc(100vh - 4.8rem);
    overflow-y: auto;
  }
}