/*------------------ 
Frontend related CSS
------------------*/
.condition-buttons{
  text-align: center;
}

#condition-title {
  font-weight: bold;
  font-size: x-large;
  color: #0047ba;
}
.info-msg {
  color: gray;
}
.shops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .shops-grid {
    grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 1199px) and (min-width: 901px) {
  .shops-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .shops-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 600px) {
  .shops-grid {
    grid-template-columns: 1fr;
}
}

.shop-card-container {
  perspective: 1000px;
  height: 100%;
  transition: all 0.5s ease-in-out;
  opacity: 1;
  transform: scale(1);
  min-width: 0;
}

.shop-card-container.hidden {
  display: none;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.shop-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 350px;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.shop-card.is-flipped {
  transform: rotateY(180deg);
}

/* Common styles for both faces */
.shop-card__face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Front face */
.shop-card__face--front {
  display: flex;
  flex-direction: column;
}

/* Back face */
.shop-card__face--back {
  background: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.shop-card__face--back > .shop-content {
  padding: 10px 10px 10px 15px;
}
.shop-card__condition-tagline {
  font-size: 12px;
  flex-grow: 1;
  font-weight: 500;
}

.shop-card:hover {
  transform: translateY(-4px);
}

.shop-banner {
  width: 100%;
  height: 100px;
  position: relative;
  overflow: hidden;
}

.shop-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  padding: 4px;
  position: relative;
  margin: -40px auto 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.shop-content {
  padding: 24px 15px 24px 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.shop-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px;
}

.shop-tagline {
  font-size: 11px;
  line-height: 1.5;
  flex-grow: 1;
  font-weight: 600;
}

.visit-website-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #FF647D;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-align: center;
}

.visit-website-btn:hover {
  box-shadow: 0 6px 6px 0px rgb(0 0 0 / 21%);
}

/* Condition Switch Animation */
.shop-tagline {
  transition: opacity 0.3s ease;
}

.shop-tagline.switching {
  opacity: 0;
}

.condition-btn {
  display: inline-block;
  padding: 3px 10px;
  color: #FF647D !important;
  border-radius: 25px;
  border: 1px solid;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-align: center;
}

.condition-btn.active {
  box-shadow: 0 6px 6px 0px rgb(0 0 0 / 21%);
  color: white;
  border: 2px solid;
  font-weight: 700;
}

.condition-btn:hover {
  box-shadow: 0 6px 6px 0px rgb(0 0 0 / 21%);
}

/* Add no results message styling */
.no-shops-message {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: #666;
}

.no-shops-message.visible {
  display: block;
}

/* Payment confirmation modal styling */
.elementor-popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.elementor-popup-modal .dialog-widget-content {
  background-color: white;
  max-width: 500px;
  width: 90%;
  margin: 20px auto;
  border-radius: 8px;
  position: relative;
}

.dialog-lightbox-close-button {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

.dialog-lightbox-message {
  padding: 20px;
  text-align: center;
}

.dialog-lightbox-message h2 {
  margin-bottom: 15px;
}

.dialog-lightbox-message p {
  margin-bottom: 20px;
}

.elementor-button-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.elementor-button {
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.proceed-payment {
  background-color: #4CAF50;
  color: white;
}

.cancel-payment {
  background-color: #f44336;
  color: white;
}

/* Calendly Integration Styles */
#calendly-inline-widget {
  position: relative;
  min-width: 320px;
  height: 700px;
}

#calendly-inline-widget iframe {
  display: inline;
  width: 100%;
  height: 100%;
}


@media (max-width: 767px) {
  #calendly-inline-widget {
    flex: 1;
    width: 100%;
    border: none;
  }
}

@media (max-width: 767px) {
  #calendly-inline-widget iframe {
    height: 60vh;
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  #calendly-inline-widget iframe {
    min-height: 350px;
  }
}