/* Frontend Configurator */
#decq-configurator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 999999;
}

.decq-configurator-active {
    overflow: hidden;
}

/* Order Page Design Files */
.decq-design-files {
    margin: 10px 0;
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.decq-design-files .button {
    margin-right: 10px;
}

/* Screenshots Modal */
#screenshots-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
}

.screenshots-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 4px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.screenshots-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.screenshots-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.decq-global-configurator-wrapper {
    width: 100%;
    margin: 20px 0;
    padding: 0;
    box-sizing: border-box;
}

.decq-global-configurator {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
}

/* My Account - Designs Page */
.decq-my-designs {
    margin: 20px 0;
}

.decq-designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.decq-design-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.decq-design-previews {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.decq-design-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.decq-design-info {
    text-align: center;
    margin-top: 10px;
}

.decq-design-date {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* Cart Preview */
.decq-cart-preview {
    max-width: 50px;
    height: auto;
    border-radius: 3px;
    margin-top: 5px;
}

.decq-edit-design-wrapper {
    margin: 10px 0;
}

.edit-design-button {
    margin: 5px 0;
    font-size: 0.9em !important;
    padding: 5px 10px !important;
    display: inline-block;
    line-height: 1.4;
}

.mini-cart-edit-design {
    font-size: 0.8em !important;
    padding: 3px 8px !important;
    margin: 5px 0;
    display: block;
    text-align: center;
    line-height: 1.4;
}

/* Style spécifique pour le mini panier */
.widget_shopping_cart .mini-cart-edit-design {
    margin: 5px 0;
    width: 100%;
    text-align: center;
}

.decq-edit-design-wrapper {
    clear: both;
    margin: 10px 0;
    display: block;
}

.edit-design-button {
    display: inline-block !important;
    padding: 8px 16px !important;
    margin-top: 5px !important;
    font-size: 0.9em !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

/* Si vous voulez que le bouton ressemble aux boutons WooCommerce */
.edit-design-button.alt {
    background-color: #ebe9eb;
    color: #515151;
    border-radius: 3px;
}

.edit-design-button.alt:hover {
    background-color: #dfdcde;
    color: #515151;
}

/* Error Messages */
.error-message {
    color: #dc3232;
    display: block;
    margin-top: 5px;
}

/* Loading Spinner */
.spinner.is-active {
    visibility: visible;
}
/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    /* .decq-product-field,
    .decq-theme-field,
    .decq-original-product-field {
        padding-left: 0 !important;
    } */

    .decq-designs-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .decq-design-preview {
        width: 80px;
        height: 80px;
    }
}