@import url('disclaimer.css');
@import url('modal.css');
@import url('notice.css');

/* Parallax icon in plugin page title */
.wrap > h1 > .parallax-icon {
	vertical-align: middle;
	margin-right: 6px;
}

.category-batch-request-details-table-wrap .wp-list-table .column-current_meta_desc,
.category-batch-request-details-table-wrap .wp-list-table .column-current_desc,
.category-batch-request-details-table-wrap .wp-list-table .column-opt_meta_desc,
.category-batch-request-details-table-wrap .wp-list-table .column-opt_desc {
	max-width: 560px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.no-batch-requests-found-message {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
}

.no-batch-requests-found-message > div {
	background: #fff;
	padding: 2rem 3rem;
	border-radius: 8px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.08);
	text-align: center;
}

#wc-parallax-batch-request {
	display: flex;
	justify-content: space-between;
	gap: 5rem;
}

.wc-parallax-batch-request__column {
	width: 50%;
}

.wc-parallax-batch-request__heading {
	margin-top: 1rem;
}

.wc-parallax-batch-request__subheading {
	margin-top: 0.5rem;
}

.wc-parallax-batch-request__meta {
	margin: 0.25rem 0;
}

.wc-parallax-batch-request__pre {
	background: #fff;
	padding: 12px;
	border: 1px solid #ccd0d4;
	max-height: 420px;
	overflow: auto;
	font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
	font-size: 12px;
	line-height: 1.5;
}

@media screen and (max-width: 960px) {
	#wc-parallax-batch-request {
		flex-direction: column;
		gap: 2rem;
	}

	.wc-parallax-batch-request__column {
		width: 100%;
	}
}

.parallax-batch-datetime {
	white-space: nowrap;
}

.parallax-batch-time {
	color: #646970;
	font-size: 0.85em;
}

.wc-parallax-admin-table {
	position: relative;
}

.wc-parallax-admin-table .tablenav.top {
	position: absolute;
	top: -15px;
	right: 0;
}

/* Single-item action busy state (apply to <a> elements; .disabled is non-functional on anchors). */
a.wc-parallax-btn-busy,
a.wc-parallax-btn-busy:hover {
	opacity: 0.6;
	cursor: wait;
	pointer-events: none;
}

.wp-core-ui .button.button-danger {
	background-color: #dc3232;
	border-color: #dc3232;
	color: #fff;
}

.wc-parallax-ajax-table-placeholder {
	border: 1px dashed #ccd0d4;
	border-radius: 4px;
	background: #fff;
	min-height: 140px;
	margin: 20px 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wc-parallax-ajax-table-placeholder__inner {
	text-align: center;
	color: #555;
}

.wc-parallax-ajax-table-placeholder__inner .spinner {
	float: none;
	margin: 0 auto 8px;
	display: block;
}

.credits-notice-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top:1rem;
	padding-bottom:1rem;
}

.ai-content-by-parallax-log-container {
	background:#fff;
	border:1px solid #ccc;
	padding:16px;
	margin-top:16px;
	white-space:pre-wrap;
	font-family:monospace;
	max-height:400px;
	overflow:auto;
}

.batch-request-label {
	padding-top: 0.375rem;
	padding-right: 0.375rem;
	float: left;
}

.optimize-table-credits-submit-wrap {
	text-align: right;
	padding-right: 5rem;
	padding-bottom: 2.5rem;
	position: absolute;
	top: 0;
	right: 0;
}

.is-relative {
	position: relative;
}

.pb-1 {
	padding-bottom: 1rem;
}

.batch-id.copyable {
	cursor: pointer;
	color: #000;
	font-style: italic;
	font-weight: bold;
	text-decoration: underline;
}

.is-red {
	color: #dc3545;
}

.is-green {
	color: #1a7f37;
}

.wc-parallax-ajax-table-placeholder--empty {
	display: none;
}

.wc-parallax-import-selected {
	display: none;
	margin-left: 4px;
}

.wc-parallax-detail-row .wc-parallax-detail-cell {
	padding: 12px 16px;
	background: #f9f9f9;
	border-top: 1px solid #e1e1e1;
}

.wc-parallax-detail-panel h4 {
	margin: 0 0 8px;
}

.wc-parallax-detail-table {
	margin: 0;
}

.wc-parallax-detail-table td.wc-parallax-detail-value {
	max-width: 400px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: pre-wrap;
	font-size: 12px;
	line-height: 1.5;
}

a.wc-parallax-view-details.active {
	background: #ddd;
	border-color: #999;
}

.wc-parallax-detail-table .wc-parallax-tooltip {
	color: #646970;
	font-size: 16px;
	vertical-align: middle;
	cursor: help;
	border-radius: 50%;
}

.wc-parallax-detail-table .wc-parallax-tooltip:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.wc-parallax-detail-table .wc-parallax-tooltip:focus:not(:focus-visible) {
	outline: none;
}

.wc-parallax-detail-score-table {
	margin-bottom: 12px;
}

.wc-parallax-detail-score-table th:first-child {
	width: 30%;
}

.wc-parallax-detail-rating-explanation td[colspan="2"] {
	font-style: italic;
}

.wc-parallax-detail-panel > h4 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: white;
	padding: 0.5rem 1rem;
	border: 1px solid #c3c4c7;
	margin: 0 0 8px;
}

.wc-parallax-detail-edit-link {
	text-decoration: none;
	flex-shrink: 0;
}

/* Reject dialog overlay */
.wc-parallax-reject-dialog-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wc-parallax-reject-dialog-box {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 1.5rem 2rem;
	min-width: 340px;
	max-width: 480px;
	box-shadow: 0 4px 24px rgba( 0, 0, 0, 0.18 );
}

.wc-parallax-reject-dialog-title {
	font-size: 1.1em;
	font-weight: 600;
	margin: 0 0 0.4rem;
}

.wc-parallax-reject-dialog-warning {
	color: #a00;
	font-size: 0.9em;
	margin: 0 0 1rem;
}

.wc-parallax-reject-dialog-comment-label {
	display: block;
	font-weight: 600;
	margin-bottom: 1rem;
}

.wc-parallax-reject-dialog-comment {
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.4rem;
	font-weight: 400;
}

.wc-parallax-reject-dialog-buttons {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
}

/* Spacing between stacked buttons in detail table cells. */
#product-batch-request-details .button,
#category-batch-request-details .button {
	margin-bottom: 4px;
}

/* Rejected row: tinted background; only name and status columns are shown. */
tr.wc-parallax-row-rejected {
	background-color: #dc323226;
}

/* Status cell for rejected rows: label + Undo button on a single line. */
.wc-parallax-status-rejected-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.wc-parallax-undo-reject.button {
	font-size: 11px;
	line-height: 1.8;
	height: auto;
	padding: 0 6px;
}
