.abc-dss-shell,
.abc-dss-payment-wait,
.abc-dss-popup {
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif;
}

.abc-dss-shell *,
.abc-dss-payment-wait *,
.abc-dss-popup * {
	box-sizing: border-box;
}

.abc-dss-shell {
	width: min(1080px, calc(100% - 32px));
	margin: 24px auto 36px;
	color: #252525;
}

.abc-dss-orders {
	display: grid;
	gap: 18px;
}

.abc-dss-order,
.abc-dss-auth-card,
.abc-dss-empty {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(23, 61, 122, 0.08);
}

.abc-dss-order {
	overflow: hidden;
}

.abc-dss-order-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
	background: #f7faff;
	border-bottom: 1px solid #e5e7eb;
}

.abc-dss-order-heading h2 {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	color: #173d7a;
}

.abc-dss-order-heading > span {
	display: inline-flex;
	padding: 7px 10px;
	border-radius: 999px;
	background: #fff1b9;
	color: #6b5200;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.abc-dss-files {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
	justify-content: start;
	gap: 16px;
	padding: 18px;
}

.abc-dss-file {
	display: flex;
	min-width: 0;
	max-width: 220px;
	padding: 14px;
	flex-direction: column;
	gap: 12px;
	border: 1px solid #e7ebf1;
	border-radius: 14px;
	background: #fff;
}

.abc-dss-file-image {
	display: grid;
	width: min(140px, 100%);
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	place-items: center;
	border-radius: 10px;
	background: #f5f7fb;
}

.abc-dss-file-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

.abc-dss-file-placeholder {
	display: grid;
	width: 72px;
	height: 72px;
	place-items: center;
	border-radius: 16px;
	background: #eaf2ff;
	color: #173d7a;
	font-size: 19px;
	font-weight: 800;
}

.abc-dss-file-name {
	display: block;
	min-height: 2.7em;
	font-size: 15px;
	line-height: 1.35;
	overflow-wrap: anywhere;
	color: #252525;
}

.abc-dss-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-top: auto;
	padding: 11px 18px;
	border: 0;
	border-radius: 10px;
	background: #ff4f8b;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .18s ease, transform .18s ease;
}

.abc-dss-button:hover,
.abc-dss-button:focus-visible {
	filter: brightness(.92);
	transform: translateY(-1px);
}

.abc-dss-button-secondary {
	background: #eef1f5;
	color: #252525 !important;
}

.abc-dss-link-button,
.abc-dss-back-link {
	border: 0;
	background: transparent;
	color: #173d7a;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.abc-dss-session-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 14px;
}

.abc-dss-session-actions form {
	margin: 0;
}

.abc-dss-empty {
	padding: 28px;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	color: #4b5563;
}

.abc-dss-no-files {
	grid-column: 1 / -1;
	margin: 0;
	color: #687180;
}

.abc-dss-auth-shell {
	max-width: 620px;
}

.abc-dss-auth-card {
	padding: clamp(24px, 5vw, 38px);
}

.abc-dss-auth-card h1 {
	margin: 0 0 8px;
	font-size: clamp(27px, 4vw, 36px);
	line-height: 1.15;
	color: #173d7a;
}

.abc-dss-auth-card > p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: #5d6470;
}

.abc-dss-form {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}

.abc-dss-form label {
	margin-top: 7px;
	font-size: 14px;
	font-weight: 700;
	color: #323844;
}

.abc-dss-form input[type="text"],
.abc-dss-form input[type="email"] {
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid #cfd5df;
	border-radius: 9px;
	background: #fff;
	font-size: 16px;
	color: #252525;
}

.abc-dss-form input:focus {
	outline: 3px solid rgba(23, 61, 122, .15);
	border-color: #173d7a;
}

.abc-dss-code {
	font-size: 26px !important;
	font-weight: 700;
	letter-spacing: .35em;
	text-align: center;
}

.abc-dss-submit {
	width: 100%;
	margin-top: 12px;
}

.abc-dss-privacy,
.abc-dss-admin-hint {
	margin: 18px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

.abc-dss-back-link {
	display: inline-block;
	margin-top: 20px;
}

.abc-dss-notice {
	margin: 0 0 18px;
	padding: 13px 15px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.abc-dss-notice-success {
	background: #eaf8ef;
	border: 1px solid #b9e6c8;
	color: #185c30;
}

.abc-dss-notice-error {
	background: #fff1f1;
	border: 1px solid #f0c4c4;
	color: #8b2222;
}

.abc-dss-empty {
	padding: 28px;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	color: #4b5563;
}

.abc-dss-no-files {
	margin: 0;
	color: #687180;
}

.abc-dss-payment-wait {
	width: min(620px, calc(100% - 32px));
	margin: 24px auto;
	padding: 20px;
	border: 1px solid #ffd4e5;
	border-radius: 16px;
	background: #fff7fb;
	text-align: center;
	color: #333;
}

.abc-dss-payment-wait strong,
.abc-dss-payment-wait span {
	display: block;
}

.abc-dss-payment-wait strong {
	font-size: 20px;
	margin-bottom: 8px;
}

.abc-dss-payment-wait span {
	font-size: 15px;
	line-height: 1.5;
	color: #666;
}

.abc-dss-popup-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, .55);
}

.abc-dss-popup-backdrop[hidden] {
	display: none;
}

.abc-dss-popup {
	width: min(450px, 100%);
	padding: 28px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
	text-align: center;
}

.abc-dss-popup h2 {
	margin: 0 0 10px;
	font-size: 23px;
	color: #173d7a;
}

.abc-dss-popup p {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.55;
	color: #5f6672;
}

.abc-dss-popup-actions {
	display: grid;
	gap: 10px;
}

.cf-turnstile {
	margin-top: 12px;
}

@media (max-width: 640px) {
	.abc-dss-shell {
		width: min(100% - 20px, 1080px);
		margin: 18px auto 28px;
	}

	.abc-dss-order-heading {
		align-items: flex-start;
		padding: 12px 14px;
		flex-direction: column;
	}

	.abc-dss-order-heading > span {
		align-self: flex-start;
	}

	.abc-dss-files {
		grid-template-columns: 1fr;
		padding: 14px;
	}

	.abc-dss-file {
		padding: 12px;
	}

	.abc-dss-auth-card {
		padding-left: 18px;
		padding-right: 18px;
	}

	.abc-dss-session-actions {
		justify-content: center;
	}
}


@media (max-width: 640px) {
	.abc-dss-files {
		grid-template-columns: 1fr;
		padding: 14px;
	}

	.abc-dss-file {
		max-width: 100%;
	}

	.abc-dss-file-image {
		width: 112px;
	}
}
