/* WP Smart Quoter — Frontend Styles */

.wsq-app {
    max-width: 1100px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    color: #333;
}

.wsq-step {
    padding: 20px 0;
}

.wsq-app h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #23282d;
}

.wsq-app label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.wsq-app input[type="text"],
.wsq-app input[type="email"],
.wsq-app input[type="tel"],
.wsq-app input[type="number"],
.wsq-app input[type="url"],
.wsq-app textarea,
.wsq-app select {
    width: 100%;
    max-width: 400px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.wsq-app textarea {
    max-width: 100%;
}

.wsq-required {
    color: #d63638;
}

.wsq-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.wsq-btn-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.wsq-btn-primary:hover {
    background: #005a87;
}

.wsq-btn-secondary {
    background: #f0f0f1;
    color: #333;
    border-color: #c3c4c7;
}

.wsq-btn-secondary:hover {
    background: #e0e0e1;
}

.wsq-btn-ghost {
    background: transparent;
    color: #0073aa;
    border-color: #0073aa;
}

.wsq-btn-ghost:hover {
    background: #f0f6fc;
}

.wsq-btn-full {
    width: 100%;
    text-align: center;
}

.wsq-returning-customer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.wsq-catalog-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.wsq-catalog-main {
    flex: 1 1 60%;
    min-width: 280px;
}

.wsq-catalog-sidebar {
    flex: 1 1 300px;
    max-width: 360px;
    background: #f6f7f7;
    padding: 15px;
    border-radius: 4px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.wsq-search {
    margin-bottom: 15px;
}

.wsq-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.wsq-product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.wsq-product-card h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.wsq-product-card p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
    flex: 1;
}

.wsq-product-meta {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.wsq-product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wsq-product-actions input[type="number"] {
    width: 60px;
    padding: 4px;
}

.wsq-cart-items {
    margin-bottom: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.wsq-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
}

.wsq-cart-item button {
    background: transparent;
    border: none;
    color: #d63638;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.wsq-cart-totals {
    border-top: 2px solid #ccc;
    padding-top: 10px;
    margin-top: 10px;
}

.wsq-total-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 14px;
}

.wsq-total-grand {
    font-weight: 700;
    font-size: 16px;
    border-top: 1px solid #ccc;
    margin-top: 6px;
    padding-top: 6px;
}

.wsq-preview-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wsq-past-quotes-list {
    margin-top: 15px;
}

.wsq-past-quotes-list table {
    width: 100%;
    border-collapse: collapse;
}

.wsq-past-quotes-list th,
.wsq-past-quotes-list td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 13px;
}

.wsq-past-quotes-list th {
    background: #f0f0f1;
}

@media (max-width: 768px) {
    .wsq-catalog-layout {
        flex-direction: column;
    }
    .wsq-catalog-sidebar {
        max-width: 100%;
        position: static;
    }
}
