/* WPC Add Product to Order styles */

.wpcap-btn {
    margin-left: 10px;
}

/* Modal Styles */
.wpcap-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcap-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.wpcap-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100000;
    display: flex;
    flex-direction: column;
}

.wpcap-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpcap-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.wpcap-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.wpcap-modal-close:hover,
.wpcap-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.wpcap-modal-body {
    padding: 20px;
    flex: 1;
}

.wpcap-search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.wpcap-search-wrapper input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.wpcap-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wpcap-search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.wpcap-search-result-item:last-child {
    border-bottom: none;
}

.wpcap-search-result-item:hover {
    background-color: #f5f5f5;
}

.wpcap-order-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.wpcap-order-details p {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.wpcap-order-items {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.wpcap-order-items ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.wpcap-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
