#mpd-design-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.mpd-image-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .mpd-image-container {
        grid-template-columns: 1fr 1fr;
    }
}

.mpd-image-box {
    background-color: #f1f5f9;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    border: 2px dashed #94a3b8;
    position: relative;
    overflow: hidden;
}

#mpd-original-image, #mpd-transformed-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mpd-placeholder {
    color: #64748b;
    font-size: 1rem;
    text-align: center;
}

.mpd-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.mpd-file-upload label {
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mpd-file-upload label:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.mpd-button {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.mpd-button:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

#mpd-transform-btn {
    background-color: #E91E63;
    cursor: pointer;
}

#mpd-add-to-cart-btn {
    background-color: #22c55e;
    cursor: pointer;
}

#mpd-loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mpd-transformed-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.mpd-design-circle {
    border-radius: 50%;
}
.mpd-design-square {
    border-radius: 0.75rem;
}
.mpd-design-horizontal,
.mpd-design-vertical {
    border-radius: 0.75rem;
}

.mpd-design-circle img {
    border-radius: 50%;
}

.mpd-design-horizontal #mpd-transformed-image {
    object-fit: contain;
    width: 100%;
    height: auto;
}
.mpd-design-vertical #mpd-transformed-image {
    object-fit: contain;
    width: auto;
    height: 100%;
}

#mpd-phrase {
    position: absolute;
    bottom: 1.5rem;
    width: 80%;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.5rem;
    color: white;
    text-shadow: 1px 1px 2px #000, 0 0 1em #000;
    text-align: center;
    z-index: 10;
}
