/* AIOD Gift Banner Styles */

.aiod-gift-banner {
  display: block;
  position: relative;
  z-index: 10;
}

.aiod-banner-wrapper {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.aiod-banner-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.aiod-banner-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aiod-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aiod-banner-icon.animated {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.aiod-banner-title {
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  flex: 1;
}

.aiod-banner-subheading {
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.aiod-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.aiod-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.aiod-product-item:last-child {
  border-bottom: none;
}

.aiod-product-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.aiod-product-details {
  flex: 1;
  min-width: 0;
}

.aiod-product-title {
  line-height: 1.3;
  margin: 0;
  word-wrap: break-word;
}

.aiod-no-products {
  text-align: center;
  padding: 20px;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .aiod-products-list {
    gap: 8px;
  }
  
  .aiod-product-item {
    gap: 8px;
    padding: 6px 0;
  }
  
  .aiod-product-image {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .aiod-gift-banner {
    padding: 12px !important;
  }
  
  .aiod-banner-header {
    gap: 6px;
    margin-bottom: 8px;
  }
  
  .aiod-products-list {
    margin-top: 8px;
  }
}

/* Integration with common theme selectors */
.shopify-section .aiod-gift-banner,
.product-form .aiod-gift-banner,
.cart .aiod-gift-banner {
  margin: 0 0 16px 0;
}

/* Ensure banner doesn't break theme layouts */
.aiod-gift-banner * {
  box-sizing: border-box;
}

.aiod-gift-banner img {
  max-width: 100%;
  height: auto;
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
  .aiod-product-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .aiod-product-item {
    border-bottom-width: 2px;
  }
  
  .aiod-gift-banner {
    border-width: 2px !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .aiod-banner-icon.animated {
    animation: none;
  }
}