/**
 * Przyciski treści na podstronach — mniej zaokrąglone, flex z ikonami.
 * Strona główna zachowuje pill w mbst-home.css / mbst-com-align.css.
 */

body:not(.home).mbst-premium-ui {
	--mbst-btn-radius: 12px;
	--mbst-btn-pad-y: 11px;
	--mbst-btn-pad-x: 20px;
	--mbst-btn-icon-pad: 10px;
}

/* Kontener przycisków */
body:not(.home).mbst-premium-ui #Content .button_align,
body:not(.home).mbst-premium-ui #Content .column_button,
body:not(.home).mbst-premium-ui #Content .mbst-page-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 1.25rem 0 0.5rem;
}

body:not(.home).mbst-premium-ui #Content .button_align.align_center,
body:not(.home).mbst-premium-ui #Content .column_button.align_center {
	justify-content: center;
}

body:not(.home).mbst-premium-ui #Content .button_align.align_right,
body:not(.home).mbst-premium-ui #Content .column_button.align_right {
	justify-content: flex-end;
}

/* Bazowy przycisk BeTheme */
body:not(.home).mbst-premium-ui #Content a.button,
body:not(.home).mbst-premium-ui #Content .button a.button,
body:not(.home).mbst-premium-ui #Content input[type="submit"],
body:not(.home).mbst-premium-ui #Content .wpcf7-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-height: 48px;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: var(--mbst-btn-radius) !important;
	border: 1px solid transparent;
	font-family: var(--mbst-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
	font-weight: 600 !important;
	font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-decoration: none !important;
	vertical-align: middle;
	overflow: hidden;
	background-image: none !important;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
	-webkit-font-smoothing: antialiased;
	transition:
		background 0.22s cubic-bezier(0.25, 0.1, 0.25, 1),
		color 0.22s cubic-bezier(0.25, 0.1, 0.25, 1),
		border-color 0.22s cubic-bezier(0.25, 0.1, 0.25, 1),
		box-shadow 0.22s cubic-bezier(0.25, 0.1, 0.25, 1),
		transform 0.14s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body:not(.home).mbst-premium-ui #Content a.button::after,
body:not(.home).mbst-premium-ui #Content .button a.button::after {
	display: none !important;
}

/* Ikona + etykieta — flex zamiast float */
body:not(.home).mbst-premium-ui #Content a.button .button_icon,
body:not(.home).mbst-premium-ui #Content a.button .button_label {
	display: inline-flex !important;
	align-items: center;
	float: none !important;
	position: static !important;
}

body:not(.home).mbst-premium-ui #Content a.button .button_icon {
	flex: 0 0 auto;
	justify-content: center;
	align-self: stretch;
	padding: var(--mbst-btn-icon-pad) 12px !important;
	background: rgba(0, 0, 0, 0.1) !important;
}

body:not(.home).mbst-premium-ui #Content a.button .button_icon i {
	font-size: 15px;
	line-height: 1;
	color: inherit !important;
	opacity: 0.95;
}

body:not(.home).mbst-premium-ui #Content a.button .button_label {
	flex: 1 1 auto;
	padding: var(--mbst-btn-pad-y) var(--mbst-btn-pad-x) !important;
	white-space: nowrap;
}

body:not(.home).mbst-premium-ui #Content a.button.button_left {
	flex-direction: row;
}

body:not(.home).mbst-premium-ui #Content a.button.button_right {
	flex-direction: row-reverse;
}

body:not(.home).mbst-premium-ui #Content a.button.button_right .button_label {
	padding-left: calc(var(--mbst-btn-pad-x) + 2px) !important;
	padding-right: calc(var(--mbst-btn-pad-x) - 2px) !important;
}

body:not(.home).mbst-premium-ui #Content a.button.button_left .button_label {
	padding-right: calc(var(--mbst-btn-pad-x) + 2px) !important;
}

/* Rozmiary */
body:not(.home).mbst-premium-ui #Content a.button.button_size_3 .button_label {
	padding-top: 13px !important;
	padding-bottom: 13px !important;
}

body:not(.home).mbst-premium-ui #Content a.button.button_size_3 .button_icon {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

/* Warianty kolorów — Apple: wypełniony granat lub jasny szary */
body:not(.home).mbst-premium-ui #Content a.button:not([style*='background-color']) {
	background: var(--mbst-navy, #18225b) !important;
	border-color: var(--mbst-navy, #18225b) !important;
	color: #fff !important;
}

body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#005596'],
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #005596'] {
	background: var(--mbst-navy, #18225b) !important;
	border-color: var(--mbst-navy, #18225b) !important;
	color: #fff !important;
}

body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#000'],
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #000'],
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#000000'],
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #000000'] {
	background: var(--mbst-navy, #18225b) !important;
	border-color: var(--mbst-navy, #18225b) !important;
	color: #fff !important;
}

body:not(.home).mbst-premium-ui #Content a.button:not([style*='background-color']) .button_label,
body:not(.home).mbst-premium-ui #Content a.button:not([style*='background-color']) .button_icon i,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#005596'] .button_label,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #005596'] .button_label,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#005596'] .button_icon i,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #005596'] .button_icon i,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#000'] .button_label,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #000'] .button_label,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#000000'] .button_label,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #000000'] .button_label {
	color: #fff !important;
}

body:not(.home).mbst-premium-ui #Content a.button:not([style*='background-color']) .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#005596'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #005596'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#000'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #000'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#000000'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #000000'] .button_icon {
	background: rgba(255, 255, 255, 0.12) !important;
}

body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#FFF'],
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #FFF'],
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#fff'],
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #fff'],
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#ffffff'],
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #ffffff'] {
	background: #fff !important;
	border-color: rgba(24, 34, 91, 0.14) !important;
	color: var(--mbst-navy, #18225b) !important;
}

body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#FFF'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #FFF'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#fff'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #fff'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#ffffff'] .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #ffffff'] .button_icon {
	background: rgba(24, 34, 91, 0.06) !important;
}

body:not(.home).mbst-premium-ui #Content a.button:hover {
	transform: none;
}

body:not(.home).mbst-premium-ui #Content a.button:not([style*='background-color']):hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#005596']:hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #005596']:hover {
	background: #0f1a4a !important;
	border-color: #0f1a4a !important;
	color: #fff !important;
	box-shadow:
		0 2px 8px rgba(24, 34, 91, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#000']:hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #000']:hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#000000']:hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #000000']:hover {
	background: var(--mbst-cyan, #54add6) !important;
	border-color: var(--mbst-cyan, #54add6) !important;
}

body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#FFF']:hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #FFF']:hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#fff']:hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #fff']:hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#ffffff']:hover,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #ffffff']:hover {
	background: var(--mbst-cyan, #54add6) !important;
	border-color: var(--mbst-cyan, #54add6) !important;
	color: #fff !important;
}

body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#FFF']:hover .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #FFF']:hover .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#fff']:hover .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #fff']:hover .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color:#ffffff']:hover .button_icon,
body:not(.home).mbst-premium-ui #Content a.button[style*='background-color: #ffffff']:hover .button_icon {
	background: rgba(255, 255, 255, 0.15) !important;
}

/* Przyciski w ciemnych kafelkach CTA */
body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap[style*='#000000'] a.button,
body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap[style*='#000'] a.button,
body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap[style*='#005596'] a.button,
body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap.white-on-black a.button {
	background: #fff !important;
	border-color: #fff !important;
	color: var(--mbst-navy, #18225b) !important;
}

body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap[style*='#000000'] a.button .button_icon,
body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap[style*='#005596'] a.button .button_icon,
body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap.white-on-black a.button .button_icon {
	background: rgba(24, 34, 91, 0.08) !important;
}

body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap[style*='#000000'] a.button:hover,
body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap[style*='#005596'] a.button:hover,
body:not(.home).mbst-premium-ui #Content .wrap.mcb-wrap.white-on-black a.button:hover {
	background: var(--mbst-cyan, #54add6) !important;
	border-color: var(--mbst-cyan, #54add6) !important;
	color: #fff !important;
}

/* Formularze (kontakt) */
body:not(.home).mbst-premium-ui #Content .wpcf7-submit,
body:not(.home).mbst-premium-ui #Content input[type="submit"].button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: var(--mbst-btn-pad-y) calc(var(--mbst-btn-pad-x) + 8px) !important;
	border-radius: var(--mbst-btn-radius) !important;
	background: var(--mbst-cyan, #54add6) !important;
	border: 2px solid var(--mbst-cyan, #54add6) !important;
	color: #fff !important;
	font-weight: 600 !important;
	cursor: pointer;
}

body:not(.home).mbst-premium-ui #Content .wpcf7-submit:hover,
body:not(.home).mbst-premium-ui #Content input[type="submit"].button:hover {
	background: var(--mbst-cyan-hover, #3d9bc4) !important;
	border-color: var(--mbst-cyan-hover, #3d9bc4) !important;
	transform: none;
}

body:not(.home).mbst-premium-ui #Content a.button:focus-visible {
	outline: none;
	box-shadow: var(--mbst-btn-focus-ring, 0 0 0 3px rgba(84, 173, 214, 0.38));
}

@media (max-width: 767px) {
	body:not(.home).mbst-premium-ui #Content .button_align,
	body:not(.home).mbst-premium-ui #Content .column_button,
	body:not(.home).mbst-premium-ui #Content .mbst-page-actions {
		flex-direction: column;
		align-items: stretch;
	}

	body:not(.home).mbst-premium-ui #Content a.button {
		width: 100%;
		justify-content: stretch;
	}

	body:not(.home).mbst-premium-ui #Content a.button .button_label {
		flex: 1 1 auto;
		text-align: center;
		white-space: normal;
	}
}
