/* Modal Overlay */
.sws-promo-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sws-promo-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.sws-promo-modal-embedded {
  margin: 40px auto 20px;
}

.sws-promo-modal-embedded .sws-promo-modal-container {
  width: 100%;
  max-width: 1024px;
  max-height: none;
  overflow: visible;
  animation: none;
  filter: none;
  margin: auto;
}

/* Modal Container */
.sws-promo-modal-container {
  position: relative;
  width: 90%;
  max-width: 1024px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.4s ease-out;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
  border-image: url("images/Vector.svg") 20 fill stretch;
  background: #ffffff;
}

/* Modal Content */
.sws-promo-modal-content {
  position: relative;
  z-index: 2;

  padding: 60px 40px 50px;
  text-align: center;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.sws-promo-modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.2s ease;
}

.sws-promo-modal-close:hover {
  background-color: #cccccc;
  transform: rotate(90deg);
}

.sws-promo-modal-close svg {
  width: 20px;
  height: 20px;
  color: #666;
}

/* Decorative Flowers */
.sws-promo-modal-flower {
  position: absolute;
  z-index: 5;
}

.sws-promo-modal-flower-left {
  top: 30px;
  left: 0px;
  width: 100px;
  height: auto;
}
.sws-promo-modal-flower-top-left {
  top: 10px;
  left: 70px;
  width: 60px;
  height: auto;
}

.sws-promo-modal-flower-right {
  bottom: 20px;
  right: 0px;
  width: 100px;
  height: auto;
}

.sws-promo-modal-flower img {
  display: block;
  width: 100%;
  height: auto;
}

/* Header */
.sws-promo-modal-header {
  margin-bottom: 40px;
}

.sws-promo-modal-content .sws-promo-modal-header .sws-promo-modal-title {
  font-size: 28px !important;
  font-weight: 600 !important;
  color: #482e66 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.sws-promo-modal-title-mobile,
.sws-promo-modal-quote-mobile {
  display: none;
}

/* Products Grid */
.sws-promo-modal-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  padding: 0 20px;
}

.sws-promo-modal-products-mobile {
  display: none;
}

.sws-promo-modal-product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sws-promo-modal-product-image {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sws-promo-modal-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sws-promo-modal-product-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;

  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sws-promo-modal-product-button-1 {
  color: var(--color-sw-2);
  border: 2px solid var(--color-sw-2);
}

.sws-promo-modal-product-button-2 {
  color: var(--color-sw-3);
  border: 2px solid var(--color-sw-3);
}
.sws-promo-modal-product-button-3 {
  color: var(--color-sw-1);
  border: 2px solid var(--color-sw-1);
}

.sws-promo-modal-product-button:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 149, 218, 0.3);
}
.sws-promo-modal-product-button-1:hover {
  background-color: var(--color-sw-2);
}
.sws-promo-modal-product-button-2:hover {
  background-color: var(--color-sw-3);
}
.sws-promo-modal-product-button-3:hover {
  background-color: var(--color-sw-1);
}
/* Footer */
.sws-promo-modal-footer {
  margin-top: 30px;
  padding-top: 20px;
}

.sws-promo-modal-quote {
  font-size: 18px;
  font-weight: 700;
  max-width: 600px;
  margin: auto;
  font-style: italic;
  color: var(--color-sw-1);
  line-height: 1.6;
}

.sws-promo-modal-link {
  display: inline-block;
  color: var(--color-sw-1);
  font-size: 12px;
  transition: color 0.2s ease;
  text-decoration: none;
  font-weight: 700;
  margin-top: 10px;
}

.sws-promo-modal-link:hover {
  color: #0095da;
}

.sws-promo-modal-signature {
  margin: 10px 0 0;
  text-align: center;
}

.sws-promo-modal-signature img {
  width: 80px;

  display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sws-promo-modal-container {
    width: 95%;
    max-width: 900px;
  }

  .sws-promo-modal-products {
    gap: 30px;
    padding: 0 10px;
  }

  .sws-promo-modal-product-image {
    max-width: 220px;
  }

  .sws-promo-modal-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .sws-promo-modal-content .sws-promo-modal-header .sws-promo-modal-title {
    font-size: 16px !important;
    max-width: 270px;
    margin: auto !important;
  }
  .sws-promo-modal-embedded {
    margin: 30px auto 15px;
  }

  .sws-promo-modal-product-item {
    gap: 0;
  }
  .sws-promo-modal-products {
    margin-bottom: 0;
  }
  .sws-promo-modal-header {
    margin-bottom: 0;
  }
  .sws-promo-modal-footer {
    margin-top: 0;
  }
  .sws-promo-modal-content {
    margin: 15px;
    padding: 50px 25px 40px;
  }
  p.sws-promo-modal-quote {
    font-size: 12px !important;
    max-width: 270px;
  }

  .sws-promo-modal-title-desktop,
  .sws-promo-modal-quote-desktop {
    display: none;
  }

  .sws-promo-modal-title-mobile,
  .sws-promo-modal-quote-mobile {
    display: block;
  }

  .sws-promo-modal-products-desktop {
    display: none;
  }

  .sws-promo-modal-products-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sws-promo-modal-products {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sws-promo-modal-product-image {
    max-width: 220px;
  }

  .sws-promo-modal-title {
    font-size: 20px;
  }

  .sws-promo-modal-flower-left,
  .sws-promo-modal-flower-right {
    width: 50px;
  }
  .sws-promo-modal-flower-left {
    left: 0px;
    top: 24px;
  }
  .sws-promo-modal-flower-top-left {
    left: 20px;
    top: 10px;
    width: 35px;
  }
  .sws-promo-modal-flower-right {
    right: 0px;
  }
  .sws-promo-modal-close {
    width: 35px;
    height: 35px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .sws-promo-modal-content {
    margin: 0;
    padding: 40px 20px 40px;
  }

  .sws-promo-modal-title {
    font-size: 18px;
  }

  .sws-promo-modal-product-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .sws-promo-modal-quote {
    font-size: 14px;
  }

  .sws-promo-modal-signature img {
    height: 32px;
  }

  .sws-promo-modal-flower-left,
  .sws-promo-modal-flower-right {
    width: 35px;
  }
}

/* Scrollbar Styling */
.sws-promo-modal-container::-webkit-scrollbar {
  width: 8px;
}

.sws-promo-modal-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.sws-promo-modal-container::-webkit-scrollbar-thumb {
  background: #482e66;
  border-radius: 10px;
}

.sws-promo-modal-container::-webkit-scrollbar-thumb:hover {
  background: #6b4c9a;
}
