/**
 * "Choose from Google Drive" (One-Click connection) and the notices under the spreadsheet list, as
 * WPSyncSheets For Contact Form 7 Pro. Logical properties throughout, so right-to-left screens mirror
 * without a separate stylesheet.
 *
 * @package contactsheets-lite
 */

/* A white button with the Drive logo, the hint under it. */
.wpsslc-sheet-picker {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-block: 12px 4px;
	margin-inline: 0;
}

.wpsslc-sheet-picker .wpsslc-sheet-picker__button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	width: auto;
	min-height: 42px;
	margin: 0;
	padding: 9px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	color: #1e293b;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wpsslc-sheet-picker .wpsslc-sheet-picker__button:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.wpsslc-sheet-picker .wpsslc-sheet-picker__button:focus-visible {
	border-color: #4169e1;
	outline: none;
	box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
}

.wpsslc-sheet-picker .wpsslc-sheet-picker__button[aria-busy="true"],
.wpsslc-sheet-picker .wpsslc-sheet-picker__button:disabled {
	opacity: 0.7;
	cursor: progress;
}

.wpsslc-sheet-picker .wpsslc-sheet-picker__icon {
	display: block;
	flex: none;
	width: 20px;
	height: 18px;
}

.wpsslc-sheet-picker .wpsslc-sheet-picker__text,
.wpsslc-gs-fields .wpsslc-sheet-picker .wpsslc-sheet-picker__text {
	margin: 0;
	padding: 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.5;
}

/* The picker row sits under the spreadsheet list and its buttons, on a line of its own (the form
   editor's spreadsheet row is a single flex line). */
#wpsslcform_spreadsheet_container {
	flex-wrap: wrap;
}

.wpsslc-picker-row {
	flex-basis: 100%;
	width: 100%;
}

/* Notices under the spreadsheet list: icon, then the lines (the first in bold when there are several). */
.wpsslc-sheet-notices {
	margin-block-end: 16px;
}

.wpsslc-sheet-notices:empty {
	display: none;
}

.wpsslc-sheet-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	box-sizing: border-box;
	max-width: 640px;
	margin-block-start: 10px;
	padding: 12px 14px;
	border: 1px solid #fde68a;
	border-radius: 8px;
	background: #fffbeb;
	color: #78350f;
	font-size: 13px;
	line-height: 1.55;
	text-align: start;
}

.wpsslc-sheet-notice--success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #14532d;
}

.wpsslc-sheet-notice--error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #7f1d1d;
}

.wpsslc-sheet-notice__icon.dashicons {
	flex: none;
	width: 20px;
	height: 20px;
	color: #d97706;
	font-size: 20px;
}

.wpsslc-sheet-notice--success .wpsslc-sheet-notice__icon.dashicons {
	color: #16a34a;
}

.wpsslc-sheet-notice--error .wpsslc-sheet-notice__icon.dashicons {
	color: #dc2626;
}

.wpsslc-sheet-notice__body {
	flex: 1 1 auto;
	min-width: 0;
}

.wpsslc-sheet-notice .wpsslc-sheet-notice__body p {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.wpsslc-sheet-notice .wpsslc-sheet-notice__body p + p {
	margin-block-start: 6px;
}

.wpsslc-sheet-notice .wpsslc-sheet-notice__title {
	font-weight: 600;
}

/* "Choose from Google Drive" inside a notice: a small button that opens the picker. */
.wpsslc-sheet-notice__action {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	margin-block: 0;
	margin-inline: 2px;
	padding: 1px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #1e293b;
	font: inherit;
	font-weight: 600;
	line-height: 1.6;
	vertical-align: baseline;
	cursor: pointer;
}

.wpsslc-sheet-notice__action:hover {
	border-color: #94a3b8;
	background: #f8fafc;
}

.wpsslc-sheet-notice__action:focus-visible {
	border-color: #4169e1;
	outline: none;
	box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
}

.wpsslc-sheet-notice__action img {
	display: block;
	flex: none;
	width: 14px;
	height: 13px;
}
