/* Creatorz Partner Details — uploader.
   Deliberately low-specificity so the active theme keeps control of type. */

.cpd-uploads {
	margin: 2em 0;
	padding: 1.25em 1.5em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
}

.cpd-uploads__title {
	margin-top: 0;
}

.cpd-notice {
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border-left: 4px solid;
	border-radius: 3px;
	font-size: 0.95em;
}

.cpd-notice--success {
	border-color: #1a7f37;
	background: rgba(26, 127, 55, 0.08);
}

.cpd-notice--error {
	border-color: #b32d2e;
	background: rgba(179, 45, 46, 0.08);
}

.cpd-status {
	margin: 0 0 1em;
	font-size: 0.95em;
}

.cpd-status--done {
	color: #1a7f37;
}

.cpd-files {
	margin: 0 0 1.25em;
	padding: 0;
	list-style: none;
}

.cpd-file {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5em 0.75em;
	padding: 0.6em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cpd-file__slot {
	flex: 0 0 auto;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cpd-file__name {
	flex: 1 1 12em;
	overflow-wrap: anywhere;
}

.cpd-file__size {
	opacity: 0.65;
	font-size: 0.85em;
}

.cpd-file__remove {
	margin: 0;
}

.cpd-remove {
	padding: 0;
	border: 0;
	background: none;
	color: #b32d2e;
	font-size: 0.85em;
	text-decoration: underline;
	cursor: pointer;
}

.cpd-field {
	margin: 0 0 1.25em;
}

.cpd-field label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
}

.cpd-field input[type="file"] {
	display: block;
	width: 100%;
	max-width: 32em;
}

.cpd-hint,
.cpd-privacy {
	display: block;
	margin-top: 0.35em;
	opacity: 0.7;
	font-size: 0.85em;
}

.cpd-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 0.6em;
	padding: 0;
	list-style: none;
}

.cpd-preview li {
	padding: 0.2em 0.6em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 3px;
	font-size: 0.8em;
}

.cpd-submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

@media (prefers-reduced-motion: no-preference) {
	.cpd-submit {
		transition: opacity 0.15s ease;
	}
}

/* ---------------------------------------------------------------------------
   Checkout block — file inputs rendered inside the checkout form.
   Uses WooCommerce Blocks CSS variables so it inherits the checkout's look.
   --------------------------------------------------------------------------- */

.cpd-block {
	margin: 0 0 1.5em;
}

.cpd-block__title {
	margin: 0 0 0.25em;
	font-size: 1.1em;
}

.cpd-block__slot {
	margin: 0 0 1.25em;
}

.cpd-block__label {
	display: flex;
	align-items: baseline;
	gap: 0.5em;
	margin-bottom: 0.4em;
	font-weight: 600;
}

.cpd-block__count {
	margin-left: auto;
	opacity: 0.6;
	font-size: 0.85em;
	font-weight: 400;
}

.cpd-block__input {
	display: block;
	width: 100%;
	padding: 0.65em;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	font: inherit;
}

.cpd-block__input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.cpd-block__files {
	margin: 0 0 0.6em;
	padding: 0;
	list-style: none;
}

.cpd-block__file {
	display: flex;
	align-items: center;
	gap: 0.75em;
	padding: 0.5em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cpd-block__file-name {
	flex: 1 1 auto;
	overflow-wrap: anywhere;
}

.cpd-block__file-size {
	opacity: 0.6;
	font-size: 0.85em;
	white-space: nowrap;
}

.cpd-block__remove {
	padding: 0;
	border: 0;
	background: none;
	color: #b32d2e;
	font-size: 0.85em;
	text-decoration: underline;
	cursor: pointer;
}

.cpd-block__remove[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.cpd-block__error {
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border-left: 4px solid #b32d2e;
	border-radius: 3px;
	background: rgba(179, 45, 46, 0.08);
	font-size: 0.95em;
}

.cpd-block__hint,
.cpd-block__privacy,
.cpd-block__status {
	display: block;
	margin: 0.35em 0 0;
	opacity: 0.7;
	font-size: 0.85em;
}

.cpd-block.is-busy .cpd-block__input {
	opacity: 0.6;
	cursor: progress;
}

.cpd-block--preview .cpd-block__input {
	pointer-events: none;
}

/* The required marker must not inherit the browser's dotted abbr underline,
   and some themes add one of their own to .required. */
.cpd-block__required,
.cpd-block abbr.required,
.cpd-block__label abbr {
	border: 0;
	color: #b32d2e;
	text-decoration: none !important;
	cursor: default;
}

.cpd-block__label .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.cpd-block__file.is-pending {
	opacity: 0.65;
}

.cpd-block__file-state {
	font-size: 0.85em;
	white-space: nowrap;
}
