.ts-member-capture-pages {
	display: grid;
	gap: 12px;
	width: min(100%, 860px);
	margin: 20px 0;
}

.ts-capture-link-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.ts-capture-link {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #f6f7f7;
	color: inherit;
	font: inherit;
}

.ts-capture-link:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: 2px solid transparent;
}

.traffiqstack-button.ts-copy-capture-link {
	width: auto !important;
	min-width: 120px !important;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.ts-capture-link-row { grid-template-columns: 1fr; }
	.traffiqstack-button.ts-copy-capture-link { width: 100% !important; }
}

.ts-offer-manager {
	box-sizing: border-box;
	width: min(100%, 760px);
	color: inherit;
}

.ts-offer-manager *,
.ts-offer-manager *::before,
.ts-offer-manager *::after,
.ts-my-leads *,
.ts-my-leads *::before,
.ts-my-leads *::after {
	box-sizing: border-box;
}

.ts-offer-manager__intro {
	margin: 0 0 20px;
	color: #666;
	font-size: 0.95em;
	line-height: 1.6;
}

.ts-offer-manager__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	margin: 0 0 28px;
	padding: 1px;
	border-radius: 4px;
	background: #e5e7eb;
	overflow: hidden;
}

.ts-offer-manager__summary > div {
	min-width: 0;
	padding: 14px 16px;
	background: #fff;
}

.ts-offer-manager__summary dt {
	margin: 0 0 4px;
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ts-offer-manager__summary dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.ts-offer-manager__access,
.ts-offer-form__status {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

.ts-offer-manager__access {
	padding: 5px 9px;
}

.ts-offer-manager__access--active,
.ts-offer-form__status--active {
	background: #e8f7ee;
	color: #176b3a;
}

.ts-offer-manager__access--inactive,
.ts-offer-form__status--inactive,
.ts-offer-form__status--empty {
	background: #f1f2f3;
	color: #5f6368;
}

.ts-offer-form__status--paused {
	background: #fff4d6;
	color: #815b00;
}

.ts-offer-manager__forms {
	display: grid;
	gap: 24px;
}

.ts-offer-form {
	margin: 0;
	padding: 24px;
	border: 1px solid #e1e3e5;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ts-offer-form__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eceeef;
}

.ts-offer-form__header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.ts-offer-form__status {
	flex: none;
	padding: 6px 9px;
}

.ts-offer-form__field {
	display: grid;
	gap: 8px;
	margin-bottom: 20px;
}

.ts-offer-form__field > label,
.ts-offer-form__label-row label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.ts-offer-form__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.ts-offer-title-count {
	flex: none;
	color: #777;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.ts-offer-manager .ts-offer-form input[type="text"],
.ts-offer-manager .ts-offer-form input[type="url"] {
	display: block;
	width: 100%;
	max-width: none;
	min-height: 44px;
	margin: 0;
	padding: 9px 12px;
	border: 2px solid #ddd;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font: inherit;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ts-offer-manager .ts-offer-form input[type="text"]:hover,
.ts-offer-manager .ts-offer-form input[type="url"]:hover {
	border-color: #c5c5c5;
}

.ts-offer-manager .ts-offer-form input[type="text"]:focus,
.ts-offer-manager .ts-offer-form input[type="url"]:focus {
	border-color: #8c8f94;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.16);
}

.ts-offer-manager .ts-offer-form input.ts-offer-form__locked-url[readonly] {
	border-color: #d8dadd;
	background: #f3f4f5;
	color: #5f6368;
	cursor: default;
}

.ts-offer-form__hint {
	margin: 0;
	color: #666;
	font-size: 13px;
	line-height: 1.45;
}

.ts-offer-form__checkbox {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 28px;
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ts-offer-manager .ts-offer-form__checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: currentColor;
}

.ts-offer-form__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 2px;
}

.ts-offer-form__remove-confirmation {
	margin-top: 18px;
	padding: 16px;
	border: 1px solid #e0b4b4;
	border-radius: 4px;
	background: #fff8f8;
}

.ts-offer-form__remove-confirmation[hidden] {
	display: none;
}

.ts-offer-form__remove-confirmation strong,
.ts-offer-form__remove-confirmation p {
	display: block;
	margin: 0 0 10px;
}

.ts-offer-form__confirmation-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ts-offer-manager__notice {
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 14px;
	line-height: 1.5;
}

.ts-offer-manager__notice--success {
	border-color: #b7dfc6;
	background: #eaf8ef;
	color: #155d32;
}

.ts-offer-manager__notice--warning {
	border-color: #ead393;
	background: #fff8e4;
	color: #6f5100;
}

.ts-my-leads {
	width: 100%;
	max-width: 100%;
}

.ts-my-leads__table {
	width: 100%;
	margin: 0;
	border: 1px solid #e1e3e5;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
	table-layout: fixed;
}

.ts-my-leads__table th,
.ts-my-leads__table td {
	padding: 13px 15px;
	border: 0;
	border-bottom: 1px solid #eceeef;
	text-align: left;
	vertical-align: top;
}

.ts-my-leads__table th {
	background: #f6f7f8;
	color: #444;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ts-my-leads__table td {
	color: inherit;
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
	word-break: normal;
}

.ts-my-leads__table tbody tr:last-child td {
	border-bottom: 0;
}

.ts-my-leads__url,
.ts-my-leads__email {
	overflow-wrap: anywhere;
}

.ts-my-leads__missing {
	color: #8a8f95;
}

@media (max-width: 640px) {
	.ts-offer-manager__summary {
		grid-template-columns: 1fr;
	}

	.ts-offer-form {
		padding: 20px 16px;
	}

	.ts-offer-form__header {
		align-items: flex-start;
	}

	.ts-offer-form__actions .traffiqstack-button {
		width: 100% !important;
	}

	.ts-my-leads__table,
	.ts-my-leads__table tbody,
	.ts-my-leads__table tr,
	.ts-my-leads__table td {
		display: block;
		width: 100%;
	}

	.ts-my-leads__table {
		border: 0;
		border-radius: 0;
		background: transparent;
		overflow: visible;
	}

	.ts-my-leads__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.ts-my-leads__table tbody {
		display: grid;
		gap: 14px;
	}

	.ts-my-leads__table tr {
		padding: 5px 15px;
		border: 1px solid #e1e3e5;
		border-radius: 4px;
		background: #fff;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	}

	.ts-my-leads__table td,
	.ts-my-leads__table tbody tr:last-child td {
		display: grid;
		grid-template-columns: minmax(90px, 35%) minmax(0, 1fr);
		gap: 12px;
		padding: 10px 0;
		border-bottom: 1px solid #eceeef;
	}

	.ts-my-leads__table td:last-child,
	.ts-my-leads__table tbody tr:last-child td:last-child {
		border-bottom: 0;
	}

	.ts-my-leads__table td::before {
		content: attr(data-label);
		color: #555;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.02em;
		line-height: 1.5;
		text-transform: uppercase;
	}
}
