﻿/*Product Discount Styles*/

.ab-discounted-pricing-container,
.ab-product-discount-custom-placement-selector {
  margin: 0;
  padding: 0;
  font-family: inherit;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.ab-discounted-pricing-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.ab-product-discount-name {
  margin-bottom: 0.3em;
  margin-top: 0.2em;
  font-size: 1.25em;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.6px;
  float: none;
  width: auto;
  word-break: break-word;
}

.ab-product-discount-description {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.6px;
  line-height: 28.8px;
}

.ab-discounted-pricing-bundle {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0.75em;
}

.ab-discounted-pricing {
  border: 2px solid rgba(189, 189, 189, 0.55);
  margin-bottom: .35em;
  text-align: center;
  border-radius: 5px;
  position: relative;
  background: #FFFFFF;
  padding: 0.5em 0.75em 1.1em 0.75em;
}

.ab-product-discount-main-text {
  letter-spacing: 0.6px;
  line-height: 28.8px;
  font-weight: 400;
  font-size: 16px;
}

.ab-product-discount-saving-text {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 50%);
  bottom: 0;
  border-radius: 5px;
  font-size: 0.75em;
  padding: 4px 45px;
  white-space: nowrap;
  font-weight: bold;
  line-height: 1.6;
}

@keyframes product-discount-spin {
  to {
    transform: rotate(360deg);
  }
}

.product-discount-spinner {
  color: inherit;
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
  border: 0.25rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: 0.75s linear infinite product-discount-spin;
}


/*Buy X Get Y Styles*/

.ab-bogo-discount-select {
  width: 100%;
  height: 100%;
  padding: 12px;
  border: 1px solid rgb(203, 203, 203);
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}

.ab-bogo-discount-select:focus {
  outline: none;
  box-shadow: none;
}

.ab-bogo-discount-container {
  margin-top: unset !important;
}

@keyframes ab-bogo-spin {
  to {
    transform: rotate(360deg);
  }
}

.ab-bogo-outer-container {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  margin-top: 22px;
  margin-bottom: 22px;
  min-height: 600px;
}

.ab-bogo-inner-wrapper {
  max-width: 440px;
  width: 100%;
}

.ab-main-bundle-loader-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-bogo-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.6px;
  line-height: 32.4px;
  margin: 0;
}

.ab-bogo-discount-select-wrapper {
  max-width: 440px;
  width: 100%;
}

.ab-bogo-discount-select-container {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 22px;
}

.ab-main-bundle-loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  color: #d1d5db;
  animation: ab-bogo-spin 1s linear infinite;
}


/*Next Volume Discount Styles*/

.next-volume-discount-cart-value {
  font-size: 12px;
  color: blue;
  font-weight: bold;
}

.ab-volume-discount-container,
.ab-volume-discount-custom-placement-selector {
  margin: 0;
  padding: 0;
  font-family: inherit;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}


/*Classic Bundle Styles*/

.ab-classic-bundle-container,
.ab-classic-bundle-custom-placement-selector {
  margin: 0;
  padding: 0;
  font-family: inherit;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ab-classic-bundle-products {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--ab-bundle-bg, rgba(0, 0, 0, 0.02));
  border: 1px solid var(--ab-bundle-border, rgba(0, 0, 0, 0.08));
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ab-classic-bundle-products:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: var(--ab-bundle-border-hover, rgba(0, 0, 0, 0.12));
}

.ab-classic-bundle-products.ab-on-child-product {
  border-width: 2px;
  border-color: var(--ab-bundle-border-highlight, rgba(0, 0, 0, 0.15));
  opacity: var(--ab-child-product-opacity, 1);
}

.ab-classic-bundle-info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ab-info-banner-bg, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--ab-info-banner-border, rgba(0, 0, 0, 0.12));
  border-radius: 6px;
  margin-bottom: 4px;
  color: inherit;
  font-family: inherit;
}

.ab-classic-bundle-info-icon {
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.7;
}

.ab-classic-bundle-info-text {
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: inherit;
}

.ab-classic-bundle-description {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 0;
  margin: 0 0 8px 0;
  text-align: left;
  color: inherit;
  font-family: inherit;
}

.ab-classic-bundle-product {
  position: relative;
  padding: 8px;
  display: flex;
  gap: 12px;
  background: var(--ab-product-bg, transparent);
  border-radius: 6px;
  transition: background-color 0.2s ease;
  width: 100%;
}

.ab-classic-bundle-product-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.ab-classic-bundle-product-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0;
  color: var(--ab-separator-color, rgba(0, 0, 0, 0.4));
  font-size: 20px;
  font-weight: 600;
}

.ab-classic-bundle-product:hover {
  background: var(--ab-product-bg-hover, rgba(0, 0, 0, 0.02));
}

.ab-classic-bundle-product.ab-has-variants {
  align-items: flex-start;
}

.ab-classic-bundle-product:not(.ab-has-variants) {
  align-items: center;
}

.ab-classic-bundle-product-image {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--ab-image-border, rgba(0, 0, 0, 0.1));
  flex-shrink: 0;
}

.ab-classic-bundle-product-name {
  letter-spacing: 0.01em;
  line-height: 1.5;
  font-weight: 500;
  font-size: 0.95em;
  font-family: inherit;
  text-decoration: none;
  text-align: left;
  color: inherit;
  transition: opacity 0.2s ease;
}

.ab-classic-bundle-product-name:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.ab-classic-bundle-product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.ab-classic-bundle-product-quantity {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  font-size: 0.95em;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--ab-quantity-color, rgba(0, 0, 0, 0.7));
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  min-width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  outline: none !important;
}

.ab-classic-bundle-product-quantity::before {
  content: "×";
  font-weight: 600;
  opacity: 0.8;
}

.ab-classic-bundle-product-variant {
  list-style-type: none;
  color: inherit;
  font-size: 0.9em;
  text-align: left;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ab-classic-bundle-product-variant-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-classic-bundle-product-variant-image {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--ab-image-border, rgba(0, 0, 0, 0.1));
}

.ab-classic-bundle-product-variant-name {
  margin: 0;
  font-size: 0.9em;
  color: inherit;
  opacity: 0.8;
  font-family: inherit;
}

.ab-classic-bundle-product-variant-inline {
  display: inline;
  font-size: 0.9em;
  color: inherit;
  opacity: 0.75;
  font-weight: 400;
  margin-left: 4px;
}

.ab-classic-bundle-product-name-quantity {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}

.ab-classic-bundle-variant-loader {
  text-align: center;
  margin: 0;
}

@keyframes classic-bundle-spin {
  to {
    transform: rotate(360deg);
  }
}

.classic-bundle-spinner {
  color: inherit;
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  vertical-align: middle;
  border: 0.25rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: 0.75s linear infinite classic-bundle-spin;
}

.ab-classic-bundle-product-link {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
  color: inherit;
  opacity: 0.8;
}

.ab-classic-bundle-product-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.ab-classic-bundle-product-link.ab-bundle-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  margin-top: 16px;
  background: var(--ab-cta-bg, transparent);
  color: var(--ab-cta-text, inherit);
  border: 2px solid currentColor;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 1;
  font-family: inherit;
}

.ab-classic-bundle-product-link.ab-bundle-cta-button:hover {
  background: var(--ab-cta-bg, rgba(0, 0, 0, 0.05));
  transform: translateY(-1px);
  text-decoration: none;
}

.ab-bundle-link-icon {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.ab-classic-bundle-product-link.ab-bundle-cta-button:hover .ab-bundle-link-icon {
  transform: translateX(3px);
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .ab-classic-bundle-products {
    padding: 12px;
  }

  .ab-classic-bundle-product {
    padding: 6px;
  }

  .ab-classic-bundle-product-image {
    width: 56px;
    height: 56px;
  }

  .ab-classic-bundle-description {
    font-size: 0.95em;
  }

  .ab-classic-bundle-product-name {
    font-size: 0.9em;
  }

  .ab-classic-bundle-product-variant-name {
    font-size: 0.85em;
  }

  .ab-classic-bundle-product-variant-inline {
    font-size: 0.85em;
  }

  .ab-classic-bundle-product-separator {
    padding: 6px 0;
    font-size: 18px;
  }

  .ab-classic-bundle-info-banner {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .ab-classic-bundle-info-icon {
    font-size: 16px;
  }

  .ab-classic-bundle-product-link.ab-bundle-cta-button {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ab-classic-bundle-products {
    padding: 10px;
  }

  .ab-classic-bundle-product-image {
    width: 48px;
    height: 48px;
  }

  .ab-classic-bundle-product-variant-image {
    width: 28px;
    height: 28px;
  }

  .ab-classic-bundle-product-variant-inline {
    font-size: 0.8em;
  }

  .ab-classic-bundle-product-separator {
    padding: 5px 0;
    font-size: 16px;
  }

  .ab-classic-bundle-info-banner {
    padding: 8px 10px;
    gap: 6px;
  }

  .ab-classic-bundle-info-text {
    font-size: 0.85em;
  }

  .ab-classic-bundle-product-link.ab-bundle-cta-button {
    padding: 10px 16px;
    font-size: 12px;
    gap: 6px;
  }
}


/*Discount Announcement Bar*/

@keyframes ab-discount-announcement-bar-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ab-discount-header-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  overflow: hidden;
}

.ab-banner-text {
  flex: 1;
  font-weight: 500;
  opacity: 1;
  font-size: 14px;
  text-align: center;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease-in-out;
}

.ab-banner-slider-button {
  color: #FAFAF9 !important;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: none;
}

.ab-fade-out {
  opacity: 0;
}
