/* DNF – Zmiany Blog i Sklep. Only styles new elements; site layout/menu untouched. */
:root { --dnf-accent: var(--global-palette1, #BE9F31); }

/* Tabs (shop + blog) */
.dnf-tabs { display: flex; border-bottom: 1px solid #e2e2e2; margin: 0 0 24px; }
.dnf-tab { flex: 1 1 0; background: none !important; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 12px 8px; font: inherit; font-size: 16px; color: #8A8A8A !important; cursor: pointer; box-shadow: none !important; border-radius: 0; transition: color .2s, border-color .2s; }
.dnf-tab[aria-selected="true"] { color: var(--global-palette3, #1d2433) !important; font-weight: 700; border-bottom-color: var(--dnf-accent); }
.dnf-tab:focus-visible { outline: 2px solid var(--dnf-accent); outline-offset: 2px; }
.dnf-tab__count { font-weight: 400; color: #8A8A8A; }
.dnf-panel[hidden] { display: none !important; }
.dnf-panel:focus { outline: none; }
.dnf-editor-note:empty { display: none; }
.dnf-editor-note { margin: -12px 0 16px; padding: 8px 12px; background: #fff4e5; color: #8a4b00; font-size: 13px; }

/* Shop */
.dnf-shop { width: 100%; }
.dnf-ebook-box, .dnf-digital-bar { background: #F5F3EE; padding: 20px 24px; margin: 0 0 32px; color: var(--global-palette4, #3b3b3b); }
.dnf-ebook-box p { margin: 0; }
.dnf-ebook-box .dnf-ebook-box__title { font-weight: 700; margin-bottom: 8px; color: var(--global-palette3, #1d2433); }
.dnf-digital-bar { margin: 24px 0 0; }
.dnf-digital-bar p { margin: 0 0 14px; }
.dnf-digital-bar p:last-child { margin-bottom: 0; }
.dnf-goto-ebooki { display: inline-block; padding: 10px 22px; border: 1px solid var(--global-palette3, #1d2433); background: #fff; color: var(--global-palette3, #1d2433) !important; text-decoration: none !important; font-weight: 600; transition: background-color .2s, color .2s; }
.dnf-goto-ebooki:hover { background: var(--global-palette3, #1d2433); color: #fff !important; }

/* Shop intro: "Więcej / Mniej" only on phones */
.dnf-intro-more, .dnf-intro-less { display: none; background: none !important; border: 0; padding: 0; font: inherit; color: inherit !important; font-weight: 600; text-decoration: underline; cursor: pointer; box-shadow: none !important; }
@media (max-width: 767px) {
	.dnf-intro .dnf-intro-more, .dnf-intro .dnf-intro-less { display: inline; }
	.dnf-intro:not(.is-open) .dnf-intro-rest, .dnf-intro:not(.is-open) .dnf-intro-restblock, .dnf-intro:not(.is-open) .dnf-intro-less { display: none; }
	.dnf-intro.is-open .dnf-intro-more { display: none; }
	.dnf-digital-bar { padding: 16px; }
	.dnf-goto-ebooki { display: block; text-align: center; }
}

/* Blog: tabs + "Polecamy" panel only below 1025px (where the theme moves the sidebar under the list) */
.dnf-blog-tabs, .dnf-blog-polecamy-panel { display: none; }
@media (max-width: 1024px) {
	.dnf-has-blog-tabs .dnf-blog-tabs { display: flex; }
	.dnf-has-blog-tabs.dnf-show-polecamy .dnf-blog-polecamy-panel { display: block; }
	.dnf-has-blog-tabs.dnf-show-polecamy #archive-container,
	.dnf-has-blog-tabs.dnf-show-polecamy #main .pagination { display: none; }
	.dnf-has-blog-tabs #secondary .widget:has(.dnf-polecane),
	.dnf-has-blog-tabs #secondary .widget:has(.dnf-polecane-title) { display: none; }
	.dnf-polecane--panel .wpr-grid-item-inner { flex-direction: row !important; align-items: center !important; }
	.dnf-polecane--panel .wpr-grid-media-wrap { margin: 0 15px 0 0 !important; width: 110px; }
	.dnf-polecane--panel .wpr-grid-media-wrap img { width: 110px; height: 110px; object-fit: cover; display: block; }
}
