﻿/*----------------------------------------- Basket Dialogs ---------------------------------------*/

.modal_close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: block;
    width: 17px;
    height: 17px;
    z-index: 2;
}

/* ---------------------- Add to Shopping Basket ---------------------- */
#addToBasket_Modal {
    position: relative;
    width: 250px;
    left: 50%;
    margin-left: -160px;
    top: 50%;
    margin-top: -150px;
    padding: 15px; 
    display:none;
    background: #FFF;
    box-shadow: 0px 0px 4px rgba(0,0,0,0.7);
    -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.7);
    -moz-box-shadow: 0 0px 4px rgba(0,0,0,0.7);
} 

.addToBasket_Detail .name {
    font-size: 13px;
    font-weight: 700;
}
.addToBasket_Detail .itemcode {
    font-size: 12px;
}
.addToBasket_Detail .addtobasketprice, .addToBasket_Detail .addedquantity {
    font-size: 13px;
}

.dlg_decqty, .dlg_incqty
{
    font-size: 13px;
    height: 30px;
    width: 36px;
    background-color: #f6f6f6!important;
    float: left;
    border: 1px solid;
    border-color: #eaeaea;
    border-right: 1px solid #eaeaea;
    margin: 0;
    padding: 0;
    color: #494949!important;
    -webkit-appearance: none;
    border-radius: 0;
    text-align: center;
    vertical-align: middle;
    margin: 20px 0px 20px 0;
    line-height: 25px;
}

.dlg_qtybox 
{
    border-color: #eaeaea!important;
}

.dlg_qtybox
{
    line-height: 16px;
    font-size: 13px;
    height: 30px!important;
    width: 32px!important;
    background-color: #f6f6f6;
    border-color: #eaeaea;
    text-align: center;
    vertical-align: middle;
    padding:0!important;
    margin-right:0!important;
}

.dlg_qtybox
{
	float:left;
	margin: 20px 0px 20px 0;
}

.addToBasket_Image  {
    width: 33%;
    float: left;
}

.addToBasket_Detail  {
    margin-left: 33%;
}

#addToBasket_Buttons {
    clear: both;
    text-align: center;
    line-height: normal;
}

#addedToBasket_Buttons {
    clear: both;
    text-align: right;
}

#addToBasket_Buttons button,#addedToBasket_Buttons button {
    clear: both;
    padding: 5px;
    margin: 5px;
}

#addToBasket_Header, #addedToBasket_Header, #basketModal_Header  {
    border-bottom: 1px solid #000;
    margin-bottom: 15px;
}

@media screen and (min-width: 480px) {
    .addToBasket_Image {
        float: left;
        width: 45%;
    }
    #addToBasket_Modal {
        width: 320px;
        padding: 30px;
    }
    .addToBasket_Detail  {
        margin-left: 45%;
    }
}


/* ---------------------- View Shopping Basket ---------------------- */

#lean_overlay {
    position: fixed;
    z-index:10500;      /* 10500 is ridiculous */
    top: 0px;
    left: 0px;
    height:100%;
    width:100%;
    background: #000;
    display: none;
}

#basketmodal {
    width: 400px;
    padding: 30px; 
    height: 60%;
    display:none;
    left: auto;
    top: 100px;
    background: #FFF;
    box-shadow: 0px 0px 4px rgba(0,0,0,0.7);
    -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.7);
    -moz-box-shadow: 0 0px 4px rgba(0,0,0,0.7);
}
#basketmodal:after, #basketmodal:before {
	bottom: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}
#basketmodal:after {
	border-color: rgba(136, 183, 213, 0);
	border-bottom-color: #fff;
	border-width: 15px;
	margin-left: -15px;
}
#basketmodal:before {
	border-color: rgba(194, 225, 245, 0);
	border-bottom-color: #fff;
	border-width: 18px;
	margin-left: -18px;
}

#basketmodal_content {
    height: 80%;
    overflow-y: auto;
}    

#basketModal_Buttons {
    text-align: right;
    padding: 30px;
} 

#basketModal_Buttons button {
    margin: 5px;
}

/* ---------------------- Added to basket ------------------------ */

#addedToBasket_Modal {
    width: 320px;           /* Make this dependent on min-width: 480 */
    padding: 15px; 
    display:none;
    left: auto;
    right: 50px;
    top: 100px;
    background: #FFF;
    box-shadow: 0px 0px 4px rgba(0,0,0,0.7);
    -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.7);
    -moz-box-shadow: 0 0px 4px rgba(0,0,0,0.7);
}
#addedToBasket_Modal:after, #addedToBasket_Modal:before {
	bottom: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}
#addedToBasket_Modal:after {
	border-color: rgba(136, 183, 213, 0);
	border-bottom-color: #fff;
	border-width: 15px;
	margin-left: -15px;
}
#addedToBasket_Modal:before {
	border-color: rgba(194, 225, 245, 0);
	border-bottom-color: #fff;
	border-width: 18px;
	margin-left: -18px;
} 
#basketModal_Buttons button {
    margin: 5px;
    padding: 5px;
}

/* ---------------------- New basket styles ---------------------- */

.basket_details table {
    border-collapse: collapse;
    font-size: 12px;
    width: 100%;
}
.basket_details tr td {
    padding: 5px;
    border: 0px;
}
.basket_details .noborders td {
    border: 0px;
}

.basket_details tr td, .basket_details .basket_desc a {
    color: #000;
}
.basket_details .basket_desc div {
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}
.basket_desc div {
    width: 230px;
}
.basket_details .basket_desc a:hover {
    color: #669;
}
.basket_details .noborders tr:hover td {
    color: #000;
}
.basket_qty .basket_desc a:active, .basket_qty .basket_desc a:visited, .basket_qty .basket_desc a:hover {
    text-decoration: none;
}
.basket_details .basket_heading {
    font-weight: bold;
    font-size: 12px;
    color: #000;
    padding: 5px;
}
.basket_details td.basket_sub_heading {
    border-bottom: 1px solid #eaeaea;
    font-size: 14px;
}
.basket_details .basket_desc a {
    cursor: pointer;
    font-size: 16px;
}
.basket_details .basket_qty {
    padding-left: 5px;
    width: 10px;
}
.basket_details .basket_qty.no-controls, .basket_details .basket_qty_input.no-controls {
    margin-left: 59px;
}
.basket_details .basket_qty img {
    width: 16px;
    height: 16px;
}
.basket_details .basket_minus {
    margin: 0;
    padding: 9px 8px 9px 8px;
}
.basket_details .basket_plus {
    margin: 0;
    padding: 9px 8px 9px 8px;
}
.basket_details .basket_qty_input {
    width: 20px;
    text-align: center;
}
.basket_details .basket_linetotal {
    font-size:14px;
    font-weight: bold;
}
.basket_details .discount .discount, .basket_details .discount .discount:hover {
    color: #f00;
    font-size: 14px;
}
.basket_details .discount_value {
    color: #f00;
    font-size: 14px;
}
.basket_details .basket_thumb_container {
    width: 20%;
    margin: 0px 5px;
}
.basket_details .basket_thumb {
  max-width: 100%; /* Add !important if needed. */
  max-height: 100%;    /* Add !important if needed. */
  border: 1px solid black;
}
.basket_details .basket_price_qty {
  text-align: right;
  white-space: nowrap;
}
.basket_details .itemab {
    white-space: nowrap;
}
.basket_details .itemab-value {
    font-weight: bold;
    padding-right: 5px;
}
.basket_details .basket_separator {
    border-bottom: 1px solid #eaeaea; 
}
.basket_details .basket_controls_update {
    text-align: right;
}
.basket_heading_description {
    padding: 5px;
}
.basket_heading_linetotal {
    text-align: right;
    padding: 5px;
}
.basket_details .basket_subtotal_row,.basket_carriage_row {
    font-size: 14px;
}
.basket_details .basket_total_row {
    font-weight: bold;
    font-size: 16px;
}
.basketdetails .product-modifier {
    clear: both;
    background-color: #f6f6f6;
    padding: 5px;
    border: 1px outset #eaeaea;
}
.links {
    width: 99%;
}
.line-through {
    text-decoration: line-through;
}
.dlg_strike {
    width: 100%;
    float: left;
    position: relative;
    color: #000;
    text-decoration: line-through;
    line-height: 1;
}
.dlg_offerprc {
    width: 100%;
    float: left;
    position: relative;
    color: #c62828;
    line-height: 1;
}
.dlg_offertxt {
    width: 100%;
    float: left;
    position: relative;
    color: #c62828;
    line-height: normal;
}
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 600px;
    }
}
.modal-header .close {
    align-self: flex-end;
    order: 2;
    padding-top: 0px;
    margin-top: -1rem;
    font-size: 30px;
}
.modal-title {
    order: 1;
    align-self: flex-start
}