/* Custom styles that can't be replaced with Bootstrap utilities */

/* Card and element transitions */
.hover-shadow { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.price-row { transition: background-color 0.2s ease; }

/* Special highlight effects */
.selected-row {
  background-color: rgba(13, 110, 253, 0.2) !important;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.5);
}

/* Animation for the total price */
@keyframes highlight-price {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#total-price {
  display: inline-block;
  animation: highlight-price 2s infinite;
}

/* Section number badge animation */
@keyframes badge-pop {
  0% { transform: scale(0.8); opacity: 0.7; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.badge.rounded-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.animated-badge {
  animation: badge-pop 0.5s ease forwards;
}

/* Fabric swatch styling */
.swatch-container {
  min-width: 150px;
  text-align: center;
}

.swatch-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Improve fabric options display */
.fabric-options {
  max-height: 180px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 4px;
  background-color: #f8f9fa;
}

/* Buy Now button styling for consistent green brand color */
.btn-buy-now {
  background-color: #2c974b;
  border-color: #278a43;
  color: #ffffff;
}

.btn-buy-now:hover,
.btn-buy-now:focus {
  background-color: #278a43;
  border-color: #1f7035;
  color: #ffffff;
}

.btn-buy-now:active,
.btn-buy-now.active {
  background-color: #1f7035;
  border-color: #1a5d2c;
  color: #ffffff;
}

@media (min-width: 992px) {
  .email-quote-trigger-wrapper {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin-bottom: 0;
  }

  .email-quote-trigger-wrapper .email-quote-trigger {
    flex: 1 1 auto;
    height: 100%;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .email-quote-container .btn {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
  
  .badge.rounded-circle {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  
  .section-header {
    font-size: 1.25rem;
  }
}
