/* Portál partnerské sekce — frontend styles */

/* ---------------------------------------------------------
   Formuláře — obecné (mimo kartu)
   --------------------------------------------------------- */

.wppps-form-wrap {
	max-width: 480px;
}

.wppps-form .wppps-field {
	margin-bottom: 1em;
}

.wppps-form label {
	display: block;
	font-size: .875em;
	font-weight: 600;
	margin-bottom: .35em;
	color: #2d3748;
}

.wppps-required {
	color: #e53e3e;
	margin-left: 2px;
}

.wppps-form input[type="email"],
.wppps-form input[type="text"],
.wppps-form input[type="password"] {
	width: 100%;
	padding: .65em .95em;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	font-size: .95em;
	box-sizing: border-box;
	background: #f9fafb;
	color: #111;
	transition: border-color .15s, box-shadow .15s, background .15s;
	-webkit-appearance: none;
}

.wppps-form input[type="email"]:focus,
.wppps-form input[type="text"]:focus,
.wppps-form input[type="password"]:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, .15);
	background: #fff;
}

.wppps-form input::placeholder {
	color: #a0aec0;
}

.wppps-submit-row {
	margin-top: .9em;
	padding: 0;
}

.wppps-btn {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: .75em 1.4em !important;
	border: none !important;
	border-radius: 50px !important;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	transition: background .15s, transform .1s;
	-webkit-appearance: none;
	appearance: none;
}

.wppps-btn:active {
	transform: scale(.98);
}

.wppps-btn-primary {
	background: #0b8fe4 !important;
	color: #fff !important;
}

.wppps-btn-primary:hover {
	background: #0077cc !important;
}

.wppps-field-hint {
	display: block;
	font-size: .8em;
	color: #9ca3af;
	margin-top: .3em;
}

.wppps-field-error {
	display: block;
	font-size: .8em;
	color: #dc2626;
	margin-top: .3em;
	min-height: 1em;
}

/* ---------------------------------------------------------
   Notices
   --------------------------------------------------------- */

.wppps-notice {
	padding: .75em 1em;
	border-left: 4px solid #ccc;
	border-radius: 0 6px 6px 0;
	margin-bottom: 1em;
}

.wppps-notice-success {
	border-color: #38a169;
	background: #f0fff4;
	color: #276749;
}

/* E-mail verification success card */
.wppps-verify-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.2rem .8rem 1rem;
	gap: .35rem;
}

.wppps-verify-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #dbeafe;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-bottom: .3rem;
}

.wppps-verify-icon svg {
	width: 26px;
	height: 26px;
	stroke: #1d4ed8;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wppps-verify-card p {
	margin: 0;
	width: 100%;
}

.wppps-verify-title {
	font-size: .9rem;
	color: #6b7280;
}

.wppps-verify-headline {
	font-size: 1.1rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
	margin-bottom: .2rem;
}

.wppps-verify-email {
	font-size: .88rem;
	color: #374151;
}

.wppps-verify-email-addr {
	font-size: .92rem;
	font-weight: 700;
	color: #1d4ed8;
	word-break: break-all;
}

.wppps-verify-spam {
	font-size: .8rem;
	color: #9ca3af;
	margin-top: .4rem;
}

.wppps-notice-error {
	border-color: #e53e3e;
	background: #fff5f5;
	color: #c53030;
}

.wppps-notice-info {
	border-color: #3182ce;
	background: #ebf8ff;
	color: #2b6cb0;
}

.wppps-notice p {
	margin: 0;
	font-size: .9em;
	line-height: 1.5;
}

/* ---------------------------------------------------------
   Protected content + logout
   --------------------------------------------------------- */

.wppps-protected-content { }

.wppps-logout-link {
	font-size: .9em;
}

.wppps-logout-wrap {
	display: flex;
	justify-content: center;
	padding: 2em 0 .5em;
}

.wppps-logout-wrap .wppps-btn {
	max-width: 220px;
	text-decoration: none !important;
}

/* ---------------------------------------------------------
   Gate — karta
   --------------------------------------------------------- */

.wppps-gate {
	display: flex;
	justify-content: center;
	padding: .75em 1em 1.5em;
}

.wppps-gate-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	box-shadow: 0 6px 40px rgba(0, 0, 0, .10);
	max-width: 440px;
	width: 100%;
}

/* Hlavička s ikonou a textem */
.wppps-gate-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.2em 1.4em .4em;
	text-align: center;
}

.wppps-gate-icon {
	width: 44px;
	height: 44px;
	background: #dbeafe;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: .4em;
	color: #0b8fe4;
}

.wppps-gate-icon svg {
	width: 22px;
	height: 22px;
}

.wppps-gate-title {
	margin: .2em 0 0 !important;
	padding: 0 !important;
	font-size: 1.1em !important;
	font-weight: 700 !important;
	color: #1a202c !important;
	line-height: 1.2 !important;
	text-align: center;
}

/* Tab bar — pill kontejner */
.wppps-gate-tabs {
	display: flex;
	background: #dbeafe;
	border-radius: 50px;
	padding: 4px;
	margin: .7em 1.4em 0;
	gap: 0;
	/* Nulovat vše co téma přidá na <div>/<nav> */
	border: none !important;
	outline: none;
}

/* Tlačítka tabů — přebít vše z tématu */
.wppps-tab,
.wppps-tab:link,
.wppps-tab:visited {
	flex: 1;
	padding: .55em 1em;
	background: transparent;
	border: none !important;
	border-radius: 50px;
	outline: none !important;
	box-shadow: none !important;
	cursor: pointer;
	font-size: .9em;
	font-weight: 600;
	color: #4a6fa5;
	line-height: 1.2;
	transition: background .15s, color .15s;
	-webkit-appearance: none;
	appearance: none;
}

.wppps-tab:hover {
	background: rgba(255, 255, 255, .5);
	color: #1e3a5f;
}

.wppps-tab:focus-visible {
	box-shadow: 0 0 0 2px rgba(11, 143, 228, .5) !important;
}

.wppps-tab--active {
	background: #fff !important;
	color: #1a202c !important;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .14) !important;
	border: none !important;
	outline: none !important;
}

/* Tab panels */
.wppps-tab-panel {
	padding: .9em 1.4em 1.2em;
}

.wppps-tab-panel--hidden {
	display: none;
}

/* ---------------------------------------------------------
   Formuláře uvnitř karty — pill style
   --------------------------------------------------------- */

.wppps-gate-card .wppps-form-wrap {
	max-width: none;
}

.wppps-gate-card .wppps-form {
	margin: 0 !important;
	padding: 0 !important;
}

.wppps-gate-card .wppps-form .wppps-field {
	margin-bottom: .6em;
}

.wppps-gate-card .wppps-form label {
	display: block;
	font-size: .82em;
	font-weight: 600;
	color: #4a5568;
	margin: 0 0 .3em 0 !important;
	padding: 0 !important;
}

.wppps-gate-card .wppps-form input[type="email"],
.wppps-gate-card .wppps-form input[type="text"],
.wppps-gate-card .wppps-form input[type="password"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border-radius: 50px;
	background: #f1f5f9;
	border: 1.5px solid transparent;
	padding: .5em 1.1em;
	font-size: .9em;
	margin: 0 !important;
}

.wppps-gate-card .wppps-form input[type="email"]:focus,
.wppps-gate-card .wppps-form input[type="text"]:focus,
.wppps-gate-card .wppps-form input[type="password"]:focus {
	border-color: #0b8fe4;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(11, 143, 228, .15);
}

/* Pole s ikonou vpravo (eye toggle) */
.wppps-input-wrap {
	position: relative;
}

.wppps-input-wrap input {
	padding-right: 3em;
}

.wppps-password-toggle {
	position: absolute !important;
	right: .9em;
	top: 50%;
	transform: translateY(-50%);
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer;
	padding: 0 !important;
	width: auto !important;
	color: #9ca3af;
	display: flex !important;
	align-items: center;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
}

.wppps-password-toggle:hover {
	color: #4a5568;
}

.wppps-eye-hide {
	display: none;
}

/* ---------------------------------------------------------
   Forgot / reset password
   --------------------------------------------------------- */

.wppps-forgot-toggle-wrap {
	text-align: center;
	margin: .75em 0 0;
	padding: 0;
}

.wppps-link-btn {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	cursor: pointer;
	font-size: .82em;
	color: #4a6fa5;
	text-decoration: underline;
	text-underline-offset: 2px;
	-webkit-appearance: none;
	appearance: none;
}

.wppps-link-btn:hover {
	color: #0b8fe4;
}

.wppps-view-title {
	font-size: .95em;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 .9em 0 !important;
	padding: 0;
}

/* ---------------------------------------------------------
   GDPR consent
   --------------------------------------------------------- */

.wppps-consent-row {
	margin-bottom: .9em;
}

.wppps-consent-row label.wppps-consent-label {
	display: flex;
	align-items: flex-start;
	gap: .5em;
	font-weight: normal;
	font-size: .82em;
	cursor: pointer;
	line-height: 1.45;
	color: #4a5568;
}

.wppps-consent-row input[type="checkbox"] {
	margin-top: .2em;
	flex-shrink: 0;
	width: auto;
	accent-color: #0b8fe4;
}

/* ---------------------------------------------------------
   Gate — mobilní layout
   --------------------------------------------------------- */

@media (max-width: 540px) {
	.wppps-gate {
		padding: 0 0 .75em;
	}

	.wppps-gate-card {
		border-radius: 16px;
	}

	.wppps-gate-header {
		padding: .9em 1.2em .3em;
	}

	.wppps-gate-icon {
		width: 36px;
		height: 36px;
		border-radius: 10px;
		margin-bottom: .3em;
	}

	.wppps-gate-icon svg {
		width: 18px;
		height: 18px;
	}

	.wppps-gate-tabs {
		margin-left: 1em;
		margin-right: 1em;
	}

	.wppps-tab-panel {
		padding: .75em 1em 1em;
	}

	.wppps-gate-card .wppps-form .wppps-field {
		margin-bottom: .5em;
	}

	.wppps-consent-row {
		margin-bottom: .5em;
	}
}
