/* Global Styles*/
html {font-size:14px;}
body { overflow-x: hidden; }
body:not(.modal-open) { padding-right: 0px !important; } /* Fix Bootstrap modal issue */
.clear { clear: both; }
img { outline: 0; border: none; max-width: 100%; max-height: 100%;}
.form-group input::placeholder {color:#444;!important}
.btn + .btn { margin-left: 5px;}
.btn:disabled { pointer-events: auto; } /* Set to override BS5 value of "none" */
.btn:disabled:hover { cursor: not-allowed; } /* Display the "not-allowed" icon */
a.btn {display: inline-flex;align-items: center;justify-content: center;}

/* Banner - Text */
.banner-container .img-img { background-repeat: no-repeat; background-position: right; }
.banner-container .img-text { position: absolute; top: 50%; left: 10%; transform: translate(-10%, -50%); text-align: left; }
.banner-container .img-text h1 { width: 400px; }

/* Slider svg fix */
.slides .img-container {width: 100%;}
.slides {width: 100%;}

/* Main Content */
#main_content { min-width: 100%; min-height: 100%; position: relative; left: 0;  z-index: auto; transition: all 150ms linear;}
#main_content a[href^="mailto"], #main_content a.underline { text-decoration: underline; }

/* Full and Quick View Product Details eco-leaf */
.row.product_detail .eco-leaf, #addBasket .eco-leaf {
    font-size: 3rem !important;
    z-index: 10;
}
/* Product details eco leaf svg */
.row.product_detail .eco-leaf svg {
    width: 40px;
}
/* Product grid eco leaf svg */
.listing_product img.eco-leaf {
    height:23px;
}

/* Product grid align quick view icon (hate this, but necessary due to fa icons being different ratios) */
.product-image-icons-top.quick-view {
    margin-top: -5px;
}

.wrap-products-listing .image {
    opacity: 1;
    -moz-transition: all 0.2s 0s ease-in;
    -o-transition: all 0.2s 0s ease-in;
    -webkit-transition: all 0.2s 0s ease-in;
    -ms-transition: all 0.2s 0s ease-in;
}

#addBasket .modal-header { border-bottom: none; }

/* TODO - This needs to be eventually phased out */
.col:not(.form-group) {
    margin-bottom: 15px;
}

/* Product Quick View */
.quantity.variation { width: 50px; }
.discount_table .alert-danger { clear: both; width: 100%; }

.dropdown-menu>li>a {
    color:#333;
}

/* My Orders */
.orders table.dataTable th.dt-type-numeric,
.orders table.dataTable th.dt-type-date,
.orders table.dataTable td.dt-type-numeric,
.orders table.dataTable td.dt-type-date,
.saved-baskets table.dataTable th.dt-type-numeric,
.saved-baskets table.dataTable th.dt-type-date,
.saved-baskets table.dataTable td.dt-type-numeric,
.saved-baskets table.dataTable td.dt-type-date{
    text-align:unset;
}

.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: border .2s ease-in-out;
    -o-transition: border .2s ease-in-out;
    transition: border .2s ease-in-out;
}

/* Slider Styles */
.cycle-prev { cursor: pointer;  position: absolute; top: inherit; z-index: 800; left: 13px; bottom: 10px; color: #fff; }
.cycle-next { cursor: pointer; position: absolute; top: inherit; z-index: 800; right: 13px; bottom: 10px; color: #fff; }
.cycle-pager { margin-top: 30px; position: absolute; bottom: 61px; right: 6%; z-index: 500; background: transparent; border-radius: 3px; padding: 7px 5px 5px; } /* TODO - Make more responsive */
.cycle-pager span { font-size: 50px;  width: 16px; height: 16px; color: #ddd; display: inline-block; cursor: pointer; background: transparent; border: 1px solid #dee0e6; border-radius: 10px; margin: 0 2px; }
a.cycle-pager-active span { background-color: #dee0e6;  }

/* Checkout Styles */
.state_select { display: none; }
.form-control:disabled, .form-control[readonly] {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}
.checkout-conf {
    background: none;
}

/* Animate colour change for active checkout tab */
.card-header {
    transition: 0.2s;
}

.card-header:not(.card-header-active) {
    color: #939393;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field {
    resize: none;
}
.select2-container .select2-search--inline {
    float:unset!important;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #5897fb;
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Tablets Landscape */
@media (min-width: 1024px) {
    /* Product Quick View */
    .quick_view .product_price { margin-top: 0px; font-size: 26px; }
    .quick_view .total_price { display: none; }

    /* Product Quick View - New */
    .new_quick_view .product_price { font-size: 21px; font-weight: 500; }
    .new_quick_view .total_price { display: block; }

    /* Button Styles*/
    .alert>p, .alert>ul {
        margin-bottom: 0;
    }
}

/*Desktop Displays */
@media (min-width: 1200px) {
    /* Main Content */
    table.vertical { display: none; }
    .basket_confirm button { margin-bottom: 10px; }
    .cart_content { min-height: 400px }

    .banner_callout {
        position: relative;
    }

    .banner_callout a {
        position: absolute;
        bottom: 10px;
        right: 30px;
    }

    .banner_callout a.opt-left {
        left: 10px;
        right: unset;
    }

    .banner_callout a.opt-right {
        right: 30px;
        left: unset;
    }

    .metaInfo {
        font-size: 12px;
        font-weight: normal;
    }

    .code_msg {
        display: none;
    }

    .postcode-look {
        top: 0;
        cursor: pointer;
    }

    .postcode-look:active {
        border: 1px solid #999;
    }

    .product-listing-icon {
        position: relative;
        padding: 0;
        z-index: 1;
    }

    select[multiple], select[size] {height: auto;}

    .sidebar .categories h3 {
        margin: 0;
        padding: 5px;
        background-color: #000;
        color: #fff;
    }

    input[type=checkbox].form-control {height:34px; width:34px;}

    .sidebar .categories ul {
        padding: 0;
        margin: 0;
        list-style-type: none;
    }

    .sidebar .categories a {
        display: block;
        padding: 5px 10px 5px 5px;
    }

    .rows_click tr:nth-last-of-type(1) {
        cursor: pointer;
    }

    .report_info {
        display: none;
    }

    .rows_click tr td:first-child {
        width: 824px;
    }

    .user_list {
        height: 135px;
        width: 270px;
    }

    .rows_click tr td:hover {
        cursor: pointer;
    }

    .alert h2 {
        margin-top: 0;
    }
}

/* My Orders frontend table */
#tbl_my_orders span.paidStatusIcon {
    font-size: 20px;
    vertical-align: middle;
}

/* HOME PAGE IMAGES (INCLUDING RENDERED TEXT) - MOBILE FIRST! */
/* HOME PAGE - START */
@media (min-width: 1024px) {
    .img-container, .img-img {
        position: relative;
    }

    .img-text {
        left: 0;
        position: absolute;
        top: 0;
    }
}
/* HOME PAGE - END */

/* CATEGORY LISTINGS PAGE */
.category_categories .table_headings, .category_categories .category-row {
    text-align: left;
}

.category_categories .table_headings {
    background-color: #000;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 30px;
}

.category_categories .category-row {
    border-bottom: 1px solid #000;
    color: #000;
    display: block;
    padding: 30px;
}

.category_categories .category-row:hover {
    background-color: #EBEBEB;
}

.category_categories .category-row p {
    display: table-cell;
    font-size: 24px;
}

.category_categories .category-row .category-name {
    font-weight: bold;
}

.category_categories .category-row .category-name p {
    height: 130px;
    vertical-align: middle;
}

.category_categories .category-row .category-active-dates p,
.category_categories .category-row .category-order-placed p {
    display: block;
    margin: 0;
}

.category_categories .category-row .category-active-dates,
.category_categories .category-row .category-order-placed {
    margin: 10px 0 0;
    text-align: center;
}

.category_categories .category-row .category-image img {
    height: 130px;
    width: 130px;
}

.category_categories .category-row .collect-now-link {
    color: #fe2d56;
    font-weight: bold;
    text-decoration: underline;
    text-transform: uppercase;
}

/* TODO - UNCOMMENT OUT AND REUSE IF WE EVER USE SWAG CLAIM AGAIN
.category_categories .category-row .collect-now-collected, .category_categories .category-row .collect-now-finished {
    font-size: 16px;
}
*/

/* MINIFIED CHECKOUT PAGE */
.selected_product_radio, .selected_product_checkbox {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 10px !important;
    color: #000;
    width: 32px;
    height: 32px;
    border: 32px solid #000;
    border-radius: 50%;
    display: block;
}

.selected_product_radio:focus {
    outline: max(2px, 0.15em) solid #000;
    outline-offset: max(2px, 0.15em);
}

.selected_product_radio:focus-within {
    color: #000;
}

label.selected_product_label {
    width: 70%;
}

/* GROUP BUY SECTION */
#group_buy_interest_container, #group_buy_interest_none, #group_buy_status, #group_buy_register_interest_container, #group_buy_adjust_interest_container { display: none; }
#group_buy_request_notes_container, #request_notes { display: block; }

/* DESKTOP ONLY */
@media only screen and (min-width: 1200px) {
    .category_categories .category-row .category-active-dates,
    .category_categories .category-row .category-order-placed {
        margin: 0;
    }

    .category_categories .category-row .category-active-dates p,
    .category_categories .category-row .category-order-placed p {
        display: table-cell;
        height: 130px;
        text-align: left;
        vertical-align: middle;
    }
}


/*****************************************************************
 ****************************** HEADER ***************************
 *****************************************************************/

/* Skip to main content link */
a#skip_to_content {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

a#skip_to_content:focus {
    position: static;
    width: auto;
    height: auto;
}

/* Logo max width, for mobile */
header img.logo {
    max-width: 55vw;
}

/* DROPDOWN BOX */
.header_item.currency .dropdown .btn {
    color: #000;
    width: 110px;
}

.dropdown-hover:hover .dropdown-menu {
    display: block;
}

header ul.dropdown-menu {
    text-align: center;
}

.dropdown-menu {
    max-width: 250px;
    width: max-content;
}

/* FONT SIZE - MOBILE/TABLET ONLY */
header.sticky-top .main_nav {
    font-size: 2.5em;
}

header a {
    text-decoration: none;
}

img.search-svg, .search-svg svg {
    height: 18px;
    width: 18px;
    position: absolute;
    right: 15px;
}

#header_search_icon {
    cursor: pointer;
}

span.search-svg {
    display: flex;
    align-items: center;
}

/* TODO - This will need to be manageable through the Header Manager, where custom header icons are to be used */
.header-icon svg {
    height: 22px;
    width: 22px;
}

/* Spacing between header icons */
ul.navbar-nav {
    gap: 20px;
}

/* HEADER BANNERS */
#delivery_country_popup_header .closebtn, #b2b_b2c_header .closeb2xbtn {
    margin-left: 15px;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

/*
 Account balance border (colour set via appearance editor)
 */
header .account-balance.rounded-pill {
    border-width: 1px;
    border-style: solid;
}

header {
    transition: top 0.4s;
}

/* Counters spacing */
.tree-counter, .basket-counter {
    margin-left: 3px;
    margin-top: -5px;
}

.header-container-lower-closed {
    height:0;
}
.header-container-lower {
    transition: height 0.5s;
}

/* Username (if setting enabled) */
@media (min-width: 992px) {
    header .username {
        color:white;
        max-width: 15vw;
    }
}


/*****************************************************************
 *************************** QUICK VIEW **************************
 *****************************************************************/

.btn-quick {
    color: #000;
}

.btn-quick i {
    content: url(/application/views/themes/aspen/images/quick_view.svg);
}


/*****************************************************************
 *************************** FAVOURITES **************************
 *****************************************************************/

.listing_product .favourite_product {text-decoration: none;}
.favourite_product {
    text-decoration: none;
    z-index: 1;
}
.favourite_product:focus, .favourite_product:hover { cursor: pointer; text-decoration: none; }
.favourite_product i {
    display: none;
    font: normal normal normal 26px/1 FontAwesome;
    /*font-size: 26px; */
    transition: 0.5s;
}
.favourite_product:not(.favourited) i.fa-heart-o { display: block; }
.favourite_product:hover:not(.favourited) i.fa-heart-o { display: none; }
.favourite_product:hover:not(.favourited) i.fa-heart {display: block; }
.favourite_product.favourited i.fa-heart {display: block; }
h1 .favourite_product { display: none; margin-left: 0 !important; position: relative; /* top: 3px; */ z-index: 1; }


/*****************************************************************
 ********************** PRODUCT DETAILS PAGE *********************
 *****************************************************************/

@keyframes product-detail-overlay-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*Related Products / More For You*/
.related-products-container .row.name {
    font-weight: bold;
}


.form-control.quantity {
    width: 69px;
}

/* Product details main image:
   maintain its aspect ratio, centered, and as big as possible within its square container */
a.product_image_container {
    height: 100%;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
}
img.product_image {
    object-fit: contain !important;
}

.last-word {
    white-space: nowrap;
}

/*****************************************************************
 *************************** BASKET PAGE *************************
 *****************************************************************/

.update { width: 55px; }
.update-options { display: none; }
.update-options .btn { padding: 0 5px; }
.remove_code { cursor: pointer; }
.code_msg { display: none; }


/*****************************************************************
 ************************** CHECKOUT PAGE ************************
 *****************************************************************/

.lengths { display: none; float: right; }


/*TODO: Create appearance editor settings for checkout accordions/card colours?
   For now ignore default body colour and set to black text on white cards, so it's always legible */
body.checkout .card-body p {
    color: #000000 !important;
}

#checkout_artwork_uploader {
    border-radius: 15px;
}


/*****************************************************************
 **************************** LEFT PANEL *************************
 *****************************************************************/

#left_panel_menu.sticky-top {
    top: 50px;
}

#left_panel_menu a {
    text-decoration: none;
}

img.category-list-icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
}

.filter-category-heading {
    font-size: 1.2rem;
}


/*****************************************************************
 ******************* FOOTER - STRUCTURE ETC. *********************
 *****************************************************************/

.footer_menu {
    list-style-type: none;
    padding: 0;
}

footer .footer_menu_heading {
    font-size: 1.75rem;
}

.footer_menu .footer_menu_item {
    font-size: 1.1rem;
}

hr.footer-hr {
    margin-bottom: 5px;
    opacity: 0.25;
}

#footer_logo {
    padding-top: 4.5rem !important;
}

#footer_logo .footer_logo_img {
    max-width:none;
    width:100%;
    max-height:none;
    height:100%;
}

/*****************************************************************
**************************** HOME PAGE ***************************
******************************************************************/

.carousel-control-prev, .carousel-control-next {
    height: 36px;
    width: 36px;
}

.carousel-control-prev {
    content: url(/application/views/themes/aspen/images/prev.svg);
}

.carousel-control-next {
    content: url(/application/views/themes/aspen/images/next.svg);
}

.carousel-title, .carousel-price {
    line-height: 1.25rem;
}


/*****************************************************************
***************************** FORMS ******************************
******************************************************************/

.form_loading {
    background: rgba(0, 0, 0, 0) url("/assets/images/icons/loader24px.gif") no-repeat scroll 10px 9px / 18px auto;
}


/*****************************************************************
 **************************** MODALS *****************************
 *****************************************************************/

.modal {
    backdrop-filter: blur(5px);
}

.modal-header .btn-close {
    right: -5px;
    top: -5px;
}

.modal.lightbox .btn-close {
    stroke: grey;
    stroke-width: 2px;
    border-radius: 50%;
    box-shadow: -5px 5px 10px 0px darkgrey;
}


.modal.lightbox .carousel-control-prev-icon {
    content: url(/application/views/themes/aspen/images/prev.svg);
}

.modal.lightbox .carousel-control-next-icon {
    content: url(/application/views/themes/aspen/images/next.svg);
}


/*****************************************************************
 ************************* EKKO LIGHTBOX *************************
 *****************************************************************/

.ekko-lightbox .modal-footer {
    text-align: left;
    display: none;
}

.ekko-lightbox .modal-title {
    margin: 0;
    line-height: 1.42857143;
    display: none;
}

.ekko-lightbox .modal-header {
    padding: 11px;
    border-bottom: 1px solid #e5e5e5;
    display: none;
}


/*****************************************************************
 *************************** OVERLAY *****************************
 *****************************************************************/

/* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.mobile-overlay-content {
    position: relative;
    /*top: 25%; !* 25% from the top *!*/
    width: 100%; /* 100% width */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
    color: #fff;
    display: block; /* Display block instead of inline */
    font-size: 2rem;
    line-height: 3rem;
    padding: 1rem;
    text-decoration: none;
    transition: 0.3s; /* Transition effects on hover (color) */
}

.overlay .fa-arrow-left {
    font-size: 3rem;
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay a {font-size: 20px}
    .overlay .mobile-overlay-close {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

.overlay .mobile-overlay-menu {
    list-style-type: none;
}


.mobile-overlay-menu li a {
    max-width: 80vw;
}

.dropdown-menu li a, .mobile-overlay-menu li a {
    text-wrap: auto;
    word-break: break-word;
}


/*****************************************************************
 ***************** DELIVERY COUNTRY BANNER/POPUP *****************
 *****************************************************************/

/* Delivery Country Popup */
#delivery-country-popup .row.region-title {
    margin-top: 20px;
}

#delivery-country-popup .row.region-title:first-of-type {
    margin-top: 0;
}

#delivery-country-popup .row.region-title h1 {
    font-size: 37px !important; /* This is here because of !important being used in custom CSS on various stores! */
    margin-bottom: 10px;
}

#delivery-country-popup .country {
    /*margin-bottom: 10px;*/
}


/*****************************************************************
 *********************** REGISTRATION FORM ***********************
 *****************************************************************/

.has-feedback label ~ .form-control-feedback {
    top: 21px;
}


/*****************************************************************
 ************** PRODUCT LISTINGS PAGINATION CONTROLS *************
 *****************************************************************/

.pagination_container > * {
    border: 1px solid lightgrey;
    border-radius: 0.5rem;
    padding: 8px 10px;
    margin-left: 4px !important;
}

.pagination_container > a {
    text-decoration: none;
}


/*****************************************************************
 ************************** PRODUCTS LOADING SPINNER *************
 *****************************************************************/

.products-loading-overlay-container {
    position: fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background: transparent;
    display:flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding-bottom:10vh;
}

.productsLoadingOverlay {
    position: absolute;
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    animation: spin 2s linear infinite;
    z-index: 2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*****************************************************************
 ************************** PRODUCT LIST *************************
 *****************************************************************/

label[for|="sort_order"] {
    display: none;
}


/*****************************************************************
 **************************** REPORTS ****************************
 *****************************************************************/

#loading {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.75) 1px 1px 31px -3px;
    color: #000;
    display: block;
    left: 50%;
    height: 70px;
    margin-left: -140px;
    opacity: 1;
    padding: 10px;
    position: absolute;
    text-align: center;
    top: 40%;
    width: 250px;
    z-index: 99999;
}

#loadingbg {
    background-color:#ccc;
    height:100%;
    left:0px;
    opacity:0.8;
    position:fixed;
    top:0px;
    width:100%;
    z-index:1000;
}

body.loading {
    pointer-events:none;
    overflow:hidden;
}

/* Reporting accordion background */
.reports.ui-accordion .card-body p, .reports.ui-accordion .card-body h3 {
    color: #0c0c0c !important;
}

/* Reports pages headers (no bs5: shared view with legacy theme) */
.report h1, .report h2, .report h3 {
    padding-top: 20px;
    padding-bottom: 10px;
}

/*****************************************************************
 ************************ LOADING SPINNERS ***********************
 *****************************************************************/

#order_status, #register_wait {
    display: none;
}

.please-wait .fa-spinner {
    line-height: 68px;
}

.please-wait span {
    bottom: 5px;
    font-weight: bold;
    left: 5px;
    position: relative;
}


/*****************************************************************
 *********************** FILE UPLOAD FORMS ***********************
 *****************************************************************/

#file_uploader, .file_uploader {
    border: 3px dashed #c1c3c5;
    min-height: 250px;
    padding: 25px;
}

#file_uploader p, .file_uploader p { text-align: center;  }
#file_uploader p.big, .file_uploader p.big { font-size: 32px; padding: 10px; margin: 0;  color: #b1b3b7;}
#file_uploader input[type="file"], .file_uploader input[type="file"] {text-align: center; margin: 0 auto;}

#file_uploader.hover, .file_uploader.hover { border: 3px dashed #818385; }


/*****************************************************************
 ************************** BREADCRUMB ***************************
 *****************************************************************/

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

/*****************************************************************
 ************************** HORIZONTAL RULES  ********************
 *****************************************************************/

hr {
    opacity: 0.1;
}