.wew-form-wrap {
	--wew-border: #d8dee6;
	--wew-muted: #5f6b7a;
	--wew-text: #1f2933;
	--wew-bg: #ffffff;
	--wew-soft: #f7f8fa;
	--wew-accent: #111827;
	max-width: 920px;
	margin: 0 auto;
	color: var(--wew-text);
}

.wew-form-wrap *,
.wew-form-wrap *::before,
.wew-form-wrap *::after {
	box-sizing: border-box;
}

.wew-intro,
.wew-card {
	background: var(--wew-bg);
	border: 1px solid var(--wew-border);
	border-radius: 16px;
	padding: clamp(18px, 3vw, 28px);
	margin: 0 0 20px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.wew-intro h2,
.wew-card h3 {
	margin-top: 0;
}

.wew-intro-text p:last-child,
.wew-card p:last-child {
	margin-bottom: 0;
}

.wew-form fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 22px;
}

.wew-form legend,
.wew-step-label {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.wew-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.wew-field {
	margin-bottom: 18px;
}

.wew-field label,
.wew-item-qty label {
	display: block;
	font-weight: 700;
	margin-bottom: 7px;
}

.wew-field input,
.wew-field select,
.wew-field textarea,
.wew-item-qty input {
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--wew-border);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 16px;
	line-height: 1.4;
	background: #fff;
	color: var(--wew-text);
}

.wew-field textarea {
	min-height: 120px;
	resize: vertical;
}

.wew-field input:focus,
.wew-field select:focus,
.wew-field textarea:focus,
.wew-item-qty input:focus,
.wew-item input[type="checkbox"]:focus,
.wew-checkbox-confirm input:focus,
.wew-submit:focus,
.wew-withdrawal-button:focus {
	outline: 3px solid rgba(17, 24, 39, 0.28);
	outline-offset: 2px;
}

.wew-help,
.wew-item-meta,
.wew-item-note {
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--wew-muted);
	margin: 7px 0 0;
}

.wew-items {
	display: grid;
	gap: 12px;
	margin-top: 15px;
}

.wew-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 170px;
	gap: 18px;
	align-items: start;
	border: 1px solid var(--wew-border);
	border-radius: 14px;
	padding: 16px;
	background: var(--wew-soft);
}

.wew-item.is-disabled {
	opacity: 0.7;
}

.wew-item-main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.wew-item-main input[type="checkbox"],
.wew-checkbox-confirm input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	flex: 0 0 auto;
}

.wew-item-name {
	display: block;
	font-weight: 700;
}

.wew-submit,
.wew-withdrawal-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--wew-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.wew-submit:hover,
.wew-withdrawal-button:hover {
	filter: brightness(1.12);
	color: #fff;
}

.wew-alert {
	border-radius: 14px;
	padding: 15px 18px;
	margin: 0 0 20px;
}

.wew-alert-error {
	border: 1px solid #f0a8a8;
	background: #fff5f5;
	color: #7f1d1d;
}

.wew-alert ul {
	margin-bottom: 0;
}

.wew-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.wew-table th,
.wew-table td {
	border: 1px solid var(--wew-border);
	padding: 12px;
	text-align: left;
}

.wew-table th {
	background: var(--wew-soft);
}

.wew-summary {
	background: var(--wew-soft);
	border: 1px solid var(--wew-border);
	border-radius: 12px;
	padding: 14px;
	margin: 0 0 16px;
}

.wew-checkbox-confirm {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-weight: 700;
	margin: 20px 0;
}

.wew-case-id {
	display: inline-block;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--wew-soft);
	border: 1px solid var(--wew-border);
	margin: 14px 0;
}

.wew-case-id span,
.wew-case-id strong {
	display: block;
}

.wew-case-id span {
	font-size: 0.86rem;
	color: var(--wew-muted);
}

.wew-case-id strong {
	font-size: 1.35rem;
}

.wew-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 720px) {
	.wew-grid,
	.wew-item {
		grid-template-columns: 1fr;
	}

	.wew-item-qty {
		max-width: 220px;
	}

	.wew-submit,
	.wew-withdrawal-button {
		width: 100%;
	}
}

.wew-statement {
	margin: 16px 0;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
}

.wew-statement p {
	margin: 0 0 10px;
}

.wew-statement p:last-child {
	margin-bottom: 0;
}

.wew-statement ul {
	margin: 10px 0 0 18px;
	padding: 0;
}

.wew-statement li {
	margin: 4px 0;
}
