/* Profile photo upload -- the field itself is a round 1:1 photo frame, like the ID card photo. */
.bkash-photo-picker {
	display: flex;
	width: fit-content;
	margin-bottom: 8px;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.bkash-photo-picker [hidden] {
	display: none !important;
}

.bkash-photo-picker .bkash-photo-frame {
	position: relative;
	width: 160px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #eef1f4;
	box-shadow: 0 0 0 1px #d0d6dc, 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: box-shadow 0.15s;
}

.bkash-photo-picker:hover .bkash-photo-frame,
.ginput_container_fileupload:focus-within .bkash-photo-frame {
	box-shadow: 0 0 0 2px #2271b1, 0 2px 8px rgba(0, 0, 0, 0.12);
}

.bkash-photo-picker .bkash-photo-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.bkash-photo-picker .bkash-photo-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 28px 30px;
	text-align: center;
	font-size: 12px;
	line-height: 1.3;
	color: #6b7580;
	/* head-and-shoulders silhouette behind the text */
	background:
		radial-gradient(circle at 50% 34%, #d6dbe0 0 17%, transparent 17.5%),
		radial-gradient(ellipse 40% 30% at 50% 92%, #d6dbe0 0 99%, transparent 100%);
}

.bkash-photo-picker .bkash-photo-placeholder.is-error {
	color: #c02b0a;
}

.bkash-photo-picker .bkash-photo-action {
	font-size: 13px;
	color: #2271b1;
	text-decoration: underline;
}

/* The real file input stays in the form (Gravity Forms validation and the
   upload still use it) and reachable by keyboard; it's just not drawn. */
.bkash-photo-input-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
