.mac {
  --active-color: #333333;
  --inactive-color: #B5B5B9;
  --disabled-color: #F5F5F6;
  --secondary-color: #8E8E93;
  --submit-red-color: #E31235;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--active-color);
}

@media screen and (max-width: 767px) {
  .mac {
    flex-direction: column;
  }
}

.mac__view {
  flex: 0 0 60rem;
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
}
@media screen and (max-width: 1919px) {
  .mac__view {
    flex: 0 0 40rem;
  }
}
@media screen and (max-width: 1023px) {
  .mac__view {
    flex: 0 0 32rem;
  }
}
@media screen and (max-width: 767px) {
  .mac__view {
    display: flex;
    flex: none;
    align-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0 2rem;
    margin-bottom: 4rem;
  }
}

.mac__control {
  flex: 0 0 60rem;
  padding-left: 7.2rem;
}
@media screen and (max-width: 1919px) {
  .mac__control {
    flex: 0 0 40rem;
  }
}
@media screen and (max-width: 1023px) {
  .mac__control {
    padding-left: 4rem;
    flex: 0 0 32rem;
  }
}
@media screen and (max-width: 767px) {
  .mac__control {
    flex: 1 0 20rem;
    padding-left: 0;
    padding: 0 2rem;
  }
}

.mac__title {
  font-style: normal;
  font-weight: bold;
  font-size: 2.8rem;
  line-height: 3.6rem;
}
@media screen and (max-width: 767px) {
  .mac__title {
    font-size: 2.4rem;
    line-height: 3.2rem;
  }
}

.mac__choose {
  display: flex;
  align-items: center;
  margin-top: 0.4rem;
  font-style: normal;
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 2.0rem;
}

.mac__choose-color {
  margin-top: 2.4rem;
}

.mac__choose-color span {
  margin-left: 0.4rem;
  font-weight: normal;
  color: var(--secondary-color);
}

.mac__choose-color-buttons {
  display: flex;
  flex-direction: row;
  margin-top: 1.2rem;
}

.mac__choose-color-button {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 6.4rem;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  width: 6.4rem;
  height: 6.4rem;
  border: 0.1rem solid var(--inactive-color);
  border-radius: 0.4rem;
  cursor: pointer;
  margin-right: 0.8rem;
  margin-bottom: 1.2rem;
}

.mac__choose-color-button_active {
  border: 0.2rem solid var(--active-color);
}

.mac__choose-color-button-picture {
  width: 5.6rem;
  height: 5.6rem;
  background-size: 5.6rem 5.6rem;
}

.mac__choose-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.mac__choose-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  height: 4rem;
  padding: 0 1.6rem;
  border: 0.1rem solid var(--secondary-color);
  border-radius: 0.4rem;
  font-style: normal;
  font-weight: normal;
  font-size: 1.6rem;
  line-height: 2.2rem;
  cursor: pointer;
  margin-right: 0.8rem;
  margin-bottom: 1.2rem;
}

.mac__choose-button_active {
  padding: 0 1.5rem;
  font-weight: 500;
  border: 0.2rem solid var(--active-color);
}

@media screen and (max-width: 767px) {
  .mac__choose-button {
    padding: 0 1.2rem;
  }
  .mac__choose-button_active {
    padding: 0 1.1rem;
  }
}

.mac__choose-button_disable {
  border: 0.1rem dashed var(--inactive-color);
  cursor: not-allowed;
}

.mac__submit-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2.4rem;
  width: 21.3rem;
  height: 4.8rem;
  border: 0.1rem solid var(--submit-red-color);
  border-radius: 0.4rem;
  background: var(--submit-red-color);
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 2.2rem;
  color: #FFFFFF;
  cursor: pointer;
  margin-right: 1.6rem;
  margin-bottom: 1.2rem;
}

#mac-configurator-submit-button.mac__submit-button_disabled {
  border: 0.1rem dashed var(--inactive-color);
  background: #FFFFFF;
  color: var(--active-color);
  cursor: not-allowed;
}

#mac-configurator-pdp-button.mac__pdp-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13.2rem;
  height: 4.8rem;
  background-color: var(--disabled-color);
  border-radius: 0.4rem;
  font-style: normal;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 2.2rem;
  color: var(--active-color);
  text-decoration: none;
}

@media screen and (max-width: 400px) {
  #add_product_redirect_to_cart {
    width: 100%;
  }
  .mac__submit-button,
  #mac-configurator-pdp-button.mac__pdp-button {
    width: 100%;
  }
}

.mac__tooltip {
  position: relative;
  display: inline-block;
  margin-left: 0.7rem;
  cursor: pointer;
}

.mac__choose-question-image {
  vertical-align: text-top;
  height: 1.5rem;
  width: 1.5rem;
}

.mac__tooltip-title {
  font-style: normal;
  font-weight: 500;
  font-size: 2rem;
  line-height: 2.8rem;
  margin-bottom: 1rem;
}

.mac__tooltiptext {
  box-sizing: border-box;
  position: absolute;
  top: 3rem;
  right: -1.9rem;
  z-index: 1;
  visibility: hidden;
  padding: 2.4rem;
  width: 36rem;
  border-radius: 0.8rem;
  font-style: normal;
  font-weight: normal;
  font-size: 1.4rem;
  line-height: 2rem;
  background-color: #FFFFFF;
  color: var(--active-color);
  box-shadow: 0 0.1rem 2rem rgba(4, 6, 28, 0.1);
  cursor: default;
}

.mac__tooltiptext::after {
  content: " ";
  position: absolute;
  bottom: 100%;
  right: 1.6rem;
  border-width: 1rem;
  border-style: solid;
  border-color: transparent transparent #FFFFFF transparent;
}

.mac__tooltiptext_active {
  visibility: visible;
}

.mac__close-image {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .mac__close-image {
    top: 2.6rem;
  }
}

.mac__tooltip-dark {
  position: fixed;
  border:none;
  display: none;
  width: 100%;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  overflow: hidden;
  z-index: 100;
  opacity: 0.5;
  background-color: black;
  transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
}

@media screen and (max-width: 767px) {
  .mac__tooltip-dark_active {
    display: block;
  }
  .mac__tooltiptext {
    position: fixed;
    box-sizing: border-box;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 101;
    border-radius: 20px 20px 0px 0px;
  }
  .mac__tooltiptext::after {
    display: none;
  }
  .body_hidden {
    overflow: hidden;
  }
}
