/* ============================================================
   voiponline.pl / resellervoip.pl — nowy layout (2026)
   Projekt Claude dostosowany do formularzy i kontenera content_cnt.
   Osobne reguły poffice_page zachowują geometrię druku przelewu.
   ============================================================ */

/* ---------- 1. Baza ---------- */

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	background-color: #eef1f6;
	background-image: radial-gradient(1100px 420px at 50% -80px, #ffe8d6 0%, rgba(255,232,214,0) 62%),
		linear-gradient(180deg, #f6f8fb 0%, #eef1f6 100%);
	background-repeat: no-repeat;
	background-position: top;
}

* {
	font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	color: #2b3648;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1 {
	color: #1c2434;
	font-size: 1.55rem;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 14px;
}

h1::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 10px;
	border-radius: 4px;
	background: linear-gradient(90deg, #fb923c, #ea580c);
}

a {
	color: #c2410c;
	text-decoration: underline;
	text-decoration-color: rgba(194, 65, 12, 0.35);
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

a:hover {
	text-decoration: none;
	color: #9a3412;
}

hr {
	border: 0;
	border-top: 1px solid #e4e9f0;
	margin: 18px 0;
}

ul {
	margin: 8px 0;
	padding-left: 20px;
}

ul li {
	margin: 4px 0;
}

/* ---------- 2. Stare klasy pomocnicze ---------- */

#mniejsza {
	font-size: 0.8rem;
	color: #64748b;
}

#mniejsza td {
	font-size: 0.8rem;
}

#mniejsza a {
	font-size: 0.8rem;
	color: #64748b;
}

#mniejsza a:hover {
	color: #c2410c;
}

#przekreslona {
	font-size: 0.8rem;
	color: #94a3b8;
	text-decoration: line-through;
}

.color_main {
	color: #2b3648;
}

.color_highlight_bold {
	color: #ea580c;
	font-weight: 700;
}

.bold {
	font-weight: 700;
}

.color_error {
	color: #dc2626;
}

/* ---------- 3. Szkielet strony ---------- */

#center_cnt {
	text-align: center;
	padding: 0 16px;
}

#main_cnt {
	width: 100%;
	max-width: 1080px;
	overflow: visible;
	margin: 0 auto;
	text-align: left;
}

#acc_main_cnt {
	text-align: left;
	padding: 0 10px;
}

/* --- naglowek serwisu (nowy) --- */

#site_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding: 18px 4px 16px;
}

#site_header .brand {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 13px;
	text-decoration: none;
}

#site_header .brand_mark {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 13px;
	background: linear-gradient(145deg, #fb923c 0%, #ea580c 70%);
	box-shadow: 0 8px 18px -8px rgba(234, 88, 12, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
}

#site_header .brand_mark svg {
	width: 24px;
	height: 24px;
	display: block;
}

#site_header .brand_name {
	display: block;
	color: #1c2434;
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

#site_header .brand_tagline {
	display: block;
	color: #6b7688;
	font-size: 0.8rem;
	line-height: 1.35;
}

#login_cnt {
	margin: 0;
	text-align: right;
}

#login_cnt a {
	display: inline-block;
	max-width: 100%;
	overflow-wrap: anywhere;
	background: #ffffff;
	border: 1px solid #fdba74;
	color: #c2410c;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	padding: 9px 18px;
	border-radius: 999px;
	box-shadow: 0 3px 10px -4px rgba(15, 23, 42, 0.18);
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

#login_cnt a:hover {
	background: #ea580c;
	border-color: #ea580c;
	color: #ffffff;
	transform: translateY(-1px);
}

/* --- pasek atutow (nowy) --- */

#usp_bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	padding: 0 6px 12px;
	color: #55617a;
	font-size: 0.82rem;
}

#usp_bar span::before {
	content: "\2713";
	display: inline-block;
	margin-right: 7px;
	font-weight: 800;
	color: #16a34a;
}

/* --- ogloszenia --- */

#marquee_cnt, .klasa_marquee {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	padding: 10px 16px;
	margin-bottom: 14px;
	font-weight: 600;
}

#marquee_cnt, #marquee_cnt *, .klasa_marquee, .klasa_marquee * {
	color: #92400e;
}

#marquee_cnt marquee {
	font-size: 0.9rem;
}

/* --- karta z trescia --- */

#body_cnt_top {
	margin: 0;
	height: 10px;
	background: linear-gradient(90deg, #f97316 0%, #fb923c 55%, #fdba74 100%);
	border-radius: 14px 14px 0 0;
}

#body_cnt {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 34px;
	align-items: start;
	margin: 0;
	padding: 28px 34px 30px;
	background: #ffffff;
	border-left: 1px solid #e6e9f0;
	border-right: 1px solid #e6e9f0;
}

#content_cnt {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	display: flow-root;
	overflow-wrap: anywhere;
}

#body_cnt_bottom {
	margin-left: 0;
	height: 16px;
	background: #ffffff;
	border: 1px solid #e6e9f0;
	border-top: 0;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 18px 32px -22px rgba(2, 6, 23, 0.28);
}

#acc_body_cnt {
	margin-bottom: 5px;
	padding: 20px;
	background: #ffffff;
	border: 1px solid #e6e9f0;
	border-radius: 12px;
	overflow: visible;
	width: 1500px;
}

/* --- uklad dwukolumnowy z panelem bocznym (strony niezalogowane) --- */

#payment_cnt {
	grid-column: 2;
	grid-row: 1;
	width: 320px;
	margin: 0;
	padding: 22px 24px;
	background: #f8fafc;
	border: 1px solid #e8edf3;
	border-left: 4px solid #fb923c;
	border-radius: 12px;
	font-size: 0.88rem;
	color: #475569;
}

#payment_cnt p {
	margin: 8px 0 14px;
}

#payment_cnt a {
	color: #475569;
}

#payment_cnt a:hover {
	color: #c2410c;
}

#payment_cnt h3 {
	margin: 24px 0 8px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #9a3412;
}

#payment_cnt h3:first-child {
	margin-top: 0;
}

#payment_cnt img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

/* ---------- 4. Nawigacja panelu ---------- */

#nav_cnt {
	margin-bottom: 12px;
}

#lnav_cnt {
	float: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid #eef1f6;
}

#lnav_cnt a {
	display: inline-block;
	margin-bottom: 0;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	padding: 9px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.88rem;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#lnav_cnt a:hover {
	color: #ffffff;
	background: #ea580c;
	border-color: #ea580c;
}

/* ---------- 5. Formularze ---------- */

form {
	margin: 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
	width: min(320px, 100%);
	min-width: 0;
	padding: 10px 13px;
	font-size: 0.94rem;
	color: #1c2434;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
	min-width: 170px;
	max-width: 100%;
	padding: 9px 12px;
	font-size: 0.94rem;
	color: #1c2434;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
	border-color: #fb923c;
	box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.28);
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: #ea580c;
	width: 17px;
	height: 17px;
	margin-right: 6px;
	vertical-align: -3px;
}

input[type="submit"],
button[type="submit"] {
	display: inline-block;
	max-width: 100%;
	white-space: normal;
	padding: 12px 26px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #ffffff;
	background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 8px 18px -8px rgba(234, 88, 12, 0.7);
	transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -8px rgba(234, 88, 12, 0.75);
}

input[type="submit"]:active,
button[type="submit"]:active {
	transform: translateY(0);
}

input[type="button"] {
	display: inline-block;
	max-width: 100%;
	padding: 11px 20px;
	font-size: 0.92rem;
	font-weight: 600;
	color: #334155;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

input[type="button"]:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

#custom_login {
	margin-top: 10px;
}

.payment_details {
	width: 100%;
	max-width: 760px;
	float: none;
}

.payment_details button[type="submit"] {
	text-align: center;
}

.rules_label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.rules_label input[type="checkbox"] {
	flex: 0 0 17px;
	margin: 4px 0 0;
}

a:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
button:focus-visible {
	outline: 3px solid #ea580c;
	outline-offset: 3px;
}

/* ---------- 6. Tabele ---------- */

table.form_table {
	width: 100%;
	border-collapse: collapse;
}

table.form_table td:first-child:not([colspan]) {
	width: 155px;
}

.table_scroll {
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

.table_scroll table {
	width: 100%;
}

.table_scroll table.bordered {
	min-width: 620px;
}

table tr td {
	vertical-align: top;
	padding: 7px 10px 7px 0;
}

table.verify {
	margin-top: 6px;
}

table.verify tr td {
	font-size: 1.08rem;
	padding: 10px 18px 10px 0;
	border-bottom: 1px dashed #e7ebf1;
}

table.verify tr:last-child td {
	border-bottom: 0;
	padding-top: 18px;
}

table.verify tr td:first-child {
	color: #6b7688;
	font-size: 0.92rem;
	padding-top: 12px;
}

table.bordered {
	margin-top: 6px;
	border: 1px solid #e3e8ef;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	font-size: 0.9rem;
}

table.bordered tr td {
	border-bottom: 1px solid #edf1f6;
	border-right: 1px solid #edf1f6;
	padding: 10px 14px;
}

table.bordered tr td:last-child {
	border-right: 0;
}

table.bordered tr:last-child td {
	border-bottom: 0;
}

table.bordered tr:hover td {
	background: #fffaf5;
}

table tr.th td {
	font-weight: 700;
	background: #f8fafc;
	color: #334155;
}

/* ---------- 7. Komunikaty ---------- */

span.error {
	display: block;
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 10px;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 12px;
}

span.error a {
	color: #b91c1c;
}

#freedays {
	margin-top: 18px;
	text-align: center;
	color: #6b7688;
	font-size: 0.86rem;
	background: #f8fafc;
	border: 1px dashed #dbe2ec;
	border-radius: 10px;
	padding: 10px 14px;
}

/* ---------- 8. Logo produktu w formularzu ---------- */

#logo_cnt {
	overflow: hidden;
	box-sizing: content-box;
	width: 130px;
	height: 65px;
	margin-top: 40px;
	border-radius: 10px;
	border: 1px solid #edf1f6;
	box-shadow: 0 4px 12px -6px rgba(2, 6, 23, 0.2);
}

#logo {
	margin-left: 10px;
	height: 87px;
	max-width: none;
	width: auto;
}

/* ---------- 9. Stopka ---------- */

#footer_cnt {
	color: #8a94a6;
	clear: both;
	font-size: 0.78rem;
	line-height: 1.75;
	text-align: center;
	margin: 26px auto 40px;
	max-width: 760px;
}

#footer_cnt a {
	color: #8a94a6;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 2px;
}

#footer_cnt a:hover {
	color: #c2410c;
}

#footer_cnt * {
	font-size: 0.78rem;
}

/* ---------- 10. Druk przelewu (poffice) ----------
   UWAGA: wartosci pozycjonowania 1:1 ze starego arkusza —
   naklada tekst na obrazek druku przelewu. NIE ZMIENIAC.   */

/* Dawny arkusz pozostawiał domyślny margines body 8px oraz
   linię tekstu 10pt/130%. Zmiana linii pod obrazem przesuwa nakładkę. */
body.poffice_page {
	margin: 8px;
	padding: 0;
	background: #ffffff;
	-webkit-font-smoothing: auto;
}

body.poffice_page,
.poffice_page * {
	box-sizing: content-box;
	font-family: Tahoma, Verdana, Arial;
	font-size: 10pt;
	line-height: 130%;
	color: #333333;
}

.poffice_page .poffice_cnt > img {
	display: inline;
	max-width: none;
	width: auto;
	height: auto;
	vertical-align: baseline;
}

div.poffice_cnt {
	width: 610px;
	height: 395px;
	overflow: hidden;
}

div.poffice {
	position: relative;
	top: -398px;
}

div.poffice div.title {
	position: absolute;
	font-family: Arial, Helvetica;
	color: red;
	line-height: 130%;
}

div.poffice div.title, div.poffice div.title span {
	font-size: 9px;
}

div.poffice div.value {
	position: absolute;
	font-family: Courier;
	font-size: 16px;
	font-weight: bold;
	letter-spacing: 9.5px;
	line-height: 130%;
}

/* ---------- 11. Responsywnosc ---------- */

@media (max-width: 900px) {
	#body_cnt {
		padding: 22px 20px 24px;
	}

	#payment_cnt {
		grid-column: 1;
		grid-row: 2;
		width: 100%;
		margin: 14px 0 0;
	}

	#site_header {
		padding: 14px 2px 12px;
	}

	#logo_cnt {
		margin-top: 12px;
	}
}

@media (max-width: 560px) {
	#center_cnt {
		padding: 0 10px;
	}

	h1 {
		font-size: 1.3rem;
	}

	#login_cnt {
		width: 100%;
		text-align: left;
	}

	#body_cnt {
		padding: 20px 16px 22px;
	}

	#site_header .brand_tagline {
		margin-top: 4px;
	}

	#content_cnt table.form_table,
	#content_cnt table.form_table > tbody,
	#content_cnt table.form_table > tbody > tr,
	#content_cnt table.form_table > tbody > tr > td {
		display: block;
		width: 100%;
	}

	#content_cnt table.form_table > tbody > tr > td {
		padding: 3px 0 9px;
	}

	#content_cnt table.form_table > tbody > tr > td:first-child {
		padding-bottom: 3px;
	}

	#content_cnt table.form_table td:empty {
		display: none;
	}

	#content_cnt table.form_table td input[type="text"],
	#content_cnt table.form_table td input[type="password"],
	#content_cnt table.form_table td input[type="email"],
	#content_cnt table.form_table td input[type="tel"] {
		width: 100%;
	}

	#content_cnt select {
		min-width: 0;
		width: 100%;
	}

	#content_cnt input[type="submit"],
	#content_cnt input[type="button"],
	#content_cnt button[type="submit"] {
		margin: 4px 0;
		padding: 11px 16px;
	}

	#logo_cnt {
		margin: 8px 0;
	}

	table.verify tr td {
		font-size: 0.98rem;
	}
}

/* ---------- 12. Wydruk ---------- */

@media print {
	html, body {
		background: #ffffff;
	}

	#body_cnt_bottom, #logo_cnt {
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition: none !important;
	}
}
