/*  =======================
    BUY FROM US TABLES
    ======================= */

/* table styles */
div.et_pb_code div table.pref-buy-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: fixed;
    overflow: visible;
    color: #333333;
    border: 0;
    margin-top: 0.5em;
}

.pref-buy-table__row {
  outline: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 0;
}

/* columns */
/* first column / image */
.pref-buy-table td:first-child {
    width: 20%;
    text-align: center;
    padding: 0;
}

/* second column / name */
.pref-buy-table td:nth-child(2) {
    width: 40%;
    text-align: left;
}

/* third column / prices */
.pref-buy-table td:last-child {
    width: 40%;
    text-align: center;
}

/* cells */
div.et_pb_code div table.pref-buy-table td {
    vertical-align: middle;
}

/* product image */
.pref-buy-table__featured-image {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
    margin: 5px auto;
    padding: 5px 0;
}

/* product name */
.pref-buy-table__item-name {
    font-weight: 600;
    color: #262e39;
    font-size: 17px;
    line-height: 3;
}

/* product details button */
.pref-buy-table__product-button {
    /*display: inline-block;*/
    display: none;
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 0.85em;
    font-weight: 600;
    background: #262e39;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* product badge */
.pref-buy-table__row td:last-child {
    position: relative;
}

.pref-buy-table__product-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 2;
    padding: 6px 10px;
    font-size: 0.8em;
    font-weight: 600;
    background: #D3B057;
    color: #262e39;
    border-radius: 4px;
}

.pref-buy-table__product-badge.badge--lowest-premium {
    background: #262e39;
    color: #ffffff;
}

.pref-buy-table__product-badge.badge--special-price {
    background: #d9d9d9;
}

/* prices */
.pref-buy-table__price {
    text-align: center;
    font-weight: 500;
    margin-right: 50px;
}

.pref-buy-table__buy-price {
  font-weight: 600;
  font-size: 20px;
  line-height: 2;
}

.pref-buy-table__sell-price {
  font-style: italic;
  font-size: 15px;
  color: #5c5c5c;
}

/* learn more link */
.pref-buy-table__learn-more {
    margin-left: 8px;
    display: none;
}

/* RESPONSIVE STYLES */
@media screen and (max-width: 1025px) {

    /* second column / name */
    .pref-buy-table td:nth-child(2) {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* product image */
    .pref-buy-table__featured-image {
        margin: 5px 20px;
    }

    /* product name */
    .pref-buy-table__item-name {
        font-size: 16px;
        line-height: 1;
    }

    /* prices */
    .pref-buy-table__price {
        margin-right: 30px;
    }

    .pref-buy-table__buy-price {
        font-size: 18px;
    }
}

@media screen and (max-width: 840px) {

    /* first column / image */
	.pref-buy-table td:first-child {
		width: 18%;
	}

    /* second column / name */
	.pref-buy-table td:nth-child(2) {
		width: 41%;
	}

    /* third column / prices */
    .pref-buy-table td:last-child {
		padding-top: 20px;
		width: 41%;
	}

    /* product image */
    .pref-buy-table__featured-image {
        width: 85px;
		margin: 5px 15px;
    }

    /* prices */
    .pref-buy-table__price {
		margin-right: 15px;
	}

    .pref-buy-table__buy-price {
		font-size: 17px;
	}
}

@media screen and (max-width: 670px) {

    /* first column / image */
	.pref-buy-table td:first-child {
		width: 16%
	}

    /* second column / name */
	.pref-buy-table td:nth-child(2) {
		width: 42%;
	}	
    
    /* third column / price */
	.pref-buy-table td:last-child {
		width: 42%;
		padding-left: 18px;
		padding-right: 18px;
	}

    /* product image */
    .pref-buy-table__featured-image {
		width: 75px;
	}

    /* product badge */
    .pref-buy-table__product-badge {
		font-size: 0.7em;
	}

    /* prices */
    .pref-buy-table__sell-price {
		font-size: 14px;
	}
}

@media screen and (max-width: 595px) {

    /* first column / image */
    .pref-buy-table td:first-child {
		width: 10%;
		margin-right: 12px;
	}

    /* second column / name */ 
    .pref-buy-table td:nth-child(2) {
		width: 45%;
		text-align: center;
		padding-left: 24px;
		padding-right: 0px;
	}

    /* third column / price */
    .pref-buy-table td:last-child {
		padding-left: 10px;
		padding-right: 10px;
		width: 45%;
	}

    /* product image */
    .pref-buy-table__featured-image {
		width: 50px;
		margin: 5px;
	}

    /* product name */
    .pref-buy-table__item-name {
		font-size: 15px;
	}

    /* product badge */
    .pref-buy-table__product-badge {
		padding: 2px 4px;
		right: 5px;
	}

    /* prices */
    .pref-buy-table__buy-price {
		font-size: 15px;
	}
	
}