/**
 * Theme Name:     Woodmart Child
 * Author:         XTemos
 * Template:       woodmart
 * Text Domain:	   woodmart-child
 * Description:    ThemeForest Premium Theme
 */

/* =============================================================================
   AADL Filter Shortcode Button
   ============================================================================= */

.wbhh-aadl-filter-wrap {
	display: inline-flex;
	align-items: center;
	margin-bottom: 12px;
}

.wbhh-aadl-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	border: 2px solid #005baa !important;
	border-radius: 4px !important;
	background: transparent !important;
	color: #005baa !important;
	text-decoration: none !important;
	transition: background 0.2s, color 0.2s !important;
	white-space: nowrap;
}

.wbhh-aadl-filter-btn:hover {
	background: #005baa !important;
	color: #fff !important;
}

.wbhh-aadl-filter-btn--active {
	background: #005baa !important;
	color: #fff !important;
}

.wbhh-aadl-filter-btn--active:hover {
	background: #003f7a !important;
	border-color: #003f7a !important;
	color: #fff !important;
}

/* =============================================================================
   AADL Application Form
   ============================================================================= */

.wbhh-aadl-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.wbhh-form-title {
	font-size: 1.5rem;
	margin-bottom: 8px;
}

.wbhh-form-intro {
	color: #555;
	margin-bottom: 24px;
}

.wbhh-aadl-form .wbhh-form-row {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
}

.wbhh-aadl-form label {
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.92rem;
}

.wbhh-aadl-form input[type="text"],
.wbhh-aadl-form input[type="email"],
.wbhh-aadl-form input[type="tel"],
.wbhh-aadl-form input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95rem;
	transition: border-color 0.2s;
}

.wbhh-aadl-form input:focus {
	outline: none;
	border-color: #005baa;
	box-shadow: 0 0 0 2px rgba(0, 91, 170, 0.15);
}

.wbhh-aadl-form select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95rem;
	background-color: #fff;
	transition: border-color 0.2s;
	appearance: auto;
}

.wbhh-aadl-form select:focus {
	outline: none;
	border-color: #005baa;
	box-shadow: 0 0 0 2px rgba(0, 91, 170, 0.15);
}

.wbhh-aadl-form input[type="file"] {
	padding: 8px 0;
	font-size: 0.9rem;
}

.wbhh-aadl-form small {
	margin-top: 4px;
	color: #777;
	font-size: 0.82rem;
}

.wbhh-aadl-form .required {
	color: #c0392b;
}

.wbhh-optional {
	color: #888;
	font-weight: 400;
	font-size: 0.85rem;
}

.wbhh-submit-btn {
	background-color: #005baa !important;
	color: #fff !important;
	padding: 12px 28px !important;
	font-size: 1rem !important;
	border: none !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	transition: background-color 0.2s !important;
}

.wbhh-submit-btn:hover {
	background-color: #003f7a !important;
}

.wbhh-login-link {
	margin-top: 16px;
	font-size: 0.9rem;
	color: #555;
	text-align: center;
}

/* Registration — Account Type Toggle */
.wbhh-account-type-toggle {
	display: flex;
	gap: 12px;
	margin-top: 4px;
}

.wbhh-type-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 2px solid #dee2e6;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.95rem;
	transition: border-color 0.2s, background 0.2s;
	user-select: none;
}

.wbhh-type-option:has(input:checked) {
	border-color: #005baa;
	background: #e8f0fb;
	color: #005baa;
}

.wbhh-type-option input[type="radio"] {
	accent-color: #005baa;
}

#wbhh-aadl-reg-fields {
	border-left: 3px solid #005baa;
	padding-left: 16px;
	margin-top: 8px;
}

.wbhh-aadl-reg-notice {
	font-size: 0.88rem;
	color: #555;
	margin-bottom: 12px;
}

/* AADL Access Buttons */
.wbhh-aadl-btn--apply {
	background-color: #005baa !important;
	color: #fff !important;
	border-color: #005baa !important;
}

.wbhh-aadl-btn--apply:hover {
	background-color: #003f7a !important;
	color: #fff !important;
	border-color: #003f7a !important;
}

.wbhh-aadl-apply-single {
	display: block;
	margin-top: 10px;
	text-align: center;
}

.wbhh-aadl-btn--disabled {
	background-color: #e9ecef !important;
	color: #6c757d !important;
	border-color: #dee2e6 !important;
	cursor: not-allowed !important;
	pointer-events: none;
	box-shadow: none !important;
}

/* Single product — disable actual Add to Cart + Buy Now buttons for restricted users */
.wbhh-aadl-restricted .single_add_to_cart_button,
.wbhh-aadl-restricted .wc-variation-selection-needed,
.wbhh-aadl-restricted a.wc-buy-now {
	pointer-events: none !important;
	opacity: 0.45 !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
}

/* My Account — AADL Tab */
.wbhh-aadl-account-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
}

.wbhh-aadl-account-table th,
.wbhh-aadl-account-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e9ecef;
	text-align: left;
	font-size: 0.93rem;
}

.wbhh-aadl-account-table th {
	width: 40%;
	font-weight: 600;
	color: #444;
}

.wbhh-aadl-file-list {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
}

.wbhh-aadl-file-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	margin-bottom: 8px;
	background: #f8f9fa;
}

.wbhh-file-icon {
	font-size: 1.2rem;
	line-height: 1;
}

.wbhh-file-name {
	flex: 1;
	font-size: 0.92rem;
	color: #333;
}

.wbhh-file-view-btn {
	font-size: 0.85rem !important;
	padding: 5px 14px !important;
	background-color: #005baa !important;
	color: #fff !important;
	border-color: #005baa !important;
}

.wbhh-file-view-btn:hover {
	background-color: #003f7a !important;
	border-color: #003f7a !important;
}

/* Notices */
.wbhh-aadl-notice {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 20px;
	border-left: 4px solid;
}
.wbhh-notice-success { background: #d1e7dd; border-color: #0a3622; color: #0a3622; }
.wbhh-notice-pending  { background: #fff3cd; border-color: #856404; color: #856404; }
.wbhh-notice-error    { background: #f8d7da; border-color: #58151c; color: #58151c; }
.wbhh-notice-info     { background: #cfe2ff; border-color: #084298; color: #084298; }
