.cip-overlay[hidden] { display:none !important; }
.cip-modal-open { overflow: hidden !important; }
.cip-overlay { position:fixed; inset:0; z-index:2147483000; display:flex; align-items:center; justify-content:center; padding:14px; background:rgba(0,0,0,.79); overflow-y:auto; box-sizing:border-box; }
.cip-panel { position:relative; width:min(100%, 440px); max-height:calc(100dvh - 28px); overflow-y:auto; background:#101a17; border:1px solid rgba(255,255,255,.16); border-radius:18px; box-shadow:0 24px 90px rgba(0,0,0,.5); padding:12px; box-sizing:border-box; }
.cip-overlay .cip-panel { margin:auto; }
.cip-close { position:absolute; z-index:2; right:17px; top:17px; display:grid; place-items:center; width:38px; height:38px; border:0; border-radius:50%; color:#fff; background:rgba(0,0,0,.74); font-size:28px; line-height:1; cursor:pointer; box-shadow:0 2px 12px rgba(0,0,0,.35); }
.cip-close:hover { background:#222; }
.cip-close:focus-visible, .cip-btn:focus-visible, .cip-image-link:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.cip-image-link { display:block; overflow:hidden; border-radius:11px; width:100%; line-height:0; }
.cip-image { width:100%; aspect-ratio:1/1; display:block; height:auto; object-fit:contain; }
.cip-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:12px; }
.cip-actions:has(.cip-btn:only-child) { grid-template-columns:1fr; }
.cip-btn { text-decoration:none !important; display:flex; justify-content:center; align-items:center; gap:7px; min-height:50px; padding:9px 8px; box-sizing:border-box; border-radius:10px; color:white !important; font:700 13px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif; text-align:center; transition:filter .15s, transform .15s; }
.cip-btn:hover { filter:brightness(1.12); transform:translateY(-1px); color:white !important; }
.cip-line { background:#06c755; }
.cip-telegram { background:#229ed9; }
.cip-btn-icon { background:#fff; border-radius:5px; color:#06a847; font-size:9px; padding:4px 3px; font-weight:900; }
.cip-plane { font-size:20px; transform:rotate(-25deg); display:inline-block; }
.cip-embedded { max-width:440px; margin:18px auto; }
@media (max-width:390px) { .cip-panel { padding:8px; border-radius:13px; } .cip-btn { font-size:12px; min-height:46px; gap:5px; } .cip-actions { gap:6px; margin-top:8px; } }
@media (max-height:580px) { .cip-overlay { align-items:flex-start; } .cip-overlay .cip-panel { margin:auto; } }
