/* Container */
.item-boxes-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
    text-align: center;
    margin: 25px 0;
}

.item-boxes-container.disabled {
    pointer-events: none;
    opacity: 0.5;
    transition: 0.5s;
}

/* Box & Layout */
.item-box {
    background-color: #455A64;
    color: #EEEEEE;
    display: flex;
	flex-direction: column;
    margin: 3px 2px;
    border-radius: 4px;
    text-align: center;
    width: 182px;
    height: 310px;
    overflow: hidden;
    transition: background 0.1s ease-in-out;
}

.item-box.disabled {
	opacity:0.65;
}

.item-box.is-hovered {
    background: #4C6977;
}

.item-box-detail {
    background-color: #37474F;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    transition: background 0.1s ease-in-out;
}

.item-box.is-hovered .item-box-detail {
    background: #3A5562;
}

.item-box-img .item-box-image-link {
    position: relative;
    display: block;
    padding: 12px;
    overflow: hidden;
}

/* Sponsored */
.item-box.sponsored {
    border-top: 5px solid #F1C40F;
    box-sizing: content-box;
    height: 305px !important;
}

.item-box.sponsored .recommended-price-arrow {
    top: 5px;
}

.item-box.sponsored .sponsored-badge {
    width: 32px;
    height: 23px;
    position: absolute;
    bottom: 5px;
    right: 5px;

    z-index: 1;
}

.sponsored-badge img {
    margin: 0px !important;
    width: 100%;
    height: 100%;
}

.item-box.sponsored .item-box-amt {
    top: 5px;
}

.item-box.sponsored .item-box-img .item-box-image-link {
    padding: 10px 12px 9px;
}

.item-box.sponsored .item-box-image-link .unusual-image {
    height: 159px;
}

/* Main Image */
.item-box-img {
	display: flex;
	justify-content: center;
	align-items: center;
    position: relative;
	flex-grow: 1;
	overflow: hidden;
}

.item-box-img img {
    margin: 10px 0;
	max-width: 120px;
	max-height: 120px;
}

/* Name */

.item-box-name-link:hover, .item-box-name-link:focus {
    text-decoration: none;
}

.item-box-name {
    display: table;
    width: 100%;
    height: 62px;
    padding: 12px 12px 0;
    color: #EEEEEE;
    text-overflow: ellipsis;
}

.inner-name {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
}

/* Price */

.item-box-price {
    font-size: 25px;
    margin-top: 3px;
    margin-bottom: 3px;
}

.item-box-recommended-price {
    font-size: 11px;
    margin-bottom: 6px;
}

/* Cart */

.item-box-cart {
    padding: 0 12px 12px;
}

.item-box-cart input {
    text-align: center;
    width: 50px;
    padding: 0;
}

.item-box-cart > .btn-small {
    padding: 8px 15px;
}

/* Decorators */
.item-box .decorator {
    opacity: 1;
    transition: opacity 0.5s;
}

.item-box.is-hovered .decorator {
    opacity: 0.15;
    transition: opacity 0.3s;
}

.item-box .display-item-variants {
    cursor: pointer;
}

.recommended-price-arrow {
    border-radius: 3px;
    border-color: #16A085;
    background-color: #16A085;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
    color: white;
    right: 10px;
    top: 10px;
    position: absolute;
    z-index: 1;
}

.recommended-price-arrow.negative {
    color: #C62828;
}

.recommended-price-arrow.positive {
    color: white;
}

.item-box-amt {
    font-size: 12px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.item-box-attributes {
	font-size: 12px;
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
}

.item-box-wear-display {
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 25px;
    border: 2px solid white;
    text-align: center;
    padding-top: 4px;
}

.wear-display-1 {
    border-color: #1ABC9C;
}

.wear-display-1:after {
    content: "FN";
}

.wear-display-2 {
    font-size: 11px !important;
    padding-top: 5px !important;
    border-color: #78AE27;
}

.wear-display-2:after {
    content: "MW";
}

.wear-display-3 {
    border-color: #AAAE27;
    border-top-color: white;
}

.wear-display-3:after {
    content: "FT";
}

.wear-display-4 {
    font-size: 10px !important;
    padding-top: 6px !important;
    border-color: #F39C12;
    border-right-color: white;
    border-top-color: white;
}

.wear-display-4:after {
    content: "WW";
}

.wear-display-5 {
    border-color: #D35400;
    border-right-color: white;
    border-top-color: white;
    border-bottom-color: white;
}

.wear-display-5:after {
    content: "BS";
}

/* Unusual Effects */
.item-box-image-link .unusual-image {
    --padding-top: 0px;
    --padding-side: 0px;

    margin: 0px calc(var(--padding-side, 0px)/2);
    width: calc(100% - var(--padding-side, 0px));
    height: 164px;

    top: var(--padding-top, 0px);
}

.item-box-image-link .unusual-image.taunt.taunt-radius {
    --padding-top: 30px;
}

.unusual-image.skin.skin-flyup {
    --padding-top: -8px;
}

.unusual-image.taunt.taunt-glitter {
    --padding-top: -30px;
    --padding-side: -30px;

    height: calc(164px - var(--padding-top, 0px));
    top: calc(var(--padding-top, 0px)/2);
}

.unusual-image.taunt.taunt-stretcharound {
    --padding-side: -40px;
}

.unusual-image ~ .item-image {
    opacity: 1;
    transition: opacity 0.5s;
}

.unusual-image:not(.skin) ~ .item-image:hover {
    opacity: 0.1;
    transition: opacity 1s 0.5s;
}
