/*
 * Styles du bloc Questions & Reponses / Avis, alignes sur la charte de
 * parachezvous.ma (vert #73b504, blocs gris #f8f8f8, blocs avis creme #fdfbee,
 * coins arrondis). Le contenu s'affiche a l'interieur des onglets/accordeons
 * natifs WooCommerce, il herite donc deja de la mise en page du theme.
 */

.pcv-qa-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.pcv-qa-item {
	background: #f8f8f8;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.pcv-qa-author {
	font-weight: 600;
}

.pcv-qa-date {
	opacity: 0.6;
	font-size: 0.85em;
	margin-left: 6px;
}

.pcv-qa-text {
	margin: 6px 0 0;
	line-height: 1.5;
}

.pcv-qa-answers {
	list-style: none;
	margin: 10px 0 0 16px;
	padding: 0 0 0 14px;
	border-left: 2px solid #e3e3e3;
}

.pcv-qa-answer {
	padding: 8px 0;
}

.pcv-qa-empty {
	opacity: 0.75;
	margin-bottom: 16px;
}

.pcv-qa-notice {
	background: #e8f0db;
	border-left: 4px solid #73b504;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 0.9em;
}

.pcv-qa-ask h3,
.pcv-review-mine h3 {
	font-size: 1.1em;
	margin-bottom: 10px;
}

/* Encadre arrondi autour des formulaires (poser une question / repondre / modifier) */
.pcv-qa-form,
.pcv-account-edit-form {
	margin-top: 10px;
	max-width: 560px;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 16px 18px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pcv-qa-form textarea,
.pcv-account-edit-form textarea,
.pcv-review-edit-form textarea {
	width: 100%;
	border-radius: 10px;
	border: 1px solid #e3e3e3;
	background: #f8f8f8;
	padding: 10px 12px;
	margin-bottom: 12px;
	font-family: inherit;
	box-sizing: border-box;
}

.pcv-qa-form textarea:focus,
.pcv-account-edit-form textarea:focus,
.pcv-review-edit-form textarea:focus {
	border-color: #73b504;
	outline: none;
}

.pcv-qa-form select {
	display: block;
	margin-bottom: 12px;
	border-radius: 10px;
	padding: 8px 10px;
	border: 1px solid #e3e3e3;
}

/* Bouton d'envoi : vert de la marque (surcharge forte, le theme applique
   parfois sa propre couleur de bouton avec !important). */
.pcv-qa-section .pcv-qa-btn,
.pcv-account-qa .pcv-qa-btn,
.pcv-review-mine .pcv-qa-btn,
button.pcv-qa-btn,
a.pcv-qa-btn,
.pcv-qa-form button[type="submit"].pcv-qa-btn,
.pcv-account-edit-form button[type="submit"].pcv-qa-btn,
.pcv-review-edit-form button[type="submit"].pcv-qa-btn {
	background-color: #73b504 !important;
	background-image: none !important;
	border: 2px solid #73b504 !important;
	color: #ffffff !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.pcv-qa-section .pcv-qa-btn:hover,
.pcv-account-qa .pcv-qa-btn:hover,
.pcv-review-mine .pcv-qa-btn:hover,
button.pcv-qa-btn:hover,
a.pcv-qa-btn:hover {
	background-color: #649c03 !important;
	border-color: #649c03 !important;
	color: #ffffff !important;
}

.pcv-qa-toggle-answer {
	background: #ffffff !important;
	background-image: none !important;
	border: 1px solid #73b504 !important;
	color: #73b504 !important;
	border-radius: 8px !important;
	font-weight: 500;
	margin-right: 6px;
	display: inline-block;
	text-decoration: none;
	padding: 6px 12px;
	font-size: 0.9em;
	cursor: pointer;
	box-shadow: none !important;
}

.pcv-qa-toggle-answer:hover {
	background: #73b504 !important;
	color: #ffffff !important;
}

.pcv-qa-hint {
	font-size: 0.8em;
	opacity: 0.7;
	margin-top: 6px;
}

/* Bloc "Mon avis" affiche dans l'onglet Avis natif */
.pcv-review-mine {
	background: #fdfbee;
	border-radius: 14px;
	padding: 16px 18px;
	margin-top: 16px;
}

.pcv-review-rating {
	color: #ffdf00;
	letter-spacing: 1px;
}

.pcv-review-status {
	font-size: 0.8em;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 8px;
}

.pcv-review-status--approved {
	background: #e6f2e8;
	color: #00450c;
}

.pcv-review-status--unapproved,
.pcv-review-status--hold {
	background: #fff4e5;
	color: #9a6700;
}

/* Onglet "Mes questions & avis" (Mon compte) */
.pcv-account-qa h2 {
	margin: 24px 0 12px;
	font-size: 1.15em;
}

.pcv-account-table {
	width: 100%;
	margin-bottom: 24px;
	border-collapse: collapse;
}

.pcv-account-table th,
.pcv-account-table td {
	padding: 10px 8px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #eee;
}

.pcv-account-answers {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pcv-account-review-item {
	background: #f8f8f8;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.pcv-account-actions {
	margin-top: 8px;
	font-size: 0.85em;
}

.pcv-account-actions a,
.pcv-danger {
	margin-right: 12px;
	color: #73b504;
	text-decoration: underline;
	cursor: pointer;
}

a.pcv-danger {
	color: #da0600;
}

/*
 * Repli responsive pour les tableaux "Mes questions" / "Mes reponses" :
 * on reproduit ici le comportement standard des tableaux WooCommerce
 * (.shop_table_responsive), afin que l'affichage mobile fonctionne meme si
 * le theme actif ne charge pas ce style pour une raison ou une autre.
 */
@media screen and (max-width: 700px) {
	.pcv-account-table {
		border: 0;
	}

	.pcv-account-table thead {
		display: none;
	}

	.pcv-account-table tr {
		display: block;
		margin-bottom: 16px;
		background: #f8f8f8;
		border-radius: 10px;
		padding: 10px 12px;
	}

	.pcv-account-table td {
		display: block;
		text-align: left;
		border-bottom: none;
		padding: 6px 0;
	}

	.pcv-account-table td::before {
		content: attr(data-title);
		display: block;
		font-weight: 600;
		font-size: 0.8em;
		text-transform: uppercase;
		opacity: 0.6;
		margin-bottom: 2px;
	}

	.pcv-qa-form,
	.pcv-account-edit-form {
		padding: 14px;
	}
}
