.cwqw-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    font-size: 16px;
}

.cwqw-title {
    margin-bottom: 25px;
}

.cwqw-notice {
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.cwqw-success {
    background: #e8f7e8;
    color: #1c6b1c;
    border: 1px solid #a7d9a7;
}

.cwqw-error {
    background: #fbeaea;
    color: #8a1f1f;
    border: 1px solid #e0aaaa;
}

.cwqw-empty {
    padding: 40px;
    background: #f7f7f7;
    text-align: center;
    border-radius: 5px;
}

.cwqw-product {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.cwqw-product-image {
    flex: 0 0 110px;
}

.cwqw-product-image img {
    display: block;
    width: 100%;
    height: auto;
}

.cwqw-product-details {
    flex: 1;
}

.cwqw-product-name {
    margin: 0 0 8px;
    font-size: 20px;
}

.cwqw-product-name a {
    text-decoration: none;
}

.cwqw-sku {
    color: #777;
    font-size: 13px;
    margin-bottom: 8px;
}

.cwqw-price {
    margin-bottom: 12px;
    font-weight: 600;
}

.cwqw-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cwqw-quantity label {
    font-weight: 600;
}

.cwqw-quantity-input {
    width: 80px;
    padding: 8px;
}

.cwqw-product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cwqw-product-actions button,
.cwqw-actions button,
.cwqw-add-button,
.cwqw-form-actions button {
    cursor: pointer;
    border: 0;
    padding: 10px 16px;
    border-radius: 4px;
    transition: opacity .2s ease;
}

.cwqw-product-actions button:hover,
.cwqw-actions button:hover,
.cwqw-add-button:hover,
.cwqw-form-actions button:hover {
    opacity: .85;
}

.cwqw-update-button {
    background: #eeeeee;
    color: #222;
}

.cwqw-remove-button {
    background: #f3dddd;
    color: #8a2222;
}

.cwqw-add-button {
	background: #ABAFAF;
	color: #000;
}

.cwqw-add-button.cwqw-added {
    background: #328a45;
	color: #fff;
	margin-right: 20px;
}

.cwqw-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.cwqw-clear-button {
    background: #eee;
    color: #222;
}

.cwqw-quote-button {
    background: #1976d2;
    color: #fff;
    font-size: 16px;
    padding: 13px 25px !important;
}

.cwqw-quote-form {
    margin-top: 35px;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 6px;
}

.cwqw-quote-form h3 {
    margin-top: 0;
}

.cwqw-form-row {
    margin-bottom: 18px;
}

.cwqw-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
}

.cwqw-form-row label span {
    color: #c00;
}

.cwqw-form-row input,
.cwqw-form-row textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.cwqw-form-row textarea {
    resize: vertical;
}

.cwqw-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cwqw-submit-quote {
    background: #1976d2;
    color: #fff;
}

.cwqw-cancel-quote {
    background: #ddd;
    color: #222;
}

.cwqw-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
}

.cwqw-wrapper button:disabled {
    opacity: .5;
    cursor: wait;
}

@media (max-width: 700px) {

    .cwqw-product {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 15px;
    }

    .cwqw-product-image {
        flex: 0 0 80px;
    }

    .cwqw-product-details {
        flex: 1 1 calc(100% - 110px);
    }

    .cwqw-product-actions {
        width: 100%;
        flex-direction: row;
    }

    .cwqw-product-actions button {
        flex: 1;
    }

    .cwqw-actions {
        flex-direction: column;
    }

    .cwqw-actions button {
        width: 100%;
    }

    .cwqw-form-actions {
        flex-direction: column;
    }

    .cwqw-form-actions button {
        width: 100%;
    }
}
