/**
 * CM Product Enquiry - Frontend Styles
 */

/* Wrapper */
.cmpe-wrapper {
    margin: 15px 0;
}

/* Enquiry Button - erbt WooCommerce .button.alt */
.cmpe-enquiry-button {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* Form Wrapper */
.cmpe-form-wrapper {
    margin-top: 20px;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Produktinfo */
.cmpe-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cmpe-product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.cmpe-product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cmpe-product-name {
    font-size: 16px;
    color: #333;
}

.cmpe-product-sku {
    font-size: 13px;
    color: #888;
}

/* Sections (Konfiguration, Spezifikationen) */
.cmpe-selected-config,
.cmpe-specifications {
    margin-bottom: 20px;
}

.cmpe-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e0e0e0;
}

/* Tabellen */
.cmpe-config-table,
.cmpe-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cmpe-config-table td,
.cmpe-specs-table td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
}

.cmpe-config-table tr:nth-child(even),
.cmpe-specs-table tr:nth-child(even) {
    background-color: #f0f0f0;
}

.cmpe-config-table td:first-child,
.cmpe-specs-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: #555;
}

/* Variation-Hinweis */
.cmpe-variation-notice {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.cmpe-variation-notice p {
    margin: 0;
    font-size: 13px;
    color: #795548;
}

/* Formularfelder */
.cmpe-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cmpe-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.cmpe-field input[type="text"],
.cmpe-field input[type="email"],
.cmpe-field input[type="tel"],
.cmpe-field input[type="number"],
.cmpe-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cmpe-field input:focus,
.cmpe-field textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

.cmpe-field-quantity input {
    width: 100px;
}

.cmpe-field-copy label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.cmpe-field-copy input[type="checkbox"] {
    width: auto;
}

/* Honeypot - unsichtbar */
.cmpe-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Submit */
.cmpe-submit-row {
    margin-top: 20px;
}

.cmpe-submit-button {
    width: 100%;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
}

.cmpe-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Nachrichten */
.cmpe-message-box {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.cmpe-message-box.cmpe-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cmpe-message-box.cmpe-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 480px) {
    .cmpe-form-wrapper {
        padding: 15px;
    }

    .cmpe-product-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .cmpe-config-table td:first-child,
    .cmpe-specs-table td:first-child {
        width: auto;
    }

    .cmpe-field-quantity input {
        width: 80px;
    }
}
