.info-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999998;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
  pointer-events: auto;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.info-bottom-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(27, 31, 34, 0.98);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 999999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 85vh;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.info-bottom-drawer.active {
  transform: translateY(0) !important;
  visibility: visible !important;
}

.info-drawer-handle-area {
  padding: 8px 0;
  cursor: grab;
  touch-action: none;
  background: transparent;
  display: flex;
  justify-content: center;
}

.info-drawer-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.info-drawer-header {
  padding: 1rem;
  text-align: center;
  background: transparent;
  margin-bottom: 0;
}

.info-drawer-title {
  color: #F5484D;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  width: 100%;
  font-family: 'DINBold', sans-serif;
}

.info-drawer-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

/* Custom scrollbar for drawer content */
.info-drawer-content::-webkit-scrollbar {
  width: 6px;
}

.info-drawer-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.info-drawer-content::-webkit-scrollbar-thumb {
  background: rgba(245, 72, 77, 0.6);
  border-radius: 3px;
}

.info-drawer-content::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 72, 77, 0.8);
}

/* Ensure content inside drawer is styled properly */
.info-drawer-content .modal-body {
  padding: 0;
  background: transparent;
}

.info-drawer-content .prize-modal-header,
.info-drawer-content .prize-modal-body {
  background: transparent;
  border: none;
}

.info-drawer-content .text-white {
  color: #fff !important;
}

.info-drawer-content .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* QR Code specific styles */
.info-drawer-content > div[style*="display: flex"][style*="flexDirection: column"] {
  flex: 1;
}

/* Prize pool specific styles */
.info-drawer-content > div[style*="padding: \"20px\""] {
  flex: 1;
}

/* Rulesheet specific styles */
.info-drawer-content .rumble-ruls-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 60px;
  width: 100%;
  max-width: 100%;
}

.info-drawer-content .p-3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px !important;
}

/* Ensure buttons at bottom are visible */
.info-drawer-content > div:last-child {
  position: sticky;
  bottom: 0;
  background: rgba(27, 31, 34, 0.98);
  padding: 16px;
  margin-top: auto;
  border-top: 0.5px solid rgb(64, 64, 64);
}

/* Fix accordion styles in drawer */
.info-drawer-content .accordion-item {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Custom accordion styles for RuleSheetAccordionDynamic */
.info-drawer-content .custom-accordion {
  background-color: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  transition: all 0.3s ease !important;
}

.info-drawer-content .custom-accordion.expanded {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.info-drawer-content .custom-accordion .accordion-header {
  cursor: pointer !important;
  padding: 0 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.info-drawer-content .custom-accordion .accordion-header:hover {
  color: #f5484d !important;
}

.info-drawer-content .custom-accordion .accordion-icon {
  color: #f5484d !important;
  margin-right: 8px !important;
  font-size: 14px !important;
}

.info-drawer-content .custom-accordion .accordion-title {
  font-family: 'DIN Next LT Pro', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.info-drawer-content .custom-accordion .accordion-body {
  padding: 16px 0 8px 24px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* RuleSheet specific styles */
.info-drawer-content .rumble-detail-orga {
  color: #f5484d !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}

.info-drawer-content .event-description-content {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 15px !important;
  line-height: 1.6 !important;
}

.info-drawer-content .custom-accordion ul {
  list-style: disc !important;
  padding-left: 20px !important;
  margin: 10px 0 !important;
}

.info-drawer-content .custom-accordion ul li {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 8px !important;
  line-height: 1.5 !important;
}

.info-drawer-content .rule-text-bold {
  font-weight: 700 !important;
  color: #ffffff !important;
}

.info-drawer-content .formate-ul {
  list-style: disc !important;
  padding-left: 20px !important;
}

.info-drawer-content .accordion-button {
  background-color: transparent !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  width: 100% !important;
  text-align: left !important;
}

.info-drawer-content .accordion-body {
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 16px !important;
  font-size: 13px !important;
  width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* Prize card styling in drawer */
.info-drawer-content div[style*="backgroundColor: rgba(255, 255, 255, 0.05)"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.info-drawer-content div[style*="backgroundColor: rgba(255, 255, 255, 0.05)"]:active {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 215, 0, 0.5) !important;
  transform: scale(0.98);
}

/* Prize images in drawer */
.info-drawer-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Prevent horizontal scroll */
.info-drawer-content {
  overflow-x: hidden !important;
}


/* Ensure proper layout for drawer content sections */
.info-drawer-content > div {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure all children respect width */
.info-drawer-content * {
  box-sizing: border-box;
}

/* Sticky button container styling */
.info-drawer-content > div > div[style*="position: sticky"],
.info-drawer-content > div > div[style*="borderTop"] {
  margin-top: auto !important;
  z-index: 10;
}

/* Reset for all tables and pre elements in drawer */
.info-drawer-content table,
.info-drawer-content pre,
.info-drawer-content code {
  max-width: 100% !important;
  overflow-x: auto !important;
  display: block !important;
}


/* Responsive text sizes */
@media (max-width: 768px) {
  .info-drawer-content h3,
  .info-drawer-content h4 {
    font-size: 1.125rem !important;
  }
  
  .info-drawer-content p {
    font-size: 0.875rem !important;
  }
  
  /* Mobile-specific padding adjustments */
  .info-drawer-content {
    padding: 0 !important;
  }
}

/* Styles for when InfoDrawer is used inside a modal */
.info-bottom-drawer.in-modal {
  position: relative;
  transform: none !important;
  height: auto;
  max-height: 70vh;
  overflow-y: auto;
  animation: none;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  background: transparent;
  border: none;
  z-index: auto;
}

.info-bottom-drawer.in-modal .info-drawer-content {
  padding: 0;
  height: auto;
  max-height: none;
  overflow-y: visible;
}

/* Ensure accordion content is visible in modal */
.info-bottom-drawer.in-modal .rumble-ruls-container {
  overflow-y: visible;
  padding-bottom: 20px;
  max-height: none;
}

/* Remove bottom sticky positioning in modal */
.info-bottom-drawer.in-modal .info-drawer-content > div:last-child {
  position: relative;
  background: transparent;
  border-top: none;
  padding: 0;
  margin-top: 20px;
}

/* Custom accordion styles for modal */
.info-bottom-drawer.in-modal .custom-accordion {
  background-color: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  transition: all 0.3s ease !important;
}

.info-bottom-drawer.in-modal .custom-accordion.expanded {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.info-bottom-drawer.in-modal .custom-accordion .accordion-header {
  cursor: pointer !important;
  padding: 0 !important;
  color: #333333 !important;
  display: flex !important;
  align-items: center !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.info-bottom-drawer.in-modal .custom-accordion .accordion-icon {
  color: #f5484d !important;
  margin-right: 8px !important;
  font-size: 16px !important;
}

.info-bottom-drawer.in-modal .custom-accordion .accordion-body {
  padding: 16px 0 8px 24px !important;
  color: #666666 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}