/* Existing basic styles with updates */
.eser-siparisi-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    position: relative;
}

/* Step Layout */
.es-step-title {
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Description text under inputs */
.es-description {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.es-form-group {
    margin-bottom: 20px;
}

.es-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--wd-title-color, #333);
    font-family: var(--wd-title-font, inherit);
}

.es-form-group input[type="text"],
.es-form-group input[type="file"],
.es-form-group select,
.es-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.es-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.es-form-group.es-half {
    width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .es-form-group.es-half {
        width: 100%;
    }
}

.es-price-box {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--wd-title-color, #333);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.es-price-display {
    color: var(--wd-primary-color, #d9534f);
}

.es-nav-box {
    text-align: right;
    margin-top: 20px;
}

.es-submit-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

button.es-next-step,
button.es-prev-step,
button.es-submit-btn,
.eser-siparisi-trigger {
    background-color: var(--wd-primary-color, #000);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    font-family: var(--wd-title-font, inherit);
    transition: opacity 0.3s;
    border-radius: 4px;
}

button.es-prev-step {
    background-color: #777;
}

button:hover, .eser-siparisi-trigger:hover {
    opacity: 0.9;
}

.es-message {
    margin-top: 10px;
    font-weight: bold;
}

/* Image Preview Styles */
.es-image-preview-wrapper {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.es-preview-label {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--wd-title-color, #333);
    font-family: var(--wd-title-font, inherit);
    font-size: 0.95em;
}

.es-image-preview {
    text-align: center;
}

.es-preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: contain;
}

/* POPUP STYLES */
.es-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.es-popup-container {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: esFadeIn 0.3s ease;
}

/* Remove wrapper margin/padding inside popup since container handles it */
.es-popup-container .eser-siparisi-wrapper {
    margin: 0;
    box-shadow: none;
}

.es-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

@keyframes esFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
