/**
 * TIO Refund Button Styles
 *
 * @package NerdCowTIO
 */

/* ── Compat-fields row: stack label above card ── */
.compat-field-nctio {
	display: flex;
	flex-direction: column;
}

.compat-field-nctio th.label {
	display: block;
	text-align: left;
	padding: 8px 0 4px;
	font-size: 13px;
}

.compat-field-nctio td.field {
	display: block;
	width: 100%;
	padding: 0 0 8px;
}

/* ── Attachment details stats card ── */
.tio-attachment-stats {
	padding: 12px 16px;
	background: #f0f0f1;
	border-radius: 4px;
	min-width: 280px;
}

.tio-stats-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.tio-stats-table td {
	padding: 3px 0;
	vertical-align: baseline;
	border: none;
	white-space: nowrap;
}

.tio-stats-label {
	color: #50575e;
	font-size: 13px;
	width: 90px;
	padding-right: 16px !important;
}

.tio-stats-value {
	font-size: 13px;
	color: #1d2327;
	font-weight: 600;
}

.tio-stats-savings {
	color: #2271b1;
}

.tio-stats-date {
	font-weight: 400;
	color: #787c82;
	font-size: 12px;
	white-space: normal;
}

/* ── Refund button base ── */
.tio-refund-btn {
	cursor: pointer;
	white-space: nowrap;
}

.tio-refund-btn:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

/* ── Refund area wrapper ── */
.tio-refund-wrap {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #dcdcde;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Timer text next to refund button */
.tio-refund-timer {
	color: #787c82;
	font-size: 12px;
}

/* Static label shown after refund is complete */
.tio-refunded-label {
	display: inline-block;
	color: #2271b1;
	font-weight: 600;
	font-size: 13px;
}

/* Success state after AJAX refund */
.tio-refund-success {
	color: #00a32a;
	font-weight: 600;
	font-size: 13px;
}

/* ── Gutenberg sidebar refund item ── */
.tio-gutenberg-refund-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #e0e0e0;
	gap: 8px;
}

.tio-gutenberg-refund-item:last-child {
	border-bottom: none;
}

.tio-gutenberg-refund-item .tio-refund-filename {
	font-size: 12px;
	color: #1e1e1e;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
}

.tio-gutenberg-refund-item .tio-refund-savings {
	font-size: 11px;
	color: #757575;
	white-space: nowrap;
}

/* ── List view column overrides ── */
.column-nctio .tio-refund-wrap {
	margin-top: 4px;
	padding-top: 4px;
	border-top: none;
	display: block;
}

.column-nctio .tio-refund-btn {
	font-size: 11px;
	line-height: 1.4;
	min-height: 24px;
	padding: 0 8px;
}

.column-nctio .tio-refund-timer {
	display: block;
	font-size: 11px;
	margin-top: 2px;
}
