/*
 * Visual language matches the MarketDesign theme (xbaptiste.org):
 * monotone black/white, Cormorant Garamond serif titles, Montserrat
 * small-caps eyebrow labels, generous letter-spacing and whitespace.
 * Falls back gracefully if the theme fonts aren't loaded.
 */

.mccw-ls {
	max-width: 640px;
	margin: 0 auto;
	padding: 80px 40px;
	color: var(--color-text, #1a1a1a);
}

.mccw-ls .section-header {
	text-align: center;
	margin-bottom: 48px;
}

.mccw-ls .section-en {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	color: #999;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.mccw-ls .section-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: 400;
	letter-spacing: 0.05em;
	margin-bottom: 16px;
}

/* ---------- Form ---------- */

.mccw-ls-form {
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: 300;
}

.mccw-ls-field {
	margin-bottom: 28px;
}

.mccw-ls-field label {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #666;
	margin-bottom: 8px;
}

.mccw-ls-field input[type="text"],
.mccw-ls-field input[type="email"] {
	width: 100%;
	padding: 14px 4px;
	box-sizing: border-box;
	border: none;
	border-bottom: 1px solid #ccc;
	background: transparent;
	font-family: inherit;
	font-size: 1rem;
	color: var(--color-text, #1a1a1a);
	transition: border-color 0.2s ease;
}

.mccw-ls-field input[type="text"]:focus,
.mccw-ls-field input[type="email"]:focus {
	outline: none;
	border-color: var(--color-text, #1a1a1a);
}

.mccw-ls-field select {
	width: 100%;
	padding: 14px 4px;
	box-sizing: border-box;
	border: none;
	border-bottom: 1px solid #ccc;
	background: transparent;
	font-family: inherit;
	font-size: 1rem;
	color: var(--color-text, #1a1a1a);
	transition: border-color 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 4px center;
	background-size: 18px;
}

.mccw-ls-field select:focus {
	outline: none;
	border-color: var(--color-text, #1a1a1a);
}

.mccw-ls-price {
	text-align: center;
	margin: 0 0 16px;
}

.mccw-ls-price__amount {
	font-family: 'Cormorant Garamond', serif;
	font-size: 2.4rem;
	font-weight: 400;
	color: var(--color-text, #1a1a1a);
}

.mccw-ls-price__unit {
	font-size: 0.85rem;
	color: #888;
	margin-left: 6px;
}

.mccw-ls-note {
	font-size: 0.85rem;
	color: #888;
	line-height: 1.8;
	margin: 0 0 28px;
	text-align: center;
}

.mccw-ls-field--terms {
	font-size: 0.9rem;
	text-align: center;
	margin: 0 0 8px;
}

.mccw-ls-field--terms label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
}

.mccw-ls-field--terms input[type="checkbox"] {
	width: auto;
}

#mccw-ls-terms-toggle {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mccw-ls-terms-panel {
	max-width: 560px;
	margin: 0 auto 24px;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

.mccw-ls-field--submit {
	text-align: center;
	margin-top: 40px;
}

/* Shared primary button, matching the theme's .btn-primary */
.mccw-ls .btn-primary {
	display: inline-block;
	padding: 16px 48px;
	background: var(--color-text, #1a1a1a);
	color: var(--color-bg, #fff);
	border: none;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.mccw-ls .btn-primary:hover {
	opacity: 0.75;
}

/* ---------- Success screen ---------- */

.mccw-ls-success__lead {
	font-size: 0.95rem;
	color: #555;
	line-height: 1.9;
	max-width: 440px;
	margin: 0 auto;
}

.mccw-ls-key-list {
	margin: 48px 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mccw-ls-key-card {
	border: 1px solid #e2e2e2;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.mccw-ls-key-card__label {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #999;
	flex: 0 0 100%;
}

.mccw-ls-key-card__value {
	font-family: 'Courier New', monospace;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	flex: 1 1 auto;
	word-break: break-all;
}

.mccw-ls-key-card__copy {
	flex: 0 0 auto;
	background: none;
	border: 1px solid var(--color-text, #1a1a1a);
	padding: 8px 18px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.mccw-ls-key-card__copy:hover {
	background: var(--color-text, #1a1a1a);
	color: var(--color-bg, #fff);
}

.mccw-ls-howto {
	border-top: 1px solid #e2e2e2;
	padding-top: 40px;
	margin-top: 40px;
	text-align: left;
}

.mccw-ls-howto .section-en {
	margin-bottom: 4px;
}

.mccw-ls-howto h3 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.3rem;
	font-weight: 400;
	margin-bottom: 20px;
}

.mccw-ls-howto ol {
	padding-left: 1.2em;
	font-size: 0.9rem;
	line-height: 2;
	color: #444;
	margin-bottom: 16px;
}

.mccw-ls-howto__note {
	font-size: 0.8rem;
	color: #999;
	line-height: 1.8;
}

.mccw-ls-support {
	margin-top: 40px;
	font-size: 0.85rem;
	color: #888;
	text-align: center;
}

/* ---------- Notices ---------- */

.mccw-ls-notice {
	text-align: center;
	padding: 60px 40px;
}

.mccw-ls-notice p {
	font-size: 0.95rem;
	line-height: 1.9;
}

.mccw-ls-notice--error p {
	color: #b3261e;
}

.mccw-ls-notice--pending p {
	color: #8a6d3b;
}

.mccw-ls-inline-notice {
	margin: 0 0 1.8em;
	padding: 0.9em 1.2em;
	border: 1px solid #e0c68a;
	border-radius: 2px;
	font-size: 0.85rem;
	line-height: 1.8;
}

.mccw-ls-inline-notice--pending {
	color: #8a6d3b;
	background: #fbf6ea;
}

@media (max-width: 600px) {
	.mccw-ls {
		padding: 56px 24px;
	}
}
