/**
 * CutPlanner Edit Cutsheet Modal Styles
 *
 * @package cutplanner-platform
 * @subpackage edit-cutsheet
 * @version 3.0
 */

/* Modal Overlay */
#cp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

/* Modal Content */
#cp-modal-content {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    max-width: 90%;
    max-height: 85vh;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Modal Body */
#cp-modal-body {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Modal Header */
.cp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cp-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Close Button */
.cp-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
}

.cp-close:hover {
    color: #dc3232;
}

/* Frontend-specific styles */
.woocommerce-account .cp-edit-cutsheet-frontend-btn {
    margin-top: 10px;
    display: inline-block;
}

/* Loading spinner container */
#cp-modal-body .cp-loading {
    text-align: center;
    padding: 40px 20px;
}

#cp-modal-body .cp-loading .spinner {
    float: none;
    margin: 0 auto 10px;
}
