#sizeIdModal .modal-dialog {
  width: 802px;
}
#sizeIdModal .modal-body {
  padding: 0px;
}
#sizeIdModal .modal-body > .img-cont-mysize {
  position: relative;
  float: right;
  display: block;
  margin-top: -42px;
}
#sizeIdModal .modal-body > .img-cont-mysize > img {
  width: 400px;
  float: right;
}
#sizeIdModal .img-cont-mysize > .pos-item-text {
  margin-top: 30px;
}
#sizeIdModal .modal-body > .form {
  width: 400px;
  float: left;
  padding-left: 60px;
  position: relative;
  z-index: 10;
}
#sizeIdModal .modal-body > .form > .form-group {
  width: 50%;
  float: left;
  position: relative;
}
#sizeIdModal .modal-body > .form > .form-group:nth-of-type(2n) {
  padding-left: 12px;
}
#sizeIdModal .modal-body > .form > .form-group:nth-of-type(2n - 1) {
  padding-right: 12px;
}
#sizeIdModal .modal-body > .form > .form-group > label {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Satoshi-Bold';
  color: #222;
  white-space: pre-line;
  line-height: 16px;
}
#sizeIdModal .modal-body > .form > .form-group > label.text-danger {
  color: #cf3f3f;
}
#sizeIdModal .modal-body > .form > .form-group > input {
  border: 1px solid #f1d9be;
  height: 48px;
  border-radius: 4px !important;
  position: relative;
}
#sizeIdModal .modal-body > .form > .form-group > input:focus {
  box-shadow: none;
  border: 1px solid #c0843e;
  background-color: #fbf8f4;
  color: #c0843e;
}
#sizeIdModal .modal-body > .form > .form-group > input:focus + span.cm {
  color: #c0843e;
}
#sizeIdModal .modal-body > .form > .form-group > input + span.cm {
  position: absolute;
  right: 26px;
  bottom: 12px;
  font-family: 'Satoshi-Regular';
  font-size: 14px;
}
#sizeIdModal
  .modal-body
  > .form
  > .form-group:nth-of-type(2n)
  > input
  + span.cm {
  right: 14px;
}
#sizeIdModal .pos-item-text {
  position: absolute;
  font-size: 12px;
  font-family: 'Satoshi-Bold';
  color: #222;
  background-color: #fff;
  height: 26px;
  padding-left: 6px;
  padding-right: 6px;
  line-height: 26px;
}
#sizeIdModal .pos-item-text.active {
  background-color: #c0843e;
  color: #fff;
}
#sizeIdModal .modal-title {
  color: #222;
  font-size: 32px;
}
#sizeIdModal .modal-header {
  border: 0px;
}
#sizeIdModal .btn-warning {
  background-color: #c0843e;
  font-family: 'Satoshi-Black';
  font-size: 14px;
  width: 100%;
  margin-top: 8px;
  background: #c0843e;
  border: 1px solid #c0843e;
  box-shadow: none;
}
#sizeIdModal .btn-success {
  background-color: #0d766d;
  font-family: 'Satoshi-Black';
  font-size: 14px;
  width: 100%;
  margin-top: 8px;
  background: #0d766d;
  border: 1px solid #0d766d;
  box-shadow: none;
}
#sizeIdModal .btn-warning.chosen {
  width: calc(50% - 12px);
}
#sizeIdModal .btn-warning.chosen + .btn-success {
  width: calc(50% - 12px);
  float: right;
}
#sizeIdModal .btn-success * {
  font-size: 14px;
}
#sizeIdModal .modal-content {
  box-shadow: none;
  border: 1px solid #f7e9d9;
  border-radius: 0px;
}

.modal-backdrop.in {
  opacity: 1;
  background-color: rgb(251 249 246 / 70%);
}

#sizeIdModal .text-infobox-sizeid {
  color: #455454;
  font-family: 'Satoshi-Regular';
  font-size: 12px;
  line-height: 18px;
  padding-top: 20px;
  position: relative;
  padding-left: 40px;
}

#sizeIdModal .text-infobox-sizeid > img {
  width: 32px;
  position: absolute;
  left: 0px;
  top: 20px;
}

#sizeIdModal .modal-header .close {
  opacity: 1;
  padding-top: 8px;
  padding-right: 16px;
  z-index: 999;
  position: relative;
}

#sizeIdModal .size-id-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
  text-align: right;
  padding-right: 26px;
}

#sizeIdModal .loading-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
}

#sizeIdModal .modal-header .modal-title {
  display: none;
}

#sizeIdModal .main-error {
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  margin: 0;
  border-radius: 4px;
  padding: 8px;
}

#sizeIdModal .main-error.text-danger {
  background-color: #eeeeee;
  border: 2px solid #f1d9be;
}

#sizeIdModal .main-error.text-success {
  background-color: #d4edda;
  border: 2px solid #c3e6cb;
}

#sizeIdModal .mysize-reason {
  font-size: 14px;
  line-height: 1.4;
  margin: 10px 0 0;
}

/* checkbox */
.sizeIdErrorForm input[type='checkbox'] {
  display: none;
}

.sizeIdErrorForm input[type='checkbox'] + label {
  position: relative;
  padding-left: 25px; /* Prostor pro ikonu */
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: 15px;
  padding-top: 2px;
}

/* Vizuální styl custom checkboxu */
.sizeIdErrorForm input[type='checkbox'] + label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background-color: rgba(220, 180, 133, 0.5);
  border: 1px solid #edd9c2 !important;
}

/* Vizuální styl custom checkboxu při označení */
.sizeIdErrorForm input[type='checkbox']:checked + label:before {
  content: '✓';
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 15px;
  text-align: center;
  background: #ddb586;
  border-color: #ddb586;
}

.sizeIdErrorForm form {
  display: flex;
}

.sizeIdErrorForm form div:first-child {
  width: 70%;
}
.sizeIdErrorForm form div:last-child {
  width: 30%;
}

.sizeIdErrorForm form div input {
  width: 100%;
}

.sizeIdErrorForm form div input[type='email'] {
  border: 1px solid rgb(241, 217, 190);
  border-radius: 4px 0 0 4px !important;
  height: 48px;
  padding-left: 16px;
  color: RGB(4, 25, 23);
  font-size: 14px;
  text-align: left;
}
.sizeIdErrorForm form div input[type='email']:focus {
  outline: none;
}

.sizeIdErrorForm form div button {
  margin-top: 0 !important;
  height: 48px;
}

@media (max-width: 802px) {
  #sizeIdModal .modal-body .form .modal-title {
    display: none;
  }
  #sizeIdModal .modal-header .modal-title {
    display: block;
    position: absolute;
    z-index: 400;
    top: -4px;
  }

  #sizeIdModal .modal-dialog {
    width: 100%;
    margin-top: 65px;
    padding-right: 15px;
  }
  #sizeIdModal .modal-content {
    overflow-x: hidden;
  }
  #sizeIdModal .modal-body > .form {
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }
  #sizeIdModal .modal-body > .img-cont-mysize {
    position: absolute;
    top: 12px;
    margin-left: auto;
    width: 400px;
    margin-right: auto;
    display: block;
    left: 0;
    right: 0;
  }
}

#sizeIdModal .modal-body.mysize-noimg > .form {
  width: 100%;
  padding-right: 60px;
}

#sizeIdModal .modal-body > .form > .form-group.mysize-full {
  width: 100%;
  padding-right: 0;
}

#sizeIdModal.mysize-foot .modal-dialog {
  width: 640px;
}

#sizeIdModal.mysize-foot .modal-body > .form {
  padding-left: 48px;
  padding-right: 48px;
  padding-bottom: 36px;
}

#sizeIdModal .mysize-intro {
  font-family: 'Satoshi-Regular';
  font-size: 16px;
  line-height: 1.4;
  color: #222;
  margin: 0 0 20px;
}

#sizeIdModal.mysize-foot .size-id-input {
  padding-left: 16px;
  font-size: 16px;
}

#sizeIdModal.mysize-foot .size-id-input::placeholder {
  text-align: left;
  padding-right: 0;
}

#sizeIdModal.mysize-foot #sizeIdButtonSend,
#sizeIdModal .btn-mysize-foto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 8px;
  white-space: normal;
  line-height: 1.2;
}

#sizeIdModal.mysize-foot #sizeIdButtonSend {
  width: calc(50% - 6px);
  float: right;
}

#sizeIdModal .btn-mysize-foto {
  width: calc(50% - 6px);
  float: left;
  background: #fff;
  border: 1px solid #c0843e;
  color: #c0843e;
  font-family: 'Satoshi-Black';
  font-size: 14px;
}

#sizeIdModal .btn-mysize-foto .fa {
  font-size: 18px;
  line-height: 1;
}

#sizeIdModal #sizeIdButtonSend.chosen ~ .btn-mysize-foto {
  display: none;
}

#sizeIdModal .mysize-notfound {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f8efe6;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 4px 0 14px;
}

#sizeIdModal .mysize-notfound .fa {
  color: #c0843e;
  font-size: 20px;
}

#sizeIdModal .mysize-notfound div,
#sizeIdModal .mysize-notfound b {
  font-size: 14px;
  line-height: 18px;
  font-family: 'Satoshi-Regular';
  color: #222;
}

#sizeIdModal .mysize-notfound b {
  display: block;
  font-family: 'Satoshi-Bold';
}

#sizeIdModal.mysize-foot .sizeIdErrorForm form {
  align-items: flex-end;
  margin-top: 12px;
}

#sizeIdModal.mysize-foot .sizeIdErrorForm form label {
  display: block;
  font-family: 'Satoshi-Regular';
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 6px;
}

#sizeIdModal.mysize-foto-active .modal-header .modal-title {
  display: none;
}

#sizeIdModal .mysize-foto {
  padding: 0 48px 36px;
  color: #222;
  font-family: 'Satoshi-Regular';
}

#sizeIdModal .mysize-foto-title {
  display: block;
  margin: 0 0 20px;
}

#sizeIdModal .mysize-foto p,
#sizeIdModal .mysize-foto li {
  font-size: 16px;
  line-height: 1.4;
}

#sizeIdModal .mysize-foto-howto {
  display: flex;
  gap: 24px;
  align-items: center;
}

#sizeIdModal .mysize-foto-howto svg {
  width: 130px;
  flex: none;
}

#sizeIdModal .mysize-foto-howto ol {
  list-style: none;
  counter-reset: krok;
  padding: 0;
  margin: 0;
}

#sizeIdModal .mysize-foto-howto li {
  counter-increment: krok;
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}

#sizeIdModal .mysize-foto-howto li::before {
  content: counter(krok) '.';
  position: absolute;
  left: 0;
  color: #0d766d;
  font-family: 'Satoshi-Bold';
}

#sizeIdModal .mysize-foto-note {
  margin: 18px 0;
}

#sizeIdModal .mysize-foto-privacy {
  background: #e7f3f2;
  color: #0d766d;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 0 0 16px;
}

#sizeIdModal .mysize-foto-privacy .fa {
  font-size: 20px;
  margin-right: 8px;
}

#sizeIdModal .mysize-foto-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin: 12px 0 0;
  background: #c0843e;
  border: 1px solid #c0843e;
  border-radius: 4px;
  color: #fff;
  font-family: 'Satoshi-Black';
  font-size: 16px;
}

#sizeIdModal .mysize-foto-btn-outline {
  background: #fff;
  color: #c0843e;
}

#sizeIdModal .mysize-foto-btn .fa {
  font-size: 20px;
}

#sizeIdModal .mysize-foto-hint {
  margin: 0 0 14px;
}

#sizeIdModal .mysize-foto-view {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  margin: 0 auto;
  border-radius: 6px;
  cursor: crosshair;
}

#sizeIdModal .mysize-foto-links {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin: 16px 0;
}

#sizeIdModal .mysize-foto-link {
  color: #222;
  text-decoration: underline;
  font-size: 15px;
  cursor: pointer;
}

#sizeIdModal .mysize-foto-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #f1d9be;
  border-radius: 4px;
  padding: 14px 20px;
}

#sizeIdModal .mysize-foto-result span {
  font-family: 'Satoshi-Bold';
  font-size: 16px;
}

#sizeIdModal .mysize-foto-result b {
  font-family: 'Satoshi-Bold';
  font-size: 22px;
}

#sizeIdModal .mysize-foto-use {
  margin-bottom: 16px;
}

/* lupa pri oznacovani bodov */
#sizeIdModal .mysize-foto-loupe {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid #c0843e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 20;
}

@media (max-width: 802px) {
  #sizeIdModal .modal-body.mysize-noimg > .form,
  #sizeIdModal.mysize-foot .modal-body > .form {
    padding-left: 20px;
    padding-right: 20px;
  }
  #sizeIdModal.mysize-foot .modal-dialog {
    width: 100%;
  }
  /* na mobile pod sebou */
  #sizeIdModal.mysize-foot #sizeIdButtonSend,
  #sizeIdModal .btn-mysize-foto {
    width: 100%;
    float: none;
    display: flex;
  }
  #sizeIdModal .mysize-foto {
    padding: 0 20px 28px;
  }
  #sizeIdModal .mysize-foto-title {
    font-size: 28px;
  }
  #sizeIdModal .mysize-foto-howto svg {
    width: 100px;
  }
  #sizeIdModal.mysize-foot .sizeIdErrorForm form {
    flex-direction: column;
    align-items: stretch;
  }
  #sizeIdModal.mysize-foot .sizeIdErrorForm form div:first-child,
  #sizeIdModal.mysize-foot .sizeIdErrorForm form div:last-child {
    width: 100%;
  }
  #sizeIdModal.mysize-foot .sizeIdErrorForm form div input[type='email'] {
    border-radius: 4px !important;
  }
  #sizeIdModal.mysize-foot .sizeIdErrorForm form div button {
    margin-top: 12px !important;
    border-radius: 4px;
  }
}
