/* Upgrade modal — Studio plans picker + checkout */

.xsis-upgrade-modal {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
}

.xsis-upgrade-modal[hidden] {
	display: none;
}

.xsis-upgrade-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(3px);
}

.xsis-upgrade-modal__dialog {
	position: relative;
	width: min(100%, 920px);
	max-height: min(92vh, 820px);
	overflow: auto;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
	color: #1f2937;
}

.xsis-upgrade-modal__dialog--plans {
	width: min(100%, 720px);
	padding: 28px 28px 22px;
}

.xsis-upgrade-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
}

.xsis-upgrade-modal__close:hover {
	background: #f3f4f6;
	color: #111827;
}

.xsis-upgrade-modal__close--header {
	position: static;
	margin-left: auto;
}

.xsis-upgrade-modal__hero {
	padding-right: 36px;
	margin-bottom: 20px;
}

.xsis-upgrade-modal__crown {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafafa;
	color: #111827;
}

.xsis-upgrade-modal__title {
	margin: 0 0 8px;
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #111827;
}

.xsis-upgrade-modal__lead {
	margin: 0;
	max-width: 38rem;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #6b7280;
}

.xsis-upgrade-modal__cycle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	margin: 0 auto 20px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #f3f4f6;
	width: fit-content;
	max-width: 100%;
}

.xsis-upgrade-modal__dialog--plans .xsis-upgrade-modal__cycle {
	display: flex;
	justify-content: center;
	width: auto;
	margin-left: auto;
	margin-right: auto;
}

.xsis-upgrade-modal__cycle-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #6b7280;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.xsis-upgrade-modal__cycle-btn.is-active {
	background: #111827;
	color: #fff;
}

.xsis-upgrade-modal__cycle-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.xsis-upgrade-modal__cycle-btn:not(.is-active) .xsis-upgrade-modal__cycle-badge {
	background: #e5e7eb;
	color: #4b5563;
}

.xsis-upgrade-modal__plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 16px;
}

.xsis-upgrade-modal__plan {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	padding: 18px 16px 16px;
	border: 1.5px solid #d1d5db;
	border-radius: 14px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.xsis-upgrade-modal__plan:hover {
	border-color: #9ca3af;
}

.xsis-upgrade-modal__plan.is-selected {
	border-color: #111827;
	box-shadow: 0 0 0 1px #111827;
}

.xsis-upgrade-modal__plan--pro {
	border-color: #bfdbfe;
}

.xsis-upgrade-modal__plan--pro.is-selected {
	border-color: #60a5fa;
	box-shadow: 0 0 0 1px #60a5fa;
}

.xsis-upgrade-modal__popular {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #eff6ff;
	color: #2563eb;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.xsis-upgrade-modal__plan-head strong {
	display: block;
	margin-bottom: 4px;
	font-size: 1.05rem;
	font-weight: 800;
	color: #111827;
}

.xsis-upgrade-modal__plan-head p {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: #6b7280;
}

.xsis-upgrade-modal__plan-price {
	display: grid;
	gap: 4px;
}

.xsis-upgrade-modal__price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
}

.xsis-upgrade-modal__price-main {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #111827;
}

.xsis-upgrade-modal__price-unit {
	font-size: 0.92rem;
	font-weight: 600;
	color: #6b7280;
}

.xsis-upgrade-modal__strike {
	font-size: 0.78rem;
	color: #9ca3af;
	text-decoration: line-through;
}

.xsis-upgrade-modal__price-sub {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.78rem;
	color: #6b7280;
}

.xsis-upgrade-modal__save {
	display: inline-flex;
	padding: 2px 7px;
	border-radius: 999px;
	background: #eff6ff;
	color: #2563eb;
	font-size: 0.68rem;
	font-weight: 700;
}

.xsis-upgrade-modal__features {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xsis-upgrade-modal__features li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.82rem;
	line-height: 1.4;
	color: #374151;
}

.xsis-upgrade-modal__check {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
}

.xsis-upgrade-modal__terms {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fafafa;
	font-size: 0.78rem;
	line-height: 1.5;
	color: #4b5563;
	cursor: pointer;
}

.xsis-upgrade-modal__terms input {
	margin-top: 2px;
	flex: none;
	accent-color: #111827;
}

.xsis-upgrade-modal__terms a {
	color: #111827;
	font-weight: 700;
	text-decoration: underline;
}

.xsis-upgrade-modal__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: #9ca3af;
	color: #fff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.xsis-upgrade-modal__terms--note {
	cursor: default;
	color: #6b7280;
}

.xsis-upgrade-modal__cta:not(:disabled) {
	background: #111827;
}

.xsis-upgrade-modal__cta:not(:disabled):hover {
	background: #000;
}

.xsis-upgrade-modal__cta:disabled {
	cursor: not-allowed;
	opacity: 0.75;
}

.xsis-upgrade-modal__foot {
	margin: 12px 0 0;
	text-align: center;
	font-size: 0.72rem;
	line-height: 1.45;
	color: #9ca3af;
}

.xsis-upgrade-modal__foot a {
	color: #6b7280;
	font-weight: 600;
	text-decoration: underline;
}

/* Checkout step (existing bank transfer flow) */
.xsis-upgrade-modal__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 18px;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
}

.xsis-upgrade-modal__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #374151;
	cursor: pointer;
}

.xsis-upgrade-modal__back:hover {
	background: #f9fafb;
}

.xsis-upgrade-modal__back svg {
	width: 18px;
	height: 18px;
}

.xsis-upgrade-modal__brand {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
}

.xsis-upgrade-modal__layout {
	display: grid;
	grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
	min-height: 520px;
}

.xsis-upgrade-modal__summary {
	padding: 18px;
	border-right: 1px solid #e5e7eb;
	background:
		linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0) 42%),
		#f8fafc;
}

.xsis-upgrade-modal__summary-card {
	margin-bottom: 14px;
	padding: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.xsis-upgrade-modal__summary-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.xsis-upgrade-modal__summary-brand strong {
	display: block;
	font-size: 0.95rem;
	color: #111827;
}

.xsis-upgrade-modal__summary-brand span {
	display: block;
	font-size: 0.78rem;
	color: #6b7280;
}

.xsis-upgrade-modal__brand-logo {
	display: block;
	flex-shrink: 0;
	filter: brightness(0);
}

.xsis-upgrade-modal__meta {
	display: grid;
	gap: 10px;
	margin: 0;
}

.xsis-upgrade-modal__meta div {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 8px;
	align-items: start;
}

.xsis-upgrade-modal__meta dt {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	color: #6b7280;
}

.xsis-upgrade-modal__meta dd {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	font-size: 0.82rem;
	color: #111827;
}

.xsis-upgrade-modal__meta code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.78rem;
	word-break: break-all;
}

.xsis-upgrade-modal__section {
	margin-bottom: 14px;
	padding: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.xsis-upgrade-modal__section h3 {
	margin: 0 0 12px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
}

.xsis-upgrade-modal__line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f3f4f6;
	font-size: 0.84rem;
}

.xsis-upgrade-modal__line:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.xsis-upgrade-modal__line span {
	color: #6b7280;
}

.xsis-upgrade-modal__line strong {
	color: #111827;
	text-align: right;
}

.xsis-upgrade-modal__line--total {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
	border-bottom: none;
	font-size: 0.95rem;
}

.xsis-upgrade-modal__line--total strong {
	font-size: 1.05rem;
	color: #2563eb;
}

.xsis-upgrade-modal__payment {
	padding: 18px 18px 20px;
	background: #fff;
}

.xsis-upgrade-modal__payment-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.xsis-upgrade-modal__payment-head h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
}

.xsis-upgrade-modal__manual-badge {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	color: #2563eb;
	font-size: 0.72rem;
	font-weight: 700;
}

.xsis-upgrade-modal__category {
	margin: 0 0 8px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 0.78rem;
	font-weight: 700;
}

.xsis-upgrade-modal__methods {
	display: flex;
	flex-direction: column;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
}

.xsis-upgrade-modal__method {
	border-bottom: 1px solid #e5e7eb;
}

.xsis-upgrade-modal__method:last-child {
	border-bottom: none;
}

.xsis-upgrade-modal__method.is-selected {
	background: #f8fbff;
}

.xsis-upgrade-modal__method-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px;
	border: none;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.xsis-upgrade-modal__method-btn:hover {
	background: #f9fafb;
}

.xsis-upgrade-modal__method-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 4px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.xsis-upgrade-modal__method-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.xsis-upgrade-modal__method-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.xsis-upgrade-modal__method-copy strong {
	font-size: 0.92rem;
	color: #111827;
}

.xsis-upgrade-modal__method-copy span {
	font-size: 0.78rem;
	color: #6b7280;
}

.xsis-upgrade-modal__method-chevron {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: #9ca3af;
	transition: transform 0.15s ease;
}

.xsis-upgrade-modal__method.is-selected .xsis-upgrade-modal__method-chevron {
	transform: rotate(90deg);
	color: #2563eb;
}

.xsis-upgrade-modal__method-detail {
	padding: 0 14px 14px 64px;
}

.xsis-upgrade-modal__detail-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 0.82rem;
}

.xsis-upgrade-modal__detail-row span {
	color: #6b7280;
}

.xsis-upgrade-modal__detail-value {
	display: flex;
	align-items: center;
	gap: 8px;
}

.xsis-upgrade-modal__detail-row code,
.xsis-upgrade-modal__detail-value code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.82rem;
	color: #111827;
}

.xsis-upgrade-modal__detail-note {
	margin: 8px 0 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: #6b7280;
}

.xsis-upgrade-modal__copy {
	flex-shrink: 0;
	padding: 4px 10px;
	border: 1px solid #dbeafe;
	border-radius: 6px;
	background: #eff6ff;
	color: #2563eb;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	cursor: pointer;
}

.xsis-upgrade-modal__copy:hover {
	background: #dbeafe;
}

.xsis-upgrade-modal__copy--inline {
	padding: 2px 8px;
}

.xsis-upgrade-modal__whatsapp {
	display: flex;
	gap: 12px;
	padding: 14px;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	background: #f0fdf4;
}

.xsis-upgrade-modal__whatsapp-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	color: #16a34a;
}

.xsis-upgrade-modal__whatsapp-icon svg {
	width: 100%;
	height: 100%;
}

.xsis-upgrade-modal__whatsapp strong {
	display: block;
	margin-bottom: 6px;
	font-size: 0.88rem;
	color: #14532d;
}

.xsis-upgrade-modal__whatsapp p {
	margin: 0 0 12px;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #166534;
}

.xsis-upgrade-modal__whatsapp-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.xsis-upgrade-modal__whatsapp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	border-radius: 8px;
	background: #16a34a;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

.xsis-upgrade-modal__whatsapp-btn:hover {
	background: #15803d;
}

.xsis-upgrade-modal__whatsapp-link {
	font-size: 0.78rem;
	color: #166534;
	text-decoration: underline;
}

body.xsis-upgrade-modal-open {
	overflow: hidden;
}

/* Checkout success receipt */
.xsis-upgrade-modal__dialog--checkout {
	width: min(100%, 440px);
	max-height: none;
	overflow: hidden;
	padding: 24px 22px 16px;
	text-align: center;
}

.xsis-upgrade-modal__success-icon {
	display: inline-flex;
	width: 44px;
	height: 44px;
	margin: 0 auto 8px;
}

.xsis-upgrade-modal__success-icon svg {
	width: 100%;
	height: 100%;
}

.xsis-upgrade-modal__greet {
	margin: 0 0 2px;
	font-size: 0.92rem;
	color: #6b7280;
}

.xsis-upgrade-modal__title--checkout {
	margin-bottom: 12px;
	font-size: 1.35rem;
}

.xsis-upgrade-modal__deadline {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.xsis-upgrade-modal__deadline-label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
}

.xsis-upgrade-modal__countdown {
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
}

.xsis-upgrade-modal__tick {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 54px;
}

.xsis-upgrade-modal__tick-digit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 40px;
	overflow: hidden;
	border-radius: 10px;
	background: #111827;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.08);
}

.xsis-upgrade-modal__tick-digit span {
	display: block;
	line-height: 1;
}

.xsis-upgrade-modal__tick-digit span.is-flip {
	animation: xsis-tick-flip 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes xsis-tick-flip {
	0% {
		transform: translateY(-55%) rotateX(55deg);
		opacity: 0.25;
	}
	100% {
		transform: translateY(0) rotateX(0deg);
		opacity: 1;
	}
}

.xsis-upgrade-modal__tick-label {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9ca3af;
}

.xsis-upgrade-modal__tick-sep {
	padding-top: 10px;
	font-size: 1.2rem;
	font-weight: 800;
	color: #111827;
}

.xsis-upgrade-modal__due {
	margin: 0 0 14px;
	font-size: 0.78rem;
	color: #6b7280;
}

.xsis-upgrade-modal__notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
	text-align: left;
	color: #4b5563;
}

.xsis-upgrade-modal__notice svg {
	flex-shrink: 0;
	margin-top: 1px;
	color: #111827;
}

.xsis-upgrade-modal__notice p {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.45;
}

.xsis-upgrade-modal__receipt-sep {
	height: 1px;
	margin: 0 0 12px;
	background: repeating-linear-gradient(
		90deg,
		#d1d5db 0 8px,
		transparent 8px 14px
	);
}

.xsis-upgrade-modal__transfer-label {
	margin: 0 0 10px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #6b7280;
	text-align: left;
}

.xsis-upgrade-modal__bank-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 12px;
}

.xsis-upgrade-modal__bank-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 6px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: #4b5563;
	font: inherit;
	font-size: 0.74rem;
	font-weight: 700;
	cursor: pointer;
}

.xsis-upgrade-modal__bank-tab img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.xsis-upgrade-modal__bank-tab.is-active {
	border-color: #111827;
	background: #111827;
	color: #fff;
}

.xsis-upgrade-modal__bank-card {
	padding: 14px;
	margin-bottom: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	text-align: left;
}

.xsis-upgrade-modal__bank-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f3f4f6;
}

.xsis-upgrade-modal__bank-head img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	padding: 4px;
}

.xsis-upgrade-modal__bank-head strong {
	display: block;
	font-size: 0.92rem;
	color: #111827;
}

.xsis-upgrade-modal__bank-head span {
	font-size: 0.78rem;
	color: #6b7280;
}

.xsis-upgrade-modal__pay-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
}

.xsis-upgrade-modal__pay-row > span {
	font-size: 0.8rem;
	color: #6b7280;
}

.xsis-upgrade-modal__pay-value {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.xsis-upgrade-modal__pay-value strong {
	font-size: 0.95rem;
	font-weight: 800;
	color: #111827;
	font-variant-numeric: tabular-nums;
}

.xsis-upgrade-modal__pay-amount {
	color: #2563eb !important;
}

.xsis-upgrade-modal__details-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin-bottom: 10px;
	padding: 8px;
	border: 0;
	background: transparent;
	color: #6b7280;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}

.xsis-upgrade-modal__details-toggle svg {
	transition: transform 0.18s ease;
}

.xsis-upgrade-modal__details-toggle.is-open svg {
	transform: rotate(180deg);
}

.xsis-upgrade-modal__order-details {
	margin-bottom: 14px;
	padding: 4px 4px 0;
	text-align: left;
}

.xsis-upgrade-modal__confirm-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid #e5e7eb;
}

.xsis-upgrade-modal__confirm-row > span {
	font-size: 0.78rem;
	font-weight: 600;
	color: #6b7280;
	text-align: left;
}

.xsis-upgrade-modal__confirm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #111827;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.xsis-upgrade-modal__confirm-btn:hover {
	background: #000;
}

.xsis-upgrade-modal__back-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 10px;
	padding: 8px;
	border: 0;
	background: transparent;
	color: #6b7280;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.xsis-upgrade-modal__back-link:hover {
	color: #111827;
}

@media (max-width: 820px) {
	.xsis-upgrade-modal__dialog--plans {
		padding: 22px 16px 16px;
	}

	.xsis-upgrade-modal__plans {
		grid-template-columns: 1fr;
	}

	.xsis-upgrade-modal__title {
		font-size: 1.35rem;
	}

	.xsis-upgrade-modal__dialog--checkout {
		padding: 24px 16px 16px;
	}

	.xsis-upgrade-modal__tick {
		min-width: 48px;
	}

	.xsis-upgrade-modal__tick-digit {
		width: 48px;
		height: 42px;
		font-size: 1.2rem;
	}

	.xsis-upgrade-modal__layout {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.xsis-upgrade-modal__summary {
		border-right: none;
		border-bottom: 1px solid #e5e7eb;
	}

	.xsis-upgrade-modal__method-detail {
		padding-left: 14px;
	}
}
