/**
 * WooCommerce Customizations CSS
 *
 * Styles for dojo product functionality
 *
 * @package Karate_Club_Manager
 * @since 1.0.0
 */

/* Shop/Archive Page - Dojo Product Button Wrapper */
.kcm-dojo-product-button-wrapper {
	text-align: center !important;
	width: 100%;
	display: block !important;
}

/* Shop/Archive Page - Dojo Product Button */
.kcm-dojo-product-button {
	display: inline-block !important;
	text-align: center !important;
	margin: 0 !important;
}

/* Product Notices */
.kcm-product-notice {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 15px;
	margin: 20px 0;
	border-radius: 4px;
}

.kcm-product-notice strong {
	display: block;
	margin-bottom: 5px;
}

.kcm-product-notice a {
	color: #491217;
	text-decoration: underline;
}

.kcm-product-notice a:hover {
	color: #2a0a0d;
}

/* Member Selector */
.kcm-member-selector {
	margin: 20px 0;
	padding: 15px;
	background: #F4F4F2;
	border: 1px solid #D1D5DB;
	border-radius: 4px;
}

.kcm-member-selector label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
	font-size: 1em;
}

.kcm-member-selector .required {
	color: #B11226;
}

.kcm-member-description {
	font-size: 0.9em;
	color: #6B7280;
	margin: 0 0 10px 0;
}

.kcm-member-selector select {
	width: 100%;
	padding: 10px;
	font-size: 1em;
	border: 1px solid #D1D5DB;
	border-radius: 4px;
	background-color: #fff;
}

.kcm-member-selector select:focus {
	outline: none;
	border-color: #B11226;
	box-shadow: 0 0 0 1px #B11226;
}

/* Validation Error */
.kcm-member-selector.error select {
	border-color: #B11226;
}

.kcm-member-error {
	color: #B11226;
	font-size: 0.9em;
	margin-top: 5px;
	display: none;
}

.kcm-member-selector.error .kcm-member-error {
	display: block;
}

/* Order Member Info */
.kcm-order-member-info {
	margin-top: 5px;
	padding: 5px 0;
	font-size: 0.95em;
	color: #6B7280;
}

.kcm-order-member-info strong {
	color: #111827;
}

/* Cart Member Info */
.woocommerce-cart-form .kcm-order-member-info {
	margin-top: 8px;
}

/* Checkout Member Info */
.woocommerce-checkout .kcm-order-member-info {
	margin-top: 5px;
}

/* Hide Add to Cart for Dojo Products when not eligible */
.kcm-product-notice ~ .cart,
.kcm-product-notice ~ .single_add_to_cart_button {
	display: none !important;
}

/* Hide Add to Cart for Login Required */
.kcm-login-required .button,
.kcm-product-notice + .button {
	display: none !important;
}

/* Hide Add to Cart for No Members */
.kcm-no-members .button,
.kcm-no-members + .button {
	display: none !important;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.kcm-member-selector {
		padding: 12px;
		margin: 15px 0;
	}

	.kcm-member-selector select {
		font-size: 16px; /* Prevents zoom on iOS */
	}

	.kcm-product-notice {
		padding: 12px;
		margin: 15px 0;
	}
}

/* Email Styles (inline will override but these are defaults) */
.kcm-order-member-info-email {
	margin: 10px 0;
	padding: 10px;
	background: #F4F4F2;
	border-left: 3px solid #B11226;
}
