/**
 * WC Portfolio - Frontend Styles
 */

/* Portfolio Review Page */
.wcp-portfolio-review {
	max-width: 800px;
	margin: 0 auto;
}

.wcp-portfolio-review h2 {
	margin-bottom: 20px;
}

.wcp-customer-greeting {
	font-size: 16px;
	margin-bottom: 20px;
}

/* Notices */
.wcp-notice {
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.wcp-notice p {
	margin: 0;
}

.wcp-notice-success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.wcp-notice-error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.wcp-notice-warning {
	background-color: #fff3cd;
	border: 1px solid #ffeeba;
	color: #856404;
}

/* Portfolio Notes */
.wcp-portfolio-notes {
	background-color: #f8f9fa;
	padding: 20px;
	margin-bottom: 25px;
	border-left: 4px solid #96588a;
	border-radius: 0 4px 4px 0;
}

.wcp-portfolio-notes h3 {
	margin: 0 0 10px;
	font-size: 14px;
}

.wcp-portfolio-notes p {
	margin: 0;
}

/* Expiry Notice */
.wcp-expiry-notice {
	color: #856404;
	font-style: italic;
	margin-bottom: 20px;
}

/* Items Table */
.wcp-items-table {
	width: 100%;
	margin-bottom: 30px;
}

.wcp-items-table th,
.wcp-items-table td {
	padding: 12px 15px;
}

.wcp-items-table thead th {
	background-color: #f8f9fa;
	font-weight: 600;
}

.wcp-items-table .product-name {
	text-align: left;
}

.wcp-items-table .product-quantity {
	text-align: center;
	width: 100px;
}

.wcp-items-table .product-subtotal {
	text-align: right;
	width: 120px;
}

.wcp-items-table tfoot td,
.wcp-items-table tfoot th {
	font-weight: 600;
}

.wcp-totals-label {
	text-align: right;
}

.wcp-totals-value {
	text-align: right;
	font-size: 18px;
}

/* Actions */
.wcp-actions {
	margin: 30px 0;
	padding: 25px;
	background-color: #f8f9fa;
	border-radius: 4px;
	text-align: center;
}

.wcp-approve-button {
	font-size: 16px;
	padding: 15px 40px !important;
}

.wcp-approve-button.loading {
	opacity: 0.7;
	pointer-events: none;
}

.wcp-approve-note {
	margin-top: 15px;
	color: #666;
	font-size: 13px;
}

/* Email Verification Gate */
.wcp-email-gate {
	max-width: 500px;
	margin: 40px auto;
	padding: 0 20px;
}

.wcp-email-gate-content {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.wcp-email-gate h2 {
	margin: 0 0 10px;
	font-size: 24px;
	color: #333;
}

.wcp-email-gate .wcp-customer-greeting {
	margin-bottom: 10px;
	font-size: 16px;
	color: #666;
}

.wcp-email-gate p {
	margin-bottom: 25px;
	color: #666;
}

.wcp-verify-form .wcp-form-field {
	margin-bottom: 20px;
	text-align: left;
}

.wcp-verify-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.wcp-verify-form input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wcp-verify-form input[type="email"]:focus {
	border-color: #96588a;
	outline: none;
	box-shadow: 0 0 0 2px rgba(150, 88, 138, 0.2);
}

.wcp-verify-button {
	width: 100%;
	padding: 14px 20px !important;
	font-size: 16px !important;
}

.wcp-verify-button.loading {
	opacity: 0.7;
	pointer-events: none;
}

.wcp-verify-error {
	margin-top: 15px;
	padding: 12px;
	background: #fcf0f1;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #721c24;
	font-size: 14px;
}

/* Terms & Conditions */
.wcp-terms-container {
	margin: 25px 0 !important;
	padding: 20px !important;
	background-color: #f9f9f9 !important;
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
}

.wcp-terms-container h3 {
	margin: 0 0 15px !important;
	font-size: 16px !important;
	color: #333 !important;
}

.wcp-terms-content {
	max-height: 200px !important;
	overflow-y: auto !important;
	padding: 15px !important;
	background: #fff !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	line-height: 1.6 !important;
	color: #555 !important;
	margin-bottom: 20px !important;
}

.wcp-terms-content p {
	margin: 0 0 10px !important;
}

.wcp-terms-content p:last-child {
	margin-bottom: 0 !important;
}

.wcp-terms-agreement {
	display: flex !important;
	align-items: flex-start !important;
	gap: 10px !important;
	cursor: pointer !important;
	font-size: 14px !important;
	color: #333 !important;
	margin-top: 15px !important;
	padding-top: 15px !important;
	border-top: 1px solid #e0e0e0 !important;
}

.wcp-terms-agreement input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	flex-shrink: 0;
}

.wcp-terms-agreement span {
	line-height: 1.4;
}

.wcp-terms-agreement.error {
	color: #dc3545;
}

.wcp-terms-agreement.error input[type="checkbox"] {
	outline: 2px solid #dc3545;
	outline-offset: 1px;
}

.wcp-terms-error {
	margin-top: 15px !important;
	margin-bottom: 0 !important;
	padding: 12px 15px !important;
	background: #fcf0f1 !important;
	border: 1px solid #f5c6cb !important;
	border-radius: 4px !important;
	color: #721c24 !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
}

/* Download/Save Actions */
.wcp-download-actions {
	margin-top: 20px;
	text-align: center;
}

/* Error Page */
.wcp-error {
	padding: 20px;
	text-align: center;
}

/* My Account Portfolios */
.woocommerce-MyAccount-portfolios .wcp-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.wcp-status-draft {
	background-color: #f0f0f0;
	color: #666;
}

.wcp-status-sent {
	background-color: #c6e1c6;
	color: #5b841b;
}

.wcp-status-approved {
	background-color: #c8d7e1;
	color: #2e4453;
}

.wcp-status-converted {
	background-color: #d7e6d7;
	color: #3c763d;
}

.wcp-status-expired {
	background-color: #eba3a3;
	color: #761919;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.wcp-items-table .product-quantity,
	.wcp-items-table .product-subtotal {
		width: auto;
	}

	.wcp-actions {
		padding: 20px 15px;
	}

	.wcp-approve-button {
		width: 100%;
	}
}
