/*
 * Plugin showcase: the wide plugin cards and their animated examples.
 * --b      the plugin's brand colour (text and buttons on white), set on each card
 * --b-rgb  the same colour as r,g,b for tinted surfaces
 * The examples (.u2d) are sized in em and scale with the width of their stage, so they never change a card's height.
 */

/* ---------- one panel for the whole catalogue: the offer, the plugins, the notes that apply to all ---------- */
.u2s-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 28px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 50px 90px -56px rgba(15, 23, 42, .5); }
.u2s-panel > .u2p-offer { max-width: none; margin: 0; padding: 34px 36px; border-radius: 0; }
/* the offer's plugin tiles: one row across the panel on wide screens (name over price), the module's own layout below that */
@media (min-width: 1100px) {
	.u2s-panel .u2p-deals { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
	.u2s-panel .u2p-deal { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "icon name" "price price"; gap: 9px 10px; align-items: center; padding: 13px 14px; }
	.u2s-panel .u2p-deal__icon { grid-area: icon; width: 32px; height: 32px; border-radius: 8px; }
	.u2s-panel .u2p-deal__name { grid-area: name; font-size: 14.5px; }
	.u2s-panel .u2p-deal__price { grid-area: price; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
	.u2s-panel .u2p-deal__go { display: none; }
}
.u2s-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 22px 24px; border-top: 1px solid #e9eef4; background: #f8fafc; font-size: 14px; color: #475569; }

/* ---------- a plugin: one row of the panel ---------- */
.u2s-card { --b: #0274be; --b-rgb: 2, 116, 190; position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: center; padding: 76px 0; background: #fff; }
/* between two plugins: a wavy line in the colour of the plugin below it (drawn once as a mask, coloured by --b-rgb) */
.u2s-card + .u2s-card::before { content: ""; position: absolute; left: 36px; right: 36px; top: -6px; height: 12px; background-color: rgba(var(--b-rgb), .42); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 Q12 -2 24 6 T48 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 48px 12px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 Q12 -2 24 6 T48 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 48px 12px; }
.u2s-info { padding: 0 36px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.u2s-head { display: flex; align-items: center; gap: 14px; }
.u2s-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; object-fit: cover; }
.u2s-job { margin: 0; font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b); }
.u2s-title { margin: 3px 0 0; font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: #0f172a; }
.u2s-title a { color: inherit; }
.u2s-title a:hover { color: var(--b); }
.u2s-tag { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: #475569; }
.u2s-feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 14px; line-height: 1.3; font-weight: 600; color: #1e293b; }
.u2s-feats li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.u2s-feats svg { width: 16px; height: 16px; flex: none; color: var(--b); }
.u2s-meta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; line-height: 1.3; color: #475569; }
.u2s-price b { font-size: 16px; font-weight: 700; color: #0f172a; }
.u2s-deal, .u2s-first { display: none; }
html.u2p-promo-live .has-deal .u2s-base { font-size: 14px; font-weight: 500; color: #64748b; text-decoration: line-through; }
html.u2p-promo-live .has-deal .u2s-deal { display: inline; margin-left: 5px; }
html.u2p-promo-live .has-deal .u2s-per { display: none; }
html.u2p-promo-live .has-deal .u2s-first { display: inline; }
.u2s-meta .u2p-card-tag { margin-top: 0; }
.u2s-actions { margin-top: 18px; }
.u2s-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #fff; background-color: var(--b); transition: filter .2s; }
.u2s-btn:hover { filter: brightness(.9); color: #fff; }
.u2s-btn svg { width: 16px; height: 16px; }

/* ---------- the stage: white; the example window has a thin border and a small shadow, no glow ---------- */
.u2s-stage { position: relative; container-type: inline-size; min-height: 336px; display: flex; align-items: center; justify-content: center; padding: 0 36px 0 12px; }
.u2s-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- the example: one window, one size, one motion for all six ---------- */
.u2d { position: relative; width: 36em; max-width: 100%; font-size: 12px; font-size: clamp(8px, calc((100cqw - 56px) / 36), 14px); line-height: 1.35; color: #1e293b; text-align: left; user-select: none; pointer-events: none; font-variant-numeric: tabular-nums; }
.u2d-win { background: #fff; border-radius: 1em; border: 1px solid #dfe5ee; box-shadow: 0 .9em 1.8em -1.2em rgba(15, 23, 42, .28), 0 .1em .25em rgba(15, 23, 42, .05); overflow: hidden; }
.u2d-bar { display: flex; align-items: center; gap: .42em; height: 2.3em; padding: 0 .95em; background: #f8fafc; border-bottom: 1px solid #edf1f6; }
.u2d-bar i { width: .62em; height: .62em; border-radius: 50%; background: #dbe1ea; }
.u2d-body { height: 18.6em; padding: 1.05em 1.25em; display: flex; flex-direction: column; }
.u2d [data-on], .u2d [data-vals] { transition: background-color .35s, color .35s, border-color .35s, opacity .35s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.u2d .tick { animation: u2d-tick .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes u2d-tick { 0% { opacity: .2; transform: translateY(.35em); } 100% { opacity: 1; transform: none; } }
@keyframes u2d-dots { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-.18em); } }

/* shared parts */
.u2d .d-name { font-size: 1.04em; font-weight: 700; color: #0f172a; }
.u2d .d-big { font-size: 1.75em; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--b); }
.u2d .d-old { font-size: .86em; color: #64748b; text-decoration: line-through; }
.u2d .d-muted { color: #64748b; }
.u2d .d-sm { font-size: .8em; }
.u2d .d-row { display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.u2d .d-show { opacity: 0; transform: translateY(.45em); }
.u2d .d-show.is-on { opacity: 1; transform: none; }
.u2d .d-btn { display: inline-flex; align-items: center; justify-content: center; height: 2.3em; padding: 0 1em; border-radius: .6em; font-size: .86em; font-weight: 700; color: #fff; background-color: #0f172a; white-space: nowrap; }
.u2d .d-btn.b { background-color: var(--b); }
.u2d .d-chip { display: inline-flex; align-items: center; height: 1.9em; padding: 0 .7em; border-radius: .5em; border: 1px solid #dbe1ea; font-size: .8em; font-weight: 600; color: #334155; background: #fff; white-space: nowrap; }
.u2d .d-chip.is-on { background-color: var(--b); border-color: var(--b); color: #fff; }
.u2d .d-field { display: flex; align-items: center; justify-content: space-between; gap: .6em; height: 2.2em; padding: 0 .75em; border: 1px solid #dbe1ea; border-radius: .6em; background: #fff; font-size: .88em; }
.u2d .d-caret { white-space: nowrap; }
.u2d .d-caret::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; background: currentColor; vertical-align: -.15em; opacity: .55; }
.u2d .d-good { display: inline-flex; align-items: center; height: 1.7em; padding: 0 .65em; border-radius: .5em; font-size: .76em; font-weight: 700; color: #14532d; background: #dcfce7; white-space: nowrap; }

/* 1. pricing: the price follows the quantity */
.u2d-pricing .t-qty { display: inline-flex; align-items: center; border: 1px solid #dbe1ea; border-radius: .6em; overflow: hidden; font-size: .9em; font-weight: 700; }
.u2d-pricing .t-qty span { display: flex; align-items: center; justify-content: center; width: 2.1em; height: 2.1em; color: #64748b; }
.u2d-pricing .t-qty b { min-width: 3.1em; text-align: center; border-left: 1px solid #dbe1ea; border-right: 1px solid #dbe1ea; line-height: 2.1em; color: #0f172a; }
.u2d-pricing .t-head, .u2d-pricing .t-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: center; padding: 0 .8em; }
.u2d-pricing .t-head { margin-top: .7em; height: 1.7em; font-size: .72em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.u2d-pricing .t-row { height: 1.95em; font-size: .9em; border-top: 1px solid #edf1f6; border-radius: .5em; }
.u2d-pricing .t-row span:last-child, .u2d-pricing .t-head span:last-child { text-align: right; }
.u2d-pricing .t-row.is-on { background-color: var(--b); color: #fff; font-weight: 700; border-top-color: transparent; }
.u2d-pricing .t-row.is-on + .t-row { border-top-color: transparent; }


.u2d .d-foot { margin-top: auto; padding-top: .6em; border-top: 1px solid #edf1f6; font-size: .92em; font-weight: 700; color: #0f172a; }
.u2d-pricing .d-foot { padding-left: .8em; padding-right: .8em; }

/* 2. options: every choice has a price, the total follows */
.u2d-options .o-wrap { display: grid; grid-template-columns: 8.4em minmax(0, 1fr); gap: 1.1em; margin: auto 0; }
.u2d-options .o-img { height: 11.2em; border-radius: .8em; background-color: rgba(var(--b-rgb), .1); color: var(--b); display: flex; align-items: center; justify-content: center; }
.u2d-options .o-img svg { width: 6.4em; height: 6.4em; }
.u2d-options .o-label { display: flex; justify-content: space-between; margin: .55em 0 .25em; font-size: .72em; font-weight: 700; color: #64748b; }
.u2d-options .o-sizes { display: flex; gap: .3em; }
.u2d-options .o-sizes .d-chip { min-width: 2.4em; justify-content: center; padding: 0 .4em; }
.u2d-options .d-field { height: 2em; font-weight: 700; letter-spacing: .04em; color: #0f172a; }
.u2d-options .o-line { margin-top: .6em; font-size: .88em; }
.u2d-options .o-box { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; margin-right: .55em; border: 1px solid #94a3b8; border-radius: .35em; font-style: normal; font-size: .85em; font-weight: 700; color: transparent; vertical-align: -.15em; }
.u2d-options .o-box.is-on { background-color: var(--b); border-color: var(--b); color: #fff; }
.u2d-options .o-file { margin-left: .6em; height: 1.75em; font-size: .86em; }
.u2d-options .o-sum { font-size: 1.15em; color: var(--b); }

/* 3. currency: the same shop in the visitor's currency */
.u2d-currency .c-toast { padding: .3em .7em; border-radius: .5em; font-size: .7em; font-weight: 600; color: #fff; background-color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.u2d-currency .c-switch { flex: none; gap: .3em; font-size: .82em; }
.u2d-currency .c-switch small { font-size: .8em; opacity: .7; }
.u2d-currency .c-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; margin-top: .7em; }
.u2d-currency .c-item img { display: block; width: 100%; height: 7.7em; object-fit: cover; border-radius: .6em; background: #eef2f7; }
.u2d-currency .c-name { display: block; margin-top: .4em; font-size: .78em; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u2d-currency .c-price { display: block; font-size: 1em; font-weight: 800; color: #0f172a; }
.u2d-currency .c-cart { margin-left: -.5em; margin-right: -.5em; padding: .55em .5em; border-radius: .5em; }
.u2d-currency .c-cart.is-on { background-color: rgba(var(--b-rgb), .1); color: var(--b); border-top-color: transparent; }

/* 4. invoice: one paid order, the documents it needs */
.u2d-invoice .i-doc { margin-top: .7em; padding: .75em 1em .35em; border: 1px solid #e2e8f0; border-radius: .7em; }
.u2d-invoice .i-doc small { display: block; font-size: .74em; font-weight: 400; letter-spacing: 0; text-transform: none; color: #64748b; }
.u2d-invoice .i-from { font-size: .9em; font-weight: 700; color: #0f172a; }
.u2d-invoice .i-title { text-align: right; font-size: 1.05em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--b); }
.u2d-invoice .i-line { display: flex; justify-content: space-between; gap: 1em; padding: .42em 0; font-size: .84em; border-top: 1px solid #edf1f6; }
.u2d-invoice .i-line:nth-of-type(2) { margin-top: .6em; }
.u2d-invoice .i-sum { font-weight: 800; color: #0f172a; }
.u2d-invoice .i-tabs { margin-top: auto; display: flex; justify-content: center; gap: .35em; }

/* 5. chat: one conversation on the order it belongs to */
.u2d-chat .m-head { padding-bottom: .65em; border-bottom: 1px solid #edf1f6; }
.u2d-chat .m-who { display: flex; align-items: center; gap: .65em; }
.u2d-chat .m-who > i { display: flex; align-items: center; justify-content: center; width: 2.3em; height: 2.3em; border-radius: 50%; font-style: normal; font-size: .9em; font-weight: 700; color: #fff; background-color: var(--b); }
.u2d-chat .m-who small { display: block; font-size: .74em; color: #64748b; }
.u2d-chat .m-new { padding: .25em .65em; border-radius: .5em; font-size: .72em; font-weight: 700; color: #fff; background-color: var(--b); }
.u2d-chat .m-list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .45em; }
.u2d-chat .m-msg { align-self: flex-start; max-width: 78%; padding: .5em .8em; border-radius: 1em 1em 1em .3em; font-size: .88em; background-color: #f1f5f9; color: #1e293b; }
.u2d-chat .m-slot { position: relative; display: flex; justify-content: flex-end; }
.u2d-chat .m-me { align-self: flex-end; border-radius: 1em 1em .3em 1em; background-color: var(--b); color: #fff; font-weight: 600; }
.u2d-chat .m-me small { display: block; margin-top: .2em; font-size: .8em; font-weight: 500; opacity: .9; }
.u2d-chat .m-typing { position: absolute; right: 0; top: 50%; display: flex; gap: .3em; padding: .65em .8em; margin-top: -1.05em; border-radius: 1em 1em .3em 1em; background-color: rgba(var(--b-rgb), .14); }
.u2d-chat .m-typing i { width: .45em; height: .45em; border-radius: 50%; background-color: var(--b); animation: u2d-dots 1.1s infinite; }
.u2d-chat .m-typing i:nth-child(2) { animation-delay: .15s; }
.u2d-chat .m-typing i:nth-child(3) { animation-delay: .3s; }
.u2d-chat .m-input svg { width: 1.2em; height: 1.2em; color: var(--b); }

/* 6. bulk editor: filter, change, preview, apply */
.u2d-bulk-editor .b-top { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.u2d-bulk-editor .b-box { padding: .6em .75em; border: 1px solid #e2e8f0; border-radius: .7em; }
.u2d-bulk-editor .b-step { display: flex; align-items: center; gap: .5em; font-size: .84em; font-weight: 700; color: #0f172a; }
.u2d-bulk-editor .b-step i { display: flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%; font-style: normal; font-size: .82em; color: #fff; background-color: var(--b); }
.u2d-bulk-editor .b-chips { display: flex; align-items: center; gap: .3em; margin-top: .5em; }
.u2d-bulk-editor .b-pct { flex: none; min-width: 4.8em; height: 1.9em; padding: 0 .6em; font-size: .8em; font-weight: 700; white-space: nowrap; }
.u2d-bulk-editor .b-prev { margin-top: .7em; padding-bottom: .25em; }
.u2d-bulk-editor .b-line { display: grid; grid-template-columns: minmax(0, 1fr) 4.6em 4.6em; padding: .38em 0; font-size: .86em; border-top: 1px solid #edf1f6; }
.u2d-bulk-editor .b-line:nth-of-type(2) { margin-top: .5em; }
.u2d-bulk-editor .b-line > * { text-align: right; }
.u2d-bulk-editor .b-line > :first-child { text-align: left; }
.u2d-bulk-editor .b-old.is-on { color: #64748b; text-decoration: line-through; }
.u2d-bulk-editor .b-line b { color: var(--b); }
.u2d-bulk-editor .b-foot { border-top: 0; padding-top: .5em; }
.u2d-bulk-editor .b-foot .d-btn.is-on { background-color: var(--b); }

/* ---------- small screens ---------- */
@media (max-width: 1023px) {
	.u2s-card { grid-template-columns: minmax(0, 1fr); }
	.u2s-card { padding: 52px 0 50px; }
	.u2s-card + .u2s-card::before { left: 20px; right: 20px; }
	.u2s-stage { order: -1; min-height: 0; padding: 0 20px; }
	.u2d { font-size: clamp(8px, calc((100cqw - 32px) / 36), 14px); }
	.u2s-info { padding: 26px 20px 0; }
	.u2s-title { font-size: 21px; }
}
@media (max-width: 640px) {
	/* phones: the four features carry the description, so the card stays about as tall as the old one */
	.u2s-tag { display: none; }
	.u2s-feats { grid-template-columns: 1fr; margin-top: 14px; }
	.u2s-card { padding: 38px 0 36px; }
	.u2s-card + .u2s-card::before { left: 18px; right: 18px; }
	.u2s-stage { padding: 0 14px; }
	.u2s-info { padding: 22px 18px 0; }
	.u2s-panel { border-radius: 22px; }
	.u2s-panel > .u2p-offer { padding: 24px 18px; }
	.u2s-trust { justify-content: flex-start; padding: 18px; }
	.u2s-meta { margin-top: 14px; }
	.u2s-actions { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.u2d [data-on], .u2d [data-vals] { transition: none; }
	.u2d .tick, .u2d .d-typing i { animation: none; }
}
