/*
 * Front-end shortcode styles — [logowanie_rejestracja] and [panel_uzytkownika].
 *
 * Scoped to just the components these shortcodes render, not a full page:
 * per the plugin's theme architecture, the site header/footer/branding
 * chrome is the drevex child theme's job (Motyw = branding only), so
 * neither shortcode reproduces the header/nav/footer shown around them in
 * the Claude Design mockups — only the card / panel content itself, 1:1
 * with those files' own colors, spacing, and type.
 */

.drevex-auth-wrap,
.drevex-userpanel-wrap {
	font-family: 'Inter', system-ui, sans-serif;
	color: #2A2A2A;
	-webkit-font-smoothing: antialiased;
}

.drevex-auth-wrap a,
.drevex-userpanel-wrap a {
	color: #B8762E;
	text-decoration: none;
}

.drevex-auth-wrap a:hover,
.drevex-userpanel-wrap a:hover {
	color: #8A5420;
}

.drevex-auth-wrap input,
.drevex-auth-wrap button,
.drevex-auth-wrap select,
.drevex-auth-wrap textarea,
.drevex-userpanel-wrap input,
.drevex-userpanel-wrap button,
.drevex-userpanel-wrap select,
.drevex-userpanel-wrap textarea {
	font-family: inherit;
}

.drevex-auth-wrap ::placeholder,
.drevex-userpanel-wrap ::placeholder {
	color: #9A948A;
}

input.drevex-fld,
select.drevex-fld,
textarea.drevex-fld {
	width: 100%;
	height: 46px;
	border: 1px solid #EDE8E0;
	border-radius: 6px;
	background: #FAF7F2;
	padding: 0 14px;
	font-size: 14.5px;
	color: #2A2A2A;
	outline: none;
	transition: .12s;
}

input.drevex-fld:focus,
select.drevex-fld:focus,
textarea.drevex-fld:focus {
	border: 1px solid #B8762E;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(184, 118, 46, 0.14);
}

textarea.drevex-fld {
	height: auto;
	padding: 12px 14px;
	line-height: 1.55;
	resize: vertical;
}

.drevex-field-label {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 6px;
}

.drevex-field-label .req {
	color: #B8762E;
}

.drevex-auth-already-in,
.drevex-auth-login-required {
	max-width: 480px;
	margin: 40px auto;
	padding: 20px;
	background: #fff;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	text-align: center;
	font-size: 14.5px;
}

/* ── Logowanie i Rejestracja ─────────────────────────────────────────────── */

.drevex-auth-wrap {
	display: flex;
	justify-content: center;
	padding: 40px 16px 64px;
}

.drevex-auth-card {
	width: 100%;
	max-width: 480px;
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	box-shadow: 0 6px 22px rgba(180, 120, 60, 0.08);
	overflow: hidden;
}

.drevex-auth-tabs {
	display: flex;
	border-bottom: 1px solid #EDE8E0;
}

.drevex-auth-tab {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 56px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: #9A948A !important;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: .12s;
	text-decoration: none !important;
}

.drevex-auth-tab.is-active {
	font-weight: 700;
	color: #B8762E !important;
	border-bottom-color: #B8762E;
}

.drevex-auth-body {
	padding: 32px;
}

.drevex-auth-google-btn {
	width: 100%;
	height: 48px;
	border: 1px solid #EDE8E0;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: #2A2A2A !important;
	text-decoration: none !important;
}

.drevex-auth-google-btn:hover {
	border-color: #B8762E;
	background: #FBF6EE;
}

.drevex-auth-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0;
}

.drevex-auth-divider span:first-child,
.drevex-auth-divider span:last-child {
	flex: 1;
	height: 1px;
	background: #EDE8E0;
}

.drevex-auth-divider span:nth-child(2) {
	font-size: 12.5px;
	color: #9A948A;
	white-space: nowrap;
}

.drevex-auth-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.drevex-auth-password-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.drevex-auth-password-wrap .drevex-fld {
	padding-right: 44px;
}

.drevex-auth-password-toggle {
	position: absolute;
	right: 8px;
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	cursor: pointer;
	color: #9A948A;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: none;
}

.drevex-auth-password-toggle:hover,
.drevex-auth-password-toggle:focus{
	background: none;
	color: #9A948A;
}

.drevex-auth-password-toggle .drevex-eye-icon {
	display: flex;
}

.drevex-auth-password-toggle .drevex-eye-icon--closed {
	display: none;
}

.drevex-auth-password-toggle.is-revealed .drevex-eye-icon--open {
	display: none;
}

.drevex-auth-password-toggle.is-revealed .drevex-eye-icon--closed {
	display: flex;
}


.drevex-auth-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.drevex-auth-remember {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13.5px;
	color: #3A3A3A;
}

.drevex-auth-remember input {
	width: 17px;
	height: 17px;
	accent-color: #B8762E;
}

.drevex-auth-forgot {
	font-size: 13.5px;
	color: #6B6B6B !important;
	text-decoration: none !important;
	font-weight: 500;
}

.drevex-auth-forgot:hover {
	color: #B8762E !important;
}

.drevex-auth-submit {
	width: 100%;
	height: 56px;
	border: none;
	background: #B8762E;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
}

.drevex-auth-submit:hover {
	background: #8A5420;
}

.drevex-auth-switch {
	text-align: center;
	margin: 2px 0 0;
	font-size: 13px;
	color: #9A948A;
}

.drevex-auth-switch a{
	text-decoration: none !important;
}

.drevex-auth-account-pills {
	display: flex;
	gap: 10px;
}

.drevex-auth-pill {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 46px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 600;
	transition: .12s;
	border: 1px solid #D8D1C6;
	background: #fff;
	color: #6B6B6B;
	text-align: center;
}

.drevex-auth-pill.is-active {
	border-color: #B8762E;
	background: #B8762E;
	color: #fff;
}

.drevex-auth-strength {
	display: flex;
	gap: 6px;
	margin-top: 10px;
}

.drevex-auth-strength span {
	flex: 1;
	height: 5px;
	border-radius: 3px;
	background: #EDE8E0;
}

.drevex-auth-strength span.is-filled {
	background: #B8762E;
}

.drevex-auth-strength-label {
	font-size: 12px;
	color: #9A948A;
	margin-top: 6px;
}

.drevex-auth-turnstile-wrap {
	min-height: 65px;
}

.drevex-auth-consents {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.drevex-auth-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #3A3A3A;
	line-height: 1.4;
}

.drevex-auth-consent input {
	flex: none;
	width: 19px;
	height: 19px;
	margin-top: 1px;
	accent-color: #B8762E;
}

.drevex-auth-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px 4px;
	text-align: center;
}

.drevex-auth-success-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #E6F2EB;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.drevex-auth-success h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.drevex-auth-success p {
	margin: 12px 0 0;
	font-size: 14.5px;
	color: #6B6B6B;
	line-height: 1.55;
}

.drevex-auth-success .drevex-auth-submit {
	width: auto;
	height: 48px;
	display: inline-flex;
	align-items: center;
	padding: 0 24px;
	margin-top: 24px;
}

.drevex-auth-alert {
	margin-bottom: 18px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
}

.drevex-auth-alert.is-error {
	background: #FBE8E8;
	border: 1px solid #F1C6C0;
	color: #9C3B2E;
}

.drevex-auth-alert.is-success {
	background: #E6F2EB;
	border: 1px solid #BEDDC9;
	color: #1F5C3B;
}

/* ── Panel użytkownika ────────────────────────────────────────────────────── */

.drevex-userpanel-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 0 40px;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 28px;
	align-items: start;
}


@media (max-width: 1024px) {
	.drevex-search-widget-wrap{
		display: flex;
		align-items: center;
		flex-flow: column nowrap;
	}

	.drevex-search-widget{
		max-width: 900px;
	}
}

@media (max-width: 780px) {
	.drevex-search-widget-wrap{
		display: flex;
		align-items: center;
		flex-flow: column nowrap;
	}

	.drevex-search-widget{
		max-width: 600px;
	}

	.drevex-userpanel-wrap {
		grid-template-columns: 1fr;
	}
	
	.drevex-userpanel-card{
		max-width: 100% !important;
	}
}

.drevex-userpanel-sidebar {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	padding: 16px;
	box-shadow: 0 2px 10px rgba(180, 120, 60, 0.05);
}

.drevex-userpanel-identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 12px 8px 18px;
}

.drevex-userpanel-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, #E6D3B4, #C9A876);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	color: #7A5A2E;
	object-fit: cover;
}

.drevex-userpanel-identity-name {
	font-size: 16px;
	font-weight: 700;
	margin-top: 4px;
}

.drevex-userpanel-identity-type {
	font-size: 12.5px;
	color: #6B6B6B;
}

.drevex-userpanel-identity-since {
	font-size: 12px;
	color: #9A948A;
}

.drevex-userpanel-divider {
	height: 1px;
	background: #EDE8E0;
	margin: 0 -4px 12px;
}

.drevex-userpanel-nav {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.drevex-userpanel-nav-item {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	text-align: left;
	padding: 11px 12px;
	border: none;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 500;
	color: #3A3A3A !important;
	background: transparent;
	cursor: pointer;
	text-decoration: none !important;
}

.drevex-userpanel-nav-item.is-active {
	font-weight: 700;
	color: #B8762E !important;
	background: #FDF3E7 !important;
}

.drevex-userpanel-nav-item.is-logout {
	color: #6B6B6B;
}

.drevex-userpanel-nav-item.is-logout:hover {
	color: #DC2626;
}

.drevex-userpanel-nav-badge {
	margin-left: auto;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #DC2626;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.drevex-userpanel-content h1 {
	margin: 0 0 22px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.drevex-userpanel-card {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	padding: 32px;
	box-shadow: 0 2px 10px rgba(180, 120, 60, 0.05);
	max-width: 640px;
}

.drevex-userpanel-card + .drevex-userpanel-card {
	margin-top: 22px;
}

.drevex-userpanel-card h2 {
	margin: 0 0 20px;
	font-size: 17px;
	font-weight: 700;
}

.drevex-userpanel-avatar-row {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 26px;
}

.drevex-userpanel-avatar-lg {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, #E6D3B4, #C9A876);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
	color: #7A5A2E;
	object-fit: cover;
}

.drevex-userpanel-avatar-preview {
	position: relative;
	flex: none;
	display: inline-flex;
}

.drevex-userpanel-avatar-preview img[data-avatar-preview-img] {
	display: none;
}

.drevex-userpanel-avatar-preview.has-image img[data-avatar-preview-img] {
	display: flex;
}

.drevex-userpanel-avatar-preview.has-image span[data-avatar-preview-initials] {
	display: none;
}

.drevex-userpanel-avatar-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
}

.drevex-userpanel-avatar-filename {
	font-size: 12.5px;
	color: #6B6B6B;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.drevex-userpanel-avatar-remove {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #6B6B6B;
	cursor: pointer;
}

.drevex-userpanel-avatar-remove:hover {
	color: #DC2626;
}

.drevex-userpanel-avatar-remove input {
	accent-color: #DC2626;
}

.drevex-userpanel-avatar-upload {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 18px;
	border: 1px solid #D8D1C6;
	background: #fff;
	color: #2A2A2A;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: .12s;
}

.drevex-userpanel-avatar-upload:hover {
	border-color: #B8762E;
	color: #B8762E;
}

.drevex-userpanel-avatar-upload input[type="file"] {
	display: none;
}

.drevex-userpanel-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.drevex-userpanel-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 480px) {
	.drevex-userpanel-grid-2 {
		grid-template-columns: 1fr;
	}

	.drevex-search-widget{
		margin-left: 20px;
		margin-right: 20px;
	}

	.drevex-listing-wrap{
		padding: 32px 0 64px !important;
	}

	.drevex-auth-wrap{
		padding: 40px 0 64px !important;
	}

	.drevex-suggestion-wrap{
		padding: 56px 0 64px !important;
	}
}

.drevex-userpanel-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
}

.drevex-userpanel-save-btn {
	height: 48px;
	padding: 0 26px;
	border: none;
	background: #B8762E;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
}

.drevex-userpanel-save-btn:hover {
	background: #8A5420;
}

.drevex-userpanel-saved {
	font-size: 13px;
	font-weight: 600;
	color: #2A7D4F;
}

.drevex-userpanel-hint {
	font-size: 12.5px;
	color: #9A948A;
	margin: -8px 0 0;
}

/* [link_konta] — matches the "Zaloguj się" header button in Drevex.dc.html */
.drevex-auth-status-link {
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #EDE8E0;
	background: #FFFFFF;
	color: #2A2A2A;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 18px;
	max-height: 38px;
	border-radius: 6px;
	text-decoration: none;
	transition: border-color .12s, color .12s;
}

.drevex-auth-status-link:hover {
	border-color: #B8762E;
	color: #B8762E;
}

/* [link_konta] — account menu (logged-in state), matches the header user
   menu in Panel użytkownika.dc.html */
.drevex-account-menu {
	position: relative;
	display: inline-block;
}

.drevex-account-menu-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 6px 4px 4px;
	border-radius: 999px;
	transition: background .12s;
	box-shadow: none !important;
}

.drevex-account-menu-trigger:hover,
.drevex-account-menu-trigger:focus {
	background: #FAF7F2;
}

.drevex-account-menu-avatar {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #E6D3B4, #C9A876);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13.5px;
	font-weight: 700;
	color: #7A5A2E;
	object-fit: cover;
}

.drevex-account-menu-name {
	font-size: 14.5px;
	font-weight: 600;
	color: #2A2A2A;
	white-space: nowrap;
}

.drevex-account-menu-chevron {
	color: #6B6B6B;
	transition: transform .15s;
	flex: none;
}

.drevex-account-menu.is-open .drevex-account-menu-chevron {
	transform: rotate(180deg);
}

.drevex-account-menu-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 8px;
	z-index: 60;
	width: 210px;
	background: #fff;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	padding: 6px;
}

.drevex-account-menu.is-open .drevex-account-menu-dropdown {
	display: block;
}

.drevex-account-menu-item {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px 14px;
	font-size: 14px;
	color: #2A2A2A !important;
	border-radius: 6px;
	text-decoration: none !important;
	box-sizing: border-box;
}

.drevex-account-menu-item:hover {
	background: #FAF7F2;
}

.drevex-account-menu-item.is-logout {
	color: #6B6B6B !important;
}

.drevex-account-menu-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 4px;
	border-radius: 999px;
	background: #DC2626;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}

.drevex-account-menu-item.is-logout:hover {
	color: #DC2626 !important;
}

.drevex-account-menu-divider {
	height: 1px;
	background: #EDE8E0;
	margin: 6px 0;
}

/* ── [dodaj_ogloszenie] — "Formularz dodawania.dc.html" ──────────────────── */

.drevex-listing-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 32px 16px 64px;
}

.drevex-listing-header {
	text-align: center;
	padding: 0 16px 6px;
}

.drevex-listing-header h1 {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #2A2A2A;
}

.drevex-listing-header p {
	margin: 10px 0 0;
	font-size: 15px;
	color: #6B6B6B;
}

.drevex-listing-content {
	padding-top: 22px;
}

.drevex-listing-form-card {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	padding: 32px;
	box-shadow: 0 2px 14px rgba(180, 120, 60, 0.06);
}

.drevex-listing-section-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 18px;
	color: #2A2A2A;
}

.drevex-listing-form-card > .drevex-listing-section-title:first-child {
	margin-top: 0;
}

.drevex-listing-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.drevex-listing-divider {
	height: 1px;
	background: #EDE8E0;
	margin: 28px 0;
}

.drevex-listing-field-hint {
	font-weight: 500;
	color: #9A948A;
}

.drevex-listing-char-count {
	text-align: right;
	font-size: 12px;
	color: #9A948A;
	margin-top: 5px;
}

/* Category / subcategory */

.drevex-listing-cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.drevex-listing-select-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.drevex-listing-select-wrap select.drevex-fld {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	padding-right: 38px;
}

.drevex-listing-select-chevron {
	position: absolute;
	right: 14px;
	pointer-events: none;
}

/* Condition pills */

.drevex-listing-condition-pills {
	display: flex;
	gap: 10px;
}

.drevex-listing-condition-pill {
	flex: 1;
	height: 46px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 600;
	transition: .12s;
	border: 1px solid #D8D1C6;
	background: #fff;
	color: #6B6B6B;
}

.drevex-listing-condition-pill:hover {
	background: #fff;
	color: #6B6B6B;
	border: 1px solid #D8D1C6;
}

.drevex-listing-condition-pill.is-active.is-new {
	border-color: #2A7D4F;
	background: #2A7D4F;
	color: #fff;
}

.drevex-listing-condition-pill.is-active:not(.is-new) {
	border-color: #B8762E;
	background: #B8762E;
	color: #fff;
}

/* Price */

.drevex-listing-price-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

input.drevex-listing-price-input {
	padding-right: 44px;
}

.drevex-listing-price-suffix {
	position: absolute;
	right: 14px;
	font-size: 14.5px;
	font-weight: 600;
	color: #6B6B6B;
	pointer-events: none;
}

/* Custom checkbox (shared: negocjacja, telefon, regulamin, RODO) */

.drevex-custom-checkbox {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	text-align: left;
}

.drevex-custom-checkbox input {
	position: absolute;
	opacity: 0;
	width: 19px;
	height: 19px;
	margin: 0;
	cursor: pointer;
}

.drevex-custom-checkbox-box {
	flex: none;
	width: 19px;
	height: 19px;
	border-radius: 5px;
	border: 1.6px solid #D8D1C6;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: .12s;
	margin-top: 1px;
}

.drevex-custom-checkbox input:checked + .drevex-custom-checkbox-box {
	background: #B8762E;
	border-color: #B8762E;
}

.drevex-custom-checkbox-check {
	display: none;
}

.drevex-custom-checkbox input:checked + .drevex-custom-checkbox-box .drevex-custom-checkbox-check {
	display: flex;
}

.drevex-custom-checkbox span:last-child {
	font-size: 14px;
	color: #3A3A3A;
	line-height: 1.4;
}

.drevex-listing-checkbox-row {
	padding-top: 10px;
}

.drevex-listing-consents {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Photos */

.drevex-listing-dropzone {
	position: relative;
	border: 2px dashed #DDD5C8;
	border-radius: 10px;
	padding: 30px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	cursor: pointer;
	background: #FCFAF6;
	transition: .12s;
}

.drevex-listing-dropzone:hover,
.drevex-listing-dropzone.is-dragover {
	border-color: #B8762E;
	background: #FBF6EE;
}

.drevex-listing-dropzone input[type="file"] {
	display: none;
}

.drevex-listing-dropzone-title {
	font-size: 15px;
	font-weight: 600;
	color: #2A2A2A;
}

.drevex-listing-dropzone-hint {
	font-size: 12.5px;
	color: #9A948A;
}

.drevex-listing-photo-order-hint {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: #9A948A;
}

.drevex-listing-photo-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin-top: 10px;
}

.drevex-listing-photo-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	border: 1px solid #EDE8E0;
	background-size: cover;
	background-position: center;
	cursor: grab;
	transition: opacity .12s, outline-color .12s;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.drevex-listing-photo-thumb:active {
	cursor: grabbing;
}

.drevex-listing-photo-thumb.is-dragging {
	opacity: 0.35;
}

.drevex-listing-photo-thumb.is-drop-target {
	outline-color: #B8762E;
}

.drevex-listing-photo-thumb.is-removed {
	display: none;
}

.drevex-listing-photo-remove-checkbox {
	display: none;
}

.drevex-listing-photo-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: rgba(30, 24, 16, .55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	padding: 0;
}

.drevex-listing-photo-remove:hover {
	background: #DC2626;
}

.drevex-listing-photo-featured-badge {
	display: none;
	position: absolute;
	bottom: 4px;
	left: 4px;
	font-size: 10px;
	font-weight: 600;
	color: #fff;
	background: #B8762E;
	padding: 2px 6px;
	border-radius: 4px;
}

.drevex-listing-photo-thumb.is-featured .drevex-listing-photo-featured-badge {
	display: block;
}

.drevex-listing-photo-add {
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	border: 2px dashed #DDD5C8;
	background: #FCFAF6;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #B8762E;
	transition: .12s;
}

.drevex-listing-photo-add:hover {
	border-color: #B8762E;
	background: #FBF6EE;
}

/* Location */

.drevex-listing-icon-field {
	position: relative;
	display: flex;
	align-items: center;
}

.drevex-listing-icon-field-icon {
	position: absolute;
	left: 13px;
	pointer-events: none;
}

input.drevex-listing-icon-input {
	padding-left: 40px;
}

/* Location — searchable city field */

input.drevex-listing-city-input {
	padding-right: 42px;
}

.drevex-listing-city-locate {
	position: absolute;
	right: 6px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .12s;
	padding: 0;
	box-shadow: none;
}

.drevex-listing-city-locate:hover {
	background: none;
}

.drevex-listing-city-locate.is-locating svg {
	animation: drevex-city-locate-spin 0.8s linear infinite;
}

@keyframes drevex-city-locate-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.drevex-listing-city-suggestions {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #EDE8E0;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(42, 34, 20, 0.12);
	max-height: 260px;
	overflow-y: auto;
	display: none;
}

.drevex-listing-city-suggestions.is-open {
	display: block;
}

.drevex-listing-city-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 10px;
	border-radius: 6px;
	font-size: 14px;
	color: #2A2A2A;
	cursor: pointer;
}

.drevex-listing-city-option:hover,
.drevex-listing-city-option.is-active {
	background: #FBF6EE;
}

.drevex-listing-city-option-voiv {
	font-size: 11.5px;
	font-weight: 600;
	color: #B8762E;
	background: #FBF6EE;
	border-radius: 4px;
	padding: 2px 6px;
	flex-shrink: 0;
}

.drevex-listing-city-locate-error {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: #C0392B;
}

/* Contact phone */

.drevex-listing-phone-field {
	position: relative;
	display: flex;
	align-items: center;
}

.drevex-listing-phone-flag {
	position: absolute;
	left: 12px;
	width: 22px;
	height: 15px;
	border-radius: 2px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid #E0D9CD;
	pointer-events: none;
}

.drevex-listing-phone-flag span:first-child {
	flex: 1;
	background: #fff;
}

.drevex-listing-phone-flag span:last-child {
	flex: 1;
	background: #DC143C;
}

.drevex-listing-phone-code {
	position: absolute;
	left: 40px;
	font-size: 14px;
	color: #6B6B6B;
	font-weight: 500;
	pointer-events: none;
}

input.drevex-listing-phone-input {
	padding-left: 74px;
}

/* Submit + success */

.drevex-listing-submit {
	width: 100%;
	height: 56px;
	margin-top: 28px;
	border: none;
	background: #B8762E;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
}

.drevex-listing-submit:hover {
	background: #8A5420;
}

.drevex-listing-submit-note {
	text-align: center;
	margin: 14px 0 0;
	font-size: 13px;
	color: #9A948A;
}

.drevex-listing-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	padding: 56px 32px;
	box-shadow: 0 2px 14px rgba(180, 120, 60, 0.06);
	text-align: center;
}

.drevex-listing-success-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #E6F2EB;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.drevex-listing-success h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	color: #2A2A2A;
}

.drevex-listing-success p {
	margin: 12px 0 0;
	font-size: 15px;
	color: #6B6B6B;
	max-width: 440px;
	line-height: 1.55;
}

.drevex-listing-success-actions {
	display: flex;
	gap: 12px;
	margin-top: 26px;
}

.drevex-listing-btn-secondary {
	height: 46px;
	display: inline-flex;
	align-items: center;
	padding: 0 22px;
	border: 1px solid #D8D1C6;
	background: #fff;
	color: #2A2A2A;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none !important;
}

.drevex-listing-btn-secondary:hover {
	border-color: #B8762E;
	color: #B8762E;
}

.drevex-listing-btn-primary {
	height: 46px;
	display: inline-flex;
	align-items: center;
	padding: 0 22px;
	border: none;
	background: #B8762E;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none !important;
	cursor: pointer;
}

.drevex-listing-btn-primary:hover {
	background: #8A5420;
}

@media (max-width: 640px) {
	.drevex-listing-cat-grid {
		grid-template-columns: 1fr;
	}

	.drevex-listing-photo-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.drevex-listing-form-card {
		padding: 22px;
	}
}

/* ── [panel_uzytkownika] "Moje ogłoszenia" (ETAP 6) ──────────────────────── */

.drevex-userpanel-listings-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 22px;
}

.drevex-userpanel-add-listing-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	background: #B8762E;
	color: #fff !important;
	font-size: 14.5px;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 6px;
	text-decoration: none !important;
}

.drevex-userpanel-add-listing-btn:hover {
	background: #8A5420;
}

.drevex-userpanel-listings-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid #EDE8E0;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.drevex-userpanel-listings-tab {
	background: none;
	border: none;
	cursor: pointer;
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #6B6B6B !important;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: .12s;
	text-decoration: none !important;
}

.drevex-userpanel-listings-tab.is-active {
	font-weight: 700;
	color: #B8762E !important;
	border-bottom-color: #B8762E;
}

.drevex-userpanel-listings-table {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(180, 120, 60, 0.05);
}

.drevex-userpanel-listing-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	border-bottom: 1px solid #EDE8E0;
	transition: .12s;
	flex-wrap: wrap;
}

.drevex-userpanel-listing-row:last-child {
	border-bottom: none;
}

.drevex-userpanel-listing-row:hover {
	background: #FBF7F1;
}

.drevex-userpanel-listing-thumb {
	flex: none;
	width: 60px;
	height: 60px;
	border-radius: 8px;
	border: 1px solid #EDE8E0;
	background-color: #F2E9DC;
	background-size: cover;
	background-position: center;
}

.drevex-userpanel-listing-info {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.drevex-userpanel-listing-title {
	font-size: 14.5px;
	font-weight: 600;
	color: #2A2A2A;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.drevex-userpanel-listing-category {
	font-size: 12px;
	color: #9A948A;
}

.drevex-userpanel-listing-price {
	flex: none;
	width: 100px;
	font-size: 15px;
	font-weight: 700;
	color: #B8762E;
}

.drevex-userpanel-listing-status-wrap {
	flex: none;
	width: 180px;
}

.drevex-userpanel-listing-badge {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 600;
	color: #fff;
	padding: 4px 11px;
	border-radius: 999px;
}

.drevex-userpanel-listing-date {
	flex: none;
	width: 96px;
	font-size: 12.5px;
	color: #6B6B6B;
}

.drevex-userpanel-listing-actions {
	flex: none;
	width: 120px;
	display: flex;
	align-items: center;
	gap: 14px;
	justify-content: flex-end;
}

.drevex-userpanel-listing-actions a {
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none !important;
}

.drevex-userpanel-listing-delete {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 500;
	color: #C56B60 !important;
	padding: 0;
}

.drevex-userpanel-listing-delete:hover {
	color: #DC2626 !important;
	background: none;
}

.drevex-userpanel-listings-empty {
	padding: 40px;
	text-align: center;
	font-size: 14px;
	color: #9A948A;
}

.drevex-userpanel-listings-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 22px;
}

.drevex-userpanel-page-btn {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #EDE8E0;
	background: #fff;
	color: #2A2A2A !important;
	text-decoration: none !important;
}

.drevex-userpanel-page-btn.is-active {
	border-color: #B8762E;
	background: #B8762E;
	color: #fff !important;
}

.drevex-userpanel-page-btn.is-disabled {
	opacity: .5;
	pointer-events: none;
}

/* Shared delete-confirmation modal (frontend context — admin panel has its
   own, styled separately in panel.css; never loaded on the same page). */

.drevex-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(30, 24, 16, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.drevex-modal-overlay.is-open {
	display: flex;
}

.drevex-modal {
	background: #fff;
	border-radius: 10px;
	padding: 28px;
	width: 400px;
	max-width: calc(100vw - 40px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.drevex-modal h3 {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #2A2A2A;
}

.drevex-modal p {
	margin: 0 0 22px;
	font-size: 14px;
	color: #6B6B6B;
	line-height: 1.5;
}

.drevex-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.drevex-modal-cancel {
	height: 44px;
	padding: 0 20px;
	border: 1px solid #D8D1C6;
	background: #fff;
	color: #2A2A2A;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
}

.drevex-modal-cancel:hover {
	border-color: #B8762E;
	color: #B8762E;
}

.drevex-modal-danger {
	height: 44px;
	padding: 0 20px;
	border: none;
	background: #DC2626;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
}

.drevex-modal-danger:hover {
	background: #B91C1C;
}

@media (max-width: 780px) {
	.drevex-userpanel-listing-row {
		align-items: flex-start;
	}

	.drevex-userpanel-listing-category,
	.drevex-userpanel-listing-status-wrap,
	.drevex-userpanel-listing-date {
		display: none;
	}

	.drevex-userpanel-listing-price {
		width: auto;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   [katalog_ogloszen] + [karta_ogloszenia] (ETAP 7)
   ══════════════════════════════════════════════════════════════════════════ */

.drevex-catalog-wrap,
.drevex-listing-detail-wrap {
	font-family: 'Inter', system-ui, sans-serif;
	color: #2A2A2A;
	-webkit-font-smoothing: antialiased;
}

.drevex-catalog-wrap a,
.drevex-listing-detail-wrap a {
	color: #B8762E;
	text-decoration: none !important;
}

.drevex-catalog-wrap a:hover,
.drevex-listing-detail-wrap a:hover {
	color: #8A5420;
}

.drevex-catalog-card-title,
.drevex-catalog-card-cat,
.drevex-catalog-card-price {
	text-decoration: none !important;
}

.drevex-catalog-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: #6B6B6B;
	margin-bottom: 18px;
}

.drevex-catalog-breadcrumb a {
	color: #6B6B6B;
	font-weight: 500;
}

.drevex-catalog-breadcrumb a:hover {
	color: #B8762E;
}

.drevex-catalog-breadcrumb span {
	color: #C6BFB4;
}

.drevex-catalog-breadcrumb .is-current {
	color: #2A2A2A;
	font-weight: 600;
}

.drevex-listing-not-found {
	max-width: 480px;
	margin: 40px auto;
	padding: 20px;
	background: #fff;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	text-align: center;
	font-size: 14.5px;
}

/* ── Card (shared: catalog grid + "Podobne ogłoszenia") ─────────────────── */

.drevex-catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.drevex-catalog-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(180, 120, 60, 0.06);
	transition: box-shadow .15s, transform .15s;
}

.drevex-catalog-card:hover {
	box-shadow: 0 10px 26px rgba(180, 120, 60, 0.14);
	transform: translateY(-2px);
}

.drevex-catalog-card-photo {
	position: relative;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #FAF7F2;
	background-size: cover;
	background-position: center;
}

.drevex-catalog-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: #fff;
	padding: 4px 10px;
	border-radius: 999px;
	pointer-events: none;
}

.drevex-catalog-card-badge.is-inline {
	position: static;
}

.drevex-catalog-card-body {
	padding: 14px 15px 15px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1;
}

.drevex-catalog-card-cat {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #6B6B6B;
}

.drevex-catalog-card-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.32;
	color: #2A2A2A;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 39px;
}

.drevex-catalog-card-price {
	font-size: 19px;
	font-weight: 700;
	color: #B8762E;
	margin-top: 2px;
}

.drevex-catalog-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 8px;
	font-size: 12.5px;
	color: #6B6B6B;
}

.drevex-catalog-card-location {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* ── Katalog: heading + layout ────────────────────────────────────────────── */

.drevex-catalog-wrap {
	max-width: 1280px;
	margin: 40px auto;
	margin-bottom: 40px !important;
	padding: 0 4px;
}

/* Teaser mode (ETAP 10, [katalog_ogloszen limit pokaz_filtry="nie"]) — just
   the card grid, no heading/breadcrumb above it, so it shouldn't carry the
   full standalone-page top/bottom margin when embedded mid-page (e.g. the
   homepage's "Najnowsze ogłoszenia" section, which supplies its own spacing
   around the shortcode). */
.drevex-catalog-wrap-teaser {
	margin: 0 auto !important;
}

.drevex-catalog-heading h1 {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.drevex-catalog-heading p {
	margin: 8px 0 24px;
	font-size: 15px;
	color: #6B6B6B;
}

.drevex-catalog-seller-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
	padding: 12px 16px;
	background: #FBF6EE;
	border: 1px solid #EDE0CC;
	border-radius: 8px;
	font-size: 14px;
	color: #3A3A3A;
}

.drevex-catalog-seller-banner-clear {
	font-size: 13px;
	font-weight: 600;
	color: #B8762E !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.drevex-catalog-seller-banner-clear:hover {
	color: #8A5420 !important;
}

.drevex-catalog-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	align-items: start;
}

/* ── Katalog: filters sidebar ─────────────────────────────────────────────── */

.drevex-catalog-filters {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 8px;
	padding: 22px 20px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	box-shadow: 0 2px 10px rgba(180, 120, 60, 0.05);
}

.drevex-catalog-filter-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.drevex-catalog-filter-title {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .01em;
}

.drevex-catalog-filter-divider {
	height: 1px;
	background: #EDE8E0;
}

.drevex-catalog-cat-tree {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: 420px;
	overflow-y: auto;
	margin: 0 -6px;
	padding: 0 6px;
}

.drevex-catalog-cat-group summary {
	list-style: none;
	cursor: pointer;
}

.drevex-catalog-cat-group summary::-webkit-details-marker {
	display: none;
}

.drevex-catalog-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 4px;
	font-size: 14px;
	font-weight: 600;
	color: #2A2A2A;
}

.drevex-catalog-cat-head.has-checked {
	color: #B8762E;
}

.drevex-catalog-cat-group[open] > .drevex-catalog-cat-head {
	font-weight: 700;
}

.drevex-catalog-cat-head svg {
	flex: none;
	transition: transform .15s;
}

.drevex-catalog-cat-group[open] > .drevex-catalog-cat-head svg {
	transform: rotate(180deg);
}

.drevex-catalog-cat-body {
	display: flex;
	flex-direction: column;
	padding: 2px 0 8px 6px;
	border-left: 1.5px solid #EDE8E0;
	margin-left: 6px;
}

.drevex-catalog-cat-sub {
	padding: 6px 4px 6px 8px !important;
}

.drevex-catalog-cat-sub span:last-child {
	font-size: 13.5px;
}

.drevex-catalog-cat-head-flat {
	padding: 9px 4px !important;
}

.drevex-catalog-cat-head-flat span:last-child {
	font-size: 14px;
	font-weight: 600;
	color: #2A2A2A;
}

.drevex-catalog-radio-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.drevex-catalog-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 4px;
	cursor: pointer;
}

.drevex-catalog-radio input {
	position: absolute;
	opacity: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
}

.drevex-catalog-radio-dot {
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.6px solid #D8D1C6;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: .12s;
}

.drevex-catalog-radio input:checked + .drevex-catalog-radio-dot {
	border-color: #B8762E;
}

.drevex-catalog-radio-inner {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: transparent;
}

.drevex-catalog-radio input:checked + .drevex-catalog-radio-dot .drevex-catalog-radio-inner {
	background: #B8762E;
}

.drevex-catalog-radio span:last-child {
	font-size: 14px;
	color: #4A4A4A;
}

.drevex-catalog-radio input:checked ~ span:last-child {
	color: #2A2A2A;
	font-weight: 600;
}

.drevex-catalog-price-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.drevex-catalog-price-row .drevex-fld {
	width: 100%;
	min-width: 0;
	height: 40px;
}

.drevex-catalog-price-row span {
	color: #C6BFB4;
}

.drevex-catalog-apply-btn {
	height: 40px;
	border: none;
	background: #B8762E;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
}

.drevex-catalog-apply-btn:hover {
	background: #8A5420;
}

.drevex-catalog-reset-btn {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #EDE8E0;
	background: #fff;
	color: #6B6B6B !important;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none !important;
}

.drevex-catalog-reset-btn:hover {
	border-color: #B8762E;
	color: #B8762E !important;
}

/* ── Katalog: "Lokalizacja" filter group (ETAP 10) — reuses the same
   select-wrap/icon-field/city-suggestions components as [dodaj_ogloszenie]'s
   own "Województwo"/"Miejscowość" fields (see assets/js/frontend.js's shared
   city-autocomplete init), just sized down to the sidebar's 40px control
   height like the price fields above rather than the add-listing form's
   46px default. ──────────────────────────────────────────────────────────── */

.drevex-catalog-filters .drevex-listing-select-wrap select.drevex-fld,
.drevex-catalog-city-field input.drevex-fld {
	height: 40px;
}

.drevex-catalog-city-field {
	width: 100%;
}

/* ── Katalog: results toolbar + grid + pagination ─────────────────────────── */

.drevex-catalog-results {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.drevex-catalog-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.drevex-catalog-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 220px;
	max-width: 360px;
}

.drevex-catalog-search svg {
	position: absolute;
	left: 13px;
	pointer-events: none;
}

.drevex-catalog-search input {
	width: 100%;
	height: 42px;
	border: 1px solid #EDE8E0;
	border-radius: 6px;
	background: #fff;
	padding: 0 14px 0 38px;
	font-size: 14px;
	color: #2A2A2A;
	outline: none;
}

.drevex-catalog-search input:focus {
	border-color: #B8762E;
}

.drevex-catalog-search.has-clear input {
	padding-right: 34px;
}

.drevex-catalog-search-clear {
	position: absolute;
	right: 8px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 17px;
	line-height: 1;
	color: #9A948A !important;
	text-decoration: none !important;
}

.drevex-catalog-search-clear:hover {
	background: #F3EEE5;
	color: #6B6B6B !important;
}

.drevex-catalog-sort select.drevex-fld {
	height: 42px;
	font-weight: 600;
	width: auto;
}

.drevex-catalog-search-note {
	margin: -10px 0 0;
	font-size: 13.5px;
	color: #6B6B6B;
}

.drevex-catalog-empty {
	background: #fff;
	border: 1px solid #EDE8E0;
	border-radius: 8px;
	padding: 40px 20px;
	text-align: center;
	color: #9A948A;
	font-size: 14.5px;
}

.drevex-catalog-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding-top: 8px;
}

.drevex-catalog-page-nav,
.drevex-catalog-page-btn {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #EDE8E0;
	background: #fff;
	color: #2A2A2A !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
}

.drevex-catalog-page-nav {
	color: #6B6B6B !important;
	font-size: 15px;
}

.drevex-catalog-page-nav.is-disabled {
	opacity: .4;
	pointer-events: none;
}

.drevex-catalog-page-btn.is-active {
	border-color: #B8762E;
	background: #B8762E;
	color: #fff !important;
}

.drevex-catalog-page-ellipsis {
	min-width: 24px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #9A948A;
}

/* ── Karta ogłoszenia ─────────────────────────────────────────────────────── */

.drevex-listing-detail-wrap {
	max-width: 1280px;
	margin: 40px auto;
	margin-bottom: 40px !important;
	padding: 0 4px;
}

.drevex-listing-detail-heading h1 {
	margin: 0 0 20px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.drevex-listing-detail-layout {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 28px;
	align-items: start;
}

.drevex-listing-detail-main {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.drevex-listing-detail-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.drevex-listing-detail-gallery-main {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #EDE8E0;
	background-color: #EFE9E0;
	/* 'contain', not 'cover' — a portrait-oriented photo in a 16:9 box under
	   'cover' gets zoomed in so far the actual subject is cropped out of
	   frame. 'contain' always shows the whole photo, letterboxed on the
	   background-color when the aspect ratio doesn't match, regardless of
	   how the photo was shot/cropped at upload. */
	background-size: contain;
    background-repeat: no-repeat;
	background-position: center;
}

.drevex-listing-detail-gallery-main .drevex-catalog-card-badge {
	top: 12px;
	left: 12px;
	font-size: 12px;
	padding: 5px 12px;
}

.drevex-listing-detail-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.drevex-listing-detail-gallery-thumbs button:hover,
.drevex-listing-detail-gallery-thumbs button:focus{
	background-color: transparent !important;
}

.drevex-listing-detail-gallery-thumb {
	padding: 0;
	border: 2px solid #EDE8E0;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	cursor: pointer;
	background-color: #EFE9E0;
	background-size: contain; /* same reasoning as .drevex-listing-detail-gallery-main above */
	background-repeat: no-repeat;
	background-position: center;
	opacity: .85;
	transition: .12s;
}

.drevex-listing-detail-gallery-thumb.is-active {
	border-color: #B8762E;
	opacity: 1;
}

.drevex-listing-detail-card {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(180, 120, 60, 0.05);
}

.drevex-listing-detail-card h2 {
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 700;
}

.drevex-listing-detail-description {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #3A3A3A;
}

.drevex-listing-detail-location-row {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 15px;
	color: #3A3A3A;
	font-weight: 500;
}

.drevex-listing-detail-map-placeholder {
	margin-top: 14px;
	height: 180px;
	border-radius: 8px;
	background: repeating-linear-gradient(45deg, #ECE6DC, #ECE6DC 12px, #E5DED2 12px, #E5DED2 24px);
	border: 1px solid #EDE8E0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.drevex-listing-detail-map {
	margin-top: 14px;
	height: 180px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #EDE8E0;
}

.drevex-listing-detail-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.drevex-listing-detail-map-directions {
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: #B8762E !important;
	text-decoration: none !important;
}

.drevex-listing-detail-map-directions:hover {
	color: #8A5420 !important;
}

.drevex-listing-detail-map-placeholder span {
	font-family: ui-monospace, Menlo, monospace;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #A89E8D;
}

.drevex-listing-detail-meta-row {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 13px;
	color: #6B6B6B;
}

.drevex-listing-detail-meta-row strong {
	color: #3A3A3A;
	font-weight: 600;
}

/* ── Karta ogłoszenia: sidebar ─────────────────────────────────────────────── */

.drevex-listing-detail-sidebar {
	position: sticky;
	top: 60px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.drevex-listing-detail-price-card {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 6px 22px rgba(180, 120, 60, 0.10);
}

.drevex-listing-detail-price-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.drevex-listing-detail-price {
	font-size: 34px;
	font-weight: 800;
	color: #B8762E;
	letter-spacing: -0.02em;
}

.drevex-listing-detail-negotiable {
	margin-top: 4px;
	font-size: 13px;
	color: #9A948A;
}

.drevex-listing-detail-divider {
	height: 1px;
	background: #EDE8E0;
	margin: 20px 0;
}

.drevex-listing-detail-message-btn,
.drevex-listing-detail-phone-btn {
	width: 100%;
	height: 50px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
}

.drevex-listing-detail-message-btn {
	border: none;
	background: #B8762E;
	color: #fff !important;
	text-decoration: none !important;
}

.drevex-listing-detail-message-btn:hover {
	background: #8A5420;
	color: #fff !important;
}

.drevex-listing-detail-phone-btn {
	margin-top: 10px;
	border: 1px solid #D8D1C6;
	background: #fff;
	color: #2A2A2A;
}

.drevex-listing-detail-phone-btn:hover,
.drevex-listing-detail-phone-btn:focus {
	border-color: #B8762E;
	color: #B8762E;
	background: none;
}

.drevex-listing-detail-seller-row {
	display: flex;
	align-items: center;
	gap: 13px;
}

.drevex-listing-detail-seller-avatar {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #E6D3B4, #C9A876);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	font-weight: 700;
	object-fit: cover;
	color: #7A5A2E;
}

.drevex-listing-detail-seller-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.drevex-listing-detail-seller-name {
	font-size: 15px;
	font-weight: 700;
}

.drevex-listing-detail-seller-type {
	font-size: 12.5px;
	color: #6B6B6B;
}

.drevex-listing-detail-seller-since {
	margin-top: 8px;
	font-size: 12px;
	color: #9A948A;
}

.drevex-listing-detail-seller-link {
	display: inline-block;
	margin-top: 12px;
	font-size: 13.5px;
	font-weight: 600;
}

.drevex-listing-detail-share-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.drevex-listing-detail-share-row span {
	font-size: 13px;
	color: #6B6B6B;
	font-weight: 500;
}

.drevex-listing-detail-share-btn {
	width: 36px;
	height: 36px;
	border: 1px solid #EDE8E0;
	background: #fff;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3A3A3A !important;
	padding: 0;
}

.drevex-listing-detail-share-btn:hover,
.drevex-listing-detail-share-btn:focus {
	border-color: #B8762E;
	background: #fff;
	color: #B8762E !important;
}

.drevex-listing-detail-copied {
	font-size: 12px;
	color: #2A7D4F;
	font-weight: 600;
	opacity: 0;
	transition: .15s;
}

.drevex-listing-detail-copied.is-visible {
	opacity: 1;
}

.drevex-listing-detail-safety-card {
	background: #FDF8F0;
	border: 1px solid #F0E6D2;
	border-radius: 8px;
	padding: 20px 22px;
}

.drevex-listing-detail-safety-title {
	font-size: 13.5px;
	font-weight: 700;
	margin-bottom: 12px;
}

.drevex-listing-detail-safety-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.drevex-listing-detail-safety-card li {
	display: flex;
	gap: 9px;
	font-size: 13px;
	line-height: 1.4;
	color: #5A5347;
}

.drevex-listing-detail-safety-card li svg {
	flex: none;
	margin-top: 1px;
}

.drevex-listing-detail-report-link {
	display: inline-block;
	margin-top: 14px;
	font-size: 12.5px;
	color: #B04A3A !important;
	font-weight: 500;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}

.drevex-listing-detail-report-link:hover {
	color: #8A2E22 !important;
}

.drevex-listing-detail-report-guest {
	margin: 14px 0 0;
	font-size: 12.5px;
	color: #6B6B6B;
}

.drevex-listing-detail-report-guest a {
	font-weight: 600;
}

.drevex-listing-detail-notice {
	max-width: 1280px;
	margin: 0 auto 20px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.drevex-listing-detail-notice.is-success {
	background: #EAF5EE;
	border: 1px solid #C7E4D0;
	color: #2A7D4F;
}

.drevex-listing-detail-notice.is-error {
	background: #FBEAE7;
	border: 1px solid #F0C9C0;
	color: #B04A3A;
}

/* ── "Zgłoś nadużycie" modal ─────────────────────────────────────────────── */

.drevex-report-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(30, 24, 16, 0.5);
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.drevex-report-modal-overlay.is-open {
	display: flex;
}

.drevex-report-modal-card {
	background: #fff;
	border-radius: 10px;
	padding: 28px;
	width: 440px;
	max-width: calc(100vw - 40px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.drevex-report-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.drevex-report-modal-head h3 {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
}

.drevex-report-modal-close {
	border: none;
	background: none;
	cursor: pointer;
	color: #9A948A;
	font-size: 22px;
	line-height: 1;
	padding: 2px 6px;
}

.drevex-report-modal-sub {
	margin: 0 0 18px;
	font-size: 13.5px;
	color: #6B6B6B;
}

.drevex-report-modal-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.drevex-report-modal-form textarea.drevex-fld {
	min-height: 110px;
}

.drevex-report-modal-submit {
	height: 48px;
	border: none;
	background: #B8762E;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
}

.drevex-report-modal-submit:hover {
	background: #8A5420;
}

.drevex-report-modal-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.drevex-report-modal-status {
	font-size: 13px;
	min-height: 0;
}

.drevex-report-modal-status.is-success {
	color: #2A7D4F;
}

.drevex-report-modal-status.is-error {
	color: #B04A3A;
}

.drevex-listing-detail-similar {
	margin: 60px 0 40px;
}

.drevex-listing-detail-similar h2 {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* "Podobne ogłoszenia" is full-width (no sidebar next to it, unlike the
   main catalog grid that shares .drevex-catalog-card/.drevex-catalog-grid)
   — Design's own Karta ogłoszenia.dc.html uses 4 columns here vs. 3 in
   Lista ogłoszeń.dc.html's sidebar layout, so this overrides just the
   column count for this context, not the card component itself. */
.drevex-listing-detail-similar .drevex-catalog-grid {
	grid-template-columns: repeat(4, 1fr);
}

/* Teaser mode ([katalog_ogloszen limit pokaz_filtry="nie"], ETAP 10's
   "Najnowsze ogłoszenia" homepage widget) — same reasoning as "Podobne
   ogłoszenia" above: no sidebar next to it, so 4 columns per row instead of
   the sidebar layout's 3. */
.drevex-catalog-wrap-teaser .drevex-catalog-grid {
	grid-template-columns: repeat(4, 1fr);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.drevex-catalog-layout,
	.drevex-listing-detail-layout {
		grid-template-columns: 1fr;
	}

	.drevex-listing-detail-sidebar {
		position: static;
	}

	.drevex-catalog-grid,
	.drevex-listing-detail-similar .drevex-catalog-grid,
	.drevex-catalog-wrap-teaser .drevex-catalog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.drevex-catalog-grid,
	.drevex-listing-detail-similar .drevex-catalog-grid,
	.drevex-catalog-wrap-teaser .drevex-catalog-grid {
		grid-template-columns: 1fr;
	}

	.drevex-listing-detail-gallery-thumbs {
		grid-template-columns: repeat(3, 1fr);
	}

	.drevex-catalog-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.drevex-catalog-search {
		max-width: none;
	}
}

/* ── [wiadomosci] — ETAP 8, split-view 1:1 with Panel użytkownika.dc.html's
   own "Wiadomości" pane — one card, thread list (left, 300px) + active
   conversation (right, flex:1), no "Odebrane"/"Wysłane" tabs (Design has
   none — a single unified list, most-recently-active thread first). ────── */

.drevex-messages-card {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(180, 120, 60, 0.05);
	display: grid;
	grid-template-columns: 300px 1fr;
	min-height: 460px;
}

.drevex-messages-list {
	border-right: 1px solid #EDE8E0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	max-height: 620px;
}

.drevex-messages-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: none;
	border-bottom: 1px solid #EDE8E0;
	cursor: pointer;
	text-align: left;
	background: #fff;
	color: #2A2A2A !important;
	text-decoration: none !important;
	transition: .12s;
}

.drevex-messages-row:hover {
	background: #FAF7F2;
}

.drevex-messages-row.is-active {
	background: #FDF3E7;
}

.drevex-messages-row-avatar {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, #E6D3B4, #C9A876);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #5A4326;
	object-fit: cover;
}

.drevex-messages-row-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.drevex-messages-row-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.drevex-messages-row-name {
	font-size: 14px;
	font-weight: 500;
	color: #2A2A2A;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.drevex-messages-row.is-unread .drevex-messages-row-name {
	font-weight: 700;
}

.drevex-messages-row-time {
	flex: none;
	font-size: 11px;
	color: #9A948A;
}

.drevex-messages-row-preview {
	font-size: 12.5px;
	color: #6B6B6B;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.drevex-messages-row-dot {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: transparent;
}

.drevex-messages-row.is-unread .drevex-messages-row-dot {
	background: #B8762E;
}

.drevex-messages-empty {
	padding: 40px;
	text-align: center;
	font-size: 14px;
	color: #9A948A;
}

.drevex-messages-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.drevex-messages-panel-header {
	padding: 16px 20px;
	border-bottom: 1px solid #EDE8E0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.drevex-messages-panel-avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #E6D3B4, #C9A876);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #5A4326;
	object-fit: cover;
}

.drevex-messages-panel-identity {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.drevex-messages-panel-name {
	font-size: 15px;
	font-weight: 700;
}

.drevex-messages-panel-subject {
	font-size: 12px;
	color: #9A948A;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.drevex-messages-panel-body {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #FCFAF6;
	overflow-y: auto;
	max-height: 460px;
}

.drevex-messages-bubble-row {
	display: flex;
}

.drevex-messages-bubble-row.is-mine {
	justify-content: flex-end;
}

.drevex-messages-bubble {
	max-width: 78%;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.45;
	background: #FFFFFF;
	color: #2A2A2A;
	border: 1px solid #EDE8E0;
}

.drevex-messages-bubble-row.is-mine .drevex-messages-bubble {
	background: #B8762E;
	color: #fff;
	border-color: #B8762E;
}

.drevex-messages-bubble p {
	margin: 0;
	white-space: pre-line;
}

.drevex-messages-bubble-time {
	display: block;
	margin-top: 4px;
	font-size: 10.5px;
	color: #9A948A;
}

.drevex-messages-bubble-row.is-mine .drevex-messages-bubble-time {
	color: rgba(255, 255, 255, 0.8);
}

.drevex-messages-panel-footer {
	padding: 14px 16px;
	border-top: 1px solid #EDE8E0;
	display: flex;
	gap: 10px;
	align-items: center;
}

.drevex-messages-panel-footer input.drevex-fld {
	flex: 1;
}

.drevex-messages-panel-footer button {
	flex: none;
	height: 46px;
	padding: 0 20px;
	border: none;
	background: #B8762E;
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
}

.drevex-messages-panel-footer button:hover {
	background: #8A5420;
}

.drevex-messages-panel-footer button:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.drevex-messages-panel-status {
	padding: 0 16px 10px;
	font-size: 12.5px;
}

.drevex-messages-panel-status.is-error {
	color: #B04A3A;
}

@media (max-width: 780px) {
	.drevex-messages-card {
		grid-template-columns: 1fr;
	}

	.drevex-messages-list {
		border-right: none;
		border-bottom: 1px solid #EDE8E0;
		max-height: 280px;
	}

	.drevex-messages-bubble {
		max-width: 88%;
	}
}

/* ── [panel_uzytkownika] "Powiadomienia" (FEAT — Powiadomienia) — 1:1 with
   Panel użytkownika.dc.html's panePowiadomienia/NIC/notifBadgeStyle. ────── */

.drevex-notif-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 22px;
}

.drevex-notif-header h1 {
	margin: 0;
}

.drevex-notif-mark-all {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	color: #B8762E;
}

.drevex-notif-mark-all:hover {
	color: #8A5420;
}

.drevex-notif-list {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(180, 120, 60, 0.05);
}

.drevex-notif-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: none;
	border-bottom: 1px solid #EDE8E0;
	cursor: pointer;
	width: 100%;
	background: #fff;
	text-align: left;
	text-decoration: none !important;
	color: inherit !important;
	transition: .12s;
}

.drevex-notif-row:last-child {
	border-bottom: none;
}

.drevex-notif-row.is-unread {
	background: #FDF9F3;
}

.drevex-notif-icon {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 9px;
	background: #F7F1E8;
	display: flex;
	align-items: center;
	justify-content: center;
}

.drevex-notif-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.drevex-notif-text {
	font-size: 14px;
	font-weight: 500;
	color: #2A2A2A;
}

.drevex-notif-row.is-unread .drevex-notif-text {
	font-weight: 700;
}

.drevex-notif-time {
	font-size: 12px;
	color: #9A948A;
}

.drevex-notif-dot {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: transparent;
}

.drevex-notif-row.is-unread .drevex-notif-dot {
	background: #B8762E;
}

.drevex-notif-empty {
	padding: 40px;
	text-align: center;
	font-size: 14px;
	color: #9A948A;
}

/* ── [formularz_sugestii] — ETAP 9 ─────────────────────────────────────── */

.drevex-suggestion-wrap {
	max-width: 720px;
	margin: 0 auto;
	width: 100%;
	padding: 56px 32px 64px;
}

.drevex-suggestion-intro {
	text-align: center;
	margin-bottom: 32px;
}

.drevex-suggestion-icon {
	width: 60px;
	height: 60px;
	border-radius: 14px;
	background: #F7F1E8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #B8762E;
	margin-bottom: 18px;
}

.drevex-suggestion-intro h1 {
	margin: 0;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.drevex-suggestion-intro p {
	margin: 12px auto 0;
	max-width: 520px;
	font-size: 16px;
	line-height: 1.55;
	color: #6B6B6B;
}

.drevex-suggestion-card {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 10px;
	padding: 32px;
	box-shadow: 0 2px 14px rgba(180, 120, 60, 0.06);
}

.drevex-suggestion-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.drevex-suggestion-optional {
	font-weight: 500;
	color: #9A948A;
}

.drevex-suggestion-submit {
	width: 100%;
	height: 52px;
	border: none;
	background: #B8762E;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
}

.drevex-suggestion-submit:hover {
	background: #8A5420;
}

.drevex-suggestion-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 4px 4px;
}

.drevex-suggestion-thanks-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #E6F2EB;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.drevex-suggestion-thanks h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
}

.drevex-suggestion-thanks p {
	margin: 12px 0 26px;
	font-size: 15px;
	color: #6B6B6B;
	max-width: 420px;
	text-align: center;
	line-height: 1.55;
}

.drevex-suggestion-thanks-actions {
	display: flex;
	gap: 12px;
}

.drevex-suggestion-btn-outline,
.drevex-suggestion-btn-filled {
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none !important;
	cursor: pointer;
}

.drevex-suggestion-btn-outline {
	border: 1px solid #D8D1C6;
	background: #fff;
	color: #2A2A2A !important;
}

.drevex-suggestion-btn-outline:hover {
	border-color: #B8762E;
	color: #B8762E !important;
}

.drevex-suggestion-btn-filled {
	border: none;
	background: #B8762E;
	color: #fff !important;
}

.drevex-suggestion-btn-filled:hover {
	background: #8A5420;
}

@media (max-width: 640px) {
	.drevex-suggestion-wrap {
		padding: 40px 20px 48px;
	}

	.drevex-suggestion-card {
		padding: 22px;
	}

	.drevex-suggestion-thanks-actions {
		flex-direction: column;
		width: 100%;
	}
}

/* ── [wyszukiwarka_ogloszen] — ETAP 10, homepage search bar, 1:1 with
   Drevex.dc.html's search box under "Ogłoszenia dla branży drzewnej"
   (white rounded card, fields divided by 1px separators, filled button). ── */

.drevex-search-widget-wrap {
	max-width: 1000px;
	margin: 0 auto;
}

.drevex-search-widget {
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(180, 120, 60, 0.10);
	padding: 8px;
}

.drevex-search-widget-field-category {
	flex: none;
	padding: 0;
}

.drevex-search-widget-field-category select.drevex-fld {
	height: 48px;
	border: none;
	background: #FAF7F2;
	color: #2A2A2A;
	font-size: 14.5px;
	font-weight: 500;
	padding: 0 38px 0 15px;
	border-radius: 6px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	max-width: 220px;
}

.drevex-search-widget-field-category .drevex-listing-select-chevron {
	right: 14px;
}

.drevex-search-widget-row {
	display: flex;
	align-items: stretch;
	gap: 0;
}

.drevex-search-widget-divider {
	width: 1px;
	background: #EDE8E0;
	margin: 8px 4px;
}

.drevex-search-widget-field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 8px;
}

.drevex-search-widget-field svg {
	flex: none;
}

.drevex-search-widget-field-query {
	flex: 1;
	min-width: 0;
}

.drevex-search-widget-field-city {
	flex: none;
	min-width: 150px;
}

.drevex-search-widget-field input[type="text"] {
	flex: 1;
	min-width: 0;
	height: 48px;
	border: none;
	background: transparent;
	font-size: 15px;
	color: #2A2A2A;
	outline: none;
	box-shadow: none;
}

.drevex-search-widget-field-city .drevex-listing-city-suggestions {
	left: 8px;
	right: 8px;
}

.drevex-search-widget-field-distance {
	flex: none;
}

.drevex-search-widget-field-distance select.drevex-fld {
	height: 48px;
	border: none;
	background: transparent;
	color: #2A2A2A;
	font-size: 14.5px;
	font-weight: 500;
	padding: 0 34px 0 4px;
	border-radius: 6px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
}

.drevex-search-widget-field-distance .drevex-listing-select-chevron {
	right: 8px;
}

.drevex-search-widget-submit {
	display: flex;
	align-items: center;
	gap: 8px;
	border: none;
	background: #B8762E;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 0 26px;
	border-radius: 6px;
	cursor: pointer;
	margin-left: 4px;
	white-space: nowrap;
}

.drevex-search-widget-submit:hover {
	background: #8A5420;
}

.drevex-search-widget ::placeholder {
	color: #9A948A;
}

.drevex-search-widget-pills {
	margin: 26px auto 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.drevex-search-widget-pill {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.drevex-search-widget-pill input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.drevex-search-widget-pill span {
	display: inline-flex;
	align-items: center;
	font-size: 13.5px;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid #EDE8E0;
	background: #fff;
	color: #6B6B6B;
	transition: .12s;
}

.drevex-search-widget-pill input:checked + span {
	border-color: #B8762E;
	background: #B8762E;
	color: #fff;
}

/* ── [kategorie_ogloszen] — ETAP 10, homepage "Kategorie" tiles, 1:1 with
   Drevex.dc.html's own kategorie section (5-column icon grid). ─────────── */

.drevex-categories-section {
	max-width: 1280px !important;
	margin: 0 auto;
}

.drevex-categories-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}

.drevex-categories-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	background: #FFFFFF;
	border: 1px solid #EDE8E0;
	border-radius: 6px;
	padding: 10px;
	text-decoration: none !important;
	transition: .12s;
}

.drevex-categories-tile:hover {
	border-color: #B8762E;
	box-shadow: 0 6px 20px rgba(180, 120, 60, 0.10);
}

.drevex-categories-tile-icon {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #B8762E;
}

.drevex-categories-tile-name {
	font-size: 14.5px;
	font-weight: 600;
	color: #2A2A2A !important;
	line-height: 1.3;
}

.drevex-categories-tile-count {
	font-size: 12.5px;
	color: #6B6B6B !important;
}

@media (max-width: 900px) {
	.drevex-search-widget-row {
		flex-wrap: wrap;
	}

	.drevex-search-widget-field-category {
		flex-basis: 100%;
		order: 0;
	}

	.drevex-search-widget-field-category select.drevex-fld {
		max-width: none;
		width: 100%;
	}

	.drevex-search-widget-field-query {
		flex-basis: 100%;
		order: 1;
	}

	.drevex-search-widget-divider {
		display: none;
	}

	.drevex-search-widget-field-city,
	.drevex-search-widget-field-distance {
		flex: 1;
		min-width: 0;
		order: 2;
	}

	.drevex-search-widget-submit {
		order: 3;
		flex: 1;
		justify-content: center;
		margin-left: 0;
		margin-top: 8px;
		height: 44px;
	}

	.drevex-categories-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 640px) {
	.drevex-search-widget-field-city,
	.drevex-search-widget-field-distance {
		flex-basis: 100%;
	}

	.drevex-categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.drevex-categories-tile-icon svg {
		width: 40px;
		height: 40px;
	}

	.drevex-categories-tile-icon {
		width: 60px;
		height: 60px;
	}
}
