
/* Izolacja sekcji pluginu od układu motywu/page buildera */
.pw-ad-banner-wrapper,
.pw-ad-banner-link,
.pw-single-event-title,
.pw-single-event-banner,
.pw-speakers-grid,
.pw-events-archive,
.pw-info-section {
	clear: both;
	max-width: 100%;
	box-sizing: border-box;
}

.pw-ad-banner-wrapper,
.pw-ad-banner-link,
.pw-single-event-banner,
.pw-info-section {
	display: flow-root;
}

.pw-speakers-grid,
.pw-events-archive,
.pw-info-section,
.pw-single-event-banner,
.pw-ad-banner-img,
.pw-speaker-card,
.pw-price-row,
.pw-important-box {
	min-width: 0;
}

.pw-events-archive *,
.pw-speakers-grid *,
.pw-info-section * {
	box-sizing: border-box;
}

.pw-speakers-grid {
	display: grid;
	grid-template-columns: repeat(var(--pw-cols, 3), minmax(0, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.pw-speaker-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid #eef0f2;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pw-speaker-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: top center;
}

.pw-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #f4f6f8;
	color: #cbd5e1;
}

.pw-photo-placeholder .dashicons {
	font-size: 44px;
	width: 44px;
	height: 44px;
}

.pw-speaker-info {
	display: flex;
	flex-grow: 1;
	flex-direction: column;
	padding: 20px;
}

.pw-speaker-name {
	margin: 0 0 5px;
	color: #1e293b;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.pw-speaker-role {
	margin: 0 0 15px;
	color: #64748b;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.pw-speaker-bio-container {
	position: relative;
	margin-top: auto;
}

.pw-speaker-bio-text {
	overflow: hidden;
	color: #475569;
	font-size: 0.85rem;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.pw-speaker-bio-text p {
	margin-bottom: 0;
}

.pw-speaker-bio-text.pw-expanded {
	display: block;
	-webkit-line-clamp: unset;
}

.pw-speaker-read-more {
	margin-top: 5px;
	padding: 0;
	border: 0;
	background: none;
	color: #0ea5e9;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
/* Nadpisanie agresywnych stylów motywu dla hover/focus */
.pw-speaker-read-more:hover, 
.pw-speaker-read-more:focus, 
.pw-speaker-read-more:active, 
.pw-speaker-read-more:focus-visible {
	background: none !important;
	background-color: transparent !important;
	color: #000 !important; /* lub ciemniejszy niebieski np. #0369a1 */
	box-shadow: none !important;
	outline: none !important;
}
.pw-events-archive {
	width: 100%;
	margin: 0 auto;
	font-family: sans-serif;
}

.pw-month-header {
	margin: 40px 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #0ea5e9;
	color: #0f172a;
	font-size: 1.8rem;
	font-weight: 700;
	text-transform: uppercase;
}

.pw-month-group {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pw-event-list-item {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pw-event-list-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.pw-event-list-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	padding: 20px 10px;
	border-right: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #1e73be;
	text-align: center;
}

.pw-day {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
}

.pw-day.pw-day-range {
	font-size: 1.6rem;
}

.pw-event-list-date .pw-month {
	margin-top: 5px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.pw-event-list-content {
	flex-grow: 1;
	padding: 20px;
}

.pw-event-list-title {
	margin: 0 0 10px;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.3;
}

.pw-event-list-title a {
	color: #0f172a;
	text-decoration: none;
	box-shadow: none;
}

.pw-event-list-title a:hover,
.pw-event-list-title a:focus {
	color: #1e73be;
}

.pw-event-list-location {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 15px;
	color: #64748b;
	font-size: 0.9rem;
	font-weight: 500;
}

.pw-event-list-excerpt {
	color: #475569;
	font-size: 0.95rem;
	line-height: 1.5;
}

.pw-event-list-excerpt p {
	margin-bottom: 0;
}

.pw-event-list-thumbnail {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 30%;
}

.pw-event-list-thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.pw-event-list-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.pw-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	width: 100%;
	height: 100%;
	background: #e2e8f0;
	color: #94a3b8;
	font-size: 0.9rem;
}

.pw-ad-banner-wrapper,
.pw-ad-banner-link {
	display: block;
	margin-bottom: 30px;
}

.pw-ad-banner-link {
	text-decoration: none;
	box-shadow: none;
	transition: opacity 0.2s ease;
}

.pw-ad-banner-link:hover,
.pw-ad-banner-link:focus {
	opacity: 0.92;
}

.pw-ad-banner-img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.pw-single-event-title {
	margin: 0 0 20px;
	color: #0f172a;
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1.2;
}

.pw-single-event-banner {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	margin-bottom: 40px;
	padding: 20px 30px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	font-family: sans-serif;
}

.pw-banner-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #0f172a;
	font-size: 1.1rem;
}

.pw-banner-item svg {
	flex-shrink: 0;
	color: #0ea5e9;
}

.pw-banner-item strong {
	margin-right: 5px;
	color: #64748b;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.pw-info-section {
	margin: 40px 0;
	font-family: sans-serif;
}

.pw-info-heading {
	display: inline-block;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #0ea5e9;
	color: #0f172a;
	font-size: 1.8rem;
	font-weight: 800;
}

.pw-pricing-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 20px;
}

.pw-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #0ea5e9;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.pw-price-row-alt {
	border-left-color: #94a3b8;
	background: #f8fafc;
}

.pw-price-details h4 {
	margin: 0 0 5px;
	color: #1e293b;
	font-size: 1.1rem;
	font-weight: 700;
}

.pw-price-details p {
	margin: 0;
	color: #64748b;
	font-size: 0.9rem;
}

.pw-price-amount {
	padding-left: 20px;
	color: #334155;
	font-size: 1.2rem;
	text-align: right;
	white-space: nowrap;
}

.pw-price-amount strong {
	color: #0ea5e9;
	font-size: 1.6rem;
	font-weight: 800;
}

.pw-price-amount span {
	color: #94a3b8;
	font-size: 0.85rem;
	font-weight: 400;
}

.pw-info-disclaimer {
	margin-bottom: 30px;
	color: #64748b;
	font-size: 0.85rem;
	font-style: italic;
	line-height: 1.5;
}

.pw-info-disclaimer p {
	margin-bottom: 10px;
}

.pw-important-box {
	padding: 25px;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	background: #f0f9ff;
	color: #334155;
	line-height: 1.6;
}

.pw-important-box h4 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 15px;
	color: #0369a1;
	font-size: 1.2rem;
	font-weight: 700;
}

.pw-important-content p {
	margin-bottom: 15px;
	font-size: 0.95rem;
}

.pw-important-content p:last-child {
	margin-bottom: 0;
}

.pw-bank-details {
	margin: 20px 0;
	padding: 15px;
	border: 1px dashed #cbd5e1;
	border-radius: 6px;
	background: #fff;
	text-align: center;
}

.pw-highlight {
	margin-bottom: 10px !important;
	color: #0f172a;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.pw-bank-account {
	color: #0f172a;
	font-size: 1.1rem;
}

.pw-bank-note {
	font-size: 0.9rem;
}

@media (max-width: 900px) {
	.pw-speakers-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 768px) {
	.pw-event-list-item {
		flex-direction: column;
	}

	.pw-event-list-date {
		flex-direction: row;
		gap: 10px;
		padding: 15px;
		border-right: 0;
		border-bottom: 1px solid #e2e8f0;
	}

	.pw-event-list-date .pw-day,
	.pw-day.pw-day-range {
		font-size: 1.8rem;
	}

	.pw-event-list-thumbnail {
		order: -1;
		width: 100%;
		height: 200px;
	}

	.pw-single-event-banner {
		flex-direction: column;
		gap: 15px;
	}

	.pw-speakers-grid {
		grid-template-columns: 1fr !important;
	}

	.pw-single-event-title {
		font-size: 1.8rem;
	}

	.pw-price-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.pw-price-amount {
		padding-left: 0;
		text-align: left;
	}

	.pw-important-box {
		padding: 15px;
	}
}
/* =========================================================
   GUTENBERG EDITOR FIX DLA SIATKI PRELEGENTÓW (TYLKO ZAPLECZE)
   ========================================================= */

/* 1. Rozpychamy główny kontener na całą szerokość ekranu edytora */
.editor-styles-wrapper .wp-block-pw-speakers-grid {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* 2. Wymuszamy siatkę, ale z twardym limitem minimum 200px (zamiast 0) */
.editor-styles-wrapper .pw-speakers-grid .block-editor-inner-blocks > .block-editor-block-list__layout {
    display: grid !important;
    grid-template-columns: repeat(var(--pw-cols, 3), minmax(200px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* 3. Wymuszamy, by karty wypełniały całe 100% przydzielonych im kolumn */
.editor-styles-wrapper .pw-speakers-grid .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* 4. Przycisk '+' dodający nowe karty wyrzucamy na sam dół (pod kolumny) */
.editor-styles-wrapper .pw-speakers-grid .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 15px !important;
    display: flex !important;
}