.cover3d_generator {
    margin: 24px 0 48px;
}

.cover3d_workspace {
    display: grid;
    grid-template-columns: minmax(510px, 720px) minmax(360px, 1fr);
    gap: 32px;
    align-items: stretch;
}

.cover3d_form_panel,
.cover3d_result_panel {
    box-sizing: border-box;
    padding: 28px;
    border: 1px solid #e2e7ef;
    border-radius: 20px;
    background: #fff;
}

.cover3d_form_panel h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

.cover3d_description {
    margin: 0 0 20px;
    color: #526273;
    line-height: 1.55;
}

.cover3d_steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.cover3d_steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f5f7fa;
    color: #445366;
    font-size: 12px;
    line-height: 1.25;
}

.cover3d_steps span {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ff2c5c;
    color: #fff;
    font-weight: 800;
}

.cover3d_uploads {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

/* A single upload is easier to scan when it is centered in the form panel. */
.cover3d_generator .cover3d_uploads > .cover3d_upload:only-child {
    flex: 0 1 520px;
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.cover3d_upload {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e2e7ef;
    border-radius: 14px;
    text-align: center;
}

.cover3d_upload_title {
    display: block;
    min-height: 40px;
    margin-bottom: 10px;
}

.cover3d_preview {
    position: relative;
    display: flex;
    height: 150px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed #ff7191;
    border-radius: 12px;
    background: #fafcff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cover3d_preview[data-slot-badge]::after {
    content: attr(data-slot-badge);
    position: absolute;
    top: 9px;
    right: 9px;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #17233d;
    color: #fff;
    box-shadow: 0 3px 10px rgba(23, 35, 61, .2);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.cover3d_preview:hover,
.cover3d_preview:focus {
    border-color: #ff2c5c;
    background: #fff7f9;
    outline: none;
}

.cover3d_preview.is-dragover {
    border-color: #ff2c5c;
    background: #fff0f4;
    box-shadow: 0 0 0 4px rgba(255, 44, 92, .12);
    transform: translateY(-2px);
}

.cover3d_preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cover3d_file_input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 1px !important;
    max-width: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
}

.cover3d_file_button,
.cover3d_submit,
.cover3d_download_button {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.cover3d_file_button {
    width: 100%;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #ffb7c9;
    background: #fff7f9;
    color: #e92b57;
}

.cover3d_drop_hint {
    display: block;
    margin-top: 7px;
    color: #7a8797;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
}

.cover3d_upload.is-uploaded .cover3d_file_button,
.cover3d_upload.is-uploaded .cover3d_file_button:hover,
.cover3d_upload.is-uploaded .cover3d_file_button:focus {
    border-color: #8bd49a;
    background: #e8f8ea;
    color: #207a3c;
}

.cover3d_upload.is-uploaded .cover3d_file_button::before {
    content: '✓';
    margin-right: 7px;
}

.cover3d_submit {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border: 0;
    background: #ff2c5c;
    color: #fff;
    font-size: 16px;
}

.cover3d_submit:disabled {
    background: #e3e8f0;
    color: #95a1b2;
    cursor: not-allowed;
}

.cover3d_result_panel {
    display: flex;
    min-height: 440px;
    align-items: flex-start;
    justify-content: flex-start;
    background: #fafcff;
    text-align: center;
}

.cover3d_result_panel #result {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

.cover3d_result_panel #incanvas {
    display: none !important;
    flex: 0 0 0;
}

.cover3d_result_panel.is-generating {
    align-items: center;
    justify-content: center;
}

.cover3d_placeholder {
    max-width: 360px;
    margin: 0 auto;
    color: #607085;
    line-height: 1.55;
}

.cover3d_placeholder strong {
    display: block;
    margin-bottom: 10px;
    color: #202939;
    font-size: 20px;
}

.cover3d_placeholder::before {
    content: '✦';
    display: block;
    margin-bottom: 10px;
    color: #ff2c5c;
    font-size: 42px;
}

.cover3d_loader {
    display: grid;
    gap: 6px;
    color: #607085;
}

.cover3d_loader_visual {
    position: relative;
    width: 124px;
    height: 124px;
    margin: 0 auto 8px;
}

.cover3d_loader_visual::after {
    content: '';
    position: absolute;
    inset: 7px;
    border: 2px solid rgba(255, 44, 92, .14);
    border-top-color: #ff2c5c;
    border-radius: 50%;
    animation: cover3d-spin 1.8s linear infinite;
}

.cover3d_loader_visual img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    animation: cover3d-breathe 1.8s ease-in-out infinite;
}

.cover3d_loader strong {
    color: #202939;
    font-size: 18px;
}

.cover3d_loader span {
    font-size: 13px;
}

@keyframes cover3d-spin {
    to { transform: rotate(360deg); }
}

@keyframes cover3d-breathe {
    0%, 100% { transform: scale(.96); opacity: .88; }
    50% { transform: scale(1); opacity: 1; }
}

.cover3d_result_image {
    display: block;
    max-width: 100%;
    max-height: 500px;
    margin: 0 auto;
    object-fit: contain;
}

.cover3d_result_actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.cover3d_download_button,
.cover3d_download_button:visited {
    padding: 13px 20px;
    background: #ff2c5c;
    color: #fff !important;
}

.cover3d_download_button:hover,
.cover3d_download_button:focus {
    background: #e81f4d;
    color: #fff !important;
    text-decoration: none;
}

.cover3d_create_another {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #d9234f;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cover3d_create_another:hover,
.cover3d_create_another:focus {
    color: #b8183d;
    text-decoration: underline;
}

.cover3d_error {
    color: #c72c45;
}

#widget_wrapper_65 {
    display: none !important;
}

@media (max-width: 900px) {
    .cover3d_workspace {
        grid-template-columns: 1fr;
    }

    .cover3d_result_panel {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .cover3d_form_panel,
    .cover3d_result_panel {
        padding: 18px;
        border-radius: 16px;
    }

    .cover3d_form_panel h1 {
        font-size: 28px;
    }

    .cover3d_steps {
        gap: 5px;
    }

    .cover3d_steps li {
        display: grid;
        justify-items: center;
        gap: 5px;
        padding: 7px 4px;
        text-align: center;
        font-size: 10px;
    }

    .cover3d_uploads {
        gap: 7px;
    }

    .cover3d_upload {
        padding: 7px;
    }

    .cover3d_upload_title {
        min-height: 34px;
        font-size: 11px;
        line-height: 1.2;
    }

    .cover3d_preview {
        height: 105px;
    }

    .cover3d_file_button {
        padding: 8px 4px;
        font-size: 11px;
        line-height: 1.15;
    }

    .cover3d_result_actions {
        flex-wrap: wrap;
    }
}
