/* Shopo Split Pay — checkout editor, order summary rows and the parts page. */

/* ------------------------------------------------------------ checkout -- */

.shopo-split {
	display: grid;
	gap: 10px;
	color: #1f2329;
	cursor: default;
}

.shopo-split__intro,
.shopo-split__foot {
	margin: 0 !important;
	color: #5b616b;
	font-size: 13px;
	line-height: 1.5;
}

.shopo-split__rows {
	display: grid;
	gap: 10px;
}

.shopo-split__row {
	display: grid;
	grid-template-areas:
		"num method amount remove"
		".   note   note   note";
	grid-template-columns: 26px minmax(0, 1fr) 132px 28px;
	align-items: center;
	gap: 4px 8px;
}

.shopo-split__num {
	grid-area: num;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #eef2ff;
	color: #1b4dff;
	font-size: 12px;
	font-weight: 800;
}

.shopo-split__method {
	grid-area: method;
	display: block;
	min-width: 0;
	margin: 0 !important;
}

.shopo-split__amount {
	grid-area: amount;
	position: relative;
	display: block;
	margin: 0 !important;
}

.shopo-split select,
.shopo-split__amount input {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #d9dde3;
	border-radius: 10px;
	background: #fff;
	color: #1f2329;
	font: inherit;
	font-size: 14px;
}

.shopo-split__amount > span[aria-hidden] {
	position: absolute;
	top: 50%;
	left: 10px;
	color: #5b616b;
	font-size: 13px;
	pointer-events: none;
	transform: translateY(-50%);
}

.shopo-split__amount input {
	padding-left: 36px;
	-moz-appearance: textfield;
}

.shopo-split__amount input::-webkit-inner-spin-button,
.shopo-split__amount input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.shopo-split__amount input[readonly] {
	border-style: dashed;
	background: #f4f6f8;
}

.shopo-split select:focus,
.shopo-split__amount input:focus {
	border-color: #1b4dff;
	outline: 2px solid rgba(27, 77, 255, 0.18);
	outline-offset: 0;
}

.shopo-split__row.is-low input {
	border-color: #e0796f;
	background: #fff6f5;
}

.shopo-split__remove {
	grid-area: remove;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #8a9099;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.shopo-split__remove:hover {
	background: #f1f3f5;
	color: #1f2329;
}

.shopo-split__remove[hidden],
.shopo-split__add[hidden] {
	display: none;
}

.shopo-split__note {
	grid-area: note;
	margin: 0 !important;
	color: #5b616b;
	font-size: 12.5px;
	line-height: 1.4;
}

.shopo-split__note:empty {
	display: none;
}

.shopo-split__row.is-low .shopo-split__note {
	color: #b42318;
}

.shopo-split__add {
	justify-self: start;
	padding: 4px 0;
	border: 0;
	background: none;
	color: #1b4dff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.shopo-split__errors {
	margin: 0 !important;
	padding: 10px 12px !important;
	border-radius: 10px;
	background: #fff6f5;
	color: #b42318;
	font-size: 13px;
	list-style: none;
}

@media (max-width: 520px) {
	.shopo-split__row {
		grid-template-areas:
			"num method remove"
			".   amount ."
			".   note   note";
		grid-template-columns: 26px minmax(0, 1fr) 28px;
	}
}

/* The split, part by part, under the order total. */
.shopo-co-split td {
	display: block;
	flex: 1 1 100%;
	width: 100%;
	padding-top: 10px !important;
}

.shopo-co-split__title {
	margin: 0 0 6px !important;
	color: #5b616b;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.shopo-co-split ul,
.shopo-split-thanks ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shopo-co-split li,
.shopo-split-thanks li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

/* ---------------------------------------------------------- parts page -- */

.shopo-split-hub {
	display: grid;
	gap: 14px;
	max-width: 640px;
	margin: 24px 0;
	color: #1f2329;
}

.shopo-split-hub__head {
	padding: 20px;
	border-radius: 16px;
	background: #0b1220;
	color: #fff;
}

.shopo-split-hub__eyebrow {
	margin: 0 0 4px;
	color: #9fb0d0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.shopo-split-hub__head h2 {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(1.25rem, 4vw, 1.6rem);
	line-height: 1.2;
}

.shopo-split-hub__head p {
	margin: 0;
	color: #cfd8ea;
}

.shopo-split-hub__head b {
	color: #fff;
}

.shopo-split-hub__bar {
	height: 8px;
	margin-top: 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
}

.shopo-split-hub__bar span {
	display: block;
	height: 100%;
	min-width: 8px;
	border-radius: inherit;
	background: #34d399;
	transition: width 0.4s ease;
}

.shopo-split-hub__parts {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shopo-split-card {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 16px;
	border: 1px solid #e3e6ea;
	border-radius: 14px;
	background: #fff;
}

.shopo-split-card.is-next {
	border-color: #1b4dff;
	box-shadow: 0 0 0 3px rgba(27, 77, 255, 0.08);
}

.shopo-split-card.is-paid {
	border-color: #bfe6cf;
	background: #f3fbf6;
}

.shopo-split-card__top {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
}

.shopo-split-card__num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #eef2ff;
	color: #1b4dff;
	font-weight: 800;
}

.is-paid .shopo-split-card__num {
	background: #047857;
	color: #fff;
}

.shopo-split-card__what b {
	display: block;
	font-size: 16px;
}

.shopo-split-card__what small {
	display: block;
	margin-top: 2px;
	color: #5b616b;
	font-size: 13px;
	line-height: 1.4;
}

.shopo-split-card__amt {
	font-size: 18px;
	white-space: nowrap;
}

.shopo-split-card__status,
.shopo-split-card__hint {
	margin: 0;
}

.shopo-split-card__hint {
	color: #5b616b;
	font-size: 13px;
}

.shopo-split-chip {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1f3f5;
	color: #3c424b;
	font-size: 12.5px;
	font-weight: 700;
}

.shopo-split-chip--paid {
	background: #dcfce7;
	color: #047857;
}

.shopo-split-chip--waiting {
	background: #fff7ed;
	color: #c2410c;
}

.shopo-split-chip--started {
	background: #eff6ff;
	color: #1d4ed8;
}

.shopo-split-chip--failed {
	background: #fff1f2;
	color: #e11d48;
}

.shopo-split-card__pay {
	margin: 0;
}

.shopo-split-btn {
	width: 100%;
	min-height: 50px;
	padding: 0 16px;
	border: 1px solid #1b4dff;
	border-radius: 12px;
	background: #fff;
	color: #1b4dff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.is-next .shopo-split-btn {
	background: #1b4dff;
	color: #fff;
}

.is-next .shopo-split-btn:hover {
	background: #123bcc;
}

.shopo-split-card__switch summary {
	color: #5b616b;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}

.shopo-split-card__switch form {
	display: flex;
	gap: 8px;
	margin: 8px 0 0;
}

.shopo-split-card__switch select {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 10px;
	border: 1px solid #d9dde3;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 14px;
}

.shopo-split-card__switch button {
	height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: #1f2329;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.shopo-split-bank {
	padding: 12px 14px;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	font-size: 14px;
}

.shopo-split-bank p {
	margin: 0;
}

.shopo-split-bank dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	margin: 8px 0;
}

.shopo-split-bank dt {
	color: #5b616b;
}

.shopo-split-bank dd {
	margin: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.shopo-split-hub__note {
	margin: 0;
	color: #5b616b;
	font-size: 13.5px;
	line-height: 1.5;
}

.shopo-split-thanks {
	max-width: 640px;
	margin: 20px 0;
	padding: 16px;
	border: 1px solid #e3e6ea;
	border-radius: 14px;
	background: #fff;
}

.shopo-split-thanks h2 {
	margin: 0 0 8px;
	font-size: 18px;
}
