.pwc-tool {
	--pwc-color: currentColor;
	--pwc-button-bg: ButtonFace;
	--pwc-button-color: ButtonText;
	--pwc-error-color: #b00020;
	--pwc-success-color: #137333;
	--pwc-result-bg: #ffffff;
	--pwc-result-color: #000000;
	--pwc-border-radius: 8px;
	box-sizing: border-box;
	color: var(--pwc-color);
	position: relative;
	width: 100%;
}

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

.pwc-tool__inner {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	max-width: 400px;
	text-align: center;
	width: 100%;
}

.pwc-tool__dropzone {
	align-items: center;
	border: 2px dashed var(--pwc-color);
	border-radius: var(--pwc-border-radius);
	color: var(--pwc-color);
	cursor: pointer;
	display: flex;
	justify-content: center;
	min-height: 120px;
	padding: 16px;
	transition: background-color 160ms ease, transform 160ms ease;
	width: 400px;
	max-width: 100%;
}

.pwc-tool__dropzone:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.pwc-tool__dropzone.is-dragging {
	background-color: rgba(0, 0, 0, 0.04);
	transform: scale(1.01);
}

.pwc-tool__drop-text {
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.25;
}

.pwc-tool__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 14px;
	width: 400px;
	max-width: 100%;
}

.pwc-tool__button {
	align-items: center;
	background: var(--pwc-button-bg);
	border: 0;
	border-radius: var(--pwc-border-radius);
	color: var(--pwc-button-color);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	line-height: 1;
	min-height: 42px;
	padding: 10px 16px;
	text-decoration: none;
	transition: opacity 160ms ease;
}

.pwc-tool__button:hover,
.pwc-tool__button:focus-visible {
	opacity: 0.9;
}

.pwc-tool__button-icon {
	fill: currentColor;
	height: 18px;
	width: 18px;
}

.pwc-tool__button-text {
	display: inline-block;
}

.pwc-tool__file-input {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.pwc-tool__filename {
	color: var(--pwc-color);
	font-size: 0.95rem;
	line-height: 1.4;
	margin: 12px 0 0;
	max-width: 400px;
	overflow-wrap: anywhere;
}

.pwc-tool__message {
	font-size: 1.1rem;
	line-height: 1.4;
	margin: 8px 0 0;
	max-width: 400px;
	font-weight:bold;
}

.pwc-tool__message.is-error {
	color: var(--pwc-error-color);
}

.pwc-tool__message.is-success {
	color: var(--pwc-success-color);
}

.pwc-tool__results {
	background: var(--pwc-result-bg);
	border-radius: var(--pwc-border-radius);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	color: var(--pwc-result-color);
	margin-top: 14px;
	max-width: 400px;
	padding: 12px 16px;
	width: 100%;
}

.pwc-tool__result-row {
	align-items: center;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	text-align: left;
}

.pwc-tool__result-row:last-child {
	border-bottom: 0;
}

.pwc-tool__result-label {
	font-weight: 400;
}

.pwc-tool__result-value {
	font-weight: 700;
	text-align: right;
}

@media (max-width: 420px) {
	.pwc-tool__actions {
		flex-direction: column;
	}

	.pwc-tool__button {
		width: 100%;
	}
}
