/* ── Share trigger — matches woosw-btn / woosc-btn style ─── */
.cel-share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #777;
    text-decoration: none;
    transition: color .2s;
    vertical-align: middle;
    line-height: 1;
}
.cel-share-trigger:hover { color: #BAC34E; }
.cel-share-trigger svg   { width: 14px; height: 14px; stroke: currentColor; }

.cel-share-wrap { display: inline-block; }

/* ── Backdrop ────────────────────────────────────────────── */
.cel-share-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 9998;
    backdrop-filter: blur(2px);
}
.cel-share-wrap.is-open .cel-share-backdrop { display: block; }

/* ── Modal ───────────────────────────────────────────────── */
.cel-share-modal {
    display: none; position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff; border-radius: 20px 20px 0 0;
    padding: 20px 20px 36px; z-index: 9999;
    box-shadow: 0 -4px 30px rgba(0,0,0,.15);
    animation: celSlideUp .3s ease;
    max-width: 480px; margin: 0 auto;
}
@keyframes celSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.cel-share-wrap.is-open .cel-share-modal { display: block; }

/* ── Drag handle ─────────────────────────────────────────── */
.cel-share-modal::before {
    content: ''; display: block;
    width: 40px; height: 4px; border-radius: 2px;
    background: #ddd; margin: 0 auto 16px;
}

/* ── Modal header ────────────────────────────────────────── */
.cel-share-modal-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; font-weight: 600; font-size: 15px; color: #222;
}
.cel-share-close {
    background: #f0f0f0; border: none; border-radius: 50%;
    width: 28px; height: 28px; font-size: 17px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #666;
}
.cel-share-close:hover { background: #e0e0e0; }

/* ── Product preview card ────────────────────────────────── */
.cel-share-preview {
    display: flex; align-items: center; gap: 12px;
    background: #f7f7f7; border-radius: 12px; padding: 10px 12px;
    margin-bottom: 20px; border: 1px solid #eee;
}
.cel-share-preview img {
    width: 56px; height: 56px; object-fit: cover;
    border-radius: 8px; flex-shrink: 0;
}
.cel-share-preview-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cel-share-preview-info strong {
    font-size: 13px; color: #222; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cel-share-preview-info span { font-size: 13px; color: #BAC34E; font-weight: 600; }

/* ── Share option buttons — NO coloured backgrounds ─────── */
.cel-share-options {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.cel-share-opt {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    background: none; border: none; cursor: pointer;
    font-size: 11px; color: #444; font-weight: 500;
    padding: 8px 4px; text-decoration: none;
    border-radius: 10px; transition: background .15s;
}
.cel-share-opt:hover { background: #f5f5f5; }

.cel-share-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
}
.cel-share-icon svg { width: 30px; height: 30px; }

/* brand-coloured SVGs — no circle background */
.cel-wa   .cel-share-icon svg { fill: #25D366; }
.cel-copy .cel-share-icon svg { stroke: #555; fill: none; }
.cel-ig   .cel-share-icon svg { fill: url(#igGrad); }
.cel-more .cel-share-icon svg { stroke: #888; fill: none; }

/* copied feedback */
.cel-copy.copied .cel-share-icon svg { stroke: #4CAF50; }
.cel-copy.copied                      { color: #4CAF50; }
