.nyw-ams-inline,
.nyw-ams-modal,
.nyw-ams-modal * {
	box-sizing: border-box;
}

.nyw-ams-inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin: 32px 0 10px;
	padding: 24px 26px;
	border: 1px solid rgba(200, 155, 60, 0.42);
	border-radius: 16px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 235, 0.98)),
		#fff;
	box-shadow: 0 14px 32px rgba(23, 50, 77, 0.08);
	color: #17324d;
}

.nyw-ams-inline__copy {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.nyw-ams-inline__eyebrow,
.nyw-ams-dialog__eyebrow {
	color: #9a7020;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.nyw-ams-inline__copy strong {
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.4;
}

.nyw-ams-inline__copy small {
	color: #5e6e7c;
	font-size: 13px;
	line-height: 1.55;
}

.nyw-ams-primary,
.nyw-ams-action,
.nyw-ams-platform,
.nyw-ams-close {
	font: inherit;
}

.nyw-ams-primary {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 21px;
	border: 1px solid #17324d;
	border-radius: 999px;
	background: #17324d;
	box-shadow: 0 8px 18px rgba(23, 50, 77, 0.2);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nyw-ams-primary:hover,
.nyw-ams-primary:focus-visible {
	background: #204768;
	box-shadow: 0 10px 22px rgba(23, 50, 77, 0.26);
	transform: translateY(-1px);
}

.nyw-ams-primary:focus-visible,
.nyw-ams-action:focus-visible,
.nyw-ams-platform:focus-visible,
.nyw-ams-close:focus-visible {
	outline: 3px solid rgba(200, 155, 60, 0.62);
	outline-offset: 2px;
}

.nyw-ams-modal[hidden] {
	display: none !important;
}

.nyw-ams-modal {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	display: grid;
	place-items: center;
	padding: 24px;
}

.nyw-ams-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 24, 37, 0.74);
	backdrop-filter: blur(4px);
}

.nyw-ams-dialog {
	position: relative;
	z-index: 1;
	width: min(820px, 100%);
	max-height: min(88vh, 780px);
	overflow: auto;
	padding: 28px;
	border: 1px solid rgba(200, 155, 60, 0.34);
	border-radius: 20px;
	background: #fffdf8;
	box-shadow: 0 30px 80px rgba(3, 15, 27, 0.38);
	color: #17324d;
	-webkit-overflow-scrolling: touch;
}

.nyw-ams-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e7dfcf;
}

.nyw-ams-dialog__header h2 {
	margin: 5px 0 7px;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.3;
}

.nyw-ams-dialog__header p {
	max-width: 660px;
	margin: 0;
	color: #5e6e7c;
	font-size: 14px;
	line-height: 1.7;
}

.nyw-ams-close {
	display: inline-grid;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid #d7cdbb;
	border-radius: 50%;
	background: #fff;
	color: #17324d;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.nyw-ams-quick-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 20px 0 26px;
}

.nyw-ams-action {
	display: grid;
	gap: 5px;
	min-height: 92px;
	padding: 15px;
	border: 1px solid #d9dfe5;
	border-radius: 13px;
	background: #fff;
	color: #17324d;
	text-align: left;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nyw-ams-action:hover {
	border-color: #c89b3c;
	background: #fbf6eb;
	transform: translateY(-1px);
}

.nyw-ams-action--featured {
	border-color: #17324d;
	background: #17324d;
	color: #fff;
}

.nyw-ams-action--featured:hover {
	border-color: #204768;
	background: #204768;
}

.nyw-ams-action strong {
	font-size: 15px;
	line-height: 1.4;
}

.nyw-ams-action small {
	align-self: end;
	color: #697987;
	font-size: 12px;
	line-height: 1.45;
}

.nyw-ams-action--featured small {
	color: rgba(255, 255, 255, 0.76);
}

.nyw-ams-platform-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 12px;
}

.nyw-ams-platform-heading h3 {
	margin: 0;
	font-size: 18px;
}

.nyw-ams-platform-heading span {
	color: #788795;
	font-size: 12px;
}

.nyw-ams-platform-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.nyw-ams-platform {
	display: grid;
	gap: 3px;
	min-height: 64px;
	padding: 11px 12px;
	border: 1px solid #dde2e7;
	border-radius: 11px;
	background: #fff;
	color: #17324d;
	text-align: left;
	cursor: pointer;
	transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.nyw-ams-platform:hover {
	border-color: #c89b3c;
	background: #fbf7ef;
	transform: translateY(-1px);
}

.nyw-ams-platform span {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.nyw-ams-platform small {
	color: #7a8791;
	font-size: 11px;
}

.nyw-ams-boundary {
	margin: 20px 0 0;
	padding: 13px 15px;
	border-left: 3px solid #c89b3c;
	background: #f7f4ed;
	color: #64727e;
	font-size: 12px;
	line-height: 1.65;
}

.nyw-ams-status {
	position: sticky;
	bottom: 0;
	z-index: 2;
	min-height: 0;
	margin: 0;
	border-radius: 10px;
	background: transparent;
	color: #17324d;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	pointer-events: none;
}

.nyw-ams-status.is-visible {
	min-height: 42px;
	margin-top: 14px;
	padding: 11px 14px;
	background: #eaf3ee;
	box-shadow: 0 8px 18px rgba(23, 50, 77, 0.1);
}

.nyw-ams-status.is-error {
	background: #fff0ec;
	color: #8a2f22;
}

body.nyw-ams-modal-open {
	overflow: hidden;
}

@media (max-width: 760px) {
	.nyw-ams-inline {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
		padding: 20px;
	}

	.nyw-ams-primary {
		width: 100%;
	}

	.nyw-ams-modal {
		align-items: end;
		padding: 0;
	}

	.nyw-ams-dialog {
		width: 100%;
		max-height: 91vh;
		padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 20px 20px 0 0;
	}

	.nyw-ams-quick-actions {
		grid-template-columns: 1fr;
	}

	.nyw-ams-action {
		min-height: 74px;
	}

	.nyw-ams-platform-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 390px) {
	.nyw-ams-dialog__header {
		gap: 12px;
	}

	.nyw-ams-platform {
		padding: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nyw-ams-primary,
	.nyw-ams-action,
	.nyw-ams-platform {
		transition: none;
	}
}

@media print {
	.nyw-ams-inline,
	.nyw-ams-modal {
		display: none !important;
	}
}

