/* Frontend Styles for WooCommerce CSV Discount Rules */

/* Discount Indicator */
.wc-csv-discount-indicator {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.discount-indicator-header h3 {
    margin: 0 0 10px 0;
    color: #28a745;
    font-size: 1.1em;
    font-weight: 600;
}

.discount-indicator-content {
    margin-top: 10px;
    background: aliceblue;
}

.discount-item {
    /*display: flex;*/
    text-align: center;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.discount-item:last-child {
    border-bottom: none;
}

.discount-title {
    font-weight: 500;
    color: #495057;
}

.discount-amount {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1em;
}

/* Product Discount Badges */
.wc-csv-product-discounts {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.discount-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.discount-badge .discount-icon {
    margin-right: 5px;
    font-size: 1.1em;
}

.discount-badge .discount-text {
    white-space: nowrap;
}

.discount-info p {
    margin: 0;
    color: #856404;
    font-size: 0.9em;
    font-style: italic;
}

/* Loop Discount Badges */
.wc-csv-loop-discounts {
    margin-top: 8px;
}

.discount-badge-small {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    margin-right: 5px;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

/* Cart Item Discounts */
.cart-item-discounts {
    margin-top: 5px;
}

.cart-item-discounts .discount-badge {
    background: #17a2b8;
    font-size: 0.8em;
    padding: 3px 8px;
    margin-right: 5px;
    box-shadow: 0 1px 3px rgba(23, 162, 184, 0.3);
}

/* Cart Discount Summary */
.wc-csv-cart-discount-summary {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.wc-csv-cart-discount-summary h4 {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 1.1em;
}

.discount-list {
    margin: 0 0 10px 0;
    padding-left: 20px;
}

.discount-list li {
    margin-bottom: 5px;
    color: #155724;
}

.total-savings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #c3e6cb;
    font-weight: 600;
    color: #155724;
}

/* Potential Savings */
.potential-savings {
    display: block;
    color: #28a745;
    font-size: 0.9em;
    font-weight: 500;
    margin-top: 5px;
}

/* Animation for discount badges */
@keyframes discountPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.discount-badge:hover,
.discount-badge-small:hover {
    animation: discountPulse 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .discount-badges {
        flex-direction: column;
        gap: 8px;
    }
    
    .discount-badge {
        justify-content: center;
    }
    
    .discount-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .total-savings {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .wc-csv-discount-indicator,
    .wc-csv-product-discounts,
    .wc-csv-cart-discount-summary {
        padding: 10px;
    }
    
    .discount-badge {
        font-size: 0.8em;
        padding: 4px 8px;
    }
    
    .discount-badge-small {
        font-size: 0.7em;
        padding: 2px 6px;
    }
}

/* WooCommerce Integration */
.woocommerce-cart .wc-csv-discount-indicator {
    margin: 20px 0;
}

.woocommerce-checkout .wc-csv-discount-indicator {
    margin: 20px 0;
}

/* Product page specific styles */
.single-product .wc-csv-product-discounts {
    margin: 20px 0;
}

/* Archive page specific styles */
.woocommerce-loop .wc-csv-loop-discounts {
    margin-top: 10px;
}

/* Cart page specific styles */
.woocommerce-cart .cart-item-discounts {
    margin-top: 8px;
}

/* Checkout page specific styles */
.woocommerce-checkout .wc-csv-cart-discount-summary {
    margin: 15px 0;
} 

/* Modal CSS */
div#productAddedModal {
    background: #eaeaea !important;
    display: block;
    opacity: 1;
    visibility: visible;
    top: 10% !important;
    left: 50%;
    margin: 0 auto;
    max-height: 90%;
    max-width: 95%;
    min-height: 240px;
    outline: 0;
    overflow: hidden;
    padding: 0 !important;
    right: 0;
    width: 90%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

button.close-modal {
    height: 2.28571rem;
    width: 2.28571rem;
    color: #cac9c9;
    font-size: 20px;
    line-height: 2.28571rem;
    padding: 0;
    position: absolute;
    text-align: center;
    text-decoration: none;
    background: none;
    border: none;
    z-index: 50;
    margin-top: 0;
    cursor: pointer;
    top: 1.05rem;
    right: .75rem;
}
.modal-header {
    padding-left: 2.25rem;
    padding-right: 3.03571rem;
    border-bottom: 1px solid #cac9c9;
    padding: 1rem 0;
    position: relative;
    text-align: center;
}
.modal-header-title {
    font-size: 18px;
}
.modal-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2.25rem 2.25rem;
    max-height: 514.6px;
}
.previewCart {
    margin: 0 auto;
    max-width: 85.71429rem;
    width: 100%;
}
.previewCart:after, .previewCart:before {
    content: " ";
    display: table;
}
.previewCartCheckout {
    width: 25%;
    float: right;
    background: #cac9c9;
    padding: 1rem;
    text-align: center;
}
.previewCartCheckout a{
    font-family: "Roboto Condensed" !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    background: #d42020 !important;
    border-color: #860109 !important;
    color: #fff !important;
    margin-bottom: 5% !important;
}
.previewCartCheckout-subtotal {
    display: block;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}
.previewCartCheckout-price {
    display: block;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}
.previewCart .productView {
    padding-left: .75rem;
    padding-right: .75rem;
    width: 75%;
    float: left;
    display: block;
    margin: 0;
    padding-bottom: 0;
    padding-top: 0;
}
.previewCart .productView-image {
    padding-left: .75rem;
    padding-right: .75rem;
    width: 58.33333%;
    float: left;
}
figure.productView-image {
    border-bottom: 3px solid;
    border-color: #8b8b8b;
    border: 0;
    display: -ms-flexbox !important;
    display: flex !important;
}
.productView-image img {
    width: auto !important;
}
.previewCart .productView-details {
    padding-left: .75rem;
    padding-right: .75rem;
    width: 41.66667%;
    float: left;
    padding: 0 5px;
    clear: right;
}
.previewCart .productView-title {
    margin-top: 0;
        font-family: "Roboto Condensed";
    font-weight: 700;
    color: #545454;
    font-size: 20px;
    border-bottom: 1px solid;
    border-color: #8b8b8b;
    padding-bottom: 10px;
}
.productView-price {
    font-size: 20px;
    font-family: "Roboto Condensed";
    font-weight: 700;
    color: #545454;
    margin-bottom: 0;
}

/* Loader CSS */
/* Loader overlay */
#full-screen-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner */
#full-screen-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/*CSS for styling cart*/
#productAddedModal > div > div.modal-body > div > section.productView > div > h4{
	margin-bottom: 0px;
}
#productAddedModal > div > div.modal-header{
	padding-top: 14px;
	padding-bottom: 14px;
	padding-left: 30px;
	padding-right: 30px;
}

#productAddedModal > div > div.modal-header > h2{
	margin-bottom:0px;
	margin-top: 0px;
}

#productAddedModal > div > div.modal-body > div > section.previewCartCheckout > a{
	text-transform: uppercase;
	width: 100% !important;
	background: #40b655 !important;
}
#productAddedModal > div > div.modal-body > div > section.previewCartCheckout > a:hover{
	background: #40b655 !important;
	border-color: #40b655 !important;
}

.woocommerce table.shop_table td.product-subtotal > ins{
	text-decoration: none !important;
}
/*  td.product-subtotal > del > span > bdi,  td.product-subtotal > del > span > bdi > span{
	font-size:18px !important;
}  */

 td.product-subtotal > del {
  text-decoration: none; /* remove default line */
  position: relative;
}

 td.product-subtotal > del > span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  height: 1px;
  background-color: #000; /* or match your text color */
  transform: translateY(-50%);
}



button.close-modal{
	top: 5px;
	background: none;
	font-size:40px !important;
	
}

button.close-modal:hover {
    color: #00309d !important;
}


