.search-icon {
    display: inline;
    margin: auto;
    width: 20px;
    height: 20px;
}
 /*#C8F2B7*/
.mt-navbar {
    background-color: #C8F2B7;
    border-color: #E7E7E7;
}

.mt-navbar .dropdown-menu {
    background-color: #C8F2B7;
}

#gallery-top {
    display: block;
    width: 50%; /* or any other percentage or fixed value */
    margin-left: auto;
    margin-right: auto;
}

#largeImageContainer {
     position: relative;
}

.navigation-arrow {
    top: 50%;  // This will put the middle of the arrow at the middle of largeImageContainer
transform: translateY(-50%); // This will move the arrow up by half its own height, in turn centering it vertically
}

#arrow-left {
    left: -30px;
}

.user-badge {
    width: 24px;
    height: 24px;
}
.user-login {
    width: 24px;
    height: 24px;
}

.user-logout {
    width: 24px;
    height: 24px;
}

.search-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.cart-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.cart-badge {
    width: 24px;
    height: 24px;
    position: relative;
}
.cart-badge:after {
    content:attr(value);
    font-size:12px;
    color: #fff;
    background: red;
    border-radius:50%;
    padding: 0 5px;
    position: absolute; /* Changed from relative to absolute */
    left: 16px; /* Adjusted */
    top: -8px; /* Adjusted */
    opacity:0.9;
}

#arrow-right {
    right: -30px;
}

#info {
    right: -100px;
    justify-content: center;
    align-items: center;
}

#largeImageContainer {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#largeImage {
    max-width: 100%;
    max-height: 100%;
}

#gallery-bottom {
    margin-top: 20px;
}

.thumbnail {
    margin-right: 20px;
    margin-left: 20px;
}

#map-scale-calculator {
}

.deleting {
    opacity: 0.5; /* Makes the element semi-transparent */
    pointer-events: none; /* Disables any click, hover or any other events */
    user-select: none; /* Disables any text selection */
    /* Optional: Add a transition for a smooth dimming effect */
    transition: opacity 0.5s ease;
}

/* ShoppingCart CSS */
.icon {
    width: 24px;
    height: 24px;
}

.pay-type-icon {
    width: 48px;
    height: 48px;
}
.pay-type-btn-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 50px;
}

.pay-type-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pay-type-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.pay-type-btn:disabled .pay-type-icon {
    fill: grey;        /* For SVG fill */
    color: grey;       /* Just in case it's an icon font */
    opacity: 0.6;      /* Optional: visually reinforce disabled state */
}

.pay-type-btn-label {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.cart-view-icon {
    width: 48px;
    height: 48px;
}


.cart-view-btn-container {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 20px; /* Space between buttons */
    margin-top: 50px;
}

.cart-view-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cart-view-btn-wrapper.active button {
    border-width: 5px;
}
.cart-view-btn-wrapper.active div.cart-view-btn-label {
    font-weight: bold;
}

.cart-view-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.cart-view-btn:disabled .cart-view-icon {
    fill: grey;        /* For SVG fill */
    color: grey;       /* Just in case it's an icon font */
    opacity: 0.6;      /* Optional: visually reinforce disabled state */
}

.cart-view-btn-label {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}
.cart-view-icon {
    width: 100%;
    height: 100%;
    display: block;
}


.icon-stack {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 48px;
}

.cart-view-valid-icon {
    position: absolute;
    top: -10px;   /* Adjust this to move it vertically */
    right: -10px; /* Adjust this to move it horizontally */
    width: 24px;
    height: 24px;
    color: green; /* Or any color to make it stand out */
}

.cart-view-error-icon {
    position: absolute;
    top: -10px;   /* Adjust this to move it vertically */
    right: -10px; /* Adjust this to move it horizontally */
    width: 24px;
    height: 24px;
    color: red; /* Or any color to make it stand out */
}

table.checkout-cart-items-table td {
    /*display: flex;*/
    vertical-align: middle;
    /*align-items: center;  !* centers vertically *!*/
    /*text-align: center; !* centers horizontally *!*/
}
.checkout-item-delete-icon {
    width: 24px;
    height: 24px;
    color: red;
}

.checkout-free-item-info-icon {
    width: 24px;
    height: 24px;
}

.checkout-header-icon-error {
    width: 24px;
    height: 24px;
    color: #CC3300;
}

.checkout-item-description {
    /*width: 60%;*/
    text-align: left;
}
.checkout-item-title {
    font-weight: bold;
}
.checkout-item-sku-upc {
    font-size: smaller;
}
.checkout-item-price {
    width: 6%;
    text-align: right;
}
th.checkout-item-price {
    text-align: center;
}

.checkout-item-qty {
    width: 12%;
    text-align: center;
}
th.checkout-item-qty {
    text-align: center;
}
.checkout-item-qty-input {
    width: 4em ;
    text-align: right;
}
.checkout-update-item-qty {
    font-size: smaller;
}
.checkout-item-total {
    width: 8%;
    text-align: right;
}
th.checkout-item-total {
    text-align: center;

}

.checkout-item-remove {
    width: 10%;
    text-align: center;
}

.checkout-basket-items-total-label {
    text-align: right;
}

.checkout-basket-items-total {
    text-align: right;
}

input::placeholder {
    color: red;
    opacity: 0.1;
}


/* Prevent scrolling while dialog is open */
body:has(dialog[data-dialog-target="dialog"][open]) {
    overflow: hidden;
}

/* Customize the dialog backdrop */
dialog {
    box-shadow: 0 0 0 100vw rgb(0 0 0 / 0.5);
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Add animations */
dialog[data-dialog-target="dialog"][open] {
    animation: fade-in 200ms forwards;
}

dialog[data-dialog-target="dialog"][closing] {
    animation: fade-out 200ms forwards;
}
.modal-info-icon {
    width: 24px;
    height: 24px;
    color: deepskyblue;
    margin-right: 1em;
}
.modal-danger-icon {
    width: 24px;
    height: 24px;
    color: red;
    margin-right: 1em;
}

td.has-spinner {
    border: black;
    border-width: thick;
    position: relative; /* required to properly position children */
}
td.has-spinner > .spinner-border {
    display: none; /* initially hidden */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Ensures the spinner is above other content */
}

/*Braintree Payment*/
.braintree-hosted-fields-focused {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}

.braintree-hosted-fields-valid {
    border-color: #3c763d;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.braintree-hosted-fields-valid.braintree-hosted-fields-focused {
    border-color: #2b542c;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
}

.braintree-hosted-fields-invalid {
    border-color: #a94442;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.braintree-hosted-fields-invalid.braintree-hosted-fields-focused {
    border-color: #843534;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}

