/* --------------------------------------------------
   ISO Preferences Wrapper
-------------------------------------------------- */
#tmn-iso-preferences {
	margin-bottom: 30px;
	padding: 24px;
	background: #fdf2f0;
	border-radius: 12px;
	box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.07);
}

/* Headings & Text */
#tmn-iso-preferences h2 {
	margin-bottom: 10px;
	font-size: 24px;
	font-weight: 600;
	color: #64898f; /* heading color */
}

#tmn-iso-preferences p {
	margin-bottom: 20px;
	color: #555;
	font-size: 15px;
}

/* --------------------------------------------------
   Form Layout
-------------------------------------------------- */
#tmn-iso-preferences-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Email Input */
#tmn-iso-email {
	max-width: 380px;
	padding: 14px 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
	transition: border-color 0.2s ease;
}

#tmn-iso-email:focus {
	border-color: #64898f;
	outline: none;
}

/* Force native select styling */
.tmn-iso-preference-row-labels select {
	appearance: auto;
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */
#tmn-iso-preferences-form button,
.tmn-iso-save-button {
	width: 180px;
	padding: 12px 16px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	background: #f4ab9a; /* primary button */
	color: #fff;
	transition: background 0.2s ease;
}

/* Hover */
#tmn-iso-preferences-form button:hover,
.tmn-iso-save-button:hover,
#tmn-iso-save-preferences:hover {
	background: #e49084; /* darker shade */
}

/* Save button spacing */
.tmn-iso-save-button {
	margin: 20px;
}

/* --------------------------------------------------
   Preferences List & Update Box
-------------------------------------------------- */
#tmn-iso-preferences-list {
	display: none;
	margin-top: 15px;
	padding: 15px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

#tmn-iso-preferences-update-box {
	display: none;
	margin-top: 20px;
	padding: 12px;
	background: #e6f7f5; /* success notice */
	border-left: 4px solid #64898f;
	color: #35595e;
	border-radius: 6px;
	font-size: 14px;
}

/* --------------------------------------------------
   Table Wrapper (Scrollable)
-------------------------------------------------- */
.tmn-iso-table-wrapper {
	position: relative;
	max-height: 600px;
	overflow-y: auto;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

/* --------------------------------------------------
   Sticky Header
-------------------------------------------------- */
.tmn-iso-table-header {
	display: grid;
	grid-template-columns: 150px 150px 150px 150px 1fr 150px;
	gap: 6px;
	padding: 12px 16px;
	background: #f3f4f6;
	border-bottom: 1px solid #d1d5db;
	position: sticky;
	top: 0;
	z-index: 10;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* --------------------------------------------------
   Table Rows
-------------------------------------------------- */
.tmn-iso-preference-row {
	display: grid;
	grid-template-columns: 150px 150px 150px 150px 1fr 150px;
	gap: 6px;
	padding: 12px 16px;
	border-bottom: 1px solid #e5e7eb;
	transition: background 0.15s ease;
}

/* Row Hover */
.tmn-iso-preference-row:hover {
	background: #f9fafb;
}

/* Remove last border */
.tmn-iso-preference-row:last-child {
	border-bottom: none;
}

/* --------------------------------------------------
   Cell Content
-------------------------------------------------- */
.tmn-iso-preference-row-labels {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tmn-iso-preference-row-labels label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
}

/* Inputs inside table */
.tmn-iso-preference-row input[type="text"],
.tmn-iso-preference-row select {
	width: 100%;
	padding: 6px 8px;
	font-size: 13px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
}

/* --------------------------------------------------
   Size Checkboxes Block
-------------------------------------------------- */
.tmn-iso-size-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 6px 8px;
	background: #fafafa;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow-y: auto;
}

.tmn-iso-checkbox-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

/* Unsubscribe / Active Label */
.tmn-iso-active-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #b91c1c;
}
