/* ========================================
   A2Z PROJECT INFO BOX
   ======================================== */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Info Box Wrapper */
.a2z-project-infobox {
  width: 100%;
  box-sizing: border-box;
}

/* Info Box Container */
.a2z-infobox-container {
  background: #F5F5F5;
  border-radius: 4px;
  padding: 32px;
  width: 100%;
  box-sizing: border-box;
}

/* Desktop: Fixed Width */
@media (min-width: 768px) {
  .a2z-project-infobox[data-width-type="fixed"] .a2z-infobox-container {
    width: 552px;
    flex-shrink: 0;
  }
  
  .a2z-project-infobox[data-width-type="full"] .a2z-infobox-container {
    width: 100%;
  }
}

/* Mobile: Full Width, Less Padding */
@media (max-width: 767px) {
  .a2z-project-infobox .a2z-infobox-container {
    padding: 24px !important;
    width: 100%;
  }
}

/* Info Items Container */
.a2z-infobox-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual Info Item */
.a2z-info-item {
  position: relative;
}

/* Info Row (Label + Value) */
.a2z-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
}

/* Remove bottom padding from last item */
.a2z-info-item:last-child .a2z-info-row {
  padding-bottom: 0;
}

/* Divider Line */
.a2z-info-item[data-show-divider="true"] .a2z-info-row {
  border-bottom: 1px solid #E9E9E9;
}

/* Last item never shows divider */
.a2z-info-item:last-child .a2z-info-row {
  border-bottom: none;
}

/* Label (Left Side) */
.a2z-info-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6F6F6F;
  line-height: normal;
  text-align: left;
  flex-shrink: 0;
}

/* Value (Right Side) */
.a2z-info-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0A0A0A;
  line-height: normal;
  text-align: right;
  flex-shrink: 1;
  margin-left: 16px;
}

/* Mobile: Allow value to wrap if needed */
@media (max-width: 767px) {
  .a2z-info-value {
    max-width: 60%;
    word-wrap: break-word;
    text-align: right;
  }
  
  .a2z-info-label {
    flex-shrink: 1;
    min-width: 0;
  }
}

/* Responsive Order Control */
@media (max-width: 767px) {
  .a2z-project-infobox[data-mobile-order="first"] {
    order: -1;
    margin-bottom: 24px;
  }
  
  .a2z-project-infobox[data-mobile-order="last"] {
    order: 999;
    margin-top: 24px;
  }
}

/* Ensure proper box-sizing */
.a2z-project-infobox *,
.a2z-project-infobox *::before,
.a2z-project-infobox *::after {
  box-sizing: border-box;
}

/* Accessibility: Ensure proper contrast and focus states */
.a2z-info-label,
.a2z-info-value {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Print styles */
@media print {
  .a2z-infobox-container {
    background: transparent;
    border: 1px solid #E9E9E9;
    page-break-inside: avoid;
  }
}
