/**
 * 通知樣式
 * 
 * 用於顯示操作反饋通知，如添加到購物車成功、失敗等
 */

/* 通知容器 */
.wine-shop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    padding: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    z-index: 9999;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

/* 通知顯示狀態 */
.wine-shop-notification--visible {
    transform: translateX(0);
    opacity: 1;
}

/* 通知內容 */
.wine-shop-notification__content {
    position: relative;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 通知消息 */
.wine-shop-notification__message {
    flex-grow: 1;
    margin-right: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* 關閉按鈕 */
.wine-shop-notification__close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    transition: color 0.2s ease;
}

.wine-shop-notification__close:hover {
    color: #333;
}

/* 成功通知類型 */
.wine-shop-notification--success {
    border-left: 4px solid #52c41a;
}

.wine-shop-notification--success .wine-shop-notification__content::before {
    content: "";
    display: block;
    width: 4px;
    background-color: #52c41a;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 4px 0 0 4px;
}

/* 錯誤通知類型 */
.wine-shop-notification--error {
    border-left: 4px solid #f5222d;
}

.wine-shop-notification--error .wine-shop-notification__content::before {
    content: "";
    display: block;
    width: 4px;
    background-color: #f5222d;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 4px 0 0 4px;
}

/* 信息通知類型 */
.wine-shop-notification--info {
    border-left: 4px solid #1890ff;
}

.wine-shop-notification--info .wine-shop-notification__content::before {
    content: "";
    display: block;
    width: 4px;
    background-color: #1890ff;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 4px 0 0 4px;
}

/* 警告通知類型 */
.wine-shop-notification--warning {
    border-left: 4px solid #faad14;
}

.wine-shop-notification--warning .wine-shop-notification__content::before {
    content: "";
    display: block;
    width: 4px;
    background-color: #faad14;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 4px 0 0 4px;
}

/* 響應式設計 */
@media (max-width: 576px) {
    .wine-shop-notification {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
    }
}
