/* QR Quote Manager - Public Styles */

/* Quote View Page */
.qqm-quote-view-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.qqm-quote-container {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qqm-quote-container h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.qqm-owner-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

/* Edit Form */
.qqm-edit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.qqm-edit-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.qqm-edit-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.qqm-edit-form button[type="submit"] {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
}

.qqm-edit-form button[type="submit"]:hover {
    background: #005a87;
}

.qqm-edit-form button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qqm-message {
    margin-left: 15px;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
}

.qqm-message.success {
    background: #d4edda;
    color: #155724;
}

.qqm-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Quote Display (Read-only) */
.qqm-quote-display {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.qqm-quote-display h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.qqm-quote-display blockquote {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

/* My Account Page */
.qqm-my-quotes {
    margin: 20px 0;
}

.qqm-my-quotes h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.qqm-quotes-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.qqm-quotes-table thead {
    background: #f8f9fa;
}

.qqm-quotes-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.qqm-quotes-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.qqm-quotes-table tr:last-child td {
    border-bottom: none;
}

.qqm-quotes-table img {
    display: block;
}

.qqm-quote-preview {
    max-width: 300px;
    color: #666;
}

.qqm-quotes-table .button {
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
    transition: background 0.3s;
}

.qqm-quotes-table .button:hover {
    background: #005a87;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .qqm-quote-view-wrapper {
        margin: 20px 10px;
        padding: 10px;
    }
    
    .qqm-quote-container {
        padding: 20px;
    }
    
    .qqm-quotes-table {
        font-size: 14px;
    }
    
    .qqm-quotes-table th,
    .qqm-quotes-table td {
        padding: 8px;
    }
    
    .qqm-quotes-table img {
        max-width: 60px !important;
    }
}

@media (max-width: 600px) {
    .qqm-quotes-table thead {
        display: none;
    }
    
    .qqm-quotes-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .qqm-quotes-table td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .qqm-quotes-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
    }
    
    .qqm-quotes-table td:last-child {
        border-bottom: none;
    }
}
