/**
 * Sale Notification Styles
 *
 * @package StoreBoosterPro
 * @since 1.0.0
 */

/* Container */
.ttsb-sale-notification-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    min-width: 300px;
    display: inline-block;
}

/* Position variants */
.ttsb-sale-notification-container.ttsb-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.ttsb-sale-notification-container.ttsb-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.ttsb-sale-notification-container.ttsb-position-top-right {
    top: 20px;
    right: 20px;
}

.ttsb-sale-notification-container.ttsb-position-top-left {
    top: 20px;
    left: 20px;
}

/* Notification card */
.ttsb-sale-notification {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    padding: 15px;
    padding-right: 30px;
    pointer-events: auto;
    position: relative;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ttsb-sale-notification:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Close button */
.ttsb-sale-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 5px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.ttsb-sale-notification-close:hover {
    opacity: 1;
}

.ttsb-sale-notification-close svg {
    width: 8px;
    height: 8px;
    display: block;
}

/* Content */
.ttsb-sale-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Product image */
.ttsb-sale-notification-image {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f2;
    border: 1px solid #f2f2f2;
}

.ttsb-sale-notification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Details */
.ttsb-sale-notification-details {
    flex: 1;
    min-width: 0;
}

/* Text */
.ttsb-sale-notification-text {
    font-size: 13px;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ttsb-sale-notification-customer {
    font-weight: 600;
}

/* Product name */
.ttsb-sale-notification-product {
    margin-bottom: 8px;
    line-height: 1;
}

.ttsb-sale-notification-product-link {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 400ms;
}

.ttsb-sale-notification-product-link:hover {
    opacity: 0.7;
}

/* Location */
.ttsb-sale-notification-location strong{
    font-weight: 400;
    font-style: italic;
}

/* Time */
.ttsb-sale-notification-time {
    font-size: 11px;
    color: #999999;
}

/* Checkout button */
.ttsb-sale-notification-checkout-btn {
    display: inline-block;
    padding: 3px 12px;
    background: #333333;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
    transition: all 0.3s ease;
    margin-top: 2px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.ttsb-sale-notification-checkout-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* styles */
.ttsb-sale-notification-container.notification_style_2 .ttsb-sale-notification-image{
    border-radius: 50%;
}
.ttsb-sale-notification-container.notification_style_2 .ttsb-sale-notification{
    border-radius: 65px;
}
.ttsb-sale-notification-container.notification_style_2 .ttsb-sale-notification .ttsb-sale-notification-close,
.ttsb-sale-notification-container.notification_style_4 .ttsb-sale-notification .ttsb-sale-notification-close {
    top: 0px;
    right: -10px;
}
.ttsb-sale-notification-container.notification_style_3 .ttsb-sale-notification{
    padding: 0;
    border-radius: 0;
}
.ttsb-sale-notification-container.notification_style_3 .ttsb-sale-notification-details,
.ttsb-sale-notification-container.notification_style_4 .ttsb-sale-notification-details{
    padding: 10px 0;
}
.ttsb-sale-notification-container.notification_style_3 .ttsb-sale-notification-image,
.ttsb-sale-notification-container.notification_style_4 .ttsb-sale-notification-image{
    width: 85px;
    height: 85px;
    border-radius: 0;
    border: 0;
    border-right: 1px solid #f2f2f2;
}
.ttsb-sale-notification-container.notification_style_3 .ttsb-sale-notification-close {
    top: 10px;
    right: 10px;
}
.ttsb-sale-notification-container.notification_style_4 .ttsb-sale-notification{
    padding: 0;
    border-radius: 85px;
}
.ttsb-sale-notification-container.notification_style_4 .ttsb-sale-notification-image{
    border-radius: 50%;
    border: 1px solid #f2f2f2;
}

/* Responsive */
@media (max-width: 768px) {
    .ttsb-sale-notification-container {
        max-width: 300px;
        bottom: 15px !important;
        right: 15px !important;
        left: 15px !important;
        top: auto !important;
    }

    .ttsb-sale-notification {
        padding: 12px;
    }

    .ttsb-sale-notification-image {
        width: 50px;
        height: 50px;
    }

    .ttsb-sale-notification-text {
        font-size: 12px;
    }

    .ttsb-sale-notification-product-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ttsb-sale-notification-container {
        max-width: calc(100% - 30px);
    }
}

