/* Documents for Sale: resend-link form */

/* Collapsible disclosure */
.wp-block-acf-paid-documents-resend .pd-resend {
	max-width: 560px;
}
.wp-block-acf-paid-documents-resend .pd-resend__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: #005336;
	font-weight: 600;
	font-size: 15px;
	list-style: none;
	user-select: none;
}
/* Hide the default disclosure marker (Safari/Chrome and others) */
.wp-block-acf-paid-documents-resend .pd-resend__toggle::-webkit-details-marker {
	display: none;
}
.wp-block-acf-paid-documents-resend .pd-resend__toggle:hover {
	text-decoration: underline;
}
.wp-block-acf-paid-documents-resend .pd-resend__toggle:focus-visible {
	outline: 2px solid #005336;
	outline-offset: 3px;
	border-radius: 3px;
}
.wp-block-acf-paid-documents-resend .pd-resend__chevron {
	transition: transform 0.2s ease;
	flex-shrink: 0;
}
.wp-block-acf-paid-documents-resend .pd-resend[open] .pd-resend__chevron {
	transform: rotate(180deg);
}

.wp-block-acf-paid-documents-resend .pd-resend__form {
	margin-top: 16px;
}
.wp-block-acf-paid-documents-resend .pd-resend__label {
	display: block;
	margin-bottom: 10px;
	font-size: 15px;
	color: #005336;
	font-weight: 600;
}

/* Input + button on one row; button sits to the right of the input */
.wp-block-acf-paid-documents-resend .pd-resend__row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
/* Match the site's standard inputs (e.g. the document search field) */
.wp-block-acf-paid-documents-resend .pd-resend__input {
	flex: 1 1 auto;
	/* !important beats the theme's global input rule (style.css), which forces
	   input[type=email] to min-height:60px and border-radius:15px. */
	min-height: 54px !important;
	padding: 6px 18px;
	border: 1px solid #ccc;
	border-radius: 30px !important;
	font-size: 14px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}
.wp-block-acf-paid-documents-resend .pd-resend__input:focus {
	outline: none;
	border-color: #005336;
}
.wp-block-acf-paid-documents-resend .pd-resend__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 126px;
	min-height: 35px;
	padding: 4px 10px;
	background: #005336;
	color: #fff;
	border: none;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.2s ease;
}
.wp-block-acf-paid-documents-resend .pd-resend__btn:hover {
	background: #00422b;
}

/* Mobile: stack and let both fill the width */
@media (max-width: 560px) {
	.wp-block-acf-paid-documents-resend .pd-resend__row {
		flex-direction: column;
		align-items: stretch;
	}
	.wp-block-acf-paid-documents-resend .pd-resend__input {
		flex: 1 1 auto;
		width: 100%;
	}
	.wp-block-acf-paid-documents-resend .pd-resend__btn {
		width: 100%;
	}
}

/* Success notice */
.wp-block-acf-paid-documents-resend .pd__notice {
	padding: 14px 20px;
	border-radius: 12px;
	font-size: 15px;
}
.wp-block-acf-paid-documents-resend .pd__notice--success {
	background: #deffe4;
	color: #005336;
	border: 1px solid #9fdcae;
}
