/* Checkout tax exemption box */
.wcte-box { margin: 1.5em 0; padding: 1em 1.25em; border: 1px solid rgba(0, 0, 0, .12); border-radius: 4px; }
.wcte-box h3 { margin-top: 0; }
.wcte-upload label { display: block; font-weight: 600; margin-bottom: .4em; }
.wcte-hint, .wcte-note { font-size: .85em; opacity: .75; margin: .4em 0; }
.wcte-status { margin: .4em 0; }
.wcte-box { overflow: hidden; box-sizing: border-box; }
.wcte-status, .wcte-file, .wcte-file strong { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; }
.wcte-file strong { display: inline; }
.wcte-status.wcte-error { color: #b32d2e; }

/* Upload field: dashed drop area with a styled button */
.wcte-upload .wcte-file-input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: .9em 1em;
	border: 2px dashed rgba(0, 0, 0, .25);
	border-radius: 6px;
	background: rgba(0, 0, 0, .03);
	color: inherit;
	font: inherit;
	font-size: .9em;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.wcte-upload .wcte-file-input:hover,
.wcte-upload .wcte-file-input:focus {
	border-color: currentColor;
	background: rgba(0, 0, 0, .06);
	outline: none;
}
.wcte-upload .wcte-file-input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.wcte-upload .wcte-file-input:disabled {
	opacity: .6;
	cursor: progress;
}
.wcte-upload .wcte-file-input::file-selector-button {
	margin: 0 .9em 0 0;
	padding: .55em 1.1em;
	border: 0;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease;
}
.wcte-upload .wcte-file-input:hover::file-selector-button {
	background: #3c434a;
}
.wcte-remove.button { margin-top: .4em; }

/* My Account request status */
.wcte-status-badge { display: inline-block; margin-left: .5em; padding: .15em .6em; border-radius: 999px; font-size: .6em; font-weight: 600; vertical-align: middle; background: rgba(0, 0, 0, .1); }
.wcte-status-approved { background: #d1f0d8; color: #14532d; }
.wcte-status-pending { background: #fdf0c8; color: #6b4a00; }
.wcte-status-denied, .wcte-status-cancelled { background: #f9d7d7; color: #7a1c1c; }

/* Buttons inside the request boxes (match the upload button, independent of the theme) */
.wcte-box button.button {
	display: inline-block;
	margin-top: .6em;
	padding: .7em 1.4em;
	border: 0;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, box-shadow .15s ease;
}
.wcte-box button.button:hover,
.wcte-box button.button:focus {
	background: #3c434a;
	color: #fff;
}
.wcte-box button.button:focus-visible {
	outline: 2px solid #1d2327;
	outline-offset: 2px;
}
.wcte-box button.button:disabled {
	opacity: .6;
	cursor: not-allowed;
}
/* The remove button is secondary */
.wcte-box button.wcte-remove.button {
	background: transparent;
	color: inherit;
	border: 1px solid rgba(0, 0, 0, .3);
	padding: .5em 1em;
	font-weight: 500;
}
.wcte-box button.wcte-remove.button:hover {
	background: rgba(0, 0, 0, .06);
	color: inherit;
}
