/* Share cart: quiet button in the cart actions + modal */
.cg-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; background: none; border: 0; color: var(--erp-muted); font-weight: 600; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cg-share-btn .cg-icon { width: 16px; height: 16px; }
.cg-share-btn:hover { color: var(--erp-ink); }

.cg-share { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.cg-share[hidden] { display: none; }
.cg-share__backdrop { position: absolute; inset: 0; background: rgba(17, 20, 24, .5); }
.cg-share__box { position: relative; width: min(480px, 100%); background: #fff; border-radius: var(--erp-r-lg, 16px); padding: 28px 24px 22px; box-shadow: var(--erp-shadow-lg); text-align: center; animation: cg-share-in .2s ease; }
@keyframes cg-share-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.cg-share__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--erp-soft); display: grid; place-items: center; }
.cg-share__close .cg-icon { width: 20px; height: 20px; }
.cg-share__icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px; background: var(--erp-primary-50); color: var(--erp-primary); display: grid; place-items: center; }
.cg-share__icon .cg-icon { width: 26px; height: 26px; }
.cg-share__box h2 { font-size: 1.375rem; margin: 0 0 6px; }
.cg-share__box > p { color: var(--erp-muted); font-size: .9rem; margin: 0 0 16px; }
.cg-share__link { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--erp-line-strong); border-radius: var(--erp-r); background: var(--erp-soft); }
.cg-share__link input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 38px; font-size: .875rem; box-shadow: none !important; }
.cg-share__link.is-loading input { color: var(--erp-muted); }
.cg-share__link .cg-btn { flex: none; }
.cg-share__link .cg-btn.is-done { background: var(--erp-green); }
.cg-share__link .cg-icon { width: 16px; height: 16px; }
.cg-share__apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.cg-share__app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1px solid var(--erp-line); border-radius: var(--erp-r); background: #fff; font-weight: 700; font-size: .8125rem; color: var(--erp-ink); cursor: pointer; }
.cg-share__app .cg-icon { width: 22px; height: 22px; }
.cg-share__app.is-wa .cg-icon { color: #25d366; }
.cg-share__app.is-viber .cg-icon { color: #7360f2; }
.cg-share__app.is-mail .cg-icon { color: var(--erp-primary); }
.cg-share__app:hover { border-color: var(--erp-line-strong); color: var(--erp-ink); }
.cg-share__app[hidden] { display: none; }
.cg-share__note { margin: 14px 0 0; font-size: .78rem; color: var(--erp-subtle); }
.cg-share__box { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (max-height: 640px), (max-width: 420px) {
	.cg-share__box { padding: 22px 16px 16px; }
	.cg-share__icon { width: 44px; height: 44px; margin-bottom: 6px; }
	.cg-share__box h2 { font-size: 1.15rem; }
	.cg-share__box > p { font-size: .82rem; margin-bottom: 12px; }
	.cg-share__apps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) { .cg-share__link { flex-direction: column; } .cg-share__link .cg-btn { width: 100%; justify-content: center; } }
