/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

[class*="swatch-opt"] {
    margin-bottom: 20px;
}

.swatch-attribute {
    margin-bottom: 10px;
}

.product-item .swatch-attribute {
    margin-bottom: 0;
}

.swatch-attribute-label {
    position: relative;
    font-size: 14px;
}

.product-info-main .swatch-attribute-label {
    text-transform: uppercase;
}

.product-item .swatch-attribute.color .swatch-attribute-label {
    /* display: none */;
}
.product-item .swatch-attribute-selected-option {
    padding-left: 5px;
}

.product-item .swatch-attribute-selected-option,
.product-item .swatch-attribute-label {
    font-size: 12px;
}

.swatch-attribute-label.required {
    padding-right: 10px;
}

.swatch-attribute-label[data-required="1"]:after {
    content: '*';
    color: #ff7775;
    position: absolute;
    right: -11px;
    top: -2px;
    font-weight: bold;
    font-size: 1em;
}

.swatch-attribute-selected-option {
    color: #646464;
    padding-left: 20px;
}

.product-item .swatch-attribute.color .swatch-attribute-selected-option {
    /* padding-left: 0; */
}

.swatch-attribute-options {
    margin-top: 5px;
}

.product-info-main .swatch-attribute-options {
    margin-top: 10px;
}

.swatch-option {
    width: 24px;
    height: 24px;
    float: left;
    border-radius: 50%;
    margin: 0 8px 8px 0;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: visible;
    text-overflow: ellipsis;
    transition: transform 0.5s ease-in-out;
    text-align: center;
    background-size: cover !important;
}

.filter-options .swatch-option {
    width: 36px;
    height: 36px;
    margin: 0 10px 10px 0;
}

.swatch-select {
    margin-bottom: 8px;
}

.swatch-select.size {
     margin-bottom: 12px;
}

.product-info-main .swatch-option {
    width: 34px;
    height: 34px;
    margin: 0 12px 12px 0;
}

.product-info-main .swatch-select {
    margin-bottom: 12px;
}

.swatch-option.text {
    background: #f0f0f0;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    padding: 2px;
}

.product-info-main .swatch-option.text {
    padding: 8px 4px;
}

.swatch-option.selected {
    opacity: 0.3;
    border: solid 1px black;
}

.swatch-attribute-options:after {
    content: " "; /* Older browser do not support empty content */
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

.swatch-option:not(.disabled):hover {
    transform: scale(1.5, 1.5);
}

.swatch-option.disabled {
    cursor: default;
    opacity: 0.5;
}

.swatch-option.disabled:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top:0;
    bottom: 0;
    background: linear-gradient(to left top,  rgba(255,255,255,0) 0%,rgba(255,255,255,0) 42%,rgba(255,255,255,1) 43%,rgba(255,255,255,1) 46%,rgba(255,82,22,1) 47%,rgba(255,82,22,1) 53%,rgba(255,255,255,1) 54%,rgba(255,255,255,1) 57%,rgba(255,255,255,0) 58%,rgba(255,255,255,0) 100%);
}

.swatch-option-tooltip {
    max-width: 140px;
    /*max-height: 160px;*/
    max-height: 100%;
    min-height: 20px;
    min-width: 20px;
    position: absolute;
    padding: 5px;
    background: #fff;
    border: 1px solid #e1e1e1;
    display: none;
    z-index: 999;
    text-align: center;
}

.swatch-option-tooltip .corner,
.swatch-option-tooltip-layered .corner {
    left: 40%;
    position: absolute;
    bottom: 0;
    height: 8px;
}

.ie11 .swatch-option-tooltip .corner,
.ie11 .swatch-option-tooltip-layered .corner {
    bottom: 2px;
}

.swatch-option-tooltip .corner:after,
.swatch-option-tooltip-layered .corner:after {
    content: '';
    position: relative;
    top: 1px;
    left: -15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 7px 0 7px;
    border-color: #fff transparent transparent transparent;
    font-size: 1px;
}

.swatch-option-tooltip .corner:before,
.swatch-option-tooltip-layered .corner:before {
    content: '';
    position: relative;
    top: 2px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 8px;
    border-color: #e1e1e1 transparent transparent transparent;
    font-size: 1px;
}

.swatch-option-tooltip .image,
.swatch-option-tooltip-layered .image {
    display: block;
    height: 130px;
    width: 130px;
    /*margin: 0 0 5px;*/
    margin: 0 auto;
}

.swatch-option-tooltip .title {
    max-width: 140px;
    min-height: 20px;
    max-height: 200px;
    color: rgb(40, 40, 40);
    text-align: center;
    display: block;
    overflow: hidden;
}

.product-info-main .swatch-opt {
    margin: 20px 0 10px;
}

.swatch-more {
    display: inline-block;
    margin: 2px 0;
    text-decoration: none !important;
    position: static;
    z-index: 1;
}

/* Layered Features */
.swatch-option-link-layered {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.swatch-option-tooltip-layered {
    width: 140px;
    position: absolute;
    background: #fff;
    color: rgb(148, 148, 148);
    border: 1px solid #adadad;
    display: none;
    z-index: 999;
    left: -47px;
}

.swatch-visual-tooltip-layered {
    height: 160px;
    top: -170px;
}

.swatch-textual-tooltip-layered {
    height: 30px;
    top: -40px;
}

.swatch-option-link-layered:hover > .swatch-option-tooltip-layered {
    display: block;
}

.swatch-attribute-options .swatch-option-tooltip-layered .title {
    width: 100%;
    height: 20px;
    position: absolute;
    bottom: -5px;
    left: 0;
    color: #282828;
    text-align: center;
    margin-bottom: 10px;
}

.swatch-option-disabled:after {
    content: '';
    position: absolute;
    width: 42px;
    height: 2px;
    background: red;
    transform: rotate(-30deg);
    z-index: 995;
    left: -4px;
    top: 10px;
}

.swatch-option-disabled {
    outline: none !important;
    cursor: default;
    border: 0;
}

/* Bugfix for Add To Cart button */
.swatch-opt-listing {
    margin-bottom: 10px;
}

.swatch-option-loading {
    /* content: url("../images/loader-2.gif"); */
}