@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  text-decoration: none;
}
* {
  box-sizing: border-box;
}

/* Styles */

/* Containers */

.container {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 2.875rem;
}

.container--big {
  max-width: 47.5rem;
}

/* Title */

title-block {
  display: block;
  color: #202020;
  width: 100%;
}

title-block h1 {
  font-weight: 600;
  font-size: 4.5rem;
  margin-bottom: 2.5rem;
}

title-block p {
  color: #727272;
  line-height: 1.6rem;
}

/* Box */

/* Back button */

back-button {
  z-index: 200;
  display: block;
  position: fixed;
  left: 0;
  bottom: 0;
  height: 5rem;
  width: 100vw;
  color: var(--color--main);
  cursor: pointer;
  transition: all ease 0.25s;
  border-top: 1px solid var(--color--border);
  background: var(--color--background);
}

back-button svg {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1.75rem;
  width: 1.75rem;
  margin-top: -1rem;
  margin-left: -1rem;
}

@media screen and (min-width: 40em) {
  back-button {
    height: 6rem;
  }
  back-button svg {
    height: 2rem;
    width: 2rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  back-button:hover,
  back-button:focus {
    height: 7rem;
    width: 100vw;
    background-color: #d2d2d2;
  }
}

back-button.hide {
  display: none;
}

@media screen and (min-width: 40em) {
  back-button {
    width: 6rem;
    height: 100vh;
    border-top: none;
    border-right: 1px solid var(--color--border);
  }
}

@media screen and (min-width: 40em) and (hover: hover) and (pointer: fine) {
  back-button:hover,
  back-button:focus {
    width: 7rem;
    height: 100vh;
  }
}

.checkbox {
  font-size: 1rem;
  display: block;
  position: relative;
}

.checkbox--small {
  font-size: 0.75rem;
}

.checkbox input[type="checkbox"] {
  display: none;
}

.checkbox label {
}

.checkbox input[type="checkbox"] {
  display: none;
}

.checkbox {
}

.checkbox__text {
  font-size: 0.78em;
  color: rgba(255, 255, 255, 1);
  text-transform: uppercase;
  font-weight: 600;
}

.checkbox input[type="checkbox"] + label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  margin-bottom: 1.6em;
}

.checkbox input[type="checkbox"] + label:before {
  content: "";
  display: block;
  width: 3em;
  height: 3em;
  border-radius: 0.875em;
  background-color: #dfdfdf;
  margin-right: 1em;
}

.checkbox input[type="checkbox"] + label:after {
  content: "\2713";
  font-size: 1.6em;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 2em;
  height: 2em;
  border-radius: 0.5em;
  opacity: 0;
  transition: opacity ease 0.3s;
}

.checkbox input[type="checkbox"]:checked + label:after {
  opacity: 1;
}

/* Product form Options */

product-form fieldset {
  margin-bottom: 2rem;
}

.add-option {
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #d5d5d5;
}

.add-option__delete-button {
  color: #202020;
}

@media (hover: hover) and (pointer: fine) {
  .add-option__delete-button:focus,
  .add-option__delete-button:hover {
    color: red;
    cursor: pointer;
  }
}

/* Product form */

product-form-variant {
  display: block;
  background: #d1d1d1;
  padding: 2rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
}

product-form-variant input,
product-form-variant .checkbox input[type="checkbox"] + label:before {
  background-color: #f1f1f1;
}

product-form-variant fieldset {
  margin-bottom: 2rem;
}

.product-picture {
  margin-bottom: 2rem;
}

.product-picture img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #e7e7e7;
  margin-bottom: 0.6rem;
}

.picture-form__delete {
  color: var(--color--second);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .picture-form__delete:focus,
  .picture-form__delete:hover {
    color: var(--color--red);
  }
}

/* Form address  */
.client-form-address,
.client-form-phoneNumber {
  display: block;
  background: #d1d1d1;
  padding: 2rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
}

.client-form-address input,
.client-form-address .checkbox input[type="checkbox"] + label:before,
.client-form-phoneNumber input,
.client-form-phoneNumber .checkbox input[type="checkbox"] + label:before {
  background-color: #f1f1f1;
}

.client-form-address fieldset,
.client-form-phoneNumber fieldset {
  margin-bottom: 2rem;
}

/* product collection */
products-select {
  border: 1px solid #d9d9d9;
  padding: 2rem;
  margin-bottom: 1rem;
  border-radius: 2rem;
}

.collections-select-container__title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Giftlist selection */

.giftlist-subcollection {
  margin-bottom: 3rem;
}

.giftlist-subcollection h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.giftlist-subcollection__items {
  margin-bottom: 3rem;
}

/* Labels */

label-item,
product-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid #e3e3e3;
  border-radius: 1rem;
  margin-bottom: 1rem;
  padding: 1.4rem;
  background: #ffffff;
}

label-item.printed {
  background: #e1e1e1;
  opacity: 0.6;
}

label-item.printed input {
  background: #ffffff;
}

product-label .title,
label-item .title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

product-label .brand,
label-item .brand {
  margin-bottom: 0.4rem;
}

product-label .inputs,
label-item .inputs {
  margin-left: auto;
}

product-label input,
label-item input {
  font-size: 1.2rem;
  margin-bottom: 0;
  width: 6rem;
  margin-right: 0.6rem;
  text-align: center;
}

product-label .infos {
  margin-bottom: 0;
}

product-label a,
label-item a {
  color: #000;
}

@media (hover: hover) and (pointer: fine) {
  product-label a:hover,
  label-item a:hover {
    color: #7e7e7e;
  }
}

label-item-print {
  position: relative;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  page-break-before: always;
  padding: 4mm 3mm 0mm;
  text-align: center;
  font-size: 3mm;
  height: 28mm;
  box-sizing: border-box;
  overflow: hidden;
  color-adjust: exact;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

label-item-print:before {
  content: "";
  position: absolute;
  top: 3.4mm;
  left: 3mm;
  width: 3mm;
  height: 3mm;
  background-image: url("/static/images/heart.svg");
  background-size: 3mm auto;
  background-repeat: no-repeat;
}

label-item-print .title {
  box-sizing: border-box;
  font-weight: 600;
  margin-bottom: 1mm;
  font-size: 2.8mm;
  line-height: 2.8mm;
  height: 3mm;
  width: 48mm;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

label-item-print .brand {
  margin-bottom: 1.4mm;
  font-size: 2.5mm;
  line-height: 2.5mm;
}

label-item-print .infos {
  font-size: 2.6mm;
  line-height: 2.6mm;
}

label-item-print .price {
  font-weight: 600;
  font-size: 3mm;
  white-space: nowrap;
  overflow: hidden;
}

label-item-print .price s {
  font-size: 2.6mm;
  font-weight: 400;
}

label-item-print svg {
  margin-top: auto;
  width: 52mm;
  height: 17mm;
  margin-bottom: -1mm;
}
/* ----------- ROOT ----------- */

:root {
  --space--xxxl: 4rem;
  --space--xxl: 2rem;
  --space--xl: 1.75rem;
  --space--l: 1.5rem;
  --space--m: 1rem;
  --space--s: 0.75rem;
  --space--xs: 0.5rem;
  --space--xxs: 0.25rem;

  --color--background: #f3f3f3;
  --color--background-vibrant: #e2e2e2;
  --color--main: #000000;
  --color--second: #8c8c8c;
  --color--white: #ffffff;

  --color--border: #dcdcdc;

  --color--blue: #376efe;
  --color--green: #7fbe41;
  --color--orange: #f36719;
  --color--red: #f44747;
  --color--purple: #9c40f4;
  --color--purple: #9c40f4;
  --color--grey: #646464;

  --flag--background: #d8d8d8;
  --flag--blue--background: #e1e9fc;
  --flag--green--background: #ddf2d0;
  --flag--orange--background: #ffd3ba;
  --flag--red--background: #ffe3d4;
  --flag--grey--background: #f0f0f0;
  --flag--purple--background: #f0e2fd;

  --alert--green--color: #3f453d;
  --alert--green--background: #c3f0c9;
  --alert--red--color: #4d3d3e;
  --alert--red--background: #ffcdd2;

  --font-size--xxl: 3rem;
  --font-size--xl: 2rem;
  --font-size--l: 1.125rem;
  --font-size--m: 1rem;
  --font-size--s: 0.875rem;
  --font-size--xs: 0.5rem;
}

:root {
  font-size: 0.875em;
}

@media screen and (min-width: 40em) {
  :root {
    font-size: 1em;
    --font-size--xxl: 4.625rem;
    --font-size--xl: 2.5rem;
    --font-size--l: 1.125rem;
    --font-size--m: 1rem;
    --font-size--s: 0.875rem;
    --font-size--xs: 0.5rem;

    --space--xxxl: 5rem;
    --space--xxl: 3rem;
    --space--xl: 2.5rem;
    --space--l: 2rem;
    --space--m: 1rem;
    --space--s: 0.75rem;
    --space--xs: 0.5rem;
  }
}

/* ----------- MAIN LOADER ----------- */
#main-loader {
  z-index: 22000;
  display: block;
  width: 200vw;
  height: 200vh;
  position: fixed;
  top: -50vh;
  left: -50vw;
  background-color: var(--color--background);
  background-image: url("/static/images/loader.gif");
  background-size: 2.5rem 2.5rem;
  background-position: center center;
  background-repeat: no-repeat;
  display: none;
}

#main-loader.is-loading {
  display: block;
}

@keyframes loader {
  0% {
    transform: scale(1) rotate(0deg);
  }
  64% {
    transform: scale(1.5) rotate(-8deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

#main-loader.is-loading:after {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2rem;
  top: 50%;
  left: 50%;
  background-image: url("/static/images/loader.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  animation-name: loader;
  animation-duration: 1.3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-out;
  margin-top: -1rem;
  margin-left: -1rem;
}

/* ----------- BODY ----------- */

body {
  font-family: "Poppins", sans-serif;
  padding: 4rem 1.6rem 12rem 1.6rem;
  overflow-x: hidden;
  background-color: var(--color--background);
}

@media screen and (min-width: 40em) {
  body {
    padding: 8rem 2rem 4rem 8rem;
  }
}

/* ----------- HEADERS ----------- */

.header {
  display: block;
  width: 100%;
  color: var(--color-main);
  margin-bottom: var(--space--xxl);
}

.header--small {
  margin-bottom: var(--space--l);
}

h1.header__title {
  font-weight: 600;
  font-size: var(--font-size--xxl);
  margin-bottom: var(--space--l);
}

h2.header__title {
  font-weight: 600;
  font-size: var(--font-size--xl);
  margin-bottom: var(--space--s);
}

h3.header__title {
  font-weight: 600;
  font-size: var(--font-size--l);
  margin-bottom: var(--space--s);
}

.header__title {
  line-height: 1.2em;
}

.header__sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: var(--space--m);
}

.header__sub__flags {
}

.header__sub__subtitle {
  width: auto;
  font-size: var(--font-size--l);
  line-height: 1.6em;
  color: var(--color--second);
}

.header__subtitle {
  font-size: var(--font-size--m);
  line-height: 1.6em;
  color: var(--color--second);
}

/* ----------- CARD-LINK ----------- */

.card-link {
  display: block;
  position: relative;
  background: #ffffff;
  color: var(--color--main);
  padding: 3rem 2rem 2rem;
  border-radius: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color--border);
  transition: all ease 0.25s;
}

.card-link__label {
  position: absolute;
  font-size: 1rem;
  line-height: 1.3em;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: var(--color--red);
  color: white;
  top: 4rem;
  left: 4rem;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .card-link:hover,
  .card-link:focus {
    z-index: 10;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.06);
    transform: scale(1.025);
  }
}

.card-link__icon {
  height: 3rem;
  margin-bottom: 2rem;
  color: var(--color--main);
}

.card-link__icon svg {
  height: 100%;
  width: auto;
}

.card-link__title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-link__subtitle {
  font-size: 1rem;
  color: var(--color--second);
}

@media screen and (min-width: 40em) {
  .card-link {
    padding: 4.5rem 3.5rem 3.5rem;
    border-radius: 1.875rem;
    margin-bottom: 2rem;
  }

  .card-link__icon {
    height: 4.25rem;
    margin-bottom: 3.5rem;
  }

  .card-link__title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .card-link__subtitle {
    font-size: 1.125rem;
  }

  .card-link__label {
    top: 6.5rem;
    left: 6.5rem;
    padding: 0.75rem;
    border-radius: 1rem;
    text-align: center;
    min-width: 2.5rem;
  }
}

/* ----------- FLAGS ----------- */

.flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: var(--space--s);
}

.flag {
  display: inline-block;
  font-size: var(--font-size--s);
  font-weight: 500;
  padding: 1em 1.25em;
  text-transform: uppercase;
  border-radius: 1em;
  background-color: var(--flag--background);
  color: var(--color--main);
}

.flag--small {
  padding: 0.5em 0.875em;
  border-radius: 0.5em;
}

.flag--grey {
  color: var(--color--grey);
  background-color: var(--flag--grey--background);
}

.flag--green {
  color: var(--color--green);
  background-color: var(--flag--green--background);
}

.flag--blue {
  color: var(--color--blue);
  background-color: var(--flag--blue--background);
}

.flag--orange {
  color: var(--color--orange);
  background-color: var(--flag--orange--background);
}

.flag--red {
  color: var(--color--red);
  background-color: var(--flag--red--background);
}

.flag--purple {
  color: var(--color--purple);
  background-color: var(--flag--purple--background);
}

/* ----------- LINKS ----------- */

.link {
  cursor: pointer;
}

/* ----------- ACTIONS ----------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--space--m);
  margin-bottom: var(--space--xxxl);
}

.action {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 1.3rem;
  font-weight: 600;
  width: calc(50% - 0.5rem);
  color: var(--color--main);
  background-color: #ffffff;
  padding: 1em;
  border-radius: 1rem;
  border: 1px solid var(--color--border);
  transition: all 0.4s cubic-bezier(0.07, 0.6, 0.63, 0.94);
}

@media (hover: hover) and (pointer: fine) {
  .action:hover,
  .action:focus {
    z-index: 10;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
  }
}

@media screen and (min-width: 40em) {
  .action {
    font-size: 1.625rem;
  }
}

.action__icon {
  margin-bottom: 1.5rem;
}

.action__icon svg {
  height: 2rem;
  width: auto;
  stroke-width: 2.4px;
}

.action__title {
  margin-top: auto;
}

.action--green .action__icon {
  color: var(--color--green);
}

.action--orange .action__icon {
  color: var(--color--orange);
}

.action--red .action__icon {
  color: var(--color--red);
}

.action--blue .action__icon {
  color: var(--color--blue);
}

.action--purple .action__icon {
  color: var(--color--purple);
}

/* ----------- LIST ITEM ----------- */

.grouped-list-items {
  margin-bottom: var(--space--xxxl);
}

.grouped-list-items__title {
  font-weight: 600;
  font-size: var(--font-size--l);
  margin-bottom: var(--space--m);
}

.list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  color: var(--color--main);
  width: 100%;
  border: 1px solid var(--color--border);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  margin-bottom: var(--space--m);
  transition: all 0.4s cubic-bezier(0.07, 0.6, 0.63, 0.94);
  cursor: pointer;
}

.list-item.sortable-grey-background {
  background: #c3c3c3;
}

.list-item.selected {
  opacity: 0.3;
}

.list-item.archived {
  opacity: 0.3;
}

.list-item__action {
  margin-left: auto;
  color: var(--color--second);
}

.list-item__action:hover {
  color: var(--color--main);
}

.list-no-found {
  display: block;
  background: none;
  color: var(--color--second);
  width: 100%;
  border: 1px solid var(--color--border);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: var(--space--m);
}

.list-item--archived {
  background-color: #dcdcdc;
}

@media (hover: hover) and (pointer: fine) {
  .list-item:focus,
  .list-item:hover {
    transform: scale(1.05);
  }
}

.list-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14%;
  aspect-ratio: 1 / 1;
  margin-right: 1rem;
  border-radius: 0.8rem;
  overflow: hidden;
}

.list-item__icon--empty {
  background: var(--color--background);
}

.list-item__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.list-item__icon svg {
  display: block;
  height: 2rem;
  width: auto;
}

.list-item__icon--orange {
  color: var(--color--orange);
}

.list-item__icon--green {
  color: var(--color--green);
}

.list-item__icon + .list-item__content {
  width: 86%;
}

.list-item__flags {
  margin-bottom: var(--space--s);
}

.list-item__title {
  line-height: 1.3em;
  font-size: var(--font-size--l);
  margin-bottom: var(--space--xs);
}

.list-item__title__tags {
  margin-bottom: var(--space--xs);
}

.list-item__subtitle {
  font-weight: 300;
  color: var(--color--second);
  line-height: 1.3em;
}

.list-item__subtitle .flag {
  margin-right: 0.4rem;
}

.list-item__line-through {
  text-decoration: line-through;
}

/* ----------- LIST ITEM ----------- */

.grouped-list {
  display: block;
  border: 1px solid var(--color--border);
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  margin-bottom: var(--space--m);
}

.list-item__actions {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
}

.list-item__actions button {
  display: block;
  width: 100%;
  background-color: #fff;
  border: 1px solid var(--color--border);
  border-top: none;
  padding: 0.5rem 0.25rem;
  font-weight: 600;
}

.list-item__actions button:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
  border-top: 1px solid var(--color--border);
}

.list-item__actions button:last-child {
  border-radius: 0 0 0.5rem 0.5rem;
}

.list-item__actions button:only-child {
  border-radius: 0.5rem;
}

.list-item__actions button:hover {
  background-color: var(--color--background);
  cursor: pointer;
}

.grouped-list__item {
  display: block;
  background: #ffffff;
  color: var(--color--main);
  width: 100%;
  padding: 1.5rem 1.75rem;
  transition: all 0.4s cubic-bezier(0.07, 0.6, 0.63, 0.94);
  cursor: pointer;
  border-bottom: 1px solid var(--color--border);
}

@media (hover: hover) and (pointer: fine) {
  .grouped-list__item:hover,
  .grouped-list__item:focus {
    background-color: #e3e3e3;
  }
}

.grouped-list__item:last-child {
  border-bottom: none;
}

.grouped-list__item.selected {
  background-color: var(--alert--green--background);
}

.grouped-list__item__title {
  font-size: var(--font-size--l);
  margin-bottom: var(--space--xs);
}

.grouped-list__item__content {
  font-weight: 300;
  color: var(--color--second);
}

/* ----------- LIST SEARCH ----------- */

element-search input,
list-search input,
labels-search input {
  margin-bottom: var(--space--l);
  background: #e2e2e2;
}

element-input::placeholder,
list-input::placeholder,
labels-search::placeholder {
  color: #acacac;
}

/* ----------- FORM  ----------- */

fieldset {
  margin-bottom: var(--space--xl);
}

legend {
  display: block;
  font-weight: 600;
  font-size: var(--font-size--xl);
  margin-bottom: var(--space--l);
}

legend span {
  display: block;
  width: 100%;
  font-size: var(--font-size--l);
  font-weight: 400;
  line-height: 1.6em;
  color: var(--color--second);
  margin-top: var(--space--s);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space--s);
}

input,
select,
textarea {
  display: block;
  max-width: 100%;
  width: 100%;
  font-size: var(--font-size--m);
  font-family: "Poppins", sans-serif;
  color: var(--color--main);
  border: 1px solid var(--color--border);
  border-radius: 1rem;
  padding: 1rem 1.75rem;
  background: #ffffff;
  margin-bottom: var(--space--l);
  transition: all 0.4s cubic-bezier(0.07, 0.6, 0.63, 0.94);
}

input.is-loading {
  background: linear-gradient(
    90deg,
    var(--color--background),
    #e3e3e3,
    var(--color--background)
  );
  background-size: 200% 200%;
  animation: gradient 1s linear infinite;
}

input.is-invalid {
  border-color: var(--color--red);
  color: var(--color--red);
  background-color: #ffe2e2;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input:focus,
textarea:focus {
  transform: scale(1.025);
}

textarea {
  min-height: 16rem;
  min-width: 100%;
}

.radio-button {
  display: block;
  margin-bottom: 1.4rem;
}

.radio-button input {
  display: none;
}

.radio-button label {
  display: block;
  padding-left: 2rem;
  position: relative;
  cursor: pointer;
  font-weight: 400;
}

.radio-button label:before {
  content: "";
  display: block;
  position: absolute;
  top: -0.35rem;
  left: 0;
  height: 1.5rem;
  width: 1.5rem;
  border: 1px solid var(--color--border);
  border-radius: 0.7rem;
}

.radio-button input:checked + label:after {
  display: block;
  content: "";
  position: absolute;
  top: 0.05rem;
  left: 0.425rem;
  height: 0.85rem;
  width: 0.85rem;
  background: var(--color--main);
  border-radius: 0.4rem;
}

/* ----------- INPUT FILE ----------- */

.input-file {
  position: relative;
  display: block;
  width: 100%;
  border: 2px dashed var(--color--border);
  border-radius: 1rem;
  padding: 1.75rem 1.75rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.07, 0.6, 0.63, 0.94);
  margin-bottom: 1rem;
}

.input-file:focus,
.input-file:hover {
  border-color: var(--color--main);
}

.input-file input {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.input-file__text {
  text-align: center;
}

.input-file__text__main {
  font-size: 1.25rem;
  color: var(--color--main);
  line-height: 1.2em;
  font-weight: 600;
  margin-bottom: 0.275rem;
}
.input-file__text__second {
  font-size: 0.875rem;
  color: var(--color--second);
  line-height: 1.2em;
}

/* ----------- INPUT SEARCH ----------- */

input.input-search {
  margin-bottom: var(--space--l);
  color: var(--color--main);
  background: #e2e2e2;
}

input.input-search::placeholder {
  color: #acacac;
}

/* ----------- BUTTONS ----------- */

.button {
  display: block;
  width: 100%;
  background: var(--color--main);
  color: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  font-weight: 500;
  text-align: center;
  font-size: 1.25rem;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.07, 0.6, 0.63, 0.94);
}

.button--small {
  font-size: 1rem;
  padding: 1rem 1.25rem;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .button:focus {
    transform: scale(1.025);
  }
}

/* ----------- SCAN INPUT ----------- */

.scan-input {
  display: block;
  width: 100%;
  background: var(--color--white);
  color: var(--color--main);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  font-weight: 500;
  text-align: center;
  font-size: 1.25rem;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.07, 0.6, 0.63, 0.94);
}

.scan-input:focus {
  transform: scale(1.025);
  outline: none;
  border: 2px solid var(--color--main);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .scan-input:hover {
    transform: scale(1.025);
  }
}
/* ----------- INFOS ----------- */

.infos {
  display: block;
  margin-bottom: var(--space--xxxl);
}

.infos__section {
  border: 1px solid var(--color--border);
  border-radius: 1rem;
  margin-bottom: var(--space--l);
  overflow: hidden;
}

.infos__section + header-container {
  margin-top: var(--space--xxxl);
}

.infos__section__title {
  font-weight: 600;
  margin-bottom: var(--space--xs);
  padding: var(--space--l);
  background-color: #e6e6e6;
}

.infos__section__item {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: flex-start;
  align-items: baseline;
  padding: var(--space--m) var(--space--l);
  border-bottom: 1px solid var(--color--border);
  transition: all 0.3s ease;
  min-height: 0;
  height: auto;
  background: none;
}

.infos__section__item a {
  color: black;
  font-weight: 500;
}

.infos__section__item:last-child {
  border-bottom: none;
}

@keyframes gradient {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

.infos__section__item.loading {
  min-height: 4rem;
  background: linear-gradient(
    90deg,
    var(--color--background),
    #e3e3e3,
    var(--color--background)
  );
  background-size: 200% 200%;
  animation: gradient 2s linear infinite;
}

.infos__section__item__title {
  width: 100%;
  line-height: 1.5em;
  color: var(--color--second);
}

.infos__section__item__content {
  width: 100%;
  line-height: 1.5em;
}

@media screen and (min-width: 40em) {
  .infos__section__item {
    flex-direction: row;
  }
  .infos__section__item__title {
    width: 12rem;
    padding-right: var(--space--m);
  }

  .infos__section__item__content {
    width: calc(100% - 12rem);
  }
}

.infos__section--no-title .infos__section__item__content {
  width: 100%;
}

.infos__section__item__content__actions {
  display: block;
  margin-top: 0.875rem;
}

.infos__section__item__content__actions a {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125em;
  color: var(--color--main);
  margin-left: 0.875rem;
}

.infos__section__item__content__actions a:first-child {
  margin-left: 0rem;
}

@media (hover: hover) and (pointer: fine) {
  .infos__section__item__content__actions a:hover,
  .infos__section__item__content__actions a:focus {
    color: var(--color--second);
  }
}

.infos__section__form {
  display: flex;
  padding: 1rem;
  gap: 1rem;
  align-items: center;
}

.infos__section__form input {
  margin-bottom: 0;
}

/* ----------- ALERTS ----------- */

.alerts {
  position: fixed;
  top: var(--space--l);
  right: var(--space--l);
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.alert {
  display: block;
  width: 18rem;
  color: var(--color--main);
  background-color: #ffffff;
  border-radius: 1rem;
  padding: var(--space--m) 1.5rem;
  margin-bottom: var(--space--m);
  line-height: 1.4em;
  opacity: 1;
  animation: 0.8s ease fadein;
}

.alert.success {
  color: var(--alert--green--color);
  background-color: var(--alert--green--background);
}

.alert.error {
  color: var(--alert--red--color);
  background-color: var(--alert--red--background);
}

/* ----------- CART ----------- */

cart-coupons,
cart-lists,
cart-list-infos,
cart-discount {
  display: block;
  margin-bottom: var(--space--xxxl);
}

.cart-scan__actions {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space--m);
}

.cart-scan__action {
  display: block;
  width: calc(100%);
  margin-bottom: var(--space--m);
}

.cart-scan__action input {
  margin-bottom: 0;
}

.cart-items {
  margin-bottom: var(--space--xxxl);
}

.cart-item {
  display: block;
  color: var(--color--main);
  width: 100%;
  border-bottom: 1px solid var(--color--border);
  padding: 1.5rem 0rem;
}

.cart-item__icon {
  max-width: 5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 0.3rem;
}

.cart-item__icon img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
}

.cart-item__title {
  font-size: var(--font-size--l);
  font-weight: 500;
  margin-bottom: var(--space--xs);
}

.cart-item__brand {
  font-size: var(--font-size--s);
  margin-bottom: var(--space--xs);
  color: var(--color--second);
  text-transform: uppercase;
}

.cart-item__subtitle {
  font-weight: 300;
  color: var(--color--second);
  margin-bottom: var(--space--xs);
}

.cart-item__line-through {
  text-decoration: line-through;
}

.cart-item__offered-by,
.cart-item__little-word,
.cart-item__shipping-method {
  font-size: var(--font-size--s);
  margin-bottom: var(--space--xs);
  color: var(--color--main);
}

.cart-item__delete {
  display: inline-block;
  margin-top: var(--space--m);
  color: var(--color--red);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .cart-item__delete:focus,
  .cart-item__delete:hover {
    color: var(--color--main);
  }
}

.cart__list {
  margin-bottom: var(--space--xl);
}

.cart__list__infos {
  margin-bottom: var(--space--s);
}

.cart__list__infos__title {
  color: var(--color--second);
  text-transform: uppercase;
}

.cart-coupons__form {
  margin-top: var(--space--l);
}

/* ----------- PRODUCT PAGE ----------- */
/* ----------- PRODUCT OPTIONS ----------- */

product-options,
product-pictures,
product-variants {
  display: block;
  margin-bottom: var(--space--xxxl);
}

.product-options {
  margin-bottom: var(--space--l);
}

.pictures {
  display: block;
  margin-bottom: var(--space--xxxl);
}

.option {
  position: relative;
}
.option__delete {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  line-height: 2rem;
  color: var(--color--main);
}

.option__delete svg {
  position: relative;
  top: 0.2rem;
}

.option-add {
  color: var(--color--main);
}

/* ----------- GIFTLIST ADD PRODUCT ----------- */

.giftlist-add {
  display: block;
  margin-bottom: var(--space--xxxl);
}

/* ----------- TOTAL ----------- */

.total,
.total-calculate {
  background: #e2e2e2;
  display: block;
  max-width: 100%;
  width: 100%;
  font-size: var(--font-size--m);
  color: var(--color--main);
  border-radius: 1rem;
  background: var(--color--background-vibrant);
  margin-bottom: var(--space--xl);
}

.total__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--color--background);
  padding: 1rem 1.75rem;
}

.total__line:last-child {
  border-bottom: none;
}

.total__line__title {
  margin-right: 1rem;
  line-height: 1.3em;
  width: 70%;
}

.total__line__title div {
  font-size: 1rem;
  margin-top: 0.4rem;
  color: var(--color--second);
  line-height: 1.3em;
}

.total__line__content {
  margin-left: auto;
  text-align: right;
  font-weight: 600;
}

.total__line__input {
  text-align: right;
  width: auto;
  margin-bottom: 0;
  margin-left: auto;
}

/* ----------- TICKET ----------- */

.ticket {
  display: block;
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
}

.ticket__header {
  text-align: center;
  margin-bottom: var(--space--xxl);
}

.ticket__header__logo {
  display: block;
  width: 100%;
  max-width: 20rem;
  padding-bottom: 28%;
  background-image: url("/static/images/baby_store_logo.svg");
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto var(--space--xl);
}

.ticket__header__title {
  font-weight: 500;
  margin-bottom: var(--space--s);
}
.ticket__header__address {
  color: var(--color--second);
  margin-bottom: var(--space--xs);
}
.ticket__header__email {
  color: var(--color--second);
}

.ticket__footer {
  text-align: center;
}

.ticket__footer__thanks {
  margin-bottom: var(--space--xs);
}
.ticket__footer__team {
  color: var(--color--second);
}

.ticket-list {
  display: block;
  margin-bottom: var(--space--xl);
}

.ticket-list__title {
  font-weight: 600;
  font-size: var(--font-size--xl);
  margin-bottom: var(--space--m);
}

.ticket-list__item {
  margin-bottom: var(--space--m);
  padding-bottom: var(--space--m);
  border-bottom: 1px solid var(--color--border);
}

.ticket-list__item:last-child {
  border-bottom: none;
}

.ticket-list__item__title {
  font-weight: 500;
  margin-bottom: var(--space--xs);
}

.ticket-list__item__content {
  color: var(--color--second);
}

/* ----------- SECTION ----------- */

.section {
  display: block;
  margin-bottom: var(--space--xxxl);
}

.section--hidden {
  display: none;
}

/* ----------- INPUT SEARCH ----------- */

input.input-search {
  margin-bottom: var(--space--l);
  background: #e2e2e2;
}

input.input-search::placeholder {
  color: #acacac;
}

/* ----------- SUMMARY ITEM ----------- */

.summary-item {
  display: block;
  border-radius: 1rem;
  border: 1px solid var(--color--border);
  margin-bottom: var(--space--l);
  overflow: hidden;
}

.summary-item__top {
  display: block;
  width: 100%;
  color: var(--color--main);
  border-bottom: 1px solid var(--color--border);
  padding: 1.5rem 1.75rem;
  background: #ffffff;
}

.summary-item__top:last-child {
  border-bottom: none;
}

.summary-item__top__icon {
  display: block;
  width: 14%;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.5rem;
  border-radius: 0.8rem;
  overflow: hidden;
}

.summary-item__top__icon--empty {
  background: var(--color--background);
}

.summary-item__top__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.summary-item__top__content {
  line-height: 1.3em;
}

.summary-item__top__content__title {
  font-size: var(--font-size--l);
  margin-bottom: var(--space--xs);
}

.summary-item__top__content__subtitle {
  font-weight: 300;
  color: var(--color--second);
}

.summary-item__line-through {
  text-decoration: line-through;
}

.summary-item__content {
  width: 100%;
  color: var(--color--main);
  line-height: 1.5em;
}

.summary-item__content__title {
  font-size: var(--font-size--l);
  margin-bottom: var(--space--xs);
}

.summary-item__content__subtitle {
  font-weight: 300;
  color: var(--color--second);
}

.summary-item__bottom {
  display: block;
  width: 100%;
  color: var(--color--second);
  padding: 1.5rem 1.75rem;
  background: var(--color--background);
  line-height: 1.5em;
  border-bottom: 1px solid var(--color--border);
}

.summary-item__bottom.is-hidden {
  display: none;
}

.summary-item__bottom:last-child {
  border-bottom: none;
}

.summary-item__bottom.is-selected {
  width: 100%;
  color: var(--color--second);
  padding: 1.5rem 1.75rem;
  background: #fff;
  line-height: 1.5em;
}

.summary-item__bottom b {
  color: var(--color--main);
}

.summary-item__bottom a {
  color: var(--color--main);
}

.summary-item__bottom__flags {
  display: block;
  margin-bottom: 1rem;
}

.summary-item__bottom__flags .flag {
  display: inline-block;
  margin-right: 0.25rem;
  margin-bottom: 0.5rem;
}

.summary-item__bottom__actions {
  margin-top: var(--space--m);
}

.summary-item__bottom__actions a {
  display: inline-block;
  font-weight: 600;
  margin-right: 0.875rem;
}

/* ----------- TEXT  ----------- */

.text-red {
  color: var(--color--red);
}

.text-blue {
  color: var(--color--blue);
}

.text-orange {
  color: var(--color--orange);
}

.text-green {
  color: var(--color--green);
}

/* ----------- PAYMENT BUTTONS ----------- */

.payment-amount-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
}

.payment-add-amount-button,
.payment-amount-clean-button {
  width: 6rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.payment-amount-button {
  width: auto;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ----------- SELECT LINK ----------- */

.select-link {
  display: block;
  color: var(--color--main);
  font-size: 1.125rem;
  padding: 0.5rem 1rem 0.5rem 3rem;
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.2em;
}

.select-link:hover,
.select-link:focus {
  color: var(--color--second);
}

.select-link::before {
  content: "";
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  position: absolute;
  top: 0.2rem;
  left: 0rem;
  border: 1px solid var(--color--border);
  border-radius: 0.5rem;
}

.select-link.selected::after {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  position: absolute;
  top: 0.58rem;
  left: 0.38rem;
  background: var(--color--main);
  border-radius: 0.2rem;
}

.select-link__subtitle {
  font-size: 0.875rem;
  color: var(--color--second);
  margin-top: 0.25rem;
}

.sorted-list__group {
  margin-bottom: var(--space--xxl);
}

/* ----------- BLOCK CONTAINER ----------- */

.block-loading {
  display: block;
  height: 10rem;
  max-height: 10rem;
  transition: all 2s ease;
}

.block-loading.is-loaded {
  height: auto;
  max-height: 400rem;
}

/* ----------- SELECT FLEX ----------- */
.select-flex {
  display: flex;
  color: var(--color--main);
  padding: 1rem;
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.2em;
  border: 1px solid var(--color--border);
  border-radius: 1rem;
}

.select-flex:hover {
  cursor: pointer;
}

.select-flex.is-selected {
  background: var(--color--main);
}

.select-flex.is-selected {
  color: var(--color--white);
}

.select-flex__content__sup {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--color--second);
  text-transform: uppercase;
}

.select-flex__content__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.select-flex__content__price {
  color: var(--color--second);
}

/* ----------- GIFTLIST VARIANT ----------- */
giftlist-list-variant {
  display: block;
  position: relative;
}

/* ----------- GIFTLIST UNLISTED SALES ----------- */

.giftlist-unlisted-sales {
  display: block;
  border: 1px solid var(--color--border);
}

/* ----------- HISTORIES ----------- */
.histories {
  position: relative;
}

.histories__items {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--color--border);
  line-height: 1.2em;
}

.histories__item {
  display: block;
  padding: var(--space--m) var(--space--l);
  border-bottom: 1px solid var(--color--border);
}

.histories__item.last-visible {
  border-bottom: none;
}

.histories__item.hidden {
  display: none;
}

.histories__item__suptitle {
  color: var(--color--second);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.histories__item__suptitle::first-letter {
  text-transform: uppercase;
}

.histories__item__title {
  font-weight: bold;
}

.histories__item__description {
  margin-top: var(--space--xxs);
  color: var(--color--second);
  font-size: 1rem;
}

.histories__item.failed {
  color: red;
  background-color: #ffddd5;
}

.histories__button {
  display: inline-block;
  margin: 1rem auto 0;
  background: var(--color--main);
  color: var(--color--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  padding: 0.65rem;
}

/* ----------- INVENTORY UPDATES ----------- */

.inventory-update-variant {
  margin-bottom: 2rem;
  border: 1px solid var(--color--border);
  padding: 1.5rem;
  border-radius: 1rem;
}

.inventory-update-variant__title {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: bold;
}

.inventory-update-variant__subtitle {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}

.inventory-update-variant input {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
}

.inventory-update-variant input:read-only {
  background-color: var(--color--background);
}

.inventory-update-variant label {
  margin-bottom: 0.5rem;
}

.inventory-update-variant a {
  color: var(--color--main);
  font-weight: 500;
}

.update-variants {
  margin-top: 2rem;
}

.updates-total {
  font-size: 1.125rem;
  font-weight: bold;
}

/* ----------- Transactions ----------- */

.transactions__items {
  border-radius: 1rem;
  border: 1px solid var(--color--border);
  line-height: 1.2em;
}

.transactions__item {
  padding: var(--space--m) var(--space--l);
  border-bottom: 1px solid var(--color--border);
}

.transactions__item:last-child {
  border-bottom: none;
}

.transactions__item__title {
  font-weight: bold;
}

.transactions__item__description {
  margin-top: var(--space--xxs);
  color: var(--color--second);
}

.transactions__item.failed {
  color: red;
  background-color: #ffddd5;
}

.transactions__left {
  display: block;
  width: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.transactions__left .suptitle {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.transactions__left.green {
  color: var(--color--green);
  background-color: var(--flag--green--background);
}

.transactions__left.blue {
  color: var(--color--blue);
  background-color: var(--flag--blue--background);
}

.transactions__left.orange {
  color: var(--color--orange);
  background-color: var(--flag--orange--background);
}

.transactions__left.red {
  color: var(--color--red);
  background-color: var(--flag--red--background);
}

.transactions__left.purple {
  color: var(--color--purple);
  background-color: var(--flag--purple--background);
}

/* ----------- PAGINATION ----------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination-info {
  margin-top: 1rem;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  border-radius: 4px;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.pagination__item:hover:not(.active):not(.pagination__ellipsis):not(
    .pagination__item--disabled
  ) {
  background-color: #f3f4f6;
  color: #111827;
}

.pagination__item.active {
  background-color: var(--color--main);
  color: white;
  font-weight: 500;
}

.pagination__ellipsis {
  color: #6b7280;
  cursor: default;
}

.pagination__item--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ----------- LIST-LINE ----------- */
.line-item {
  padding: 0.75rem;
  border: 1px solid var(--color--border);
  border-bottom: none;
}

.line-item:last-child {
  border-bottom: 1px solid var(--color--border);
}

.line-item__content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.line-item__title {
  max-width: calc(100% - 14rem);
}

.line-item__stock-display {
  margin-left: auto;
  margin-right: 1rem;
}

.line-item__status {
  width: 100%;
  margin-top: 0.5rem;
  text-align: right;
}

.line-item input {
  padding: 0.5rem;
  border-radius: 0.5rem;
  width: 6rem;
  margin-bottom: 0;
}
