.anipo-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black with transparency */
    overflow: auto; /* Enable scroll if needed */
}

.anipo-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px; /* Control the max width */
    position: relative;
    top: 50%;
    transform: translateY(-50%); /* Center it vertically */
}

.anipo-modal-content .anipo-modal-form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

.anipo-modal-content .anipo-modal-form .anipo-label-parent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    row-gap: 6px;
}

.anipo-modal-content .anipo-modal-form .anipo-button-row {
    grid-column: 1/-1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    margin-top: 2rem;
}

.anipo-modal-content .anipo-modal-form .anipo-label-parent input {
    width: 100%;
    border: 1px solid #135e96;
    outline: none;
    border-radius: 5px;
}

.anipo-modal-content .anipo-modal-form .anipo-label-parent select {
    width: 100%;
}

.anipo-modal-content h3 {
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 500;

}

/* Close button */
.anipo-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.anipo-close:hover,
.anipo-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.anipo-button, .anipo-show-modal-button {
    width: 70px;
    height: 30px;
    background-color: transparent;
    color: #135e96;
    border: 1px solid #135e96;
    border-radius: 5px;
    padding: 8px 8px;
    cursor: pointer;
    transition: all 0.3s;
    /* Centering */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.anipo-button:hover, .anipo-show-modal-button:hover {
    background-color: #135e96;
    color: #ffffff;
}

.anipo-cancel-barcode-button:hover {
    background-color: firebrick;
    color: #ffffff;
}

.anipo-order-barcode-link {
    color: #0073aa; /* Default link color in WooCommerce */
    text-decoration: none;
}

.anipo-order-barcode-link:hover {
    color: #005177; /* Hover color */
    text-decoration: underline;
}

.anipo-order-barcode-link:visited {
    color: #0073aa; /* Same color for visited links */
}

#anipo-ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
    background: rgba(0, 0, 0, 0.5); /* Add a semi-transparent background to cover the page */
}

.anipo-ajax-loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* WooCommerce Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.anipo-ajax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: -1; /* Ensure the overlay is behind the loader */
}

.anipo-settings-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

.anipo-label {
    width: 100%;
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    align-items: center;
    justify-content: flex-start;
    font-family: IranSans, sans-serif;
    font-weight: 500;
    font-size: 13px;
}

.anipo-label-font {
    font-family: IranSans, sans-serif !important;
    font-weight: 500;
    font-size: 13px;
}

.anipo-print-type-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.anipo-image-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 10px;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none; /* Safari */
    -moz-appearance: none; /* Firefox */
    position: relative;
    width: 16px;
    height: 16px;
    background-color: #f0f0f0;
    border: 2px solid #888;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

/* Style when the radio button is checked */
input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: auto;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #007bff; /* Custom color for checked radio */
    border-radius: 50%;
}

.anipo-label-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
}

.anipo-label-grid h6 {
    grid-column: 1/-1;
    margin: 0;
}

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