
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(109, 109, 109, 0.68);
  z-index: 999;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.payment-modal {
  background: #fafafa;
  width: 85%;
  max-width: 375px;
  border-radius: 38px;
  box-shadow: 0px 15px 75px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  min-height: 632px;
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  margin-bottom: 0;
  position: relative;
  padding-top: 29px;
  padding-bottom: 8px;
  margin-top: 0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  width: 100%;
  flex: 1;
  min-height: 17.391px;
  position: relative;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 17.391px;
  flex-shrink: 0;
  align-self: center;
}

.satmo-modal-logo-img {
  height: 17.391px;
  width: 80px;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.header-separator {
  width: 1px;
  height: 17px;
  background: #2a2a2a;
  flex-shrink: 0;
  margin: 0;
  align-self: center;
}

.header-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  height: 17.391px;
  flex-shrink: 0;
}

.header-title-text {
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2a2a2a;
  line-height: 1.5;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin-top: 1px;
}

.close-button {
  position: absolute;
  top: calc(29px + 17.391px / 2 - 20px);
  right: 24px;
  display: flex;
  padding: 0;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #3C3C3C !important;
  transition: all 0.2s ease;
  z-index: 10;
  margin: 0;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
  -webkit-user-select: none;
}

.close-button svg {
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
  color: #3C3C3C;
  stroke-width: 1.5;
}

.close-button:hover svg {
  color: #1A1919;
}

.close-button:active,
.close-button:active:focus {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.close-button:active svg,
.close-button:active:focus svg {
  color: #1A1919 !important;
}

.close-button:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-grow: 1;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 auto;
  min-height: auto;
  position: relative;
}

/* Skeleton loader styles */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 327px;
  max-width: 327px;
  margin: 0 auto;
  gap: 12px;
  padding: 0;
  box-sizing: border-box;
}

.skeleton-payment-values {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  margin-top: 5px;
  margin-bottom: 0;
  gap: 12px;
}

.skeleton-amount-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.skeleton-sats-value {
  width: 132px;
  height: 40px;
  margin-top: 20px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
  border-radius: 4px;
}

.skeleton-fiat-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 12px;
  margin-top: 0;
}

.skeleton-fiat-value {
  width: 105px;
  height: 20px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
  border-radius: 4px;
}

.skeleton-qrcode {
  width: 270px;
  height: 270px;
  max-width: 270px;
  margin: -8px auto 0 auto;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
  border-radius: 12px;
}

.skeleton-lightning-invoice-spacer {
  width: 100%;
  max-width: 327px;
  min-height: 0px;
  height: 0px;
  margin: 0 auto;
  margin-top: 0px;
}

.skeleton-spinner-button {
  display: flex;
  width: 327px;
  height: 52px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #1A1919;
  margin: 16px auto 0;
  box-sizing: border-box;
}

.skeleton-spinner-button svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Hide New to Satmo link in expired state */
.payment-modal.expired .new-to-satmo-container {
  display: none;
}

/* Hide pay button container in expired state */
.payment-modal.expired .pay-button-container {
  display: none;
}

/* Ensure modal header maintains consistent spacing in expired state */
.payment-modal.expired .modal-header {
  padding-top: 27px;
  padding-bottom: 8px;
}

.payment-modal.expired .close-button {
  top: calc(27px + 17.391px / 2 - 20px);
}

/* Expired state - ensure copy icon is hidden */
.payment-modal.expired .invoice-copy-group {
  display: none !important;
}

/* Expired message styling */
.payment-modal.expired .expired-message {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin-top: 14px;
  padding: 2px 4px;
}

/* Lightning invoice section - main container */
.lightning-invoice {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 327px;
  margin: 0 auto;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

/* Invoice copy group to center text and button together */
.invoice-copy-group {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 4px;
  margin: 0 auto;
  width: fit-content;
  padding: 4px 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  line-height: 0;
  margin-top: -2px;
}

.copy-icon-svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-top: 2px;
}

/* Container for the invoice text and copy button */
.lightning-invoice-content {
  display: flex;
  min-height: 28px;
  height: auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 327px;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  margin: 0 auto;
  text-align: center;
  flex-direction: column;
  gap: 0;
  -webkit-tap-highlight-color: transparent;
}

#lightning-invoice-text,
#lightning-invoice-text-mobile {
  display: inline-flex;
  align-items: center;
  overflow: visible;
  color: #3c3c3c;
  text-overflow: ellipsis;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
  margin: 0;
  margin-top: 0;
  position: static;
  width: auto;
  height: auto;
}

/* Expired invoice message styles */
.expired-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin-top: 0;
}

.expired-text {
  color: rgb(107, 107, 107);
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0;
  padding: 2px 4px;
  background: rgb(240, 240, 240);
}

/* QR code canvas style */
#qrcode,
#qrcode-mobile {
  min-width: 270px;
  min-height: 270px;
  max-width: 270px;
  max-height: 270px;
}

#qrcode canvas,
#qrcode-mobile canvas {
  width: 100%;
  height: auto;
  display: block;
}

#qrcode img,
#qrcode-mobile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#qrcode-container,
#qrcode-container-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: -8px auto 0 auto;
  position: relative;
  max-width: 270px;
  height: 270px;
}

#desktop-payment-options,
#mobile-payment-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 327px;
  max-width: 327px;
  box-sizing: border-box;
  padding: 0;
  margin: 0 auto;
  gap: 12px;
}

/* Lightning invoice spacing after QR */
#desktop-payment-options .lightning-invoice,
#mobile-payment-options .lightning-invoice {
  margin-top: 0;
  padding-top: 0;
}

#desktop-payment-options > *:last-child,
#mobile-payment-options > *:last-child {
  margin-top: -10px;
}

/* Payment values styles */
.payment-values {
  display: flex;
  padding: 0 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  align-self: center;
  width: 327px;
  max-width: 327px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
  height: 120px;
  margin-top: 5px;
  margin-bottom: 0;
}

.amount-container {
  display: block;
  margin-bottom: 0;
  position: relative;
  height: 60px;
  width: 100%;
  text-align: center;
}

.sats-value {
  color: #2a2a2a;
  text-align: center;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  margin: 12px 0 0 0;
  padding: 0;
  display: inline-block;
  position: relative;
}

.sats-unit {
  color: #6b6b6b;
  text-align: left;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  display: inline-block;
  margin: 0;
  padding-top: 40px;
  position: absolute;
  transform: translateX(4px);
  white-space: nowrap;
}

.fiat-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  margin-top: 12px;
  gap: 0;
  position: relative;
}

.fiat-tilde {
  color: #6b6b6b;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.1em;
  margin-right: 0.25em;
}

.fiat-value {
  color: #6b6b6b !important;
  text-align: center;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0;
  opacity: 0.9;
  display: inline-block;
  vertical-align: middle;
}

/* QR code expired state - apply opacity to the QR code (logo is now part of QR code) */
#qrcode-container.expired canvas,
#qrcode-container-mobile.expired canvas,
#qrcode-container.expired #qrcode,
#qrcode-container-mobile.expired #qrcode-mobile {
  opacity: 0.66;
}

/* Pay button container */
.pay-button-container {
  width: 100%;
  padding: 0;
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  max-width: 327px;
}

/* Pay button styling for mobile */
.pay-button-svg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
  border: none !important;
  outline: none !important;
  gap: 0;
  overflow: hidden;
}

/* Only apply hover effect on devices that support hover (not touch-only) */
@media (any-hover: hover) {
  .pay-button-svg:hover {
    opacity: 0.9;
    text-decoration: none;
  }
}

.pay-button-svg:focus,
.pay-button-svg:active,
.pay-button-svg:visited {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.satmo-pay-button-svg {
  width: 100%;
  height: 52px;
  display: block;
  object-fit: cover;
}

/* Desktop: Remove deeplink dead space and set modal height */
@media screen and (min-width: 481px) {
  #desktop-payment-options .pay-button-container {
    display: none;
  }
  
  .payment-modal {
    height: auto;
    min-height: 564px;
    max-height: none;
  }
  
  /* Fixed height for expired state to match design */
  .payment-modal.expired {
    height: 565px;
    min-height: 565px;
    max-height: 565px;
  }
  
  .modal-content {
    padding: 0;
    padding-bottom: 0;
    justify-content: space-between;
  }
  
  #desktop-payment-options {
    width: 327px;
    max-width: 327px;
    gap: 12px;
  }
}

/* New to Satmo section at bottom of modal */
.new-to-satmo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 22px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 0 0 38px 38px;
}

.new-to-satmo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8d8d8d;
  text-align: center;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.5;
  text-decoration: underline;
}

.new-to-satmo-link:hover {
  color: rgba(141, 141, 141, 1);
  text-decoration: underline;
}

/* Font utility classes */

.inter-regular {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.inter-semibold {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Status icon styling */
.status-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.error-icon {
  color: #EF4444;
}

.success-icon {
  color: #10B981;
}

.success-icon svg {
  animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.expired-message {
  color: #6B7280;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 32px 0;
  padding: 0 20px;
}

/* ========================================
   PAYMENT SUCCESS MODAL
   ======================================== */

.payment-modal.payment-success-modal.success-modal-bg {
  background: white;
  border-radius: 38px;
  box-shadow: 0 15px 75px 0 rgba(0, 0, 0, 0.18);
  min-height: auto;
  height: auto;
}

.payment-success-modal .success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 12px 0 40px;
}

.success-message-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 327px;
  padding-top: 12px;
}

.success-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.success-icon-circle {
  background-color: #ff6a00;
}

.error-icon-circle {
  background-color: #c04848;
}

.warning-icon-circle {
  background-color: #e7b637;
}

.status-icon-circle svg {
  width: 32px;
  height: 32px;
}

.success-title {
  color: #2a2a2a;
  font-size: 20px;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  text-align: center;
  margin: 0;
  letter-spacing: -0.4px;
  line-height: 1.5;
}

.success-message {
  color: #8d8d8d;
  font-size: 14px;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  text-align: center;
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.success-action-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
  width: 327px;
}

.order-info-label {
  background: #f0f0f0;
  border-radius: 16px;
  width: 295px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}

.order-info-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  width: 100%;
}

.order-label {
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #6b6b6b;
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
}

.order-value {
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2a2a2a;
  text-align: right;
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.success-button {
  background-color: #2a2a2a;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  width: 327px;
  cursor: pointer;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.success-button:hover {
  opacity: 0.9;
}

.success-button span {
  color: white;
}

.thank-you-text {
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6b6b6b;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ========================================
   PAYMENT ERROR MODAL
   ======================================== */

.payment-modal.error-modal {
  width: 375px;
  height: 404px;
  min-height: 404px;
  max-height:404px;
  min-width: 364px;
  max-width: 364px;
  background: #FFF;
  border-radius: 38px;
  box-shadow: 0 15px 75px 0 rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.payment-modal.error-modal .modal-header {
  padding-top: 27px;
  padding-bottom: 8px;
  flex-shrink: 0;
}

.error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 40px 40px;
  box-sizing: border-box;
}

.error-message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 295px;
  padding-top: 0;
}

.error-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon-circle {
  width: 100px;
  height: 100px;
  padding: 0;
  background-color: transparent;
}

.error-icon-circle svg {
  width: 100px;
  height: 100px;
}

.error-title {
  color: #2A2A2A;
  text-align: center;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.2px;
  margin: 0;
  margin-top: 12px;
}

.error-action-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: center;
  width: 295px;
}

.error-button-got-it {
  display: flex;
  height: 52px;
  padding: 14.5px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 16px;
  background: #2A2A2A;
  overflow: hidden;
  color: #FFF;
  text-align: center;
  text-overflow: ellipsis;
  border: none;
  cursor: pointer;
  font-family: "Saans TRIAL", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  transition: opacity 0.2s ease;
}

.error-button-got-it:hover {
  opacity: 0.9;
}

.error-button-got-it span {
  color: #FFF;
}

.error-button {
  display: flex;
  min-width: 140px;
  padding: 14px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 16px;
  background: #E1E1E1;
  overflow: hidden;
  color: #2A2A2A;
  text-align: center;
  text-overflow: ellipsis;
  border: none;
  cursor: pointer;
  font-family: "Saans TRIAL", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  transition: opacity 0.2s ease;
}

.error-button:hover {
  opacity: 0.9;
}

.error-button span {
  color: #2A2A2A;
}

/* ========================================
   ACCESS DENIED MODAL
   ======================================== */

.payment-modal.access-denied-modal {
  background: #F5F2F0;
  border-radius: 38px;
  box-shadow: 0 15px 75px 0 rgba(0, 0, 0, 0.18);
  min-height: auto;
  height: auto;
}

.access-denied-modal .access-denied-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 12px 0 40px;
  justify-content: flex-start;
}

.access-denied-message-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 327px;
  max-width: 327px;
  padding-top: 12px;
  text-align: center;
}

.access-denied-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-icon-circle {
  width: 100px;
  height: 100px;
  padding: 0;
  background-color: transparent;
}

.warning-icon-circle svg {
  width: 100px;
  height: 100px;
}

.access-denied-title {
  color: #2a2a2a;
  font-size: 20px;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  text-align: center;
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.5;
}

.access-denied-message {
  color: #8d8d8d;
  font-size: 14px;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  text-align: center;
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.access-denied-action-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 327px;
  max-width: 327px;
}

.access-denied-button-open-shopify {
  background-color: #2a2a2a;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 14.5px 16px;
  height: 52px;
  width: 100%;
  cursor: pointer;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.access-denied-button-open-shopify:hover {
  opacity: 0.9;
}

.access-denied-button-open-shopify span {
  color: white;
}

.access-denied-button {
  background-color: #e1e1e1;
  color: #3c3c3c;
  border: none;
  border-radius: 16px;
  padding: 14.5px 16px;
  height: 52px;
  width: 100%;
  cursor: pointer;
  font-family: 'Saans TRIAL', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.access-denied-button:hover {
  opacity: 0.9;
}

.access-denied-button span {
  color: #3c3c3c;
}

@media screen and (max-width: 480px) {
  .payment-modal {
    width: 92%;
    max-height: 95vh;
    overflow-y: auto;
    max-width: 375px;
  }
  
  /* Fixed height for expired state to match desktop */
  .payment-modal.expired {
    height: 565px;
    min-height: 565px;
    max-height: 565px;
    overflow-y: hidden;
  }
  
  /* Ensure expired header padding matches desktop on mobile */
  .payment-modal.expired .modal-header {
    padding-top: 27px;
    padding-bottom: 8px;
  }
  
  .payment-modal.expired .close-button {
    top: calc(27px + 17.391px / 2 - 20px);
  }
  
  .modal-header {
    padding-top: 27px;
    padding-bottom: 5px;
  }
  .close-button {
    top: calc(27px + 17.391px / 2 - 20px);
    right: 24px;
  }
  .header-content {
    padding: 0 24px;
  }
  .header-title-text {
    margin-top: 4px;
}
  .sats-value {
    margin-top: 30px;
  }
  .sats-unit {
    padding-top: 57px;
  }
  .fiat-container {
    margin-top: 20px;
  }
  #qrcode,
  #qrcode-mobile {
    max-width: 270px;
    max-height: 270px;
    min-width: 270px;
    min-height: 270px;
    margin-top: 12px;
  }
  #qrcode-container,
  #qrcode-container-mobile {
    max-width: 270px;
    height: 270px;
    margin-bottom: 0;
    margin-top: 20px;
  }
  /* Mobile-specific adjustments for new layout */
  .payment-values {
    padding: 0;
    gap: 10px;
    width: 100%;
    max-width: 327px;
    margin: 0 auto;
    margin-top: 0;
    text-align: center;
    height: 100px;
  }

  .lightning-invoice {
    max-width: 327px;
    margin-top: 0;
  }
  .lightning-invoice-content {
    max-width: 327px;
  }
  .invoice-copy-group {
    padding: 0;
    width: fit-content;
    margin: 0 auto;
  }
  
  .pay-button-container {
    margin: 16px auto 0;
    width: 100%;
    box-sizing: border-box;
    max-width: 327px;
  }
  .payment-modal {
    min-height: 632px;
  }
  .modal-content {
    padding: 0 9px;
    padding-top: 10px;
    max-height: calc(100vh - 20px);
  }
  
  /* Adjust modal-content for expired state to fit within fixed modal height */
  .payment-modal.expired .modal-content {
    min-height: auto;
    max-height: none;
  }

  /* Error modal: match desktop height, allow width to shrink on small viewports */
  .payment-modal.error-modal {
    width: 92%;
    max-width: 364px;
    min-width: unset;
    height: 404px;
    min-height: 404px;
    max-height: 404px;
  }
  .modal-content.error-content {
    padding: 40px 40px 40px;
    justify-content: center;
  }
  .error-message-container,
  .error-action-container {
    width: 100%;
    max-width: 295px;
  }

  #qrcode-container,
  #qrcode-container-mobile {
    max-width: 240px;
    height: 240px;
  }
  
  #qrcode,
  #qrcode-mobile {
    max-width: 270px;
    max-height: 270px;
    min-width: 270px;
    min-height: 270px;
  }
  
  #desktop-payment-options,
  #mobile-payment-options {
    max-width: 327px;
  }
  #invoice-copy-group-mobile {
    margin-top: 15px;
  }
  .pay-button-container {
    margin-top: 20px !important;
  }
  .expired-text {
    margin-top: 12px;
  }
  .new-to-satmo-container {
    margin-top: 16px !important;
  }
}

/* Added breakpoint for even smaller screens */
@media screen and (max-width: 320px) {
  .payment-modal {
    width: 95%;
    max-width: 320px;
  }
  .header-content {
    padding: 0 16px;
  }
  .close-button {
    right: 16px;
  }
  .satmo-modal-logo-img {
    height: 16px;
    width: 70px;
  }
  .header-title-text {
    font-size: 14px;
  }
  #lightning-invoice-text,
  #lightning-invoice-text-mobile {
    font-size: 12px;
  }
  #qrcode,
  #qrcode-mobile {
    max-width: 220px;
    max-height: 220px;
    min-width: 220px;
    min-height: 220px;
  }
  #qrcode-container,
  #qrcode-container-mobile {
    max-width: 220px;
    height: 220px;
  }
  
  .lightning-invoice {
    max-width: 280px;
  }
  .lightning-invoice-content {
    max-width: 280px;
  }
  .invoice-copy-group {
    padding: 0;
    width: fit-content;
    margin: 0 auto;
  }
  
  .pay-button-container {
    width: 100%;
    max-width: 280px;
  }
  
  .satmo-pay-button-svg {
    height: 18px;
  }
  
  .modal-content {
    padding: 0 16px;
    padding-top: 10px;
  }
  
  .payment-values {
    max-width: 280px;
  }
  
  #desktop-payment-options,
  #mobile-payment-options {
    max-width: 280px;
  }
}
      
.pay-button {
  display: flex;
  padding: 12px 8px;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 100%;
  margin: 0 auto;
  border-radius: 100px;
  border: 1px solid #000;
  background: #000;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.pay-button:hover {
  background: #333;
  border-color: #333;
  text-decoration: none;
}

.pay-button span {
  color: #FFF;
  font-family: "Gotham Medium", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
