/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
:root {
  --font-primary: 'Montserrat', sans-serif;
}

body {
  font-family: var(--font-primary);
  max-width: 1920px;
  min-width: 360px;
  margin: 0 auto;
}

#checkout .checkout-area-4 .sticky.wrapper {
  top: 80px;
}

/* Checkout: Header */
.checkout-header {
  padding-block: 12px;
  border-bottom: 1px solid #e9e9e9;
}

.checkout-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.checkout-header .back-to-cart {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

#checkout #thecheckout-required-checkbox-1 {
  margin-top: 12px;
}

.mark-required .form-group.checkbox label.required span.label::before {
  margin-left: 0 !important;
  margin-right: 6px;
  float: unset !important;
}

@media (max-width: 575.98px) {
  .checkout-header .container {
    flex-direction: column-reverse;
    gap: 12px;
  }
  
  .checkout-header a, 
  .checkout-header .back-to-cart {
    position: relative;
    display: block;
    width: fit-content;
    left: unset;
    top: unset;
    transform: unset;
  }
}
/* END Checkout: Header */

/* Checkout: Float label */
#checkout .has-float-label {
  position: relative;
  display: block;
}

#checkout .has-float-label .form-control {
  height: auto;
}

#checkout .has-float-label .form-control + .error-msg {
  margin: 0;
  padding: 1px 6px 0;
  font-size: 0.6875rem;
  font-weight: 400;
  background: unset;
  font-style: normal;
  line-height: 160%;
}

#checkout .has-float-label .form-control:disabled {
  cursor: not-allowed;
}

#checkout .has-float-label .field-label {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 120%;
  color: #373737;
  position: absolute;
  left: 16px;
  top: 23px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: all 0.15s ease-in-out;
}

#checkout .has-float-label .form-control:focus + .field-label,
#checkout .has-float-label .form-control:not(:placeholder-shown) + .field-label, 
#checkout .has-float-label .form-control:focus + :is(span, div) + .field-label,
#checkout .has-float-label .form-control:not(:placeholder-shown) + :is(span, div) + .field-label {
  font-size: 0.625rem;
  color: #ABAAA9;
  background: #fff;
  padding-inline: 5px;
  top: 0;
  left: 5px;
}

#checkout .has-float-label .form-control.-error:focus + .field-label,
#checkout .has-float-label .form-control.-error:not(:placeholder-shown) + .field-label, 
#checkout .has-float-label .form-control.-error:focus + :is(span, div) + .field-label,
#checkout .has-float-label .form-control.-error:not(:placeholder-shown) + :is(span, div) + .field-label {
  color: var(--color-error);
}

#checkout .has-float-label .form-control:focus {
  border-color: #292525;
}

#checkout span.custom-checkbox {
  padding-block: 10px;
}

#checkout .shipping-radio {
  width: fit-content;
}
/* END Checkout: Float label */

/* Checkout: Fields */
#checkout #thecheckout-required-checkbox-1, 
#checkout #thecheckout-required-checkbox-1 .custom-checkbox {
  padding: 0;
}

#checkout #thecheckout-required-checkbox-1 .inner-area {
  padding-block: 0;
}

#checkout input[type="checkbox"] {
  min-width: 16px;
  min-height: 16px;
}
/* END Checkout: Fields */

/* Product Miniature */
.product-miniature .product-list-reviews {
  display: none;
}
/* END Product Miniature */

/* 4:3 Miniatures */
.product-miniature .thumbnail-container, 
#cart .product-line .product-line__image .product-line__title, 
.cart-overview .product-line .product-line-image .product-image-container, 
#order-confirmation .item__image .item__image-container, 
#product .thumbnails__container li.thumbnail .thumbnail-container, 
#product #product-images .carousel-image-container {
  padding-top: 120%;
  position: relative;
}

.cart-overview .product-line .product-line-image .product-image-container {
  min-width: 100px;
}

.product-miniature .thumbnail-container picture, 
#cart .product-line .product-line__image .product-line__title picture, 
.cart-overview .product-line .product-line-image .product-image-container .product-image, 
#order-confirmation .item__image .item__image-container picture, 
#product .thumbnails__container li.thumbnail .thumbnail-container picture, 
#product #product-images .carousel-image-container picture{
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.product-miniature .thumbnail-container picture img, 
#cart .product-line .product-line__image .product-line__title picture img, 
.cart-overview .product-line .product-line-image .product-image-container img, 
#order-confirmation .item__image .item__image-container picture img, 
#product .thumbnails__container li.thumbnail .thumbnail-container picture img, 
#product #product-images .carousel-image-container picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* END 4:3 Miniatures */