/* Jovani Virtual Try-On modal styles */

.jvt-wrap {
    display: inline-block;
    margin: 12px 0;
}

.jvt-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #C4A020;
    border-radius: 4px;
    font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.jvt-open-btn:hover,
.jvt-open-btn:focus {
    background: #C4A020;
    color: #1a1a1a;
    outline: 2px solid #C4A020;
    outline-offset: 2px;
    transform: translateY(-1px);
}
.jvt-icon { font-size: 20px; }

/* Modal */
.jvt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: jvt-fadein 0.2s ease-out;
}
.jvt-overlay.is-open { display: flex; }
@keyframes jvt-fadein { from { opacity: 0; } to { opacity: 1; } }

.jvt-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 720px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.jvt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
.jvt-modal-header h2 {
    margin: 0;
    font: 600 20px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

.jvt-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    color: #666;
    border-radius: 4px;
}
.jvt-close:hover,
.jvt-close:focus {
    background: #f0f0f0;
    color: #1a1a1a;
    outline: 2px solid #C4A020;
}

.jvt-modal-body { padding: 24px; }

/* Upload panel */
.jvt-upload-prompt { font-size: 15px; color: #333; margin: 0 0 12px; }
.jvt-guidelines {
    background: #f7f5ec;
    border-left: 3px solid #C4A020;
    padding: 12px 16px;
    margin: 0 0 20px;
    font-size: 13px;
    color: #444;
    list-style: none;
}
.jvt-guidelines li { padding: 3px 0; }
.jvt-guidelines li::before { content: "✓ "; color: #C4A020; font-weight: bold; }

.jvt-dropzone {
    border: 2px dashed #C4A020;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    background: #fafafa;
}
.jvt-dropzone:hover,
.jvt-dropzone.is-drag { background: #fff8dc; border-color: #1a1a1a; }
.jvt-dropzone.has-file { border-style: solid; background: #fff; padding: 16px; }
.jvt-dropzone-icon { font-size: 40px; color: #C4A020; margin-bottom: 10px; }
.jvt-dropzone-text { font-size: 14px; color: #666; }
.jvt-dropzone input[type="file"] {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; overflow: hidden;
}
.jvt-preview {
    max-width: 240px;
    max-height: 320px;
    border-radius: 6px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.jvt-clear-file {
    display: inline-block;
    margin-top: 10px;
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}

.jvt-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}
.jvt-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #C4A020;
}

.jvt-submit {
    width: 100%;
    padding: 14px;
    background: #C4A020;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    font: 700 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.jvt-submit:hover:not(:disabled),
.jvt-submit:focus:not(:disabled) {
    background: #1a1a1a;
    color: #fff;
    outline: 2px solid #C4A020;
}
.jvt-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Loading */
.jvt-loading {
    text-align: center;
    padding: 60px 20px;
}
.jvt-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f0f0f0;
    border-top-color: #C4A020;
    border-radius: 50%;
    animation: jvt-spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes jvt-spin { to { transform: rotate(360deg); } }
.jvt-loading-text {
    font: 500 16px/1.4 -apple-system, sans-serif;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.jvt-loading-sub {
    font-size: 13px;
    color: #888;
}

/* Result */
.jvt-result-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto 16px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.jvt-ai-disclosure {
    font-size: 12px;
    color: #888;
    text-align: center;
    font-style: italic;
    margin: 0 0 16px;
}
.jvt-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.jvt-btn {
    padding: 10px 18px;
    border: 2px solid #1a1a1a;
    background: #fff;
    color: #1a1a1a;
    border-radius: 4px;
    font: 600 13px/1 -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.jvt-btn:hover,
.jvt-btn:focus {
    background: #1a1a1a;
    color: #fff;
    outline: 2px solid #C4A020;
}
.jvt-btn-primary {
    background: #C4A020;
    border-color: #C4A020;
    color: #1a1a1a;
}
.jvt-btn-primary:hover,
.jvt-btn-primary:focus {
    background: #1a1a1a;
    color: #fff;
}

/* Error */
.jvt-error {
    background: #fce8e6;
    border: 1px solid #d93025;
    color: #a50e0e;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 0 0 16px;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 600px) {
    .jvt-modal { max-height: 100vh; border-radius: 0; }
    .jvt-modal-body { padding: 16px; }
    .jvt-dropzone { padding: 30px 16px; }
    .jvt-submit { padding: 16px; }
}
