/* Bank Details for Elementor — frontend styles
 * All colors/spacing here are sane fallbacks; Elementor style controls
 * (and the plugin Settings > Styling Defaults) override via inline
 * selectors targeted at these same classes.
 */

.bde-bank-details {
	--bde-columns: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.bde-bank-details.bde-layout-list {
	flex-direction: column;
}

.bde-bank-details.bde-layout-grid {
	display: grid;
	grid-template-columns: repeat(var(--bde-columns), 1fr);
}

.bde-bank-details.bde-layout-horizontal .bde-account-card {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1 1 100%;
}

.bde-bank-details.bde-layout-horizontal .bde-account-body {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
}

.bde-account-card {
	background-color: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 20px;
	flex: 1 1 260px;
	box-sizing: border-box;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bde-account-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bde-account-logo img {
	display: block;
	max-width: 32px;
	max-height: 32px;
	border-radius: 4px;
}

.bde-icon-default {
	font-size: 20px;
	color: #6b7280;
}

.bde-account-title {
	font-weight: 600;
	font-size: 16px;
	color: #111827;
}

.bde-account-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bde-field {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.bde-field-icon {
	font-size: 16px;
	color: #6b7280;
	margin-inline-end: 6px;
	flex-shrink: 0;
}

.bde-field-label {
	color: #6b7280;
	font-weight: 500;
	margin-inline-end: 4px;
}

.bde-field-value {
	color: #111827;
	word-break: break-word;
}

.bde-field-value-multiline {
	display: block;
	width: 100%;
	white-space: normal;
}

.bde-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-inline-start: 4px;
	padding: 3px 8px;
	font-size: 12px;
	line-height: 1;
	background: transparent;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	color: #374151;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.bde-copy-btn:hover {
	color: #2563eb;
	border-color: #2563eb;
}

.bde-copy-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.bde-copy-btn.is-copied {
	color: #16a34a;
	border-color: #16a34a;
}

.bde-empty {
	opacity: 0.7;
	font-style: italic;
}

/* Small-screen fallback for grid layout when no explicit tablet/mobile
   column control has been set inside Elementor. */
@media (max-width: 767px) {
	.bde-bank-details.bde-layout-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
