/* ── Add-to-Cart Notification ─────────────────────────────────────────────── */

#cn-notice {
    position: fixed;
    z-index: 99999;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    overflow: hidden;
    transform: translateY(16px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;

    /* Desktop: bottom-right */
    bottom: 24px;
    right: 24px;
}

#cn-notice.cn-notice--visible {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile: top-center */
@media (max-width: 600px) {
    #cn-notice {
        width: calc(100% - 32px);
        bottom: auto;
        top: 16px;
        right: auto;
        left: 16px;
        transform: translateY(-16px);
    }
    #cn-notice.cn-notice--visible {
        transform: translateY(0);
    }
}

/* Header */
.cn-notice__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.cn-notice__title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    font-family: inherit;
}

.cn-notice__check {
    font-size: 17px;
    color: #16a34a;
}

.cn-notice__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 2px;
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 16px;
    transition: color .15s;
}

.cn-notice__close:hover {
    color: #374151;
}

/* Product row */
.cn-notice__product {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
}

.cn-notice__img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    object-fit: contain;
    background: #f9fafb;
    flex-shrink: 0;
}

.cn-notice__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 22px;
}

.cn-notice__meta {
    min-width: 0;
    flex: 1;
}

.cn-notice__name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-family: inherit;
}

.cn-notice__price {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    font-family: inherit;
}

/* Action buttons */
.cn-notice__actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px 12px;
}

.cn-notice__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background .15s, border-color .15s;
    font-family: inherit;
    line-height: 1;
}

.cn-notice__btn .ti {
    font-size: 14px;
}

.cn-notice__btn--primary {
    background: #111827;
    color: #ffffff !important;
    border: 1px solid #111827;
}

.cn-notice__btn--primary:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff !important;
}

.cn-notice__btn--secondary {
    background: #ffffff;
    color: #374151 !important;
    border: 1px solid #d1d5db;
}

.cn-notice__btn--secondary:hover {
    background: #f9fafb;
    color: #111827 !important;
}

/* Progress bar */
.cn-notice__progress {
    height: 3px;
    background: #111827;
    width: 100%;
    transform-origin: left;
}