.csw-sales {
  
}

.accordion-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 !important;
  margin-bottom: 0;
  padding: 1rem;
  max-width: 100%;
  border-width: 1px 1px 1px 1px;
  border-color: #E0E0E0A6;
  background-color: #F4F4F4;
}

.accordion-header.porto-sicon-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #222529;
    margin-bottom: 1px;
}

.accordion-header.porto-sicon-header p {
    font-family: "Poppins", Poppins;
    font-size: 15px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.015em;
}

.accordion-header.btn {
    font-family: "Poppins", Poppins;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    line-height: 28px;
    letter-spacing: -0.015em;
    color: #222529;
    padding: 0px 0px 0px 0px;
}

.csw-sales .accordion-button {
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  background-color: #e3e3e3;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
}

/* Style for the accordion container */
.csw-sales .accordion {
  /* border: 1px solid #ddd;
  border-radius: 5px; */
  overflow: hidden;
}

/* Style for each accordion item */
.csw-sales .accordion-item {
  border: 1px solid #E0E0E0A6;
  transition: opacity 0.3s ease-in-out !important;
}

.csw-sales .accordion-item:not(:first-of-type) {
    border-top: 1px solid #E0E0E0A6 !important;
}

.csw-sales .accordion-collapse.collapse {
  padding: 0;
}

/* Caret arrow (always visible) */
.caret-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
  align-self: end;
}

/* Rotate caret when active */
.rotate {
  transform: rotate(180deg);
}

/* Fix Bootstrap accordion arrow to work with custom 'active' class */
.accordion-button::after {
    transition: transform 0.2s ease-in-out;
}

/* Rotate arrow when accordion button is active (custom JavaScript) */
.accordion-button.active::after {
    transform: rotate(-180deg);
}

/* Hidden content initially */
.accordion-collapse {
  display: none;
  padding: 5px;
  background: #fff;
}

/* Style for the accordion body */
.csw-sales .accordion-button:focus {
    border-color: #E0E0E0A6 !important;
    box-shadow: none !important;
}

.csw-sales .accordion-body {
  padding: 10px 10px 10px 10px;
  font-size: 13px;
  color:#525759;
  background-color: #F4F4F4;
}

/* Image preview */
.preview-image img {
  max-width: 100%;
  max-height: 50px;
  height: auto;
  width: auto;
}


.swal2-popup {
  font-family: "Plus Jakarta Sans" !important;
}

.swal2-show/* ,
.swal2-hide */ {
  animation: none !important;
  transition: opacity 0.2s ease-in-out !important;
}

.swal2-confirm,
.swal2-cancel {
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 30px !important;
  font-family: "Plus Jakarta Sans" !important;
  font-weight: 500 !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  white-space: nowrap !important;
  border-width: 1px !important;
  border-style: solid !important;
}

.swal2-confirm,
.swal2-cancel:hover {
  color: rgba(255, 255, 255, 1) !important;
  background-color: rgba(0, 0, 0, 1) !important;
  border-color: rgba(0, 0, 0, 1) !important;
}

.swal2-confirm:hover {
  background-color: rgba(150, 2, 13, 1) !important;
  border-color: rgba(150, 2, 13, 1) !important;
}

.swal2-cancel {
  color: rgba(0, 0, 0, 1) !important;
  background-color: transparent !important;
  border-color: rgba(0, 0, 0, 1) !important;
}

.swal2-container {
  z-index: 99999 !important;
}

.woocommerce .product .product-offer {
  position: absolute;
  right: 10px;
  left: auto;
  top: 10px;
  bottom: auto;
  display: flex;
  flex-flow: column wrap;
  align-items: flex-start;
  z-index: 5;
  max-height: 100%;
  overflow-y: auto;
}

.woocommerce div.product .images .product-offer {
  z-index: 2;
  position: absolute;
  left: auto;
  top: 10px;
  bottom: auto;
  right: 20px;
  width: auto;
  text-align: center;
  max-height: 100%;
  overflow-y: auto;
}

.csw-offer-products {
  display: flex;
  gap: 10px;
  flex-direction: column;
  width: 100%;
  padding-bottom: 10px;
}

.csw-offer-products .heading {
  color: #e31e24;
  font-weight: bold;
}

.csw-offer-products .items {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.csw-offer-products .item {
  /* padding: 10px;
  border-width: 1px;
  border-style: solid; */
  width: calc(32%);
}

.csw-offer-products .product-image-meta {
  position: relative;
}

.csw-offer-products .offer-badge {
  /* z-index: 2;
  position: absolute;
  right: 0;
  left: auto;
  top: 0;
  bottom: auto;
  width: auto;
  text-align: center; */
  cursor: pointer; /* Make the cursor a pointer */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth animation */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Initial shadow */
}

.csw-offer-products .offer-badge:hover {
  transform: scale(1.1); /* Slightly expand */
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); /* Add elevation effect */
}

.csw-offer-products .offer-badge.offer-hide {
  display: none;
}

.csw-promo-item {
  text-decoration: none;
}

/* .product-offer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
} */

.offer-badge {
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 0;
  overflow: hidden;
  background-color: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.offer-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.offer-label {
  width: 100%;
  height: 20px;
  background-color: #ff0000;
  color: #fff;
  border-radius: 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 11px;
}

.cswsync_freeprod_tag {
  display: inline-block;
  padding: 0px 10px;
  background-color: #e31e24 /*#3d9cd2*/;
  color: #fff;
  border-radius: 0;
  cursor: pointer;
}

.align-offer-badge {
  display: flex;
  justify-content: center;
}

.cart-discount {
  background-color: rgba(122, 156, 89, .2);
}
