@import 'variables';

:host {
  display: flex;
  flex-direction: column;
}

.wrapper {
  display: flex;
  flex-direction: row;
}

.thumbnail {
  max-width: 59px;
  max-height: 111px;
  box-shadow: 0 0 18px 0 #b8b3b7;
  border-radius: 6px;
}

.product-details {
  margin-left: 1.5rem;
}

.product-name {
  margin-top: 0;
}

.detail {
  display: flex;
  margin-bottom: 7px;

  .name {
    width: 130px;
  }

  .value,
  .btn-quantity {
    font-weight: $font-weight-bold;
  }

  .btn-quantity[disabled] {
    background: none !important;
    color: #000000;
  }
}

.checkbox-wrapper {
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }

  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 30px;
    width: 30px;
    background-color: #eee;
    -webkit-box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
  }

  &:hover input ~ .checkmark {
    background-color: #ccc;
  }

  input:checked ~ .checkmark {
    background-color: #1f466d;
  }

  .checkmark:after {
    content: '';
    position: absolute;
    display: none;
  }

  input:checked ~ .checkmark:after {
    display: block;
  }

  .checkmark:after {
    left: 10px;
    top: 5px;
    width: 7px;
    height: 13px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }
}

.btn-quantity lib-icon {
  display: inline-block;
}

.btn-quantity .up {
  transform: rotate(-90deg);
}
.btn-quantity .down {
  transform: rotate(-270deg);
}
