/*============================================================================
8. SWATCH VARIANT
==============================================================================*/
/* 
Swatches Styles
*/
.swatch {
  margin: 1em 0; }
  .swatch .header {
    margin: 0.1em 0;
    text-align: left;
    min-width: 100px;
    font-weight: 600;
    line-height: 40px;
    background: initial !important;
    box-shadow: initial; }
  .swatch input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    z-index: 1; }

/* Label */
/* Hide radio buttons.*/
.swatch label {
  /* Rounded corners */
  /* To give width and height */
  float: left;
  /* Color swatches contain no text so they need to have a width. */
  min-width: 40px !important;
  height: 40px !important;
  /* No extra spacing between them */
  margin: 0;
  /* The border when the button is not selected */
  border: #e4e4e4 2px solid;
  /* Background color */
  background-color: #fff;
  /* Styling text */
  font-size: 15px !important;
  text-align: center !important;
  line-height: 40px;
  white-space: nowrap;
  text-transform: uppercase;
  padding: 0;
  position: relative; }

.swatch-element label {
  padding: 0 5px;
  margin: 0 !important; }

.color.swatch-element label {
  padding: 0; }

/* Styling selected swatch */
/* Slightly raised */
.swatch input:checked + label {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff; }

.swatch .color input:checked + label {
  background: initial;
  border-color: initial;
  color: #000; }

.swatch .color input + label {
  border: 1px solid #ccc !important; }

.swatch .color input:checked + label {
  position: relative; }
  .swatch .color input:checked + label:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0px 0px 4px 2px #ff0000; }

.swatch .swatch-element {
  float: left;
  -webkit-transform: translateZ(0);
  /* webkit flicker fix */
  -webkit-font-smoothing: antialiased;
  /* webkit text rendering fix */
  /* Spacing between buttons */
  margin: 0px 10px 10px 0;
  /* To position the sold out graphic and tooltip */
  position: relative; }
  .swatch .swatch-element.color .nau-do {
    background-color: #da2800; }
  .swatch .swatch-element.color .nau-nhat {
    background-color: #d5924f; }
  .swatch .swatch-element.color .xanh {
    background-color: #0098ff; }
  .swatch .swatch-element.color .xanh-la {
    background-color: #20bf00; }
  .swatch .swatch-element.color .vang {
    background-color: #e8db00; }
  .swatch .swatch-element.color .hong {
    background-color: #ff00d3; }
  .swatch .swatch-element.color .do {
    background-color: #e80000; }
  .swatch .swatch-element.color .xam {
    background-color: #b8b8b8; }
  .swatch .swatch-element.color .nau {
    background-color: #c67b00; }
  .swatch .swatch-element.color .tim {
    background-color: #8700ff; }

/* Image with the cross in it */
.crossed-out {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0; }

#quick-view-product .selector-wrapper {
  display: none !important; }

.swatch .swatch-element .crossed-out {
  display: none; }

.swatch .swatch-element.soldout .crossed-out {
  display: block; }

.swatch .swatch-element.soldout label {
  filter: alpha(opacity=60);
  /* internet explorer */
  -khtml-opacity: 0.6;
  /* khtml, old safari */
  -moz-opacity: 0.6;
  /* mozilla, netscape */
  opacity: 0.6;
  /* fx, safari, opera */ }

.swatch .tooltip {
  text-align: center;
  background: gray;
  color: #fff;
  bottom: 100%;
  padding: 10px;
  display: block;
  position: absolute;
  width: 100px;
  left: -35px;
  margin-bottom: 15px;
  /* Make it invisible by default */
  filter: alpha(opacity=0);
  -khtml-opacity: 0;
  -moz-opacity: 0;
  opacity: 0;
  visibility: hidden;
  /* Animations */
  -webkit-transform: translateY(10px);
  -moz-transform: translateY(10px);
  -ms-transform: translateY(10px);
  -o-transform: translateY(10px);
  transform: translateY(10px);
  -webkit-transition: all .25s ease-out;
  -moz-transition: all .25s ease-out;
  -ms-transition: all .25s ease-out;
  -o-transition: all .25s ease-out;
  transition: all .25s ease-out;
  -webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  -moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  -ms-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  -o-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  z-index: 10000;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }
  .swatch .tooltip:before {
    bottom: -20px;
    content: " ";
    display: block;
    height: 20px;
    left: 0;
    position: absolute;
    width: 100%; }
  .swatch .tooltip:after {
    border-left: solid transparent 10px;
    border-right: solid transparent 10px;
    border-top: solid gray 10px;
    bottom: -10px;
    content: " ";
    height: 0;
    left: 50%;
    margin-left: -13px;
    position: absolute;
    width: 0; }

.swatch .swatch-element:hover .tooltip {
  filter: alpha(opacity=100);
  -khtml-opacity: 1;
  -moz-opacity: 1;
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -o-transform: translateY(0px);
  transform: translateY(0px); }

.swatch.error {
  background-color: #E8D2D2 !important;
  color: #333 !important;
  padding: 1em;
  border-radius: 5px; }
  .swatch.error p {
    margin: 0.7em 0; }
    .swatch.error p:first-child {
      margin-top: 0; }
    .swatch.error p:last-child {
      margin-bottom: 0; }
  .swatch.error code {
    font-family: monospace; }

label[for] {
  cursor: pointer; }
