/* Container for upload UI */
.workflow-upload-container {
    margin: 1em 0;
}

/* Upload and Add buttons */
.workflow-upload-btn,
.workflow-add-btn {
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    padding: 0.5em 1em;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 0.5em;
}
.workflow-add-btn {
    display: none;
}

/* List of file items */
.workflow-file-list {
    margin-top: 0.5em;
}

/* Each file item row */
.workflow-file-item {
    display: flex;
    align-items: center;
    padding: 0.5em;
    border: 1px solid #dddddd;
    border-radius: 4px;
    margin-bottom: 0.5em;
    background-color: #f9f9f9;
}

/* Filename label, bold and truncated with tooltip */
.workflow-label {
    font-weight: bold;
    margin-right: 1em;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

/* Progress bar container */
.workflow-progress-bar {
    flex: 1;
    height: 8px;
    background-color: #eeeeee;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 0.5em;
}

/* Progress filler */
.workflow-progress {
    width: 0;
    height: 100%;
    background-color: #0073aa;
    text-align: center;
    color: #ffffff;
    font-size: 0.75em;
    line-height: 8px;
    transition: width 0.3s ease;
}

/* Success checkmark, remove button, and preview link */
.workflow-success,
.workflow-remove,
.workflow-preview {
    display: none;
    font-size: 1.2em;
    cursor: pointer;
}
.workflow-success {
    color: green;
    margin-right: 0.5em;
}
.workflow-remove {
    color: red;
    margin-right: 0.5em;
}
.workflow-preview {
    color: #0073aa;
    text-decoration: underline;
    font-size: 0.9em;
}

/* Modal overlay */
.workflow-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Modal content box */
.workflow-modal-content {
    background-color: #ffffff;
    padding: 1em;
    border-radius: 4px;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

/* Modal close button */
.workflow-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: #333333;
}

/* Existing inline styles for settings wrap */
.workflow-frontend-wrap {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.workflow-frontend-wrap h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}
.workflow-frontend-wrap form p {
    margin-bottom: 10px;
}
.workflow-frontend-wrap select,
.workflow-frontend-wrap input[type="file"],
.workflow-frontend-wrap button {
    width: 100%;
    max-width: 300px;
    margin-top: 5px;
}
.workflow-frontend-wrap table {
    margin-top: 15px;
}
.workflow-cart-details, .workflow-order-details {
    margin-top: 10px;
    font-size: 0.9em;
    display: block !important;
}
.workflow-cart-details p, .workflow-order-details p {
    margin: 5px 0;
}
