.elementor-product-customizable form {
    flex-direction: column;
}

.nax-product-selected-price {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
}

.nax-products-price-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nax-products-price-items .nax-product-price-item {
    background: #fff;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #000;
    cursor: pointer;
}

span.nax-product-price-item.active {
    background: #000;
    color: #fff;
}

.nax-product-variations {
    margin-bottom: 20px;
    width: 100%;
}

.option-item {
    margin-top: 10px;
}

span.option-title {
    display: block;
    margin-bottom: 5px;
}

.nax-product-variations select,
.nax-product-variations input {
    width: 100%;
}

.option-variations {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(10, 1fr);
}

.option-variation-item:not(select) {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: 1px solid #000;
    border-radius: 5px;
    cursor: pointer;
}

.option-variation-item.active {
    border: 2px solid #000;
}

div#configure-container {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 9;
    width: 100%;
    aspect-ratio: 1;
}

.canvas-active img.zoomImg {
    display: none;
}

.canvas-active>a {
    z-index: 0;
    position: relative;
    pointer-events: none;
}

ul.nax-variations {
    margin-left: 10px;
}

ul.nax-variations li {
    list-style: none;
}

ul.nax-variations img {
    border: 1px solid #000 !IMPORTANT;
    margin-left: 10px !IMPORTANT;
    height: 50px !IMPORTANT;
    width: auto !important;
}

dl.variation {
    display: flex;
}

.nax-product-variations .font-family-wrapper,
.nax-product-variations .font-color-wrapper,
.nax-product-variations .character-conversion-wrapper {
    display: flex;
    gap: 10px;
}

.nax-product-variations .font-family-item,
.nax-product-variations .font-color-item,
.nax-product-variations .character-conversion-item {
    width: calc(100% / 10);
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    border-radius: 3px;
    font-size: 24px;
    cursor: pointer;
    border: 1px solid #000;
    background-size: contain;
    max-width: 50px;
}

.nax-product-variations .font-family-item.active,
.nax-product-variations .font-color-item.active,
.nax-product-variations .character-conversion-item.active {
    border: 2px solid #e3a857;
}


/* Text */

.tex-element-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

span.character-keyboard-toggler {
    height: 40px;
    padding: 8px;
    background: #d1d5db;
    cursor: pointer;
}

span.character-keyboard-toggler svg {
    height: 100%;
}

.character-keyboard {
    position: absolute;
    top: 42px;
    left: auto;
    right: 0;
    max-width: 365px;
    width: 100%;
    background: #d1d5db;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    padding: 10px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 5px;
    gap: 5px;
}

.keyboard-key {
    text-align: center;
    background: #fff;
    border-radius: 4px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    width: 38px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.keyboard-key:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 8px 8px;
}

/* image uploader */


.nax-custom-image-preview {
    background: transparent;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.nax-custom-image-preview img {
    width: 100px;
    display: block;
    margin: 20px 0;
}

.nax-upload-image-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    width: 100%;
}

.nax-upload-image-btn:hover {
    background-color: #fff;
}

.nax-upload-image-btn svg {
    fill: currentColor;
}

.nax-editor-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.nax-editor-container {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    width: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nax-editor-preview {
    background: transparent;
    width: 100%;
    margin-bottom: 20px;
    border: 2px dashed #ccc;
    overflow: hidden;
    position: relative;
}

.nax-editor-canvas {
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: block;
}

.nax-editor-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nax-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.nax-editor-toolbar button {
    background-color: transparent;
    border-radius: 5px !IMPORTANT;
    padding: 5px !important;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    cursor: pointer;
    color: #000;
}

.nax-editor-toolbar button svg {
    width: 20px;
    height: 20px;
}

.nax-editor-toolbar button:hover {
    background-color: #f0f0f0;
}

.nax-zoom-controls {
    display: flex;
    justify-content: center;
    border: 2px solid #000;
    border-radius: 5px;
}

.nax-zoom-controls button {
    border: none;
    border-radius: 0 !important;
    height: 36px;
    background: white;
    cursor: pointer;
}

.nax-zoom-controls button:first-child {
    border-right: 2px solid #000;
}

.nax-zoom-controls button:last-child {
    border-left: 2px solid #000;
}

.nax-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.nax-editor-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.nax-editor-cancel {
    background-color: #e74c3c;
    color: white;
}

.nax-editor-cancel:hover {
    background-color: #c0392b;
}

.nax-editor-ok {
    background-color: #2ecc71;
    color: white;
}

.nax-editor-ok:hover {
    background-color: #27ae60;
}

.nax-zoom-level {
    padding: 0 10px;
    display: flex;
    align-items: center;
    font-family: monospace;
}

.woocommerce-product-gallery__wrapper .wp-post-image {
    aspect-ratio: 1 !IMPORTANT;
    object-fit: contain;
    object-position: center;
}

@media only screen and (max-width: 1200px) {
    .option-variations {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media only screen and (max-width: 1024px) {
    .option-variations {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .option-variations {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media only screen and (max-width: 500px) {
    .option-variations {
        grid-template-columns: repeat(5, 1fr);
    }
}