/* Container for the entire gallery */
.axon-gallery-container {
    /*     display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px; */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

/* Each gallery item with a card-like design */
.axon-gallery-item {
    /*     background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
	padding: 2px;
    width: 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out; */
    background: white;
    /*      padding: 2px; */
    /*      width: 80%; */
    /*      height: 100%; */
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.axon-gallery-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}


/* Style for the image */
.axon-gallery-image {
    /*     max-width: 100%;
    border-radius: 10px;
    display: block;
    margin: 0 auto; */
    height: 160px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
    display: block;
}

/* Image ID text */
.axon-image-id {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

/* Button style */
button.remove-gallery-image {
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.remove-gallery-image:hover {
    background-color: #c0392b;
}

/* Button to add a new image */
button#add-gallery-image {
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

button#add-gallery-image:hover {
    background-color: #2980b9;
}

.image-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-top: 10px; */
    padding: 5px 10px;
    gap: 78px;
    /* border-top: 1px solid #ddd; */
}

.remove-gallery-image {
    font-size: 18px !important;
    display: inline-block;
    margin: 0;
    margin-bottom: 4px;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: 1px solid;
    --webkit-appearance: none;
    border-radius: 3px;
    box-sizing: border-box;
}

#axon_gallery_images_wrapper .axon-gallery-item .del-btn {
    border-color: red;
    color: red;
    font-size: 20px !important;
    width: 38px;
    line-height: initial;
    margin: auto 0 !important;
    margin-bottom: 6px;
    font-weight: 500;

}

.del-btn {
    border-color: red !important;
    color: red !important;
    height: fit-content;
    margin: auto 0 0 !important;

}

@media (min-width: 876px) {
    .axon-gallery-item {
        width: 100%;
        height: 100%;
    }
}


@media (max-width: 768px) {
    .axon-gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .axon-gallery-item {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .axon-gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }

    .axon-gallery-item {
        width: 100%;
        height: 100%;
        border-radius: 6px;
        margin: auto 18px;
    }

}

/* Styling for the repeater container */
#package_settings_product_data {
    padding: 0 15px 15px 15px;
}

#product-package-repeater {
    margin-top: 20px;
}

#product-package-repeater .form-fields label {
    margin: 0;
}

#product-package-repeater .form-fields input {
    width: 80%;
}

#product-package-repeater .form-fields select {
    width: 80%;
}

/* Styling for each product entry in the repeater */
.package-product {
    border: 1px solid #e1e1e1;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}




/*###############################################################################################################################################*/
/*############################################################ Frontend style ###################################################################*/
/*###############################################################################################################################################*/
#gallery-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    /* height: 100%; */
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

#gallery-modal #modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

#gallery-modal #close-modal {
    /* position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    font-weight: bold; */
    position: sticky;
    float: right;
    bottom: 0;
    font-weight: bold;
}

#gallery-modal img {
    display: block;
    margin: 10px 0;
    max-width: 100%;
}

.selected-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: none;

}

.selected-image {
    position: relative;
    width: 80px;
    height: 80px;
    /* overflow: hidden; */
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-image img {
    /*     width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fits well inside the container */
    border-radius: 5px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.remove-image {
    /*     position: absolute;
    top: 2px;
    right: 2px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    padding: 2px 6px;
    cursor: pointer;
    transition: background-color 0.3s; */
    /* 	 position: absolute; */
    background-color: red !important;
    border: 1.87px solid #ccc;
    color: white !important;
    font-size: 24px;
    font-weight: 500;
    border-radius: 45%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 6px !important;
    right: 4px !important;
    margin-left: 10px;
    cursor: pointer;
}

.remove-image:hover {
    background-color: red !important;
}

.selected-image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#gallery-modal input[type=checkbox] {
    position: absolute;
}

.gallery-image {
    appearance: none;
    margin-top: 16px;
    margin-left: 114px;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: rgb(211, 211, 211) !important;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

.gallery-image:checked::before {
    content: "✔";
    display: flex;
    justify-content: center;
    align-items: center;
    color: white !important;
    font-size: 12px;
    font-weight: bold;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 255, 0, 0.5);
}

.cart-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
}

@media (max-width: 768px) {
    .selected-images-container {
        justify-content: center;
    }

    .selected-image {
        width: 60px;
        /* Adjust image size for smaller screens */
        height: 60px;
    }
}

@media (max-width: 768px) {
    .gallery-images {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}


@media (max-width: 480px) {

    .gallery-images {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .gallery-item img {
        height: 140px;
    }

    .gallery-image {
        width: 16px;
        height: 16px;
    }
}

#gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    max-width: 80%;
    overflow: auto;
}

.alightbox #close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: black;
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-images img {
    object-fit: cover;
    max-width: 141px;
    width: 141px;
    max-height: 100px;
    height: 100px;
    cursor: pointer;
    border-radius: 5px;
}

/* .gallery-images img:hover { transform: scale(1.1); } */
.alightbox {
    z-index: 1002;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.alightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.alightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.image-mosaic {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 240px;
    grid-auto-flow: dense;

}

/* .image-mosaic {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: minmax(240px, auto);
  }   */
/* .image-mosaic {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: minmax(240px, auto);
    grid-auto-flow: dense;
    align-content: start;
  } */
.image-mosaic .card:last-child {
    /* grid-column: span 2 / auto; */
    grid-row: span 1 / auto;
}



.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: end;
    background: #353535;
    font-size: 3rem;
    color: #fff;
    box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
    height: 100%;
    width: 100%;
    border-radius: 4px;
    transition: all 500ms;
    overflow: hidden;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    padding: 0;
    margin: 0;
}

.card input[type="checkbox"] {
    width: 30px;
    /* Adjust size of the checkbox */
    height: 30px;
    /* Adjust size of the checkbox */
    border-radius: 50%;
    /* Make the checkbox circular */
    appearance: none;
    /* Remove default checkbox style */
    background-color: #f0f0f0;
    /* Default background color */
    border: 2px solid #ccc;
    /* Border color */
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

.card input[type="checkbox"]:checked {
    background-color: green;
    /* Background when checked */
    border-color: green;
    /* Border color when checked */
}

.card input[type="checkbox"]:checked::before {
    content: "✔";
    position: absolute;
    top: -6px;
    left: 3px;
    font-size: 24px;
    color: white;
}

.card input[type="checkbox"]:not(:checked)::before {
    content: "";
    /* No check mark when unchecked */
}

.card {
    max-width: 100%;
}



@media screen and (min-width: 600px) {
    .card-tall {
        grid-row: span 2 / auto;
    }

    .card-wide {
        grid-column: span 2 / auto;
    }
}


.donwload-container {
    background-color: #f4f4f4;
    /* Light gray background */
    padding: 20px;
    /* Padding around the content */
    border-radius: 8px;
    /* Rounded corners for the container */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    display: flex;
    /* Flexbox for easy layout control */
    flex-direction: column;
    /* Stack the items vertically */
    align-items: flex-start;
    /* Align elements to the left */
    margin: 20px auto;
    /* Center the container horizontally */
}

.donwload-container label {
    font-size: 16px;
    /* Set label font size */
    font-weight: 600;
    /* Bold label text */
    margin-bottom: 8px;
    /* Space below the label */
    color: #333;
    /* Dark gray color for the text */
}

.donwload-container #axon-size-selector {
    width: 100%;
    /* Full width of the container */
    padding: 8px 12px;
    /* Padding inside the select box */
    border-radius: 4px;
    /* Rounded corners for the select box */
    border: 1px solid #ccc;
    /* Light border */
    font-size: 14px;
    /* Font size for options */
    margin-bottom: 16px;
    /* Space below the select box */
    background-color: #fff;
    /* White background for the dropdown */
    transition: border-color 0.3s ease;
    /* Smooth transition for border */
}

.donwload-container #axon-size-selector:focus {
    border-color: #007bff;
    /* Change border color on focus */
    outline: none;
    /* Remove default outline */
}

.donwload-container #axon-download-selected {
    background-color: #007bff;
    /* Primary blue background */
    color: #fff;
    /* White text */
    font-size: 16px;
    /* Button text size */
    font-weight: 600;
    /* Bold text */
    padding: 10px 20px;
    /* Adequate padding for the button */
    border: none;
    /* No border */
    border-radius: 4px;
    /* Rounded corners for the button */
    cursor: pointer;
    /* Pointer cursor on hover */
    transition: background-color 0.3s ease;
    /* Smooth transition for background color */
}

.donwload-container #axon-download-selected:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

.donwload-container #axon-download-selected:active {
    background-color: #003d7a;
    /* Even darker blue on click */
}



/* Package Contents Section */
.product-package-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #e1e1e1;
    margin-top: 20px;
    border-radius: 8px;
}

.product-package-summary h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* Product List */
.product-package-summary .package-products-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.product-package-summary .package-product-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 10px;
}

.product-package-summary .package-product-item:last-child {
    border-bottom: none;
}

.product-package-summary .product-thumbnail {
    max-width: 80px;
    margin-right: 15px;
}

.product-package-summary .product-thumbnail img {
    width: 100%;
    height: auto;
}

.product-package-summary .product-info {
    flex-grow: 1;
}

.product-package-summary .product-title {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.product-package-summary .product-quantity {
    font-size: 0.9rem;
    color: #666;
}

.product-package-summary .product-price {
    font-size: 1rem;
    color: #000;
    font-weight: bold;
    margin-left: 10px;
}

/* Add hover effect on the items */
.product-package-summary .package-product-item:hover {
    background-color: #fafafa;
    cursor: pointer;
}



/* Main container for the photo gallery */
.my-account-photo-gallery {
    padding: 20px;
    /* background-color: #f4f4f4; */
}

/* Gallery container with flex layout for responsive design */
.my-account-photo-gallery .gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Styling for each gallery item */
.my-account-photo-gallery .gallery-item {
    width: 100%;
    /* Full width on mobile */
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.my-account-photo-gallery .gallery-item:hover {
    transform: translateY(-5px);
    /* Slight hover effect */
}

/* Title and metadata styling */
.my-account-photo-gallery .gallery-item .gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    /* background-color: #f7f7f7; */
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.my-account-photo-gallery .gallery-item .gallery-header h3 {
    margin: 0;
    font-size: 18px;
    width: unset;
    font-weight: normal;
}

.my-account-photo-gallery .gallery-item .gallery-header .date {
    font-size: 14px;
    color: #888;
}

.my-account-photo-gallery .gallery-item .gallery-header .image-count {
    font-size: 14px;
    color: #555;
}

.my-account-photo-gallery .gallery-item .gallery-header .show-more {
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
    text-align: center;
}

.my-account-photo-gallery .gallery-item .gallery-header .show-more:hover {
    background-color: #005177;
}

/* Image container inside gallery item */
.my-account-photo-gallery .gallery-item .gallery-images {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    gap: 0px;
    justify-content: space-around;
}

.my-account-photo-gallery .gallery-item .gallery-images .gallery-thumbnail {
    width: 33%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.my-account-photo-gallery .gallery-item .gallery-images .gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure images cover the space */
    transition: transform 0.3s ease;
}

.my-account-photo-gallery .gallery-item:hover .gallery-images .gallery-thumbnail img {
    transform: scale(1.1);
    /* Zoom effect on hover */
}

/* Gallery title, count, and date alignment */
.my-account-photo-gallery .gallery-header .date,
.my-account-photo-gallery .gallery-header .image-count {
    margin-left: 10px;
}

@media (max-width: 600px) {
    .my-account-photo-gallery .meta-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .my-account-photo-gallery .gallery-header .date,
    .my-account-photo-gallery .gallery-header .image-count {
        margin-left: 0;
    }
}

.wc-item-meta li::before,
.wc-item-meta li::after {
    content: none !important;
}

.package-product-item ul {
    list-style: none !important;
}

button.view-gallery-btn {
    background-color: #eeeeee;
    border-color: #eeeeee;
    color: #333333;
    padding: .6180469716em 1.41575em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 40px;
}

#close-modal {
    background-color: #eeeeee;
    border-color: #eeeeee;
    color: #333333;
    padding: .6180469716em 1.41575em;
    font-weight: 600;
    cursor: pointer;
}

.tui-image-editor-header-logo,
.tie-btn-delete,
.tie-btn-deleteAll,
.tui-image-editor-icpartition,
.tui-image-editor-header-buttons>div:first-child {
    display: none !important;
}


.preview-modal{
    z-index:9999!important;
}