/* Woo Photo Gadget Public CSS */

.woo-photogadget-customizer-wrapper {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

#photogadget-canvas-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    background: #fff;
    border: 1px dashed #ccc;
    overflow: hidden;
}

#photogadget-preview {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#photogadget-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 4px;
}

.photogadget-control-group {
    margin-bottom: 15px;
}

.photogadget-control-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.photogadget-upload-actions button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Modal Styles */
.photogadget-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.photogadget-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.photogadget-close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.photogadget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 150px;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.photogadget-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.photogadget-grid img:hover {
    border-color: #007cba;
    transform: scale(1.05);
}

.price-display {
    font-size: 1.2em;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}