/**
 * GoRespond admin settings styles.
 *
 * @package GoRespond_WooCommerce
 * @since   1.0.0
 */

.gorespond-settings-wrap {
	max-width: 960px;
}

.gorespond-api-key-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.gorespond-api-key-wrap input.regular-text {
	font-family: monospace;
}

#gorespond-test-result {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 500;
}

#gorespond-test-result.success {
	color: #0a6c2e;
	background: #e6f4ea;
}

#gorespond-test-result.error {
	color: #8c1d18;
	background: #fce8e6;
}

/* Status badges in event log. */
.gorespond-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.gorespond-status--sent {
	color: #0a6c2e;
	background: #e6f4ea;
}

.gorespond-status--failed {
	color: #8c1d18;
	background: #fce8e6;
}

.gorespond-status--error {
	color: #7c4700;
	background: #fef7e0;
}

.gorespond-status--skipped {
	color: #5f6368;
	background: #f1f3f4;
}

/* Event log table. */
.gorespond-log-table .column-id { width: 50px; }
.gorespond-log-table .column-order { width: 70px; }
.gorespond-log-table .column-event { width: 140px; }
.gorespond-log-table .column-status { width: 80px; }
.gorespond-log-table .column-http { width: 60px; }
.gorespond-log-table .column-date { width: 170px; }

.gorespond-response-row td {
	padding-top: 0 !important;
	border-top: none !important;
}

.gorespond-response-row details {
	margin: 0;
}

.gorespond-response-row summary {
	cursor: pointer;
	color: #50575e;
	font-size: 13px;
	padding: 4px 0;
	user-select: none;
}

.gorespond-response-row summary:hover {
	color: #135e96;
}

.gorespond-response-pre {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px 14px;
	margin: 8px 0 4px;
	font-size: 12px;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
}

code.gorespond-response-body {
	display: inline-block;
	max-width: 340px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	vertical-align: middle;
}
