/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

/* inter-regular - latin_cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: local(''),
    url(assets/f9d9d4121c9bd5b2e9f7.woff2) format('woff2'),
    /* Chrome 26+, Opera 23+, Firefox 39+ */
    url(assets/8acebc1dd3496ba5803f.woff) format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  font-display: swap;
}

/* inter-500 - latin_cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: local(''),
    url(assets/156b34980c063697f3b3.woff2) format('woff2'),
    /* Chrome 26+, Opera 23+, Firefox 39+ */
    url(assets/223e52efe8802211783a.woff) format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  font-display: swap;
}

/* inter-600 - latin_cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: local(''),
    url(assets/53e46788ae5c0105039b.woff2) format('woff2'),
    /* Chrome 26+, Opera 23+, Firefox 39+ */
    url(assets/8d311c0c104e686f1f84.woff) format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  font-display: swap;
}

/* inter-700 - latin_cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: local(''),
    url(assets/5eb2649c36ab7c515697.woff2) format('woff2'),
    /* Chrome 26+, Opera 23+, Firefox 39+ */
    url(assets/74afdd76f86bd8057d55.woff) format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  font-display: swap;
}

html {
  position: relative;
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-width: 560px;
  min-height: 100vh;

  font-family: Inter, Arial, sans-serif;
  /* указать шрифт под проект*/
  font-size: 12px;
  font-weight: 400;
  color: #25213B;
  /*цвет под ваш проект*/
  background-color: #F2F0F9;
  ;
  /*цвет под ваш проект*/
}


img {
  max-width: 100%;
  height: auto;
}


button {
  cursor: pointer;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
ul,
p,
figure,
fieldset {
  margin: 0;
}

iframe {
  border: none;
}

/*
  Доступно скрываю элементы
*/

.visually-hidden {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

.container {
  max-width: 1180px;
  padding: 0 40px;
  margin: 0 auto;
}


fieldset {
  margin: 0;
  padding: 0;
  border: none
}

select {
  border: none;
  background-color: transparent;
  outline: none;
}

.cms {
  padding: 70px 0;
}

.cms__header {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #C6C2DE;
  margin-bottom: 20px;
}

.cms__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6E6893;
}

.cms__total {
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: #6E6893;
}

.cms__total-price {
  font-weight: bold;
  font-size: 18px;
  line-height: 22px;
  color: #6D5BD0;
}

.goods {
  background: #FFFFFF;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.goods__table-wrapper {
  overflow-x: auto;
}

.panel {
  padding: 15px 20px;
  display: flex;
}

.panel__filter {
  background-image: url(assets/c13c689eeb9c89b3ffb9.svg);
  background-position: left 10px center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: 1px solid #C6C2DE;
  box-sizing: border-box;
  border-radius: 6px;
  padding: 10px 10px 10px 40px;
  font-size: 16px;
  line-height: 19px;
  color: #25213B;
  margin-right: 20px;
}

.panel__search {
  background: #F4F2FF;
  border-radius: 6px;
  flex-basis: 400px;
  background-image: url(assets/26325a45f3a3fb375490.svg);
  background-position: left 10px center;
  background-repeat: no-repeat;
  margin-right: 20px;
}

.panel__input {
  height: 100%;
  width: 100%;
  background-color: transparent;
  padding: 10px 10px 10px 40px;
  border: none;
}

.panel__add-goods {
  align-self: flex-end;
  border-radius: 6px;
  padding: 10px 16px;
  margin-left: auto;
}

.panel__list {
  display: none;
  position: absolute;
  margin-top: 60px;
  background-color: #F4F2FF;
  z-index: 1;
}

.panel__list.active {
  display: block;
}

.panel__category {
  color: #6E6893;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  padding: 0 20px;
}

.panel__category:hover {
  color: #25213B;
  cursor: pointer;
}

.table {
  width: 1100px;
  border-collapse: collapse;
}

.table__header {
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6E6893;
  height: 45px;
}

.table__header-row {
  height: 45px;
  background: #F4F2FF;

}

.table__header-cell_left {
  text-align: left;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 600;
}

.table__body {
  text-align: center;
}

.table__body>tr:not(:last-child) {
  border-bottom: 1px solid #D9D5EC;
}

.table__cell {
  padding: 20px 23px 20px 21px;
  font-size: 14px;
  font-weight: 500;
}

.table__cell-id {
  position: absolute;
  top: 7px;
  color: #C5C5C5;
  text-transform: uppercase;
  font-size: 10px;
}

.table__cell_name {
  position: relative;
}

.table__cell_left {
  text-align: left;
}

.table__cell_btn-wrapper {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.table__btn {
  background-color: transparent;
  border: none;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  width: 20px;
  height: 20px;
}

.table__btn_pic {
  background-image: url(assets/88285a020e8c5a5a4f90.svg);
}

.table__btn_edit {
  background-image: url(assets/9d9024362dc5292678ce.svg);
}

.table__btn_del {
  background-image: url(assets/e3f86e7694b0820aca2b.svg);
}

.overlay {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow: auto;
  background: rgba(255, 255, 255, 0.8);
}

.overlay.active {
  display: flex;
}

.overlay__modal {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;
}

.overlay__modal-action {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

.overlay__modal-action.active {
  display: flex;
}
.modal {
  background: #F2F0F9;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);
  position: relative;
  padding: 32px 106px 39px;
  max-width: 792px;
}

.modal__action {
  width: 350px;
  height: 350px;
  padding: 109px 48px 96px;
}

.modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 43px;
}

.modal__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6E6893;
}

.modal__title_action {
  color: #6E6893;
  font-size: 18px;
  letter-spacing: 0.1rem;
}

.modal__title_error {
  color: #6E6893;
  padding-top: 33px;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 30px;
  background-color: transparent;
  border: none;
  color: #6E6893;
}

.modal__close:hover {
  opacity: .6;
}

.modal__close:active {
  opacity: .9;
}

.modal__form {
  position: relative;
}

.modal__form:before {
  content: '';
  position: absolute;
  display: block;
  background: #C6C2DE;
  height: 1px;
  width: 100%;
  top: -21px;
}

.modal__fieldset {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "name description"
    "category description"
    "units count"
    "discount price"
    ". file"
    "file-add file-add";
  gap: 12px 24px;
  background: #FFFFFF;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 580px;
}

.modal__label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6E6893;
}

.modal__text {
  display: block;
  margin-bottom: 5px;
  padding-left: 10px;
}

.modal__label_name {
  grid-area: name;
}

.modal__label_category {
  grid-area: category;
}

.modal__label_description {
  grid-area: description;
}

.modal__label_units {
  grid-area: units;
}

.modal__label_discount {
  grid-area: discount;
  width: 100%;
  display: block;
}

.modal__label_count {
  grid-area: count;
}

.modal__label_price {
  grid-area: price;
}

.modal__label_file {
  grid-area: file;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  text-transform: uppercase;
  background: #6D5BD0;
  border-radius: 6px;
  width: 250px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  cursor: pointer;
}

.image-container {
  grid-area: file-add;
  position: relative;
  display: none;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.image-container:hover:after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(50% - 15px);
  transform: translateX(-50%);
  transform: rotate(45deg);
  width: 35px;
  height: 1px;
  border: 1px solid black;
}

.image-container:hover:before {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(50% - 15px);
  transform: rotate(135deg);
  width: 35px;
  height: 1px;
  border: 1px solid black;
}

.modal__label_file:hover {
  background-color: #6E6893;
}

.modal__label_file:focus {
  background-color: #6E6893;
}

.modal__label_file-add {
  height: 200px;
  width: 200px;
  background-size: cover;
  background-position: center;
  font-size: 0;
}

.modal__label_file-error {
  color: red;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 18px;
}

.modal__input {
  display: block;
  width: 100%;
  height: 40px;
  background-color: #F4F2FF;
  border-radius: 6px;
  border: none;
  padding: 5px;
}

.modal__input:focus {
  outline: 2px solid #6E6893;
}

.modal__input_textarea {
  min-height: 111px;
  resize: none;
}

.modal__checkbox {
  display: block;
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.modal__checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  cursor: pointer;
}

.modal__checkbox:before {
  content: '';
  top: 0;
  left: 0;
  display: block;
  width: 40px;
  height: 40px;
  background-color: #F4F2FF;
  border-radius: 6px;
}

.modal__checkbox:after {
  content: '';
  position: absolute;
  top: 12px;
  left: 10px;
  width: 20px;
  height: 10px;
  border: 3px solid black;
  border-top: none;
  border-right: none;
  opacity: 0;
  transform: rotate(-45deg);
}

.modal__checkbox:checked:after {
  opacity: 1
}

.modal__checkbox:focus:before,
.modal__checkbox:hover:not(:disabled):before {
  box-shadow: 0px 0px 10px rgba(0, 113, 227, 0.5);
}

.modal__checkbox:disabled:before {
  background-color: #cccccc;
}

.modal__checkbox-wrapper {
  display: flex;
}

.modal__total {
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: #6E6893;
}

.modal__total-price {
  font-weight: bold;
  font-size: 18px;
  line-height: 22px;
  color: #6D5BD0;
}

.modal__submit {
  padding: 10px 25px;
  border-radius: 6px;
}

.modal__submit:hover {
  background-color: #6E6893;
}

.modal__submit:focus {
  background-color: #6E6893;
}

.modal__footer {
  max-width: 523px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}


@media (max-width: 1000px) {
  .modal__fieldset {
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "category"
      "description"
      "units"
      "count"
      "discount"
      "price"
      "file"
      "file-add";
    gap: 12px 24px;
    background: #FFFFFF;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 28px;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 580px;
  }

  .modal_top {
    flex-direction: column;
  }

  .modal__footer {
    flex-direction: column;
  }

  .modal__total {
    align-self: flex-end;
    margin-bottom: 20px;
  }
}

.vendor-code {
  display: flex;
  align-items: center;
}

.vendor-code__wrapper {
  font-weight: 600;
  font-size: 10px;
  line-height: 12px;
  text-transform: uppercase;
  color: #C5C5C5;
  margin-right: 10px;
}


.vendor-code__btn {
  background-color: transparent;
  border: transparent;
  color: #6E6893;
}

.vendor-code__btn:hover {
  opacity: .6;
}

.vendor-code__btn:active {
  opacity: .9;
}

.sub-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  background: #F4F2FF;
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  color: #6E6893;
}

.sub-panel__choice-pages {
  margin-right: 50px;
}

.sub-panel__pages {
  margin-right: 50px;
}

.sub-panel__left {
  border: solid #6E6893;
  border-width: 0 2px 2px 0;
  padding: 4px;
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  margin-right: 50px;
}

.sub-panel__right {
  border: solid #6E6893;
  border-width: 0 2px 2px 0;
  padding: 4px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.button {
  background: #6D5BD0;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  border: none;
}

.button__wrap {
  display: flex;
  gap: 25px;
  padding-top: 30px;
}

.button__confirm {
  border-radius: 6px;
  padding: 10px 16px;
}

.button__confirm:hover,
.button__confirm:focus {
  background-color: #6E6893;
}


