.wccp-receipt-wrap {
	margin: 22px 0;
	padding: 20px;
	border: 1px solid #e4e7ec;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(16, 24, 40, .05);
}

.wccp-receipt-wrap[hidden] {
	display: none !important;
}

.wccp-heading {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 14px;
}

.wccp-icon {
	display: inline-flex;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #eef6ff;
	color: #1769aa;
	font-size: 20px;
	font-weight: 700;
}

.wccp-icon-id {
	font-size: 12px;
	letter-spacing: .04em;
}

.wccp-heading label,
.wccp-heading-label {
	display: block;
	margin: 0 0 3px;
	color: #101828;
	font-size: 15px;
	font-weight: 700;
}

.wccp-heading p {
	margin: 0;
	color: #667085;
	font-size: 13px;
	line-height: 1.5;
}

.wccp-heading .required,
.wccp-field-label .required {
	color: #d92d20;
}

.wccp-id-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.wccp-id-field {
	min-width: 0;
}

.wccp-field-label {
	display: block;
	margin: 0 0 8px;
	color: #101828;
	font-size: 13px;
	font-weight: 700;
}

.wccp-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	padding: 18px;
	border: 1.5px dashed #98a2b3;
	border-radius: 10px;
	background: #f9fafb;
	text-align: center;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}

.wccp-dropzone:hover,
.wccp-dropzone:focus-within {
	border-color: #1769aa;
	background: #f2f8ff;
}

.wccp-dropzone-title {
	color: #1769aa;
	font-weight: 700;
}

.wccp-dropzone-meta {
	margin-top: 4px;
	color: #667085;
	font-size: 12px;
}

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

.wccp-file-status {
	margin-top: 10px;
	font-size: 13px;
}

.wccp-file-status.is-uploading {
	color: #475467;
}

.wccp-file-status.is-success {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #ecfdf3;
	color: #027a48;
}

.wccp-file-status.is-error {
	padding: 10px 12px;
	border-radius: 8px;
	background: #fef3f2;
	color: #b42318;
}

.wccp-file-name {
	min-width: 0;
	overflow-wrap: anywhere;
}

.wccp-remove {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 680px) {
	.wccp-id-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.wccp-receipt-wrap {
		padding: 16px;
	}
}

/* Place documents inside the native payment form without affecting other widgets. */
.wcucc-wrap #payment .wccp-receipt-wrap {
    width: 100%;
    min-width: 0;
    margin: 16px 0;
    background: var(--wcucc-document-bg, #fff);
    border-color: var(--wcucc-document-border, #e4e7ec);
    text-align: left;
    clear: both;
}
.wcucc-wrap #payment .wccp-dropzone {
    display: flex;
    white-space: normal;
    border: 1.5px dashed var(--wcucc-document-drop-border, #98a2b3);
    background: var(--wcucc-document-drop-bg, #f9fafb);
}
.wcucc-wrap #payment .wccp-dropzone:hover {
    border-color: var(--wcucc-document-drop-hover, var(--wcucc-document-drop-border, #98a2b3)) !important;
    background: var(--wcucc-document-drop-bg, #f9fafb);
    box-shadow: none !important;
    outline: none !important;
}
.wcucc-wrap #payment .wccp-dropzone:focus {
    border-color: var(--wcucc-document-drop-hover, var(--wcucc-document-drop-border, #98a2b3)) !important;
    outline: none !important;
}
.wcucc-wrap #payment .wccp-dropzone:focus-visible,
.wccp-dropzone:focus-visible {
    outline: 2px solid var(--wcucc-document-accent, #1769aa) !important;
    outline-offset: 3px !important;
}
.wcucc-wrap #payment .wccp-dropzone-title,
.wcucc-wrap #payment .wccp-icon {
    color: var(--wcucc-document-accent, #1769aa);
}
.wcucc-wrap #payment .wccp-remove,
.wcucc-wrap #payment .wccp-remove:is(:hover, :focus, :active) {
    width: auto;
    padding: 0;
    background: transparent !important;
    color: inherit;
    border: 0 !important;
    text-transform: none;
}
.wccp-file-status.is-success.is-error { flex-wrap: wrap; }
.wccp-error-message { flex-basis: 100%; }
.wccp-dropzone[aria-disabled="true"] { cursor: wait; opacity: .65; }
