.tooltip {
  margin-left: 0.25em;
  cursor: help;
}

.tooltip:hover::after {
  opacity: 1;
}

.tooltip::after {
  content: attr(data-title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;

  display: inline-block;
  min-width: 200px;
  max-width: 400px;
  white-space: normal;
  overflow-wrap: normal;
  word-wrap: normal;
  width: max-content;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
  text-align: center;
}

.custom-cart-checkbox > label {
  display: flex;
  justify-content: space-between;
  position: relative;

  > span {
    font-weight: 700;
  }
}

.custom-cart-checkbox-explanation {
  display: none;
}

.custom-cart-checkbox-explanation-title {
  display: flex;
  justify-content: space-between;

  span {
    font-style: italic;
  }

  i {
    -moz-transition: transform 0.2s;
    -webkit-transition: transform 0.2s;
    transition: transform 0.2s;
  }
}

input[type='checkbox']:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

input[type='checkbox'] {
  accent-color: var( --e-global-color-text );
}

button[name='update_cart']:disabled {
  background-color: #333;
  opacity: 0.5;
}