.cf7pdf-feature-panels {
	margin: 20px 0;
}

.cf7pdf-feature-panels .cf7pdf-settings-panel--preview.cf7pdf-preview-panel {
	margin-top: 0;
}

.cf7pdf-settings-panel {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	margin: 16px 0 20px;
	padding: 16px 20px 12px;
}

.cf7pdf-settings-panel h2 {
	margin-top: 0;
	font-size: 1.2em;
}

.cf7pdf-settings-panel--preview.cf7pdf-preview-panel {
	margin-top: 24px;
	padding: 0;
	overflow: hidden;
}

.cf7pdf-settings-panel--password {
	margin-top: 16px;
	padding: 16px 20px 18px;
}

.cf7pdf-preview-panel--collapsed {
	padding-bottom: 0;
}

.cf7pdf-preview-header {
	margin: 0;
	padding: 0;
	background: #f6f7f7;
	border-bottom: 1px solid transparent;
}

.cf7pdf-preview-panel:not(.cf7pdf-preview-panel--collapsed) .cf7pdf-preview-header {
	border-bottom-color: #dcdcde;
}

.cf7pdf-preview-header-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.cf7pdf-preview-header-btn:hover,
.cf7pdf-preview-header-btn:focus {
	background: #f0f0f1;
	outline: none;
}

.cf7pdf-preview-header-btn:focus-visible {
	box-shadow: inset 0 0 0 2px #2271b1;
}

.cf7pdf-preview-header-btn__chevron {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	font-size: 24px;
	line-height: 24px;
	color: #50575e;
	transition: transform 0.2s ease, color 0.15s ease;
}

.cf7pdf-preview-header-btn__chevron::before {
	width: 24px;
	height: 24px;
	font-size: 24px;
	line-height: 24px;
}

.cf7pdf-preview-panel:not(.cf7pdf-preview-panel--collapsed) .cf7pdf-preview-header-btn__chevron {
	transform: rotate(90deg);
	color: #2271b1;
}

.cf7pdf-preview-header-btn__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cf7pdf-preview-header-btn__title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: #1d2327;
}

.cf7pdf-preview-header-btn__desc {
	display: block;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: #646970;
}

.cf7pdf-preview-header-btn__state {
	flex-shrink: 0;
	align-self: center;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: #2271b1;
	background: #fff;
	border: 1px solid #c5d9ed;
	border-radius: 3px;
	white-space: nowrap;
}

.cf7pdf-preview-panel:not(.cf7pdf-preview-panel--collapsed) .cf7pdf-preview-header-btn__state {
	color: #50575e;
	border-color: #dcdcde;
	background: #f6f7f7;
}

.cf7pdf-preview-body {
	overflow: hidden;
	max-height: 2800px;
	opacity: 1;
	transition: max-height 0.35s ease, opacity 0.25s ease;
	padding: 0 16px 16px;
}

.cf7pdf-preview-panel--collapsed .cf7pdf-preview-body {
	max-height: 0;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
	pointer-events: none;
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.cf7pdf-preview-body,
	.cf7pdf-preview-header-btn__chevron {
		transition: none;
	}
}

@media screen and (max-width: 782px) {
	.cf7pdf-preview-header-btn {
		flex-wrap: wrap;
		padding: 10px 12px;
	}

	.cf7pdf-preview-header-btn__state {
		width: 100%;
		margin-left: 34px;
		text-align: center;
	}
}

.cf7pdf-preview-actions {
	margin-top: 14px;
	padding: 12px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.cf7pdf-preview-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.cf7pdf-preview-toolbar .button {
	margin: 0 !important;
	vertical-align: middle;
}

.cf7pdf-preview-toolbar .spinner {
	float: none;
	margin: 0 0 0 6px;
	vertical-align: middle;
}

.cf7pdf-preview-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 14px 0 0;
	padding: 12px 14px;
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
}

.cf7pdf-preview-status__badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	background: #f0f0f1;
	color: #50575e;
}

.cf7pdf-preview-status__badge.is-submission {
	background: #e8f4fd;
	color: #135e96;
}

.cf7pdf-preview-status__badge.is-sample {
	background: #fef3c7;
	color: #854d0e;
}

.cf7pdf-preview-status__badge.is-attach {
	background: #ede9fe;
	color: #5b21b6;
}

.cf7pdf-preview-status__text {
	flex: 1 1 200px;
	color: #50575e;
}

.cf7pdf-preview-status__link {
	flex-shrink: 0;
	font-size: 13px;
	text-decoration: none;
}

.cf7-pdf-preview-notice {
	margin: 14px 0 0;
}

.cf7pdf-preview-panel .cf7pdf-preview-alert {
	margin-top: 14px;
}

.cf7pdf-preview-alert {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.45;
}

.cf7pdf-preview-alert[hidden] {
	display: none !important;
}

.cf7pdf-preview-alert--warning {
	background: #fcf9e8;
	border: 1px solid #f0d58a;
	color: #6d4c00;
}

.cf7pdf-preview-alert .dashicons {
	flex-shrink: 0;
	margin-top: 1px;
	color: #996800;
}

.cf7pdf-preview-viewer {
	position: relative;
	min-height: 200px;
	margin-top: 14px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f0f0f1;
	overflow: hidden;
}

.cf7pdf-preview-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 24px 20px;
	text-align: center;
	color: #646970;
}

.cf7pdf-preview-empty[hidden] {
	display: none !important;
}

.cf7pdf-preview-empty .dashicons {
	width: 48px;
	height: 48px;
	font-size: 48px;
	color: #c3c4c7;
	margin-bottom: 12px;
}

.cf7pdf-preview-empty__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
}

.cf7pdf-preview-empty__text {
	margin: 0;
	max-width: 28em;
	font-size: 13px;
	line-height: 1.5;
}

.cf7pdf-preview-loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.92);
}

.cf7pdf-preview-loading[hidden] {
	display: none !important;
}

.cf7pdf-preview-loading p {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #1d2327;
}

.cf7-pdf-preview-frame {
	display: block;
	width: 100%;
	height: 520px;
	max-height: 70vh;
	border: 0;
	background: #fff;
}

.cf7-pdf-preview-frame[hidden] {
	display: none !important;
}

/* Password panel */
.cf7pdf-panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 4px;
}

.cf7pdf-panel-heading h2 {
	margin-bottom: 0;
}

.cf7pdf-password-lead {
	margin: 0 0 12px;
	color: #646970;
	font-size: 13px;
}

.cf7pdf-password-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.cf7pdf-password-badge--active {
	background: #d8f3e0;
	color: #135e2c;
}

.cf7pdf-password-badge--pending {
	background: #fef3c7;
	color: #854d0e;
}

.cf7pdf-password-badge--off {
	background: #f0f0f1;
	color: #50575e;
}

.cf7pdf-password-tips {
	margin: 16px 0 0;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f6f7f7;
	font-size: 13px;
	overflow: hidden;
}

.cf7pdf-password-tips__summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	cursor: pointer;
	list-style: none;
	color: #1d2327;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.4;
	user-select: none;
}

.cf7pdf-password-tips__summary:hover {
	background: #f0f0f1;
}

.cf7pdf-password-tips__summary::-webkit-details-marker {
	display: none;
}

.cf7pdf-password-tips__summary::marker {
	content: "";
	display: none;
}

.cf7pdf-password-tips__chevron {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
	color: #50575e;
	transition: transform 0.2s ease, color 0.15s ease;
}

.cf7pdf-password-tips__chevron::before {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 20px;
}

.cf7pdf-password-tips[open] .cf7pdf-password-tips__chevron {
	transform: rotate(90deg);
	color: #2271b1;
}

.cf7pdf-password-tips__title {
	flex: 1;
}

.cf7pdf-password-tips__body {
	padding: 0 12px 12px 40px;
	border-top: 1px solid #dcdcde;
	background: #fff;
}

.cf7pdf-password-tips ul {
	margin: 10px 0 0;
	padding: 0 0 0 18px;
	color: #50575e;
	list-style: disc;
}

.cf7pdf-password-tips li {
	margin: 6px 0;
	line-height: 1.5;
}

.cf7pdf-password-tips__action {
	margin: 12px 0 0;
	padding: 0;
}

.cf7pdf-password-tips__action .button {
	margin: 0;
}

.cf7pdf-password-enable-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	margin-bottom: 0;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.cf7pdf-password-fields {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #dcdcde;
}

.cf7pdf-password-fields[hidden] {
	display: none !important;
}

.cf7pdf-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.cf7pdf-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cf7pdf-switch-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #c3c4c7;
	border-radius: 24px;
	transition: background 0.2s ease;
}

.cf7pdf-switch-slider::before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cf7pdf-switch input:checked + .cf7pdf-switch-slider {
	background-color: #2271b1;
}

.cf7pdf-switch input:focus + .cf7pdf-switch-slider {
	box-shadow: 0 0 0 1px #fff, 0 0 0 3px #2271b1;
}

.cf7pdf-switch input:checked + .cf7pdf-switch-slider::before {
	transform: translateX(20px);
}

.cf7pdf-switch-label {
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
}

.cf7pdf-password-saved-notice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px 12px;
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.45;
	color: #1d2327;
}

.cf7pdf-password-saved-notice .dashicons {
	color: #2271b1;
	margin-top: 1px;
	flex-shrink: 0;
}

.cf7pdf-password-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 560px;
}

.cf7pdf-password-field__label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
}

.cf7pdf-password-wrap {
	position: relative;
	width: 100%;
}

.cf7pdf-password-input {
	display: block;
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0 40px 0 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	line-height: 36px;
	box-sizing: border-box;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cf7pdf-password-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: 2px solid transparent;
}

.cf7pdf-password-wrap .cf7pdf-toggle-password {
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 4px 4px 0;
	background: transparent;
	color: #50575e;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cf7pdf-password-wrap .cf7pdf-toggle-password:hover,
.cf7pdf-password-wrap .cf7pdf-toggle-password:focus {
	background: #f0f0f1;
	color: #1d2327;
	outline: none;
}

.cf7pdf-password-wrap .cf7pdf-toggle-password .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.cf7pdf-password-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.cf7pdf-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cf7pdf-action-btn:hover,
.cf7pdf-action-btn:focus {
	background: #fff;
	border-color: #2271b1;
	color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

.cf7pdf-action-btn:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.cf7pdf-action-btn[hidden] {
	display: none !important;
}

.cf7pdf-action-btn__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

.cf7pdf-action-btn__icon .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}

.cf7pdf-action-btn__label {
	white-space: nowrap;
}

.cf7pdf-password-strength {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.cf7pdf-password-strength[hidden] {
	display: none !important;
}

.cf7pdf-strength-track {
	flex: 1;
	max-width: 200px;
	height: 4px;
	background: #dcdcde;
	border-radius: 2px;
	overflow: hidden;
}

.cf7pdf-strength-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 2px;
	transition: width 0.2s ease, background 0.2s ease;
}

.cf7pdf-password-strength.is-weak .cf7pdf-strength-fill {
	width: 33%;
	background: #d63638;
}

.cf7pdf-password-strength.is-fair .cf7pdf-strength-fill {
	width: 66%;
	background: #dba617;
}

.cf7pdf-password-strength.is-strong .cf7pdf-strength-fill {
	width: 100%;
	background: #00a32a;
}

.cf7pdf-strength-label {
	font-size: 12px;
	font-weight: 500;
	color: #646970;
}

.cf7pdf-password-strength.is-weak .cf7pdf-strength-label {
	color: #d63638;
}

.cf7pdf-password-strength.is-fair .cf7pdf-strength-label {
	color: #996800;
}

.cf7pdf-password-strength.is-strong .cf7pdf-strength-label {
	color: #00a32a;
}

.cf7pdf-password-match-msg {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 8px 0 0;
	font-size: 12px;
	font-weight: 500;
	min-height: 18px;
}

.cf7pdf-password-match-msg:empty {
	display: none;
}

.cf7pdf-password-match-msg.is-match::before {
	content: "✓";
	font-weight: 700;
}

.cf7pdf-password-match-msg.is-match {
	color: #00a32a;
}

.cf7pdf-password-match-msg.is-mismatch::before {
	content: "✕";
	font-weight: 700;
}

.cf7pdf-password-match-msg.is-mismatch {
	color: #d63638;
}

.cf7pdf-password-remove {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #dcdcde;
}

.cf7pdf-password-remove label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	font-weight: 400;
	color: #50575e;
	cursor: pointer;
}

.cf7pdf-password-remove input {
	margin-top: 2px;
}

.cf7pdf-field-tags-panel {
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	padding: 14px 16px 12px;
	max-width: 760px;
}

.cf7pdf-field-tags-panel__intro {
	margin: 0 0 14px;
}

.cf7pdf-field-tags-section + .cf7pdf-field-tags-section {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #dcdcde;
}

.cf7pdf-field-tags-section__head {
	margin-bottom: 8px;
}

.cf7pdf-field-tags-section__title {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #50575e;
}

.cf7pdf-field-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mail_tag {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	font: inherit;
	line-height: 1.4;
	text-align: left;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mail_tag:hover,
.mail_tag:focus {
	border-color: #2271b1;
	background: #f0f6fc;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.cf7pdf-mail-tag,
.cf7pdf-pdf-tag--quick {
	padding: 6px 10px;
}

.cf7pdf-tag-code {
	color: #1d2327;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	font-weight: 600;
}

.cf7pdf-pdf-tags-readmore {
	margin-top: 10px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f6f7f7;
	overflow: hidden;
}

.cf7pdf-pdf-tags-readmore__summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	cursor: pointer;
	list-style: none;
	color: #1d2327;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.4;
	user-select: none;
}

.cf7pdf-pdf-tags-readmore__summary:hover {
	background: #f0f0f1;
}

.cf7pdf-pdf-tags-readmore__summary::-webkit-details-marker,
.cf7pdf-pdf-tags-readmore__summary::marker {
	display: none;
	content: "";
}

.cf7pdf-pdf-tags-readmore__chevron {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
	color: #50575e;
	transition: transform 0.2s ease, color 0.15s ease;
}

.cf7pdf-pdf-tags-readmore[open] .cf7pdf-pdf-tags-readmore__chevron {
	transform: rotate(90deg);
	color: #2271b1;
}

.cf7pdf-pdf-tags-readmore__title {
	flex: 1;
}

.cf7pdf-pdf-tags-readmore__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: #dcdcde;
	color: #1d2327;
	font-size: 11px;
	font-weight: 600;
}

.cf7pdf-pdf-tags-readmore[open] .cf7pdf-pdf-tags-readmore__count {
	background: #2271b1;
	color: #fff;
}

.cf7pdf-pdf-tags-readmore__body {
	padding: 12px;
	border-top: 1px solid #dcdcde;
	background: #fff;
}

.cf7pdf-pdf-tags-readmore__body .description {
	margin: 0 0 12px;
}

.cf7pdf-pdf-tags-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}

.cf7pdf-pdf-tag-card {
	display: block;
	width: 100%;
	padding: 10px 12px;
}

.cf7pdf-pdf-tag-card__content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cf7pdf-pdf-tag-card__code {
	color: #1d2327;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	font-weight: 600;
}

.cf7pdf-pdf-tag-card__label {
	color: #1d2327;
	font-size: 13px;
	font-weight: 600;
}
