/* Post Digest Button Styles */
.post-digest-container {
	margin: 1rem 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* Frontend Editor Styles */
.post-digest-frontend-editor {
	margin-bottom: 1rem;
	padding: 1rem;
	background-color: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.375rem;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.post-digest-prompt-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

.post-digest-prompt-textarea-frontend {
	width: 100%;
	max-width: 100%;
	min-height: 3rem;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 0.875rem;
	line-height: 1.5;
	background-color: #ffffff;
	resize: vertical;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	box-sizing: border-box;
}

.post-digest-prompt-textarea-frontend:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.post-digest-fixed-part {
	margin-bottom: 0.5rem;
	padding: 0.5rem;
	background-color: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	color: #4b5563;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	line-height: 1.4;
	max-width: 100%;
	box-sizing: border-box;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.post-digest-prompt-help {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: #6b7280;
	font-style: italic;
}

.post-digest-button {
	font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	border: 0 solid;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	color: inherit;
	text-decoration: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	background-color: #fff;
	border-color: #e2e8f0;
	border-radius: 0.375rem;
	border-style: solid;
	border-width: 1px;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	line-height: 1.2;
	margin-bottom: 0.5rem;
	transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 0.875rem;
	vertical-align: middle;
}

.post-digest-button:hover {
	background-color: #f8f9fa;
	border-color: #d1d5db;
	text-decoration: none;
	color: inherit;
}

.post-digest-button:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.post-digest-icon {
	height: 0.75rem;
	width: 0.75rem;
	flex-shrink: 0;
	vertical-align: middle;
}

/* Editor Styles */
.post-digest-editor-container {
	padding: 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.375rem;
	background-color: #f9fafb;
}

.post-digest-fixed-part-editor {
	margin-bottom: 1rem;
	padding: 0.75rem;
	background-color: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
}

.post-digest-fixed-part-editor strong {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

.post-digest-fixed-display {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.875rem;
	color: #4b5563;
	line-height: 1.4;
	background-color: #ffffff;
	padding: 0.5rem;
	border-radius: 0.25rem;
	border: 1px solid #e5e7eb;
}

.post-digest-editor-wrapper h4 {
	margin: 0 0 1rem 0;
	font-size: 1rem;
	font-weight: 600;
}

.post-digest-prompt-textarea {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.875rem;
}

.post-digest-preview {
	margin-top: 1rem;
	padding: 1rem;
	background-color: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.375rem;
}

.post-digest-preview strong {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.post-digest-button-preview {
	margin-bottom: 0.5rem;
}

.post-digest-url-preview {
	color: #6b7280;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.75rem;
	word-break: break-all;
}

.post-digest-url-preview code {
	background-color: #f3f4f6;
	padding: 0.125rem 0.25rem;
	border-radius: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
	.post-digest-button {
		font-size: 0.75rem;
		padding: 0.375rem 0.5rem;
	}

	.post-digest-icon {
		height: 0.625rem;
		width: 0.625rem;
	}
}