/**
  * Copyright © Webtex. All rights reserved.
  */

/**
 *  Mtm
 * --------------------------------------------- */

.mtm-product {
    margin-top: 20px;
}

.mtm-product * {
    box-sizing: border-box;
}

.mtm-product ._keyfocus :focus,
.mtm-product input:not([disabled]):focus,
.mtm-product textarea:not([disabled]):focus,
.mtm-product select:not([disabled]):focus {
    box-shadow: none !important;
}

.mtm-product .options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mtm-product .field .control {
    border: 1px solid #d0d0d0;
    padding: 15px;
    display: none;
}

.mtm-product .field.active .control {
    display: block;
}

.mtm-product .field .control .mtm-inputs {
    display: flex;
    gap: 10px;
}

.mtm-product .field .control .choice {
    width: calc(33% - 10px);
    display: inline-block;
    border-radius: 3px;
    border: solid 2px #d0d0d0;
    vertical-align: top;
    margin: 0;
}

.mtm-product .field .control .choice .radio {
    margin: 13px 5px 0 7px;
    vertical-align: top;
}

/**
 *  Mtm Admin Field
 * --------------------------------------------- */

.mtm-product .control .label.admin-field-label {
    display: inline-block;
    float: none;
    min-height: 40px;
    font-weight: 600;
    padding: 9px 0;
    width: calc(100% - 35px);
}

/**
 *  Mtm Title Label
 * --------------------------------------------- */

.mtm-product .field .label.title-label {
    box-sizing: border-box;
    position: relative;
    background: #efefef;
    padding: 10px;
    display: block;
    width: 100%;
    border: 1px solid #d0d0d0;
    margin: 0 0 -1px 0;
}

.mtm-product .field .label.title-label.active {
    background: #444444;
    color: #ffffff;
    border-color: #444444;
}

/**
 *  Mtm Buttons
 * --------------------------------------------- */

.mtm-product .mtm-buttons {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 0;
}

.mtm-product .field.filled .mtm-buttons {
    display: none;
}

.mtm-product .mtm-buttons .mtm-next-button,
.mtm-product .mtm-buttons .mtm-prev-button {
    transition: all ease 0.2s;
    -webkit-transition: all ease 0.2s;
    -o-transition: all ease 0.2s;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    padding: 10px;
    min-width: 100px;
    display: inline-block;
    border: 1px solid #d0d0d0;
    text-align: center;
}

.mtm-product .mtm-buttons .mtm-next-button {
    background: #444444;
    color: #fff;
}

.mtm-product .mtm-buttons .mtm-prev-button {
    background: #CCCCCC;
    color: #fff;
}

.mtm-product .mtm-buttons .mtm-prev-button:hover,
.mtm-product .mtm-buttons .mtm-next-button:hover {
    background: #000;
    transition: all ease 0.2s;
    -webkit-transition: all ease 0.2s;
    -o-transition: all ease 0.2s;
}

/**
 *  Mtm Discount
 * --------------------------------------------- */

.mtm-original {
  text-decoration: line-through;
  color: #666;
}

.mtm-discount {
  color: red;
}

.mtm-product ~ .product-info-price [data-price-type="finalPrice"] {
  display: flex;
  gap: 5px;
}

.mtm-product ~ .product-info-price [data-price-type="finalPrice"] span {
  order: 0;
}

.mtm-product ~ .product-info-price [data-price-type="finalPrice"]:before {
  content: attr(mtm-original);
  text-decoration: line-through;
  color: #666;
  order: 1;
}

.mtm-product ~ .product-info-price [data-price-type="finalPrice"]:after {
  content: "Discount: " attr(mtm-discount) "%";
  color: red;
  order: 2;
}

.mtm-product ~ .product-info-price [data-price-type="finalPrice"]:not([mtm-original]):before,
.mtm-product ~ .product-info-price [data-price-type="finalPrice"]:not([mtm-discount]):after {
    content: none;
}

/**
 *  End
 * --------------------------------------------- */