/* ===== Tela de envio de arte (/enviar-arte/) ===== */

.gp-arte-wrap {
	max-width: 620px;
	margin: 0 auto;
	padding: 20px 16px 48px;
	box-sizing: border-box;
}

.gp-arte-card {
	background: #fff;
	border: 1px solid #e4e9ee;
	border-radius: 10px;
	padding: 20px 22px;
	margin-bottom: 18px;
	box-shadow: 0 1px 3px rgba(16, 42, 67, 0.06);
	box-sizing: border-box;
}

.gp-arte-card h2 {
	margin: 0 0 12px;
	font-size: 18px;
	color: #144e82;
	font-weight: 700;
}

.gp-arte-resumo-line {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 7px 0;
	border-bottom: 1px dashed #e4e9ee;
	font-size: 14px;
	line-height: 1.45;
}

.gp-arte-resumo-line:last-child {
	border-bottom: none;
}

.gp-arte-resumo-line span {
	color: #7a8794;
	flex: 0 0 auto;
}

.gp-arte-resumo-line strong {
	color: #0d385e;
	text-align: right;
	font-weight: 600;
}

.gp-arte-help {
	margin: 0 0 14px;
	font-size: 13.5px;
	color: #66727e;
	line-height: 1.5;
}

/* Campos de arquivo (frente / verso).
   O bloco do verso é irmão do da frente, dentro da MESMA seção e ANTES do
   primeiro divisor: frente e verso não são alternativas uma da outra, então não
   levam outro "ou" no meio. */
.gp-arte-slot + .gp-arte-slot {
	margin-top: 16px;
}

.gp-arte-slot-rotulo {
	margin-bottom: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #0d385e;
}

.gp-arte-verso-dica {
	margin: 12px 0 0;
	padding: 10px 12px;
	background: #f4f8fc;
	border-left: 3px solid #124e82;
	border-radius: 0 6px 6px 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: #33414f;
}

/* Dropzone */
.gp-arte-dropzone {
	border: 2px dashed #b9c6d2;
	border-radius: 8px;
	background: #f8fbfd;
	padding: 26px 18px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.gp-arte-dropzone:hover,
.gp-arte-dropzone.is-dragover {
	border-color: #124e82;
	background: #eef5fb;
}

.gp-arte-dropzone-icon {
	font-size: 30px;
	line-height: 1;
	margin-bottom: 8px;
}

.gp-arte-dropzone-inner {
	color: #33414f;
	font-size: 14px;
}

.gp-arte-browse {
	color: #124e82;
	font-weight: 700;
	text-decoration: underline;
}

.gp-arte-dropzone-hint {
	margin-top: 6px;
	font-size: 12px;
	color: #98a4af;
}

.gp-arte-upload-status {
	margin-top: 10px;
	font-size: 13.5px;
}

.gp-arte-upload-status .gp-arte-file-chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #eaf4ec;
	border: 1px solid #cbe5d0;
	color: #1e6b3a;
	border-radius: 6px;
	padding: 9px 12px;
	font-weight: 600;
}

.gp-arte-upload-status .gp-arte-remove {
	background: none;
	border: none;
	color: #b00020;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
}

.gp-arte-upload-status .gp-arte-error {
	color: #b00020;
	font-weight: 600;
}

.gp-arte-upload-status .gp-arte-progress {
	color: #124e82;
	font-weight: 600;
}

/* Divisor */
.gp-arte-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0;
	color: #98a4af;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.gp-arte-divider::before,
.gp-arte-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e4e9ee;
}

/* Link externo */
.gp-arte-link-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: #33414f;
}

.gp-arte-link-input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #cbd3da;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.gp-arte-link-input:focus {
	outline: none;
	border-color: #124e82;
	box-shadow: 0 0 0 3px rgba(18, 78, 130, 0.12);
}

.gp-arte-link-status {
	margin-top: 8px;
	font-size: 13px;
	color: #1e6b3a;
	font-weight: 600;
}

.gp-arte-link-status.is-error {
	color: #b00020;
}

/* Checkbox enviar depois */
.gp-arte-later {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.45;
	color: #33414f;
	cursor: pointer;
}

.gp-arte-later input[type="checkbox"] {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin: 2px 0 0;
	accent-color: #124e82;
	cursor: pointer;
}

/* Botão avançar */
.gp-arte-avancar {
	display: block;
	width: 100%;
	padding: 15px;
	background: #124e82;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.gp-arte-avancar:hover {
	background: #0d385e;
}

.gp-arte-empty p {
	color: #55606b;
	line-height: 1.5;
	margin: 0 0 16px;
}

/* ===== Modal de confirmação (reutiliza o padrão do checkout) ===== */

.gp-confirm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
	box-sizing: border-box;
}

.gp-confirm-modal-overlay.is-open {
	display: flex;
}

.gp-confirm-modal {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 520px;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
}

.gp-confirm-head {
	position: relative;
	padding: 20px 48px 14px 20px;
	border-bottom: 1px solid #eef1f4;
}

.gp-confirm-head h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.35;
	color: #144e82;
	font-weight: 700;
}

.gp-confirm-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	padding: 4px 8px;
}

.gp-confirm-close:hover {
	color: #0d385e;
}

.gp-confirm-body {
	padding: 6px 20px 16px;
	overflow-y: auto;
}

.gp-confirm-item {
	margin: 14px 0 0;
}

.gp-confirm-item h4 {
	margin: 0 0 4px;
	font-size: 14px;
	color: #124e82;
	font-weight: 700;
}

.gp-confirm-item p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #444;
}

.gp-confirm-item a {
	color: #124e82;
	font-weight: 700;
	text-decoration: underline;
}

.gp-confirm-item ul {
	margin: 6px 0 0;
	padding-left: 18px;
	list-style: disc;
}

.gp-confirm-item li {
	margin: 4px 0;
	font-size: 13px;
	line-height: 1.5;
	color: #444;
}

.gp-confirm-item li strong {
	color: #124e82;
}

/* -------- Modal de compliance legal (Carimbos / Receituários) -------- */
.gp-compliance-body {
	font-size: 13.5px;
	line-height: 1.6;
	color: #444;
	margin: 0;
}
.gp-compliance-body strong {
	color: #0d385e;
}
.gp-compliance-check-wrap .gp-confirm-check {
	margin-top: 16px;
}

.gp-confirm-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px 0 4px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #333;
	cursor: pointer;
}

.gp-confirm-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin: 2px 0 0;
	cursor: pointer;
	accent-color: #124e82;
}

.gp-confirm-check a {
	color: #124e82;
	font-weight: 700;
	text-decoration: underline;
}

.gp-confirm-foot {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 20px 20px;
	border-top: 1px solid #eef1f4;
	background: #fafbfc;
}

.gp-confirm-confirm {
	width: 100%;
	padding: 13px;
	background: #124e82;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.gp-confirm-confirm:hover:not(:disabled) {
	background: #0d385e;
}

.gp-confirm-confirm:disabled {
	opacity: 0.5;
	cursor: default;
}

.gp-confirm-cancel {
	width: 100%;
	padding: 11px;
	background: #fff;
	border: 1px solid #cbd3da;
	border-radius: 6px;
	color: #444;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.gp-confirm-cancel:hover {
	border-color: #a9b4be;
}

/* ===== Toast ===== */
.gp-toast {
	position: fixed;
	left: 50%;
	bottom: 32px;
	transform: translateX(-50%) translateY(20px);
	background: #144e82;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 99999;
	max-width: 90vw;
}

.gp-toast--show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
	.gp-arte-card {
		padding: 16px;
	}
	.gp-arte-resumo-line {
		flex-direction: column;
		gap: 2px;
	}
	.gp-arte-resumo-line strong {
		text-align: left;
	}
}

/* -------- Chip de arquivo (nome + tamanho + Remover/Trocar) -------- */
.gp-arte-upload-status .gp-arte-file-chip.is-uploading {
	background: #eef4fa;
	border-color: #c9daea;
	color: #124e82;
}
.gp-arte-upload-status .gp-arte-file-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.gp-arte-upload-status .gp-arte-file-name {
	font-weight: 700;
	word-break: break-all;
}
.gp-arte-upload-status .gp-arte-file-size {
	font-style: normal;
	font-weight: 400;
	font-size: 12px;
	color: #5c6b7a;
}

/* -------- Esconde o título nativo do tema nas páginas do fluxo -------- */
body.gp-arte-flow-page .wp-block-post-title {
	display: none;
}

/* -------- Identificação (/identificacao/) -------- */
.gp-ident-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 8px 16px 40px;
	box-sizing: border-box;
}
/* -------- Login com Google (/identificacao/) -------- */
.gp-ident-google {
	margin: 0;
}
.gp-ident-google-btn {
	position: relative;
	width: 100%;
	padding: 11px 12px;
	background: #fff;
	color: #3c4043;
	border: 1px solid #cbd3da;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.gp-ident-google-btn:hover {
	background: #f8f9fa;
	box-shadow: 0 1px 3px rgba(16, 42, 67, 0.10);
}
.gp-ident-google-btn:focus-visible {
	outline: none;
	border-color: #124e82;
	box-shadow: 0 0 0 3px rgba(18, 78, 130, 0.12);
}
.gp-ident-google-btn .gp-google-g {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
}
.gp-ident-sep {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0 12px;
	color: #98a4af;
	font-size: 12px;
	letter-spacing: 0.02em;
}
.gp-ident-sep::before,
.gp-ident-sep::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e4e9ee;
}
.gp-ident-google-unavailable {
	font-size: 13px;
	color: #8a6d00;
	background: #fff8e1;
	border: 1px solid #f0e0a0;
	border-radius: 6px;
	padding: 10px 14px;
	margin: 0 0 12px;
}
.gp-ident-cols {
	display: flex;
	gap: 20px;
	align-items: stretch;
}
.gp-ident-col {
	flex: 1 1 50%;
	background: #fff;
	border: 1px solid #e4e9ee;
	border-radius: 10px;
	padding: 22px;
	box-shadow: 0 1px 3px rgba(16, 42, 67, 0.06);
	box-sizing: border-box;
}
.gp-ident-col--register {
	background: #f6f9fc;
}
.gp-ident-col-title {
	margin: 0 0 16px;
	font-size: 17px;
	color: #124e82;
	font-weight: 700;
}
.gp-ident-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.gp-ident-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #33414f;
}
.gp-ident-label input {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 11px 12px;
	border: 1px solid #cbd3da;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
	font-weight: 400;
}
.gp-ident-label input:focus {
	outline: none;
	border-color: #124e82;
	box-shadow: 0 0 0 3px rgba(18, 78, 130, 0.12);
}
.gp-ident-status {
	font-size: 13px;
	min-height: 18px;
	color: #1e6b3a;
	font-weight: 600;
}
.gp-ident-status.is-error {
	color: #b00020;
}
.gp-ident-btn {
	width: 100%;
	padding: 13px;
	background: #124e82;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
}
.gp-ident-btn:hover {
	background: #0d385e;
}
.gp-ident-btn--alt {
	background: #124e82;
}
.gp-ident-btn--alt:hover {
	background: #0d385e;
}
.gp-ident-lost {
	margin: 2px 0 0;
	font-size: 13px;
}
.gp-ident-lost a {
	color: #124e82;
	text-decoration: underline;
}
.gp-ident-logged {
	text-align: center;
	font-size: 15px;
}
.gp-ident-logged a {
	color: #124e82;
	font-weight: 700;
}

/* -------- Download da arte no Minha Conta (Ver Pedido) -------- */
.gp-order-art {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-start;
}
.gp-order-art-btn {
	display: inline-block;
	padding: 9px 14px;
	background: #124e82;
	color: #fff;
	border-radius: 6px;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}
.gp-order-art-btn:hover {
	background: #0d385e;
	color: #fff;
}
.gp-order-art-link {
	background: #eef5fb;
	color: #124e82;
	border: 1px solid #c4d7e8;
}
.gp-order-art-link:hover {
	background: #e2eef8;
	color: #124e82;
}
.gp-order-art-later {
	margin: 0;
	font-size: 13px;
	color: #8a6d00;
	background: #fff8e1;
	border: 1px solid #f0e0a0;
	border-radius: 6px;
	padding: 8px 12px;
}
.gp-order-art-expired {
	margin: 0;
	font-size: 13px;
	color: #b00020;
	background: #fdecec;
	border: 1px solid #f5c2c2;
	border-radius: 6px;
	padding: 8px 12px;
}

@media (max-width: 640px) {
	.gp-ident-cols {
		flex-direction: column;
	}
}

/* ===== Modal de prévia da arte (interceptação antes do envio) =====
   Reusa as classes .gp-confirm-modal* — mesmas cores, tipografia,
   espaçamentos e botões já usados nos outros modais desta tela.
   Só acrescenta um modificador de largura para a miniatura respirar. */

.gp-confirm-modal.gp-preview-modal {
	max-width: 640px;
}

.gp-preview-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 14px 0 0;
	padding: 10px;
	min-height: 140px;
	background: #fafbfc;
	border: 1px solid #eef1f4;
	border-radius: 6px;
	overflow: hidden;
	box-sizing: border-box;
}

.gp-preview-img,
.gp-preview-canvas {
	display: block;
	max-width: 100%;
	max-height: 46vh;
	width: auto;
	height: auto;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(16, 42, 67, 0.12);
}

.gp-preview-loading {
	font-size: 13.5px;
	font-weight: 600;
	color: #124e82;
	padding: 26px 0;
}

.gp-preview-generic {
	text-align: center;
	padding: 20px 10px;
}

.gp-preview-generic-icon {
	font-size: 38px;
	line-height: 1;
	margin-bottom: 10px;
}

.gp-preview-generic-ext {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #124e82;
	background: #fafbfc;
	border: 1px solid #e4e9ee;
	border-radius: 4px;
	padding: 3px 10px;
}

.gp-preview-file {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0 0;
	font-size: 13.5px;
	line-height: 1.45;
}

.gp-preview-name {
	color: #0d385e;
	font-weight: 600;
	word-break: break-all;
}

.gp-preview-size {
	flex: 0 0 auto;
	color: #7a8794;
	font-style: normal;
}

.gp-preview-hint {
	margin: 8px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #66727e;
}

/* Observação do cliente sobre a arte (uma por arquivo) */
.gp-preview-note-wrap {
	display: block;
	margin: 14px 0 0;
}

.gp-preview-note-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #33414f;
}

.gp-preview-note-label em {
	font-style: normal;
	font-weight: 400;
	color: #98a4af;
}

.gp-preview-note {
	display: block;
	width: 100%;
	min-height: 62px;
	padding: 10px 12px;
	border: 1px solid #cbd3da;
	border-radius: 6px;
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1.5;
	color: #33414f;
	background: #fff;
	box-sizing: border-box;
	resize: vertical;
}

.gp-preview-note::placeholder {
	color: #a9b3bd;
}

.gp-preview-note:focus {
	outline: none;
	border-color: #124e82;
	box-shadow: 0 0 0 3px rgba(18, 78, 130, 0.12);
}
