/* Trial creation review, scoped to the existing create page. */
html.dtc-create-loading-open { overflow: hidden; }
.create-loading:not([open]) { display: none; }
.create-loading {
	box-sizing: border-box; width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 36px 28px 26px; overflow: auto;
	border: 1px solid var(--line); border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 24px 80px #0003; font: inherit; text-align: center;
}
.create-loading::backdrop { background: #18131bc2; backdrop-filter: blur(6px); }
.create-loading:focus { outline: none; }
.create-loading__art { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.create-loading__art::before { content: ''; position: absolute; inset: -7px; border: 2px solid var(--accent-line, var(--line)); border-top-color: var(--accent); border-radius: 50%; animation: dtc-create-spin 1.8s linear infinite; }
.create-loading__art img { display: block; width: 68px; height: 68px; object-fit: contain; }
.create-loading h2 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(22px, 5vw, 26px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.create-loading .create-loading__couple { margin: 12px 0 0; color: var(--accent); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.create-loading #dtc-create-loading-description { margin: 14px auto 0; max-width: 330px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.create-loading__track { height: 4px; margin: 24px 0 14px; overflow: hidden; border-radius: 4px; background: var(--accent-soft); }
.create-loading__track span { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--accent); animation: dtc-create-progress 1.7s ease-in-out infinite alternate; }
.create-loading .create-loading__status { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.7; }
.create-loading .create-loading__hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
@keyframes dtc-create-spin { to { transform: rotate(360deg); } }
@keyframes dtc-create-progress { from { transform: translateX(-40%); } to { transform: translateX(205%); } }
@media (prefers-reduced-motion: reduce) {
	.create-loading__art::before, .create-loading__track span { animation: none; }
	.create-loading__track span { transform: translateX(80%); opacity: .65; }
}
@media (max-width: 480px) { .create-loading { padding: 30px 22px 24px; border-radius: 20px; } }
.create-intro { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.create-intro strong { color: var(--ink); }
.create-page__topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.create-page__topbar .section-label { margin: 0; }
.create-page__login { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.create-page__login .dtc-icon { width: 15px; height: 15px; color: var(--accent); }
.create-page__login:hover { border-color: var(--accent); background: var(--accent-soft); }
.create-page__login:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.create-page__form-wrap { min-width: 0; }
.create-page__form-wrap .create-form { margin-top: 18px; }
.create-form__details { display: grid; gap: 16px; min-width: 0; }
.create-form__details[hidden], .create-review[hidden] { display: none !important; }
.create-review { min-width: 0; text-align: left; }
.create-review > p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.create-review__summary { margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.create-review__summary > div { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.3fr); gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.create-review__summary > div:last-child { border-bottom: 0; }
.create-review__summary dt { margin: 0; color: var(--muted); }
.create-review__summary dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; white-space: pre-wrap; }
.create-review__summary > .create-review__total { background: var(--mint-soft); }
.create-review__total dt, .create-review__total dd { color: var(--ink); font-weight: 700; }
.create-review__total dd { font-size: 20px; }
.create-review > .create-review__notice { margin: 0; padding: 10px 12px; color: var(--muted); background: color-mix(in srgb, var(--muted) 4%, transparent); border: 1px solid color-mix(in srgb, var(--muted) 16%, transparent); border-radius: 12px; font-size: 12px; font-weight: 400; line-height: 1.65; }
.create-review__notice a { color: var(--accent, var(--brand)); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.create-review__notice a:hover { text-decoration-color: currentColor; }
.create-review__notice a:focus-visible { outline: 2px solid var(--accent, var(--brand)); outline-offset: 3px; border-radius: 3px; }
.create-review__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.create-review__actions .btn { flex: 1 1 185px; min-height: 46px; white-space: normal; text-align: center; }
.create-success__reference { font-size: 13px; color: var(--muted); }
.create-success__private-label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.create-success__edit .create-success__link-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
:root[data-dtc-color-mode="dark"] .create-review__summary > .create-review__total { background: var(--cm-surface); }
@media (max-width: 480px) {
	.create-review__summary > div { grid-template-columns: minmax(90px, .8fr) minmax(0, 1.3fr); padding: 10px; gap: 8px; }
	.create-review__actions { flex-direction: column; }
	.create-review__actions .btn { flex-basis: auto; }
}

/* Keep the two next steps prominent and secondary destinations easy to scan. */
.create-success .create-success__actions { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 10px; margin-top: 24px; text-align: left; }
.create-success__primary-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.create-success__primary-actions .btn { width: 100%; min-height: 44px; padding: 10px 14px; gap: 8px; border-radius: 12px; font-size: 13px; line-height: 1.5; white-space: normal; text-align: center; box-shadow: none; }
.create-success__primary-actions .btn:hover { transform: none; }
.create-success__primary-actions .dtc-icon { flex: none; width: 17px; height: 17px; }
.create-success__manage { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 20px; }
.create-success__manage a, .create-success__more-links a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.5; text-decoration: none; border-radius: 6px; }
.create-success__manage .dtc-icon, .create-success__more .dtc-icon { flex: none; width: 16px; height: 16px; }
.create-success__manage a:hover, .create-success__more-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.create-success__more { min-width: 0; border-top: 1px solid var(--line); }
.create-success__more summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px; border-radius: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.5; cursor: pointer; list-style: none; }
.create-success__more summary::-webkit-details-marker { display: none; }
.create-success__more summary:hover { color: var(--accent); }
.create-success__more[open] summary .dtc-icon { transform: rotate(180deg); }
.create-success__more-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 0 14px; padding: 4px 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--muted) 4%, transparent); }
.create-success__actions :is(a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 480px) {
	.create-success__primary-actions { grid-template-columns: 1fr; }
	.create-success__manage { gap: 0 12px; }
	.create-success__manage a { font-size: 12px; gap: 6px; }
}
