/* Sidebar overlay */
.slw_sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background-color: #ffffff;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

/* Sidebar content */
.slw_sidebar_content {
    padding: 20px;
    color: black;
}

/* Sidebar close button */
.slw_close_sidebar {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    cursor: pointer;
}

/* Sidebar list items */
.slw_sidebar ul {
    margin-top: 15px;
    list-style-type: none;
    padding: 0;
}

.slw_sidebar li {
    padding: 10px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;

    margin-bottom: 10px;
    border: 1px solid #a5a5a5;
    border-radius: 5px;
    padding: 10px;
}

.slw_sidebar li.disabled {
    color: grey;
    cursor: not-allowed;
}

/* Button to open sidebar */
#slw_open_sidebar_button {
    padding: 10px 20px;
    background-color: transparent;
    color: black;
    border: 1px solid #a5a5a5;
    cursor: pointer;
}

#slw_open_sidebar_button:hover {
    background-color: #a5a5a5;
}

/* Overlay */
.slw_overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Just below the sidebar */
}

#slw_sidebar_header {
    color: black;
    font-weight: 400;
    font-size: 20px;
    text-align: center;

    padding-bottom: 25px;
    border-bottom: 2px solid #f5f5f5;
}

/* Search box */
.slw_search_box {
    width: 100%;
    padding: 10px;
    margin-top: 20px !important;
    margin-bottom: 20px;
    border: 1px solid #f5f5f5;
    background-color: #f5f5f5 !important;
    color: #a5a5a5 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

#slw_location_search {
    border-radius: 5px !important;
}

/* Location card styling */
.location-card {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

.location-card .location-name {
    font-weight: bold;
    margin-bottom: 5px; /* Space between name and quantity */
}

.location-card .location-quantity {
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 20px; /* Space for the green dot */
}

.location-card .location-quantity::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ---------------------------------------------------------*/

.slw_cart_item_stock_location_label {
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 0;
    font-weight: bold;
    display: block;
}
.slw_cart_item_stock_location_label span {
    font-weight: normal;
}
.slw_item_stock_location {
    font-size: 14px;
    line-height: 2;
    color: #32373c;
    border-color: #7e8993;
    box-shadow: none;
    border-radius: 3px;
    padding: 0 24px 0 8px;
    min-height: 30px;
    max-width: 25rem;
    -webkit-appearance: none;
    background: #fff
        url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E')
        no-repeat right 5px top 55%;
    background-size: 16px 16px;
    cursor: pointer;
    vertical-align: middle;
    border: 1px solid #7e8993;
    margin: 3px 0 5px 0;
    text-align: left;
}
.slw_item_stock_location.display_yes_without {
    display: none !important;
}
.slw_checkout_disable {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: default !important;
}
a.slw-variable-btn {
    visibility: hidden;
}
.woocommerce-variation-availability p.stock {
    display: none;
}
.slw-variations-listed ul {
    margin: 0 0 4px 0;
}
.slw-variations-listed ul li {
    list-style: circle inside;
}
.slw-variations-listed label {
    cursor: pointer;
    font-weight: bold;
}
.slw_stock_location_selection {
    display: block;
    width: 100%;
    margin: 0 0 10px 0;
    min-height: 40px;
}
.slw_stock_location_selection.yes_without {
    min-height: unset;
}
.slw_stock_location_selection.can-be-hidden {
}
.slw_stock_location_selection label {
    display: block;
    margin: 0 10px 10px 0;
    cursor: pointer;
    text-align: left;
    font-size: 11px;
    font-weight: normal;
    line-height: 18px;
}
.slw_stock_location_selection label input {
    margin: 0 4px 0 0;
}

body.archive div.slw-item-qty-wrapper,
body.archive div.slw-variations-wrapper {
    float: left;
    width: 100%;
    margin: 0 0 10px;
}
body.archive div.slw-variations {
    margin: 0 auto;
    width: auto;
    display: table;
}
body.archive div.slw-variations * {
    cursor: pointer;
}
body.archive div.slw-variations label span {
    font-size: 12px;
}
body.archive div.slw-item-qty {
    float: none;
    margin: 0 auto;
    clear: both;
    display: table;
}
body.archive div.slw-item-qty a {
    float: left;
    cursor: pointer;
}
body.archive div.slw-item-qty a i,
body.archive div.slw-item-qty a svg {
    color: #000;
    font-size: 26px;
}
body.archive div.slw-item-qty a.decrease {
    margin: 0 10px 0 0;
}
body.archive div.slw-item-qty a.increase {
    margin: 0 0 0 10px;
}
body.archive div.slw-item-qty input[type='text'] {
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    width: 26px;
    height: 30px;
    float: left;
    text-align: center;
    color: #000;
    padding: 0;
}
div.stock_location_selected_warning {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 20px;
    line-height: 24px;
    margin: 10px 0 40px;
    background-color: #ff00001c;
    color: #000;
}
.slw-notice-msg {
}
.slw-notice-msg a {
    cursor: pointer;
    float: right;
}
.slw-location-selection-popup {
    background-color: rgba(224, 49, 49, 1);
    float: left;
    margin: 0 auto;
    width: 100%;
}
.slw-location-selection-popup ul {
    margin: 0;
    padding: 0;
}
.slw-location-selection-popup ul li {
    list-style: none;
    float: left;
    width: 100%;
}
.slw-location-selection-popup ul li a {
    display: block;
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
    color: #fff;
}
.slw-location-selection-popup ul li a:hover {
    color: #ff0;
}
div.blockUI:before {
    display: none;
}
select.slw_item_stock_location option[data-quantity='0'][data-backorder='no'] {
    color: #ccc;
}
div.slw_stock_location_list {
    margin: 0 0 20px 0;
}
div.slw_stock_location_list ul.slw_stock_location_list_ul {
    margin: 0;
    padding: 0;
}
div.slw_stock_location_list ul.slw_stock_location_list_ul > li {
    display: none;
    list-style: none;
}
