/* WC Contact Produit – style.css */

.wccp-wrap {
    max-width: 520px;
    font-family: inherit;
}

/* ── Carte produit ── */
.wccp-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1.2rem;
}

.wccp-product-img {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.wccp-product-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.wccp-product-info strong {
    font-weight: 600;
    color: #1a1a1a;
}

.wccp-product-info span {
    color: #777;
    font-size: 12px;
    margin-top: 2px;
}

.wccp-product-price {
    margin-left: auto;
    font-weight: 600;
    font-size: 15px;
    color: #185fa5;
    white-space: nowrap;
}

/* ── Formulaire ── */
.wccp-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wccp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wccp-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.wccp-field label {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
    font-weight: 500;
}

.wccp-req {
    color: #c0392b;
}

.wccp-field input[type="text"],
.wccp-field input[type="email"],
.wccp-field input[type="tel"],
.wccp-field textarea {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
}

.wccp-field input:focus,
.wccp-field textarea:focus {
    outline: none;
    border-color: #378add;
    box-shadow: 0 0 0 3px rgba(55, 138, 221, .12);
}

.wccp-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Consentement ── */
.wccp-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
}

.wccp-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #185fa5;
    width: 15px;
    height: 15px;
}

.wccp-consent a {
    color: #185fa5;
    text-decoration: underline;
}

/* ── Bouton ── */
.wccp-btn {
    display: inline-block;
    width: 100%;
    padding: 11px 16px;
    background: #185fa5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.wccp-btn:hover {
    background: #0c447c;
}

.wccp-btn:active {
    transform: scale(.99);
}

/* ── Messages ── */
.wccp-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eaf3de;
    border: 1px solid #c0dd97;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    color: #3b6d11;
}

.wccp-success-icon {
    font-size: 20px;
    font-weight: 700;
    color: #3b6d11;
    flex-shrink: 0;
}

.wccp-errors {
    background: #fcebeb;
    border: 1px solid #f09595;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #a32d2d;
}

.wccp-errors p {
    margin: 0 0 4px;
}

.wccp-errors p:last-child {
    margin-bottom: 0;
}

.wccp-error {
    color: #a32d2d;
    font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .wccp-row {
        grid-template-columns: 1fr;
    }
}
