.old-price {
    font-size: 20px;
    color: #c0c0c0;
    text-decoration: line-through;
}

.new-price {
    color: #ff0000;
}

.product-slider {
    position: relative;
}

.product-discount {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.7);
}

.product-discount > span {
    padding: 2px 8px;
    font-size: 28px;
    font-family: var(--source-sans);
    color: #ff0000;
}

.modal {
    display: none;
}

.input-wrapper {
    margin-bottom: 15px;
}

.input-wrapper textarea,
.input-wrapper input {
    display: block;
    padding: 5px 10px;
    width: 100%;
    border: 1px solid gray;
}

#opt-price {
    max-width: 530px;
    padding: 32px 45px;
}

#opt-price img,
#opt-price h2 {
    display: block;
    margin: auto;
    text-align: center;
}

#opt-price h2 {
    margin-top: 20px;
    font-size: 42px;
    font-family: var(--cormorant-garamond);
    line-height: 50px;
}

.form-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 30px;
}

.modal-label,
.modal-input {
    width: 100%;
}

.modal-label.half {
    width: 47%;
}

.modal-label {
    margin-bottom: 15px;
}

.modal-input {
    padding: 5px 20px;
    height: 40px;
    border: 1px solid #9a9a9a;
}

#opt-price .modal-btn {
    width: 100%;
    height: 40px;
    padding: 5px 20px;
    line-height: 30px;
    color: #fff;
    background-color: #000;
}

.product-sizes-box.color-box {
    display: flex;
}
.product-sizes-box.color-box .product-sizes-item {
    margin-right: 5px;
    border-right: 0px;
    cursor: pointer;
}

.product-sizes-box.color-box .product-sizes-item div {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid black;
}
.product-sizes-box.color-box .product-sizes-item.select div {
    border: 5px solid black;
}

span.new {
    background-color: #66bd69;
    color: #ffffff;
}

span.hit {
    background-color: #000000;
    color: #ffffff;
}

span.sale {
    background-color: #b6996f;
    color: #ffffff;
}

.price-block {
    display: flex;
    justify-content: flex-start;
    ьфч-цшвер: 450px;
    margin-top: 10px;
}

.price-block .price {
    margin-left: 15px;
}

.price-block .price-size {
    width: 60px;
}

.button-to-basket {
    width: 144px;
    background-color: #000;
    height: 38px;
    padding: 5px 20px;
    cursor: pointer;
}

.button-to-basket > span {
    display: block;
    height: 50px;
    color: ##000000;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 48px;
    text-transform: none;
    letter-spacing: normal;
    border: 1px solid #e0e0e0
}
.fancybox__backdrop {background-color: #f0f0f0;}
.fancybox__button--arrow {color: #007bff;}

.admin-link {margin-left:12px;}


/**/
.quantity input[type="button"][disabled]{
    cursor: not-allowed;
    color: #9a9a9a;
}
.quantity input[type="number"][disabled]{
    cursor: not-allowed;
    color: #9a9a9a;
}

.product-sizes-item > span.disabled {
    display: inline-block;
    vertical-align: middle;
    padding: 10px 20px;
    color: #9a9a9a;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: not-allowed;
    background-color: #e0e0e0;
}


/*dimensions modal*/
.dimensions-modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.dimensions-modal__title h2{
    text-align: center;
    padding: 0 30px 0 0;
}

.dimensions-modal__content {
  width: 50%;
  min-width: 446px;
  height: 100%;
  top: 0px;
  right: 0px;
  left: auto;
  bottom: 0;
  overflow: auto;
  position: fixed;
  background: #fff;
  padding: 20px;
  animation: fadeInD 0.7s ease;
}
.dimensions-modal__close {
  float: right;
  font-size: 32px;
  cursor: pointer;
  color: #666;
}
.dimensions-modal__close:hover {
  color: #000;
}

/* Анимация */
@keyframes fadeInD {
  from {opacity: 0; transform: translateX(150px);}
  to {opacity: 1; transform: translateX(0);}
}

@media screen and (max-width: 900px) {
    .dimensions-modal__content{
        background: #fff;
        margin: 10% auto;
        padding: 20px;
        width: 80%;
        max-width: 700px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        animation: fadeIn 0.3s ease;
        position: relative;
        height: calc(90vh - 100px);
        min-width: auto;
    }
    @keyframes fadeInD {
      from {opacity: 0; transform: translateX(150px);}
      to {opacity: 1; transform: translateX(0);}
  }
}


.dimensions-tabs {
  display: flex;
  justify-content: space-around;
}

.dimensions-tab {
  padding: 10px 20px;
  cursor: pointer;
  margin-right: 5px;
  transition: background 0.3s;
  flex-basis: 100%;
  text-align: center;
}

.dimensions-tab:hover {
}

.dimensions-tab.active {
  border-bottom: 1px solid #000;
  font-weight: bold;
}

.dimensions-tab-content {
  display: none;
  padding: 20px;
  background-color: #fff;
}

.dimensions-tab-content.active {
  display: block;
}

.dimensions-table {
  border-bottom:1px solid #000;
  margin-top:8px;
  position:relative;
  table-layout:fixed;
  width:100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.dimensions-table td,
.dimensions-table th {
  height:40px;
  padding:0 4px;
  position:relative;
  text-align:center;
  vertical-align:middle
}
.dimensions-table th {
  border-bottom:1px solid #000;
  border-top:1px solid #000;
  font-size:11px;
  font-weight:400;
  letter-spacing:.5px;
  line-height:16px
}
.dimensions-table td {
  font-size:13px;
  line-height:20px
}
.dimensions-table tr+tr td {
  border-top:1px solid rgba(95,94,92,.12)
}
.dimensions-messengers__text{
    padding: 0 20px;
}
.dimensions__messengers-list{
    display: flex;
    gap: 12px;
    margin: 10px 0;
}
.dimensions__messengers-list a{
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}
.dimensions__messengers-list svg{
    width: 26px;
    height: 26px;
    fill: #000;
}
@media screen and (max-width: 900px) {
  .dimensions-table__wrap{
    overflow: auto;
  }
  .dimensions-table {
    width: auto;
  }
  .dimensions-table td:first-child,
  .dimensions-table th:first-child {
      white-space: nowrap;
  }

}