/* Basic styles for the JPS order form */
.jps-order-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
}

.jps-order-info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.jps-field {
    flex: 1 1 45%;
    min-width: 200px;
}

.jps-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.jps-field input,
.jps-field textarea {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.jps-product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.jps-product-table th,
.jps-product-table td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: center;
}

.jps-product-table th {
    background-color: #f7f7f7;
    font-weight: bold;
}

.jps-input-price,
.jps-input-qty {
    width: 80px;
    padding: 0.3rem;
    box-sizing: border-box;
    text-align: right;
}

.jps-qty-btn {
    padding: 0.3rem 0.6rem;
    margin: 0 0.2rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.jps-order-summary {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.jps-total-label {
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Mail send button styling */
.jps-mail-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    background-color: #006699;
    color: #fff;
    border: none;
    border-radius: 4px;
}

/* Hover state for mail button */
.jps-mail-button:hover {
    background-color: #005080;
}

/* Responsive design for small screens */
@media (max-width: 600px) {
    .jps-order-info-section {
        flex-direction: column;
    }
    .jps-field {
        flex: 1 1 100%;
        min-width: auto;
    }
    .jps-product-table th,
    .jps-product-table td {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
    .jps-input-price,
    .jps-input-qty {
        width: 60px;
        padding: 0.2rem;
        font-size: 0.8rem;
    }
    .jps-qty-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    .jps-order-summary {
        align-items: stretch;
    }
    .jps-order-summary .jps-button-row {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .jps-order-summary .jps-button-row button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Add product button styling */
.jps-add-product-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    background-color: #e0e0e0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 0.5rem;
}
.jps-add-product-button:hover {
    background-color: #d5d5d5;
}