/* Orbit Store Manager — customer portal + shortcodes (S2). Theme-friendly: inherits fonts and colours. */

.ostore-portal, .ostore-pricing, .ostore-free-dl, .ostore-changelog {
	--ostore-accent: #2563eb;
	--ostore-accent-dark: #1d4ed8;
	--ostore-border: rgba(0, 0, 0, .1);
	--ostore-soft: rgba(0, 0, 0, .03);
	--ostore-muted: rgba(0, 0, 0, .6);
	--ostore-radius: 12px;
	box-sizing: border-box;
}
.ostore-portal *, .ostore-pricing * { box-sizing: border-box; }

/* Pills (shared markup with admin) */
.ostore-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; background: #f1f5f9; color: #475569; }
.ostore-pill--active, .ostore-pill--free { background: #dcfce7; color: #166534; }
.ostore-pill--grace, .ostore-pill--pending_renewal { background: #fef3c7; color: #92400e; }
.ostore-pill--expired, .ostore-pill--cancelled { background: #f1f5f9; color: #475569; }
.ostore-pill--suspended, .ostore-pill--revoked { background: #fee2e2; color: #991b1b; }

/* Portal cards */
.ostore-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0 0 24px; }
.ostore-lcard { border: 1px solid var(--ostore-border); border-radius: var(--ostore-radius); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.ostore-lcard--expired, .ostore-lcard--revoked, .ostore-lcard--suspended { background: #fcfcfd; }
.ostore-lcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ostore-lcard__head h3 { margin: 0; font-size: 1.05em; line-height: 1.3; }
.ostore-lcard__plan { color: var(--ostore-muted); font-size: .9em; }
.ostore-lcard__key { display: flex; align-items: center; gap: 8px; background: var(--ostore-soft); border: 1px dashed var(--ostore-border); border-radius: 8px; padding: 8px 10px; }
.ostore-lcard__key code { flex: 1; background: none; padding: 0; font-size: .95em; letter-spacing: .05em; word-break: break-all; }
.ostore-copy { border: 1px solid var(--ostore-border); background: #fff; color: inherit; border-radius: 6px; padding: 4px 10px; font-size: .85em; cursor: pointer; line-height: 1.4; }
.ostore-copy:hover { border-color: var(--ostore-accent); color: var(--ostore-accent); }
.ostore-copy.is-copied { border-color: #16a34a; color: #16a34a; }
.ostore-lcard__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ostore-lcard__meta div { min-width: 0; }
.ostore-lcard__meta dt { font-size: .75em; text-transform: uppercase; letter-spacing: .04em; color: var(--ostore-muted); margin: 0; font-weight: 400; }
.ostore-lcard__meta dd { margin: 2px 0 0; font-weight: 600; }
.ostore-lcard__note { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ostore-soft); font-size: .9em; }
.ostore-lcard__note--warn { background: #fffbeb; color: #92400e; }
.ostore-lcard__note--bad { background: #fef2f2; color: #991b1b; }
.ostore-lcard__desc { margin: 0; color: var(--ostore-muted); font-size: .92em; }
.ostore-lcard__devices h4 { margin: 0 0 6px; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; color: var(--ostore-muted); }
.ostore-lcard__devices ul { list-style: none; margin: 0; padding: 0; }
.ostore-lcard__devices li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--ostore-border); margin: 0; }
.ostore-lcard__site { min-width: 0; word-break: break-word; }
.ostore-lcard__site small { display: block; color: var(--ostore-muted); }
.ostore-tag { display: inline-block; font-size: .72em; padding: 0 6px; border-radius: 4px; background: #e0e7ff; color: #3730a3; vertical-align: middle; }
.ostore-lcard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ostore-inline-form { display: inline; margin: 0; }
.ostore-btn.button, .ostore-lcard .button { margin: 0; }
.ostore-btn--ghost { background: transparent !important; border: 1px solid var(--ostore-border) !important; color: inherit !important; }
.ostore-btn--ghost:hover { border-color: var(--ostore-accent) !important; color: var(--ostore-accent) !important; }
.ostore-btn--renew { background: #f59e0b !important; border-color: #f59e0b !important; color: #fff !important; }
.ostore-lcard__devices .ostore-btn { font-size: .85em; padding: 3px 10px; }
.ostore-portal__h { margin: 8px 0 12px; }
.ostore-confirm { border: 1px solid #f59e0b; background: #fffbeb; border-radius: var(--ostore-radius); padding: 14px 18px; margin: 0 0 16px; }
.ostore-confirm p { margin: 0 0 10px; }
.ostore-empty-portal { padding: 24px; text-align: center; border: 1px dashed var(--ostore-border); border-radius: var(--ostore-radius); margin-bottom: 24px; }

/* Pricing */
.ostore-pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; margin: 24px 0 8px; }
.ostore-plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ostore-border); border-radius: 16px; padding: 28px 24px 24px; background: #fff; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.ostore-plan:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.ostore-plan--featured { border: 2px solid var(--ostore-accent); box-shadow: 0 12px 34px rgba(37, 99, 235, .15); }
.ostore-plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ostore-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.ostore-plan__name { margin: 0 0 10px; font-size: 1.15em; }
.ostore-plan__price { font-size: 2em; font-weight: 800; line-height: 1.1; }
.ostore-plan__price del { font-size: .5em; font-weight: 400; opacity: .6; display: block; }
.ostore-plan__price ins { text-decoration: none; }
.ostore-plan__tax { font-size: .4em; font-weight: 400; opacity: .7; white-space: nowrap; }
.ostore-plan__per { color: var(--ostore-muted); font-size: .9em; margin: 4px 0 18px; }
.ostore-plan__features { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; flex: 1; }
.ostore-plan__features li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--ostore-border); margin: 0; }
.ostore-plan__features li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 10px; height: 6px; border-left: 2px solid #16a34a; border-bottom: 2px solid #16a34a; transform: rotate(-45deg); }
.ostore-plan__sites { font-weight: 700; }
.ostore-plan__buy.button { display: block; width: 100%; padding: 12px 16px; border-radius: 10px; font-weight: 700; text-align: center; text-decoration: none; }
.ostore-plan--featured .ostore-plan__buy.button { background: var(--ostore-accent); border-color: var(--ostore-accent); color: #fff; }
.ostore-plan--featured .ostore-plan__buy.button:hover { background: var(--ostore-accent-dark); }
.ostore-pricing__note { text-align: center; color: var(--ostore-muted); font-size: .9em; }

/* Free download */
.ostore-free-dl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.ostore-free-dl__btn.button { padding: 12px 22px; border-radius: 10px; font-weight: 700; background: var(--ostore-accent); border-color: var(--ostore-accent); color: #fff; }
.ostore-free-dl__btn.button:hover { background: var(--ostore-accent-dark); color: #fff; }
.ostore-free-dl__btn[disabled] { opacity: .7; cursor: progress; }
.ostore-free-dl__meta, .ostore-free-dl__msg { color: var(--ostore-muted); font-size: .9em; }
.ostore-free-dl__msg.is-error { color: #b91c1c; }

/* Changelog */
.ostore-changelog h4 { margin: 1.4em 0 .4em; padding-top: 1em; border-top: 1px solid var(--ostore-border); }
.ostore-changelog h4:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.ostore-changelog ul { margin-top: .3em; }

.ostore-sc-error { padding: 8px 12px; border-left: 4px solid #d63638; background: #fcf0f1; }

@media (max-width: 600px) {
	.ostore-lcard__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ostore-cards { grid-template-columns: minmax(0, 1fr); }
	.ostore-lcard__devices li { flex-wrap: wrap; }
}

.ostore-claim{margin:24px 0;padding:16px;border:1px dashed #d0d5dd;border-radius:8px}
.ostore-claim input.input-text{max-width:320px;font-family:monospace;text-transform:uppercase}
