/* Kidsspace Popup CSS v1.8 - compact, single-line first row, view button right */
#kidsspace-popup-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    pointer-events: none;
    max-width: 360px;
}

/* compact card */
.kidspopup-card {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #FAD7E5 0%, #FEEAF0 100%);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    padding: 8px;
    margin-top: 10px;
    width: 340px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease, transform 300ms ease;
    pointer-events: auto;
}

/* show/hide */
.kidspopup-show { opacity: 1; transform: translateY(0); }
.kidspopup-hide { opacity: 0; transform: translateY(10px); }

.kidspopup-imgwrap {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 10px;
    background: #fff;
    display:flex;
    align-items:center;
    justify-content:center;
}
.kidspopup-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
}

.kidspopup-content {
    flex: 1 1 auto;
    min-width: 0;
    display:flex;
    flex-direction: column;
}
.kidspopup-line1 {
    font-size: 12px;
    line-height: 1;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kidspopup-title {
    font-size: 13px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kidspopup-metarow {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.kidspopup-meta {
    font-size: 12px;
    opacity: 0.95;
    white-space: nowrap;
}

/* View button on right - pill style */
.kidspopup-btn {
    flex: 0 0 auto;
    padding:6px 10px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    border: 1px solid rgba(255,90,139,0.12);
    text-decoration:none;
    font-size:12px;
    font-weight:700;
    color:#FF5A8B;
    box-shadow: 0 4px 10px rgba(255,90,139,0.06);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #kidsspace-popup-container { right: 12px; left: 12px; bottom: 12px; }
    .kidspopup-card { width: auto; max-width: 300px; padding:8px; }
    .kidspopup-imgwrap { width: 44px; height: 44px; }
    .kidspopup-line1 { font-size:11px; }
}
