/* GW Licenças — Minha conta > Downloads e chave no pedido (obrigado / ver pedido). Herda fontes e botões do tema (WoodMart). */
.gwl-licenses,
.gwl-license,
.gwl-secret,
.gwl-older {
	--gwl-blue: #1f3580;
	--gwl-blue-2: #177cc4;
}

.gwl-license {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 220px;
	text-align: start;
}

.gwl-license__key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.gwl-secret {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
}

.gwl-secret code.gwl-key {
	padding: 4px 8px;
	border: 1px solid #d5dbe8;
	border-radius: 6px;
	background: #f4f7fc;
	color: #14213d;
	font-size: 13px;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

/* Seletores reforçados: o WoodMart aplica o estilo de botão grande em todo <button>. */
.gwl-secret button.gwl-reveal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	min-width: 30px;
	height: 30px;
	min-height: 30px;
	padding: 0;
	border: 1px solid #d5dbe8;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: var(--gwl-blue);
	line-height: 1;
	cursor: pointer;
}

.gwl-secret button.gwl-reveal:hover,
.gwl-secret button.gwl-reveal:focus-visible {
	border-color: var(--gwl-blue-2);
	color: var(--gwl-blue-2);
}

.gwl-secret .gwl-reveal svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gwl-secret .gwl-reveal[aria-pressed="false"] .gwl-reveal__hide,
.gwl-secret .gwl-reveal[aria-pressed="true"] .gwl-reveal__show {
	display: none;
}

.gwl-secret button.gwl-copy {
	min-height: 30px;
	padding: 4px 12px;
	border: 1px solid var(--gwl-blue-2);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: var(--gwl-blue);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
	text-transform: none;
	cursor: pointer;
}

.gwl-secret button.gwl-copy:hover,
.gwl-secret button.gwl-copy:focus-visible {
	background: var(--gwl-blue-2);
	color: #fff;
}

.gwl-license__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 13px;
}

.gwl-license__plan {
	color: #3d4a63;
}

.gwl-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
}

.gwl-badge--active {
	background: #e3f4ea;
	color: #146c3a;
}

.gwl-badge--expired {
	background: #fff3d6;
	color: #7a5200;
}

.gwl-badge--cancelled {
	background: #fde6e6;
	color: #9b1c1c;
}

.gwl-license__dates {
	margin: 0;
	padding: 0;
	list-style: none;
	color: #3d4a63;
	font-size: 13px;
	line-height: 1.5;
}

.gwl-license__dates li {
	margin: 0;
}

.gwl-license__dates li.is-expired {
	color: #9b1c1c;
}

.gwl-license__sites {
	margin: 2px 0 0;
	padding: 6px 0 0;
	border-top: 1px dashed #d5dbe8;
	list-style: none;
	color: #3d4a63;
	font-size: 13px;
	line-height: 1.5;
}

.gwl-license__sites li {
	margin: 0;
	word-break: break-word;
}

.gwl-license__sites li.is-empty {
	color: #5b6478;
}

.gwl-license__renew {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.gwl-license a.button.gwl-renew {
	min-height: 32px;
	padding: 6px 14px;
	border-radius: 6px;
	background: #177cc4;
	color: #fff;
	font-size: 12px;
	line-height: 1.6;
	text-transform: none;
}

.gwl-license a.button.gwl-renew:hover,
.gwl-license a.button.gwl-renew:focus-visible {
	background: #1f3580;
	color: #fff;
}

.gwl-hint {
	display: block;
	max-width: 220px;
	margin-top: 6px;
	color: #5b6478;
	line-height: 1.4;
}

.gwl-pending,
.gwl-none {
	color: #5b6478;
	font-size: 13px;
}

/* Várias licenças do mesmo plugin na mesma linha (0.6.7): empilhadas, com "Ver mais N licenças". */
.gwl-licenses {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 220px;
	text-align: start;
}

.gwl-licenses > .gwl-license + .gwl-license,
.gwl-more > .gwl-license {
	padding-top: 10px;
	border-top: 1px solid #d5dbe8;
}

.gwl-more > .gwl-license {
	margin-top: 10px;
}

.gwl-more > summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--gwl-blue-2);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
}

.gwl-more > summary::-webkit-details-marker {
	display: none;
}

.gwl-more > summary::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.gwl-more[open] > summary::after {
	transform: translateY(2px) rotate(-135deg);
}

.gwl-more > summary:hover,
.gwl-more > summary:focus-visible {
	color: var(--gwl-blue);
}

.gwl-more:not([open]) .gwl-more__hide,
.gwl-more[open] .gwl-more__show {
	display: none;
}

/* Linha com licenças: produto e botão alinhados à primeira licença, não ao meio da pilha. */
.woocommerce-table--order-downloads tr:has(> td.gwl-license) > td {
	vertical-align: top;
}

/* "Outras versões" abaixo do botão de download. */
.gwl-older {
	display: block;
	margin: 10px 0 0;
}

.gwl-older__box {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	vertical-align: top;
}

.gwl-older__label {
	display: block;
	margin: 0;
	color: #5b6478;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.gwl-older__row {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Seletores reforçados: o WoodMart dá altura e preenchimento grandes a todo select e button. */
.gwl-older .gwl-older__row select {
	width: auto;
	min-width: 0;
	max-width: 170px;
	height: 32px;
	min-height: 32px;
	padding: 0 28px 0 8px;
	border: 1px solid #d5dbe8;
	border-radius: 6px;
	background-color: #fff;
	color: #14213d;
	font-size: 13px;
	line-height: 30px;
}

.gwl-older .gwl-older__row button.gwl-older__go {
	min-height: 32px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--gwl-blue-2);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: var(--gwl-blue);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
}

.gwl-older .gwl-older__row button.gwl-older__go:hover,
.gwl-older .gwl-older__row button.gwl-older__go:focus-visible {
	background: var(--gwl-blue-2);
	color: #fff;
}

/* Tabela responsiva do WooCommerce: cada célula vira uma linha no celular. */
@media (max-width: 768px) {
	.woocommerce-table--order-downloads td.gwl-license {
		text-align: start;
	}

	.woocommerce-table--order-downloads td.gwl-license .gwl-license,
	.woocommerce-table--order-downloads td.gwl-license .gwl-licenses,
	.woocommerce-table--order-downloads td.gwl-license::before {
		min-width: 0;
	}

	/* No WoodMart a célula vira flex: sem isto, o que é mais estreito que a tela fica centralizado. */
	.woocommerce-table--order-downloads td.gwl-license .gwl-licenses {
		flex: 1 1 100%;
		width: 100%;
	}

	.woocommerce-table--order-downloads td.download-file .gwl-older {
		flex: 1 1 100%;
		text-align: end;
	}

	.gwl-secret code.gwl-key {
		white-space: normal;
		word-break: break-all;
	}
}
