/* Base styles adapted from devnet.css for Batch Checkout theme */
body {
  background: linear-gradient(135deg, #0D2524 0%, #1A3C3A 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: #E0F2F1;
  font-size: 1rem;
  line-height: 1.6;
}

.canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
}

.glow {
  text-shadow: 0 0 10px rgba(38, 166, 154, 0.6);
}

.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.container {
  max-width: 100%;
  padding: 1rem;
  margin: 0 auto;
}

.grid {
  gap: 1rem;
}

.ledger-hash {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 0.95em;
  vertical-align: middle;
}

.connection-status-box {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 0.75rem; /* Matches p-3 */
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Responsive adjustments for the provided HTML structure */
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
  .grid {
    gap: 1.5rem;
  }
  .connection-status-box {
    padding: 1.25rem; /* Matches sm:p-5 */
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
  .connection-status-box {
    padding: 1.5rem; /* Matches lg:p-6 */
  }
}

@media (max-width: 640px) {
  .ledger-hash {
    font-size: 0.85em;
    word-break: break-all;
    max-width: 90vw;
  }
  .connection-status-box {
    display: none; /* Hide on smaller screens */
  }
  .connection-status-box p {
    font-size: 1rem;
  }
  .connection-status-box p.text-sm {
    font-size: 0.85rem;
  }
}

/* Enhanced responsive utilities for better mobile/desktop adaptation */
.text-2xl {
  font-size: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-yellow-400 {
  color: #FBBF24;
}

.bg-yellow-900\/30 {
  background-color: rgba(120, 53, 15, 0.3);
}

.bg-black\/30 {
  background-color: rgba(0, 0, 0, 0.3);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

.w-full {
  width: 100%;
}

.flex-row {
  flex-direction: row;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.list-disc {
  list-style-type: disc;
}

.pl-4 {
  padding-left: 1rem;
}

.pl-6 {
  padding-left: 1.5rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.italic {
  font-style: italic;
}

/* Responsive enhancements */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:gap-4 {
    gap: 1rem;
  }
  .sm\:p-4 {
    padding: 1rem;
  }
  .sm\:p-6 {
    padding: 1.5rem;
  }
  .sm\:pl-6 {
    padding-left: 1.5rem;
  }
  .sm\:text-3xl {
    font-size: 1.875rem;
  }
  .sm\:text-lg {
    font-size: 1.125rem;
  }
  .sm\:text-sm {
    font-size: 0.875rem;
  }
  .sm\:text-base {
    font-size: 1rem;
  }
  .sm\:mb-6 {
    margin-bottom: 1.5rem;
  }
  .sm\:mb-8 {
    margin-bottom: 2rem;
  }
  .sm\:mb-12 {
    margin-bottom: 3rem;
  }
  .sm\:gap-8 {
    gap: 2rem;
  }
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .sm\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .sm\:py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .sm\:w-24 {
    width: 6rem;
  }
  .sm\:h-24 {
    height: 6rem;
  }
  .sm\:p-5 {
    padding: 1.25rem;
  }
  .sm\:max-w-md {
    max-width: 28rem;
  }
  .sm\:max-w-lg {
    max-width: 32rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:text-4xl {
    font-size: 2.25rem;
  }
  .lg\:text-base {
    font-size: 1rem;
  }
  .lg\:w-28 {
    width: 7rem;
  }
  .lg\:h-28 {
    height: 7rem;
  }
  .lg\:p-6 {
    padding: 1.5rem;
  }
  .lg\:max-w-lg {
    max-width: 32rem;
  }
}

/* Specific responsive adjustments for credentials section */
@media (max-width: 767px) {
  #credentialsSection .flex.flex-col.sm\:flex-row {
    flex-direction: column;
  }
  #credentialsSection .flex.flex-col.sm\:flex-row .flex-1 {
    width: 100%;
  }
  #credentialsSection .bg-yellow-900\/30 {
    padding: 0.75rem;
  }
  #credentialsSection .list-disc {
    padding-left: 1rem;
  }
  #credentialsSection h2 {
    font-size: 1.5rem;
  }
  #credentialsSection h3 {
    font-size: 1rem;
  }
}

@media (max-width: 1023px) {
  #credentialsSection .flex.flex-col.sm\:flex-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  #credentialsSection .flex.flex-col.sm\:flex-row .flex-1 {
    width: 100%;
  }
}

/* Additional mobile optimizations */
@media (max-width: 640px) {
  .container {
    padding: 0.5rem;
  }
  .grid {
    gap: 1rem;
  }
  .connection-status-box {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  .text-xl {
    font-size: 1.25rem;
  }
}

/* Additional mobile optimizations for text readability - with !important to override Tailwind */
@media (max-width: 640px) {
  .text-xs {
    font-size: 1.075rem !important; /* Increase from 0.75rem to 0.875rem for better readability on small screens */
  }
  .text-sm {
    font-size: 1rem !important; /* Increase from 0.875rem to 1rem */
  }
  .text-base {
    font-size: 1.125rem !important; /* Increase from 1rem to 1.125rem */
  }
  .text-xl {
    font-size: 1.5rem !important; /* Increase from 1.25rem to 1.5rem */
  }
  .text-2xl {
    font-size: 1.875rem !important; /* Increase from 1.5rem to 1.875rem */
  }
  .text-3xl {
    font-size: 2.25rem !important; /* Increase from 1.875rem to 2.25rem */
  }
  .text-4xl {
    font-size: 3rem !important; /* Increase from 2.25rem to 3rem */
  }
}

/* Responsive layout for cart total and checkout section */
@media (max-width: 640px) {
  .flex.justify-between.items-center.mb-6 {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .flex.items-center.space-x-4 {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Increase text sizes for the hero section */
.text-xl {
  font-size: 1.75rem; /* Increase from 1.5rem */
}

.text-3xl {
  font-size: 2.75rem; /* Increase from 2.5rem */
}

.text-base {
  font-size: 1.25rem; /* Increase from 1.125rem */
}

.text-sm {
  font-size: 1.125rem; /* Increase from 1rem */
}

.text-xs {
  font-size: 1rem; /* Increase from 0.875rem */
}