/* ITPulp Free Offer Notification Styles */

.itpulp-free-offer-notification {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #46a646 !important;
    border-top: 0px solid #2d6d2d;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1) !important;
    z-index: 99999 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    color: #fff !important;
    display: block !important;
    visibility: visible !important;
}

.itpulp-free-offer-notification.show {
    transform: translateY(0) !important;
}

.itpulp-free-offer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px !important;
}

.itpulp-free-offer-message {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.itpulp-free-offer-message p {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600;
    color: #fff !important;
}

.itpulp-close-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: underline !important;
    font-size: 14px !important;
    font-weight: normal !important;
    transition: color 0.3s ease !important;
}

.itpulp-close-link:hover {
    color: #fff !important;
}

.itpulp-free-offer-products {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.itpulp-free-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0px 15px !important;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.itpulp-free-product:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.2);
}

.itpulp-free-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.itpulp-free-product-info h4 {
    margin: 0 0 8px !important;
    font-size: 18px !important;
    line-height: 1.3;
    color: #fff !important;
}

.itpulp-free-product-info h4 a {
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-weight: 600 !important;
}

.itpulp-free-product-info h4 a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.itpulp-free-product-action {
    flex: 0 0 auto;
}

/* WoodMart icon style implementation with itpulp prefix */
.itpulp-wd-add-btn-replace {
    position: relative;
    display: inline-block;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    padding: 2px 15px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop span {
    position: relative;
    z-index: 1;
    transition: opacity 0.15s ease;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 20px;
    transition: opacity .15s ease, -webkit-transform .25s ease;
    transition: opacity .15s ease, transform .25s ease;
    transition: opacity .15s ease, transform .25s ease, -webkit-transform .25s ease;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    content: "\f123";
    font-family: "woodmart-font";
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop:hover::before {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop:hover span {
    opacity: 0;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop.itpulp-loading {
    opacity: 0.7 !important;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop.itpulp-loading::before {
    content: "\f110";
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
    animation: itpulp-spin 1s linear infinite;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop.itpulp-loading span {
    opacity: 0;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop.itpulp-added {
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: default !important;
    opacity: 0.7 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop.itpulp-added::before {
    content: "\f118";
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

.itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop.itpulp-added span {
    opacity: 0;
}

.itpulp-view-all-container {
    text-align: center;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
}

.itpulp-view-all-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: underline !important;
    font-size: 14px !important;
    font-weight: normal !important;
    transition: color 0.3s ease !important;
    padding: 5px 0 !important;
    display: inline-block !important;
}

.itpulp-view-all-link:hover {
    color: #fff !important;
}

/* All Products Popup */
.itpulp-all-products-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border-radius: 8px !important;
    z-index: 100000 !important;
    width: 90% !important;
    max-width: 600px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.itpulp-popup-content {
    padding: 20px !important;
}

.itpulp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px !important;
    position: relative;
}

.itpulp-popup-header h3 {
    margin: 0 !important;
    color: #333 !important;
    font-size: 20px !important;
}

.itpulp-popup-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #666 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.itpulp-popup-close:hover {
    color: #333 !important;
}

.itpulp-all-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

.itpulp-popup-product {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
}

.itpulp-popup-product:hover {
    border-color: rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.itpulp-popup-product-image {
    flex: 0 0 80px;
    margin-right: 15px !important;
}

.itpulp-popup-product-image img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 4px;
}

.itpulp-popup-product-info {
    flex: 1;
}

.itpulp-popup-product-info h4 {
    margin: 0 0 8px !important;
    font-size: 16px !important;
    color: #333 !important;
}

.itpulp-popup-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px !important;
}

.itpulp-original-price {
    text-decoration: line-through;
    color: #999 !important;
    font-size: 14px !important;
}

.itpulp-free-price {
    color: #46a646 !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

.itpulp-popup-product-action {
    flex: 0 0 auto;
}

/* Popup specific button styles */
.itpulp-popup-product-action .itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop {
    background: #46a646 !important;
    color: #fff !important;
    border-color: #46a646 !important;
}

.itpulp-popup-product-action .itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop:hover {
    background: #2d6d2d !important;
    border-color: #2d6d2d !important;
}

.itpulp-popup-product-action .itpulp-wd-add-btn-replace .itpulp-add-to-cart-loop::before {
    background: rgba(0, 0, 0, 0.1);
}

/* Success message */
.itpulp-free-offer-success {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: #46a646 !important;
    color: white !important;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100000 !important;
    transform: translateX(120%) !important;
    transition: transform 0.3s ease !important;
}

.itpulp-free-offer-success.show {
    transform: translateX(0) !important;
}

/* Postage info notice */
.itpulp-postage-info {
    margin-bottom: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 4px;
}

/* Spin animation for loading state */
@keyframes itpulp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .itpulp-free-offer-content {
        padding: 6px 15px !important;
    }
    
    .itpulp-free-offer-message p {
        font-size: 14px !important;
    }
    
    .itpulp-free-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .itpulp-popup-content {
        padding: 15px !important;
    }
    
    .itpulp-popup-header {
        flex-direction: column;
        text-align: center;
    }
    
    .itpulp-popup-header h3 {
        font-size: 18px !important;
    }
    
    .itpulp-popup-close {
        font-size: 20px !important;
    }
    
    .itpulp-all-products-list {
        grid-template-columns: 1fr !important;
    }
	#botpenguin-launcher-text-12 {
		display: none !important;
	}
	#botpenguin-launcher-12 {
		bottom: 5px !important;
		right: 5px !important;
	}
}

@media screen and (max-width: 480px) {
    .itpulp-popup-product {
        flex-direction: column;
        text-align: center;
    }
    
    .itpulp-popup-product-image {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .itpulp-popup-product-info {
        align-items: center;
    }
    
    .itpulp-popup-header {
        flex-direction: column;
        align-items: center;
    }
}