/* ──────────────────────────────────────────────────────────────
   FEAT Portal Manager — Frontend shortcode output styles
   ────────────────────────────────────────────────────────────── */

/* ── Empty state ─────────────────────────────────────────────── */
.fpm-empty-state {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	text-align: center;
}

.fpm-empty-state p {
	font-family: 'General Sans', sans-serif;
	font-weight: 400;
	font-size: 35px;
	font-style: normal;
	text-align: center;
	color: #FFDD88;
	margin: 0;
}

/* ── Project title (fpm_titulo shortcode) ────────────────────── */
.fpm-project-title {
	font-family: 'General Sans', sans-serif;
	font-style: italic;
	font-weight: 500;
	font-size: 66px;
	line-height: 92px;
	text-align: center;
	text-decoration: underline;
	color: #FFDD88;
	margin: 0;
}

/* ── Embed wrapper (Canva / iframe) ──────────────────────────── */
.fpm-embed-wrap {
	width: 100%;
	max-width: 80%;
	margin-left: auto;
	margin-right: auto;
}

/* Responsive iframe for plain-URL embeds */
.fpm-embed-responsive {
	position: relative;
	padding-top: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
}
.fpm-embed-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Allow Canva's own inline-style wrappers to display correctly */
.fpm-embed-wrap > div {
	width: 100% !important;
}

/* ── Revisions list ──────────────────────────────────────────── */
.fpm-revisions {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

/* Stage: each revision locks to one viewport height */
.fpm-revision-item {
	display: flex;
	flex-direction: column;
	height: 100vh;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

.fpm-revision-title {
	flex-shrink: 0;
	max-width: 80%;
	margin: 0 auto 12px;
	font-size: 1.1em;
	color: #fff;
}

/* ── Video wrapper — flex child fills remaining height ───────── */
.fpm-video-wrap {
	flex: 1;
	min-height: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #000;
	max-width: 80%;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

/* Shrinks to fit whichever axis is smaller — no scroll, no letterbox bars */
.fpm-video-wrap video {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	border-radius: 6px;
}

/* Responsive iframe for non-file video URLs */
.fpm-video-responsive {
	position: relative;
	padding-top: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 6px;
}
.fpm-video-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ── ToS form (FluentForms inside [fpm_tos]) ─────────────────── */

/* Inputs — !important beats FluentForms' specificity on border/radius */
.fpm-tos-wrap .ff-el-form-control,
.fpm-tos-wrap .ff-el-form-control:focus,
.fpm-tos-wrap .ff-el-form-control:active {
	background: transparent !important;
	border: 1px solid #000 !important;
	border-radius: 12px !important;
	font-family: 'General Sans', sans-serif !important;
	font-weight: 500 !important;
	color: #000 !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Button — !important beats the inline <style> FluentForms injects
   (form.fluent_form_N .ff-btn-submit:not(.ff_btn_no_style) specificity 0,3,1)
   Dark button intentional: the ToS section sits on a yellow background. */
.fpm-tos-wrap .ff-btn-submit {
	background-color: #000 !important;
	color: #FFDD88 !important;
	border: 1px solid #000 !important;
	border-radius: 24px !important;
	font-family: 'General Sans', sans-serif !important;
	font-weight: 500 !important;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, border-radius 0.2s;
}

.fpm-tos-wrap .ff-btn-submit:hover,
.fpm-tos-wrap .ff-btn-submit:focus {
	background-color: transparent !important;
	color: #000 !important;
	border: 1px solid #000 !important;
	border-radius: 24px !important;
}

/* ── Final Deliverables accordion ([fpm_revisoes] top) ──────── */
.fpm-deliverables {
	width: 100%;
	max-width: 80%;
	margin: 0 auto 20px;
	border: 1px solid rgba(255, 221, 136, 0.25);
	border-radius: 8px;
	overflow: hidden;
}

.fpm-deliverables-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 20px;
	font-family: 'General Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #FFDD88;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: background 0.15s ease;
}

/* Remove native triangle marker in all browsers */
.fpm-deliverables-toggle::-webkit-details-marker { display: none; }
.fpm-deliverables-toggle::marker { display: none; }

.fpm-deliverables-toggle:hover {
	background: rgba(255, 221, 136, 0.06);
}

.fpm-deliverables[open] .fpm-deliverables-toggle {
	border-bottom: 1px solid rgba(255, 221, 136, 0.15);
}

.fpm-deliverables-body {
	padding: 14px 20px;
}

.fpm-deliverables-link {
	font-family: 'General Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #FFDD88;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: opacity 0.15s ease;
}

.fpm-deliverables-link:hover,
.fpm-deliverables-link:focus {
	opacity: 0.75;
	text-decoration: underline;
	color: #FFDD88;
}

/* ── Invoice / document table ([fpm_faturas]) ────────────────── */
.fpm-faturas-wrap {
	width: 100%;
	max-width: 80%;
	margin: 48px auto 0;
}

.fpm-ft-heading {
	font-family: 'General Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #FFDD88;
	margin: 0 0 16px;
}

/* Kill every default border the theme/browser may inject, then add back only
   the horizontal rules we actually want. */
.fpm-faturas-table {
	width: auto;
	min-width: 360px;
	border-collapse: collapse;
	border-spacing: 0;
	border: none !important;
	font-family: 'General Sans', sans-serif;
}

.fpm-faturas-table th,
.fpm-faturas-table td {
	border: none !important;
	background: transparent !important;
}

/* Column headers */
.fpm-faturas-table thead th {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 221, 136, 0.5);
	padding: 0 56px 12px 0;
	border-bottom: 1px solid rgba(255, 221, 136, 0.25) !important;
	text-align: left;
	white-space: nowrap;
}

.fpm-faturas-table thead th.fpm-ft-col-dl {
	padding-right: 0;
}

/* Data rows */
.fpm-ft-row td {
	padding: 16px 56px 16px 0;
	border-bottom: 1px solid rgba(255, 221, 136, 0.1) !important;
	vertical-align: middle;
}

.fpm-ft-row:last-child td {
	border-bottom: 1px solid rgba(255, 221, 136, 0.25) !important;
}

.fpm-ft-col-name {
	font-size: 14px;
	font-weight: 400;
	color: #fff;
}

.fpm-ft-col-dl {
	padding-right: 0 !important;
	white-space: nowrap;
}

/* Download link */
.fpm-ft-link {
	font-size: 13px;
	font-weight: 500;
	color: #FFDD88;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: opacity 0.15s ease;
	white-space: nowrap;
}

.fpm-ft-link:hover,
.fpm-ft-link:focus {
	opacity: 0.75;
	text-decoration: underline;
	color: #FFDD88;
}
