/**
 * Aviary Hub — seller profiles, store list, messaging
 * Modern marketplace look over Dokan’s dated purple UI.
 */

/*--------------------------------------------------------------
0. Kill Dokan purple / yellow everywhere we can reach
--------------------------------------------------------------*/
.dokan-btn-theme,
.dokan-btn-theme:visited,
.dokan-dashboard .dokan-btn-theme,
input.dokan-btn-theme,
a.dokan-btn-theme,
.search-store-products.dokan-btn-theme,
.dokan-btn.dokan-btn-theme {
	background: var(--aviary-green) !important;
	background-color: var(--aviary-green) !important;
	border-color: var(--aviary-green) !important;
	color: #fff !important;
	box-shadow: none !important;
}

.dokan-btn-theme:hover,
.dokan-btn-theme:focus,
.search-store-products.dokan-btn-theme:hover {
	background: var(--aviary-green-dark) !important;
	border-color: var(--aviary-green-dark) !important;
	color: #fff !important;
}

.dokan-btn-round.dokan-btn-theme,
span.dokan-btn-theme.dokan-btn-round {
	background: var(--aviary-green) !important;
	color: #fff !important;
	border: none !important;
}

/* Common Dokan purple tokens */
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active,
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover,
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a:hover,
.dokan-product-listing .dokan-product-listing-area table.product-listing-table td.post-status label.product-status-status-published,
.dokan-orders-content .dokan-orders-area .dokan-order-filter-daterange .dokan-right {
	background: var(--aviary-green) !important;
}

/*--------------------------------------------------------------
1. Store listing page — modern profile cards
--------------------------------------------------------------*/
body.dokan-store-list .page__title,
body.page-slug-store-listing .page__title,
.dokan-seller-listing .page__title {
	text-align: left;
	font-size: clamp(1.6rem, 2.5vw, 2rem);
	margin-bottom: 0.35rem;
}

/* Soft intro under title when JS adds it */
.aviary-profiles-intro {
	color: var(--aviary-muted);
	margin: 0 0 1.5rem;
	max-width: 40rem;
	font-size: 1rem;
	line-height: 1.45;
}

#dokan-seller-listing-wrap,
.dokan-seller-listing-wrap,
ul.dokan-seller-wrap {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

li.dokan-single-seller {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

li.dokan-single-seller .store-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(20, 24, 31, 0.08);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 2px rgba(20, 24, 31, 0.04);
}

li.dokan-single-seller .store-wrapper:hover {
	border-color: rgba(27, 138, 74, 0.35);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(20, 24, 31, 0.08);
}

li.dokan-single-seller .store-header,
li.dokan-single-seller .store-banner {
	margin: 0;
	padding: 0;
	line-height: 0;
}

li.dokan-single-seller .store-banner a {
	display: block;
	position: relative;
	height: 110px;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(27, 138, 74, 0.85), rgba(15, 35, 20, 0.92)),
		#1b8a4a;
}

li.dokan-single-seller .store-banner img {
	width: 100%;
	height: 110px !important;
	object-fit: cover;
	opacity: 0.35;
	filter: saturate(0.7);
}

/* Hide default Dokan banner noise — keep gradient if default asset */
li.dokan-single-seller .store-banner img[src*='default-store-banner'],
li.dokan-single-seller .store-banner img[data-src*='default-store-banner'] {
	opacity: 0 !important;
}

li.dokan-single-seller .store-content {
	padding: 0 16px 8px;
	margin-top: -36px;
	position: relative;
	z-index: 1;
}

li.dokan-single-seller .store-data h2 {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.25;
}

li.dokan-single-seller .store-data h2 a {
	color: var(--aviary-ink) !important;
	text-decoration: none !important;
}

li.dokan-single-seller .store-data h2 a:hover {
	color: var(--aviary-green) !important;
}

li.dokan-single-seller .store-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px 16px;
	margin-top: auto;
	border-top: none;
	background: transparent;
}

li.dokan-single-seller .seller-avatar {
	margin: 0;
}

li.dokan-single-seller .seller-avatar a {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #fff;
	box-shadow: 0 2px 10px rgba(20, 24, 31, 0.12);
	background: #e8f5ee;
}

li.dokan-single-seller .seller-avatar img {
	width: 64px !important;
	height: 64px !important;
	object-fit: cover;
	display: block;
}

/* Replace purple arrow with a proper “View profile” chip via JS + style the link */
li.dokan-single-seller .store-footer > a[title],
li.dokan-single-seller .store-footer > a.aviary-view-profile {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 14px !important;
	border-radius: 999px !important;
	background: var(--aviary-green) !important;
	color: #fff !important;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	line-height: 1.2;
}

li.dokan-single-seller .store-footer > a[title] .dashicons,
li.dokan-single-seller .store-footer > a .dokan-btn-round {
	display: none !important;
}

li.dokan-single-seller .aviary-seller-badge {
	display: inline-block;
	margin-top: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--aviary-green-dark);
	background: rgba(27, 138, 74, 0.12);
	padding: 3px 8px;
	border-radius: 999px;
}

/* Hide empty / test / untitled seller cards */
li.dokan-single-seller.aviary-hide-store,
li.dokan-single-seller:has(a[href*='/store/test-']) {
	display: none !important;
}

li.dokan-single-seller:has(h2 a:empty) {
	display: none !important;
}

/*--------------------------------------------------------------
2. Single store / seller profile
--------------------------------------------------------------*/
.dokan-store-wrap {
	gap: 24px;
	margin: 0 0 2rem !important;
}

@media (min-width: 1000px) {
	.dokan-store-wrap.layout-left {
		align-items: flex-start;
	}

	.dokan-store-wrap.layout-left .dokan-store-sidebar {
		flex: 0 0 280px !important;
		max-width: 280px;
		margin-right: 0 !important;
	}
}

.dokan-single-store .profile-frame {
	background: transparent !important;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(20, 24, 31, 0.08);
	box-shadow: 0 8px 28px rgba(20, 24, 31, 0.06);
}

.dokan-single-store .profile-frame .profile-info-box {
	min-height: 220px;
}

.dokan-single-store .profile-frame .profile-info-img {
	width: 100%;
	height: 220px !important;
	object-fit: cover;
	background:
		linear-gradient(135deg, #1b8a4a 0%, #0f2314 100%);
}

.dokan-single-store .profile-frame .profile-info-img[src*='default-store-banner'],
.dokan-single-store .profile-frame .profile-info-img[data-src*='default-store-banner'] {
	opacity: 0.15;
	filter: grayscale(1);
}

.dokan-single-store .profile-info-summery-wrapper {
	background: linear-gradient(
		90deg,
		rgba(15, 35, 20, 0.82) 0%,
		rgba(15, 35, 20, 0.35) 55%,
		rgba(15, 35, 20, 0.1) 100%
	) !important;
}

.dokan-single-store .profile-info-summery {
	width: min(100%, 380px) !important;
	padding: 28px 24px !important;
	box-sizing: border-box;
}

.dokan-single-store .profile-img img,
.dokan-single-store .profile-img-circle img {
	width: 88px !important;
	height: 88px !important;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	background: #fff;
}

.dokan-single-store h1.store-name {
	color: #fff !important;
	font-size: clamp(1.5rem, 3vw, 2rem) !important;
	font-weight: 700 !important;
	margin: 8px 0 6px !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.dokan-single-store .dokan-store-info {
	margin: 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
}

.dokan-single-store .dokan-store-rating i {
	color: #f0c14b;
	margin-right: 4px;
}

.dokan-single-store .aviary-breadcrumb {
	margin: 0 0 6px;
}

.dokan-single-store .aviary-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.75);
}

.dokan-single-store .aviary-breadcrumb a {
	color: rgba(255, 255, 255, 0.85) !important;
}

.dokan-single-store .aviary-breadcrumb li:not(:last-child)::after {
	content: '/';
	margin-left: 6px;
	opacity: 0.55;
}

/* Tabs under profile */
.dokan-store-tabs {
	margin: 0 0 1.25rem;
	border-bottom: 1px solid rgba(20, 24, 31, 0.08);
}

.dokan-store-tabs ul.dokan-list-inline {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dokan-store-tabs ul.dokan-list-inline li a {
	display: inline-block;
	padding: 10px 14px;
	border-radius: 999px 999px 0 0;
	font-weight: 700;
	color: var(--aviary-muted) !important;
	text-decoration: none !important;
}

.dokan-store-tabs ul.dokan-list-inline li a:hover,
.dokan-store-tabs ul.dokan-list-inline li.active a,
.dokan-store-tabs ul.dokan-list-inline li a[aria-current='page'] {
	color: var(--aviary-green-dark) !important;
	background: rgba(27, 138, 74, 0.1);
}

/* Search / sort on store */
.dokan-store-products-filter-area {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 1.25rem !important;
	padding: 14px 16px;
	background: #f6f8f6;
	border-radius: 14px;
	border: 1px solid rgba(20, 24, 31, 0.06);
}

.dokan-store-products-filter-area .product-name-search {
	float: none !important;
	height: 42px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(20, 24, 31, 0.12) !important;
	padding: 0 16px !important;
	width: min(100%, 280px) !important;
	background: #fff !important;
}

.dokan-store-products-filter-area .search-store-products {
	float: none !important;
	height: 42px !important;
	line-height: 42px !important;
	padding: 0 20px !important;
	border-radius: 999px !important;
	border: none !important;
	font-weight: 700;
}

.dokan-store-products-filter-area .orderby-search {
	float: none !important;
	height: 42px !important;
	border-radius: 10px !important;
	border: 1px solid rgba(20, 24, 31, 0.12) !important;
	background: #fff !important;
	margin-left: auto;
}

.dokan-store-products-filter-area form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	width: 100%;
}

/* Empty store state */
.dokan-single-store .dokan-info,
.dokan-single-store p.dokan-info {
	text-align: center;
	padding: 2.5rem 1.25rem;
	background: #f6f8f6;
	border-radius: 14px;
	border: 1px dashed rgba(27, 138, 74, 0.35);
	color: var(--aviary-muted);
	font-size: 1rem;
}

/* Sidebar contact form → modern message card */
.dokan-store-sidebar .dokan-store-widget {
	background: #fff;
	border: 1px solid rgba(20, 24, 31, 0.08);
	border-radius: 16px;
	padding: 18px 18px 16px;
	margin-bottom: 16px;
	box-shadow: 0 2px 10px rgba(20, 24, 31, 0.04);
}

.dokan-store-sidebar .widget-title {
	font-size: 1rem !important;
	font-weight: 700 !important;
	margin: 0 0 12px !important;
	color: var(--aviary-ink) !important;
	border: none !important;
	padding: 0 !important;
}

.dokan-store-sidebar .dokan-form-control,
.dokan-store-sidebar input.dokan-form-control,
.dokan-store-sidebar textarea.dokan-form-control {
	width: 100% !important;
	border-radius: 10px !important;
	border: 1px solid rgba(20, 24, 31, 0.12) !important;
	padding: 10px 12px !important;
	background: #fff !important;
	box-shadow: none !important;
}

.dokan-store-sidebar textarea.dokan-form-control {
	min-height: 120px;
	resize: vertical;
}

.dokan-store-sidebar .seller-form ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dokan-store-sidebar .seller-form li {
	margin: 0 0 10px;
}

.dokan-store-sidebar input[type='submit'].dokan-btn,
.dokan-store-sidebar .dokan-btn-theme {
	width: 100%;
	float: none !important;
	border-radius: 999px !important;
	padding: 12px 18px !important;
	font-weight: 700 !important;
	background: var(--aviary-orange) !important;
	border-color: var(--aviary-orange) !important;
	margin-top: 4px;
}

.dokan-store-sidebar input[type='submit'].dokan-btn:hover {
	background: var(--aviary-orange-dark) !important;
}

/* Hide empty category widget (common on private sellers) */
.dokan-store-menu:has(ul:empty),
.dokan-store-menu:has(.cat-drop-stack ul:empty) {
	display: none !important;
}

/*--------------------------------------------------------------
3. Advert page — seller type + message CTA polish
--------------------------------------------------------------*/
.aviary-seller-classification {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px !important;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(27, 138, 74, 0.1);
	color: var(--aviary-green-dark);
	font-size: 0.85rem;
	font-weight: 600;
}

.aviary-seller-classification strong {
	font-weight: 700;
	color: var(--aviary-ink);
}

.aviary-message-seller {
	margin: 0 0 14px !important;
}

.aviary-message-seller .button,
.aviary-message-seller a.button {
	min-width: 180px;
}

.aviary-asking-price-notice {
	background: #f6f8f6 !important;
	border: 1px solid rgba(20, 24, 31, 0.08) !important;
	border-radius: 12px !important;
	color: var(--aviary-muted);
	line-height: 1.45;
}

/*--------------------------------------------------------------
4. Messages page (logged-out wall + inbox chrome)
--------------------------------------------------------------*/
body.page-id-486 .site-content,
body.page-slug-messages .site-content {
	padding-top: 3rem;
	padding-bottom: 4rem;
}

body.page-id-486 .page__title,
body.page-slug-messages .page__title {
	text-align: center;
	font-size: clamp(1.6rem, 2.5vw, 2rem);
	margin-bottom: 0.5rem;
}

body.page-id-486 .page__text,
body.page-slug-messages .page__text {
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
}

/* Wrap login nudge into a card look */
body.page-id-486 .page__text > p:only-child,
body.page-slug-messages .page__text > p:only-child,
.aviary-messages-gate {
	background: #fff;
	border: 1px solid rgba(20, 24, 31, 0.08);
	border-radius: 18px;
	padding: 2rem 1.5rem;
	box-shadow: 0 10px 30px rgba(20, 24, 31, 0.06);
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--aviary-muted);
}

body.page-id-486 .page__text a,
body.page-slug-messages .page__text a,
.aviary-messages-gate a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 14px;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--aviary-orange);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}

body.page-id-486 .page__text a:hover,
.aviary-messages-gate a:hover {
	background: var(--aviary-orange-dark);
}

.aviary-messages-gate__title {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--aviary-ink);
	margin-bottom: 8px;
}

.aviary-messages-gate__hint {
	display: block;
	margin-bottom: 4px;
	font-size: 0.95rem;
}

/* If a real inbox plugin is active later — soften common chrome */
.fep-wrapper,
.better-messages-wrapper,
.bp-messages-content {
	border-radius: 16px;
	border: 1px solid rgba(20, 24, 31, 0.08);
	overflow: hidden;
	background: #fff;
}

/*--------------------------------------------------------------
5. Mobile
--------------------------------------------------------------*/
@media only screen and (max-width: 47.99em) {
	.dokan-single-store .profile-info-summery-wrapper {
		position: relative !important;
		background: #0f2314 !important;
	}

	.dokan-single-store .profile-info-summery {
		width: 100% !important;
		padding: 20px 16px !important;
	}

	.dokan-single-store .profile-frame .profile-info-img {
		height: 140px !important;
	}

	.dokan-store-products-filter-area .orderby-search {
		margin-left: 0;
		width: 100%;
	}

	.dokan-store-products-filter-area .product-name-search {
		width: 100% !important;
	}
}
