.smtry-amend-card {
	border: 1px solid #dbe3ee;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	border-radius: 8px;
	padding: 24px;
	margin: 0 0 20px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.smtry-amend-card *,
.smtry-amend-card *::before,
.smtry-amend-card *::after {
	box-sizing: border-box;
}

.smtry-amend-card__heading,
.smtry-amend-history-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	max-width: 100%;
	min-width: 0;
}

.smtry-amend-card__heading > *,
.smtry-amend-history-header > * {
	min-width: 0;
	max-width: 100%;
}

.smtry-amend-card__heading strong {
	display: block;
	font-size: 18px;
}

.smtry-amend-history {
	display: grid;
	gap: 18px;
	min-width: 0;
	max-width: 100%;
}

.smtry-amend-status,
.smtry-amend-risk {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 5px 11px;
	font-size: 12px;
	font-weight: 700;
	background: #eef2ff;
}

.smtry-amend-status--approved { background: #dbeafe; }
.smtry-amend-status--applied { background: #dcfce7; }
.smtry-amend-status--declined { background: #fee2e2; }
.smtry-amend-status--closed,
.smtry-amend-status--withdrawn { background: #f1f5f9; }

.smtry-amend-help {
	display: block;
	color: #64748b;
	font-size: .9em;
	margin-top: 5px;
}

.smtry-amend-response {
	background: #f8fafc;
	border-left: 4px solid var(--smtry-amend-accent, #3858e9);
	padding: 14px 16px;
	border-radius: 4px;
}

.smtry-amend-card select,
.smtry-amend-card textarea,
.smtry-amend-card input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
	max-width: 100%;
}

.smtry-amend-card input[type="hidden"] {
	display: none !important;
}

.smtry-amend-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 18px;
}

.smtry-amend-fields {
	padding: 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin: 18px 0;
}

.smtry-amend-window,
.smtry-amend-warning {
	padding: 12px 14px;
	border-radius: 4px;
	margin: 16px 0;
}

.smtry-amend-window {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
}

.smtry-amend-window p {
	margin: 4px 0 0;
}

.smtry-amend-warning {
	background: #fff7ed;
	border: 1px solid #fed7aa;
}

.smtry-amend-eyebrow {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 12px;
	font-weight: 700;
	color: var(--smtry-amend-accent, #3858e9);
}

.smtry-amend-timeline {
	margin-top: 16px;
}

.smtry-amend-timeline > div {
	display: grid;
	grid-template-columns: 14px 1fr;
	gap: 10px;
	position: relative;
}

.smtry-amend-timeline > div > span {
	width: 10px;
	height: 10px;
	background: var(--smtry-amend-accent, #3858e9);
	border-radius: 50%;
	margin-top: 6px;
}

.smtry-amend-timeline p {
	margin: 0 0 14px;
}

.smtry-amend-timeline small {
	display: block;
	color: #64748b;
}

.smtry-amend-withdraw,
.smtry-amend-submit-row {
	margin-top: 16px;
}

.smtry-amend-submit-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.smtry-amend-submit-status {
	margin-left: 10px;
}

.smtry-amend-card :focus-visible {
	outline: 2px solid var(--smtry-amend-accent, #3858e9);
	outline-offset: 2px;
}

.smtry-amend-card [hidden] {
	display: none !important;
}

@media (max-width: 640px) {
	.smtry-amend-form-grid {
		grid-template-columns: 1fr;
	}
	.smtry-amend-card {
		padding: 18px;
	}
	.smtry-amend-history-header {
		display: block;
	}
	.smtry-amend-history-header .button {
		margin-top: 10px;
	}
}


.smtry-amend-portal-logo { max-width: 180px; max-height: 64px; width: auto; height: auto; object-fit: contain; margin: 0 0 14px; }
.smtry-amend-order-number { display: block; color: #64748b; font-size: .72em; font-weight: 500; margin-top: 4px; }
.smtry-amend-mode-inherit { border-color: transparent; box-shadow: none; background: transparent; padding-left: 0; padding-right: 0; }
.smtry-amend-mode-inherit .smtry-amend-fields { background: transparent; }
.smtry-amend-mode-isolated { all: revert; display: block; box-sizing: border-box; border: 1px solid #dbe3ee; border-radius: 10px; padding: 24px; margin: 0 0 20px; background: #fff; color: #0f172a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; box-shadow: 0 2px 8px rgba(15, 23, 42, .05); }
.smtry-amend-mode-isolated *, .smtry-amend-mode-isolated *::before, .smtry-amend-mode-isolated *::after { box-sizing: border-box; }
.smtry-amend-mode-isolated button, .smtry-amend-mode-isolated .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 0; border-radius: 6px; padding: 10px 18px; background: var(--smtry-amend-accent, #3858e9); color: #fff; font-weight: 700; cursor: pointer; }
.smtry-amend-mode-isolated input, .smtry-amend-mode-isolated select, .smtry-amend-mode-isolated textarea { min-height: 42px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #0f172a; padding: 8px 10px; font: inherit; }


/* Contained mode provides a dependable branded UI when themes offer little form styling. */
.smtry-amend-mode-contained input,
.smtry-amend-mode-contained select,
.smtry-amend-mode-contained textarea {
	min-height: 44px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #0f172a;
	padding: 9px 11px;
	font: inherit;
	line-height: 1.35;
}

.smtry-amend-mode-contained textarea {
	min-height: 120px;
	resize: vertical;
}

.smtry-amend-mode-contained button,
.smtry-amend-mode-contained .button,
.smtry-amend-history .button,
.smtry-amend-history-header .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 10px 18px;
	background: var(--smtry-amend-accent, #3858e9);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.smtry-amend-mode-contained button:hover,
.smtry-amend-mode-contained button:focus,
.smtry-amend-mode-contained .button:hover,
.smtry-amend-mode-contained .button:focus,
.smtry-amend-history .button:hover,
.smtry-amend-history .button:focus,
.smtry-amend-history-header .button:hover,
.smtry-amend-history-header .button:focus {
	filter: brightness(.92);
	color: #fff;
	text-decoration: none;
}

.smtry-amend-mode-contained label {
	display: inline-block;
	margin-bottom: 6px;
	font-weight: 600;
}

.smtry-amend-mode-contained .smtry-amend-help {
	line-height: 1.45;
}


/* Universal compatibility safeguards keep controls usable without replacing theme branding. */
.smtry-amend-card input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.smtry-amend-card select {
	min-height: 40px;
	box-sizing: border-box;
}

.smtry-amend-card textarea {
	box-sizing: border-box;
}

.smtry-amend-card button,
.smtry-amend-card .button,
.smtry-amend-history .button,
.smtry-amend-history-header .button {
	min-height: 40px;
	max-width: 100%;
	box-sizing: border-box;
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: center;
}

.smtry-amend-card a,
.smtry-amend-history-header a {
	max-width: 100%;
	overflow-wrap: anywhere;
}

@media (max-width: 640px) {
	.smtry-amend-mode-contained button,
	.smtry-amend-mode-contained .button,
	.smtry-amend-history .button,
	.smtry-amend-history-header .button {
		width: 100%;
	}
	.smtry-amend-submit-status {
		display: block;
		margin: 10px 0 0;
	}
}
