/* AIOD Gift Banner Styles */

.aiod-gift-banner {
  display: block;
  position: relative;
  z-index: 9;
  text-align: start !important;
}

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

.aiod-banner-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.aiod-banner-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.aiod-chevron-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
}

.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;
  text-align: start;
  flex: 1;
}

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

.aiod-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out;
  overflow: hidden;
}

.aiod-products-list.aiod-hidden {
  margin-top: 0;
}

.aiod-claim-btn {
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  transition: opacity 0.2s;
  width: fit-content !important;
  position: relative;
}

.aiod-claim-btn:hover:not(:disabled) {
  opacity: 0.8;
}

.aiod-claim-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.aiod-claim-spinner {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  border: 2px solid #7A7A7A;
  border-left-color: transparent;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: spin89345 1s linear infinite;
}

.aiod-claim-btn.loading .aiod-button-text {
  visibility: hidden;
}

.aiod-claim-btn.loading .aiod-claim-spinner {
  display: block;
}

@keyframes spin89345 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.aiod-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.aiod-product-image {
  width: 50px !important;
  height: 50px !important;
  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;
  text-align: start;
}

.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 !important;
    height: 40px !important;
  }
}

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

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