/**
 * Frontend styles for RMDS WooCommerce Protected Products
 */

/* Restricted message container */
.rmds-wpp-restricted-message-container {
	margin: 20px 0;
	padding: 30px;
	background: #f7f7f7;
	border: 1px solid #e1e1e1;
	border-radius: 5px;
	text-align: center;
}

.rmds-wpp-restricted-message {
	max-width: 600px;
	margin: 0 auto;
}

.rmds-wpp-restricted-icon {
	font-size: 48px;
	color: #999;
	margin-bottom: 20px;
}

.rmds-wpp-restricted-icon .dashicons {
	width: 48px;
	height: 48px;
	font-size: 48px;
}

.rmds-wpp-restricted-content {
	margin-bottom: 20px;
	color: #333;
	font-size: 16px;
	line-height: 1.6;
}

.rmds-wpp-restricted-content p {
	margin: 10px 0;
}

.rmds-wpp-restricted-actions {
	margin-top: 20px;
}

.rmds-wpp-restricted-actions .button {
	display: inline-block;
	margin: 0 5px;
	padding: 10px 20px;
	background: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color 0.3s ease;
}

.rmds-wpp-restricted-actions .button:hover {
	background: #555;
	color: #fff;
}

.rmds-wpp-login-button {
	background: #0073aa !important;
}

.rmds-wpp-login-button:hover {
	background: #005a87 !important;
}

.rmds-wpp-register-button {
	background: #46b450 !important;
}

.rmds-wpp-register-button:hover {
	background: #3a9b3f !important;
}

/* Login prompt styles */
.rmds-wpp-login-prompt-container {
	margin: 30px 0;
	padding: 30px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rmds-wpp-login-prompt {
	max-width: 400px;
	margin: 0 auto;
}

.rmds-wpp-login-prompt h2 {
	margin-bottom: 20px;
	color: #333;
	text-align: center;
}

.rmds-wpp-login-prompt p {
	margin-bottom: 20px;
	text-align: center;
	color: #666;
}

.rmds-wpp-login-form {
	margin-bottom: 20px;
}

.rmds-wpp-login-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
}

.rmds-wpp-login-form input[type="text"],
.rmds-wpp-login-form input[type="password"] {
	width: 100%;
	padding: 8px 12px;
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 14px;
}

.rmds-wpp-login-form input[type="submit"] {
	width: 100%;
	padding: 10px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.rmds-wpp-login-form input[type="submit"]:hover {
	background: #005a87;
}

.rmds-wpp-register-link,
.rmds-wpp-lost-password-link {
	text-align: center;
	margin-top: 15px;
}

.rmds-wpp-register-link a,
.rmds-wpp-lost-password-link a {
	color: #0073aa;
	text-decoration: none;
}

.rmds-wpp-register-link a:hover,
.rmds-wpp-lost-password-link a:hover {
	text-decoration: underline;
}

/* Restricted content on archive pages */
.rmds-wpp-restricted-content {
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #e1e1e1;
	border-radius: 3px;
	text-align: center;
	color: #666;
	font-style: italic;
}

/* WooCommerce integration styles */
.woocommerce .rmds-wpp-restricted-message-container {
	clear: both;
	margin: 30px 0;
}

.woocommerce-page .rmds-wpp-restricted-message-container {
	margin-top: 30px;
}

/* Hide elements for restricted products */
.product.rmds-wpp-restricted .product-thumbnail {
	opacity: 0.5;
}

.product.rmds-wpp-restricted .price {
	display: none;
}

.product.rmds-wpp-restricted .add_to_cart_button {
	display: none;
}

/* Empty state styles */
.rmds-wpp-empty-state-container {
	margin: 40px 0;
	padding: 40px 30px;
	background: #fbfbfb;
	border: 2px dashed #ddd;
	border-radius: 8px;
	text-align: center;
	clear: both;
}

.rmds-wpp-empty-state {
	max-width: 600px;
	margin: 0 auto;
}

.rmds-wpp-empty-icon {
	font-size: 64px;
	color: #bbb;
	margin-bottom: 25px;
}

.rmds-wpp-empty-icon .dashicons {
	width: 64px;
	height: 64px;
	font-size: 64px;
}

.rmds-wpp-empty-content {
	margin-bottom: 30px;
}

.rmds-wpp-empty-title {
	font-size: 24px;
	color: #333;
	margin-bottom: 15px;
	font-weight: 600;
}

.rmds-wpp-empty-message {
	color: #666;
	font-size: 16px;
	line-height: 1.6;
}

.rmds-wpp-empty-message p {
	margin: 10px 0;
}

.rmds-wpp-empty-actions {
	margin: 25px 0;
}

.rmds-wpp-empty-actions .button {
	display: inline-block;
	margin: 0 8px 10px 8px;
	padding: 12px 24px;
	background: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.rmds-wpp-empty-actions .button:hover {
	background: #555;
	color: #fff;
	transform: translateY(-1px);
}

.rmds-wpp-contact-message {
	color: #777;
	font-style: italic;
	margin-bottom: 15px;
}

.rmds-wpp-contact-button {
	background: #46b450 !important;
}

.rmds-wpp-contact-button:hover {
	background: #3a9b3f !important;
}

.rmds-wpp-category-navigation,
.rmds-wpp-search-suggestions {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.rmds-wpp-back-to-shop {
	display: inline-block;
	color: #0073aa;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.rmds-wpp-back-to-shop:hover {
	color: #005a87;
	text-decoration: none;
}

.rmds-wpp-search-suggestions p {
	color: #777;
	margin-bottom: 15px;
}

/* Context-specific styling */
.rmds-wpp-empty-shop {
	border-color: #0073aa;
	background: linear-gradient(135deg, #f8fbff 0%, #f0f8ff 100%);
}

.rmds-wpp-empty-shop .rmds-wpp-empty-icon {
	color: #0073aa;
}

.rmds-wpp-empty-category {
	border-color: #46b450;
	background: linear-gradient(135deg, #f8fff8 0%, #f0fff0 100%);
}

.rmds-wpp-empty-category .rmds-wpp-empty-icon {
	color: #46b450;
}

.rmds-wpp-empty-search {
	border-color: #ffb900;
	background: linear-gradient(135deg, #fffdf8 0%, #fffcf0 100%);
}

.rmds-wpp-empty-search .rmds-wpp-empty-icon {
	color: #ffb900;
}

/* WooCommerce integration */
.woocommerce .rmds-wpp-empty-state-container {
	width: 100%;
	float: none;
	clear: both;
}

.woocommerce-page .rmds-wpp-empty-state-container {
	margin: 30px 0;
}

/* Hide default WooCommerce "No products" message when showing our empty state */
.rmds-wpp-empty-state-active .woocommerce-info {
	display: none;
}

.rmds-wpp-empty-state-active .woocommerce-result-count {
	display: none;
}

.rmds-wpp-empty-state-active .woocommerce-ordering {
	display: none;
}

/* Responsive styles */
/* Genesis Framework specific styles */
.genesis .rmds-wpp-empty-state-entry {
	clear: both;
	width: 100%;
	margin: 0 0 30px;
}

.genesis .rmds-wpp-empty-state-entry .entry-header {
	margin-bottom: 20px;
}

.genesis .rmds-wpp-empty-state-entry .entry-title {
	font-size: 28px;
	color: #333;
	margin: 0;
	text-align: center;
}

.genesis .rmds-wpp-empty-state-entry .entry-content {
	clear: both;
	overflow: hidden;
	margin: 0;
}

.genesis .rmds-wpp-empty-state-entry .rmds-wpp-empty-state-container {
	border: none;
	background: transparent;
	padding: 0;
	margin: 0;
}

/* Genesis content-sidebar-wrap integration */
.genesis .content-sidebar-wrap .rmds-wpp-empty-state-container {
	width: 100%;
	max-width: none;
}

.genesis .content .rmds-wpp-empty-state-entry {
	width: 100%;
	float: none;
}

/* Ensure proper Genesis article structure */
.genesis article.rmds-wpp-empty-state-entry {
	background: transparent;
	border: none;
	margin-bottom: 30px;
	padding: 0;
}

/* Genesis HTML5 support */
.genesis-html5 .rmds-wpp-empty-state-entry {
	hyphens: auto;
	word-wrap: break-word;
}

.genesis-html5 .rmds-wpp-empty-state-entry .entry-content {
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	hyphens: auto;
	word-wrap: break-word;
}

/* Genesis child theme compatibility */
.genesis .site-inner .rmds-wpp-empty-state-container {
	width: 100%;
}

.genesis .wrap .rmds-wpp-empty-state-container {
	max-width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
	.rmds-wpp-restricted-message-container,
	.rmds-wpp-login-prompt-container {
		padding: 20px;
	}
	
	.rmds-wpp-restricted-actions .button {
		display: block;
		width: 100%;
		margin: 10px 0;
	}
	
	.rmds-wpp-login-prompt {
		max-width: 100%;
	}

	.rmds-wpp-empty-state-container {
		padding: 30px 20px;
		margin: 30px 0;
	}

	.rmds-wpp-empty-icon {
		font-size: 48px;
	}

	.rmds-wpp-empty-icon .dashicons {
		width: 48px;
		height: 48px;
		font-size: 48px;
	}

	.rmds-wpp-empty-title {
		font-size: 20px;
	}

	.rmds-wpp-empty-actions .button {
		display: block;
		width: 100%;
		max-width: 300px;
		margin: 10px auto;
	}

	/* Genesis responsive adjustments */
	.genesis .rmds-wpp-empty-state-entry .entry-title {
		font-size: 22px;
	}
}