* {
  -webkit-text-size-adjust: 100%;
  font-family:
    "Proxima Nova",
    "Ubiquity Nova",
    FT Base,
    -apple-system,
    system-ui,
    BlinkMacSystemFont,
    SF Pro Text,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1;
  padding: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

body,
html {
  height: 100%;
}

a {
  color: #808080;
}
#github-login {
  flex-grow: 0;
  text-align: center;
}
#github-login.invisible {
  display: none;
}
#github-login-button {
  appearance: unset;
  text-rendering: unset;
  color: unset;
  letter-spacing: unset;
  word-spacing: unset;
  line-height: unset;
  text-transform: unset;
  text-indent: unset;
  text-shadow: unset;
  display: unset;
  text-align: unset;
  align-items: unset;
  cursor: pointer;
  box-sizing: unset;
  background-color: unset;
  margin: unset;
  padding-block: unset;
  padding-inline: unset;
  border-width: unset;
  border-style: unset;
  border-color: unset;
  border-image: unset;
  border: 1px solid #80808020;
  padding: 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: #80808010;
  text-align: center;
  backdrop-filter: blur(12px);
}
#github-login-button:hover {
  transition: color 0.3s ease-in-out;
  color: #fff;
  background-color: #80808020;
}
#github-login-button:active {
  background-color: #80808040;
}
svg.github-logo {
  height: 28px;
  width: 24.469px;
  margin-right: 6px;
  object-fit: contain;
  vertical-align: middle;
  fill: #fff;
}
body,
main {
  color: #808080;
}

a {
  text-decoration: none;
}

#logo a {
  display: block;
  border: 1px solid transparent;
  border-radius: 3px;
  flex-direction: row;
}

#logo {
  letter-spacing: 2px;
  padding: 48px 0;
  -ms-flex-pack: justify;
  -ms-flex-align: center;
  line-height: 1;
  text-align: center;
}

#logo > #logo-icon {
  display: inline-block;
  vertical-align: middle;
  text-rendering: geometricPrecision;
}

#logo-icon > svg {
  height: 28px;
  display: block;
  margin: 0;
  width: 28px;
  padding: 0;
  margin-right: 6px;
  fill: #fff;
}

#logo > div#logo-text {
  display: inline-block;
  vertical-align: middle;
}

#logo > div#logo-text > span {
  line-height: 1;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-rendering: geometricPrecision;
  color: #fff;
  font-weight: 400;
}

div.footer > div {
  padding: 8px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-rendering: geometricPrecision;
  margin: auto;
  display: inline-block;
  vertical-align: middle;
}

footer a {
  opacity: 0.25;
  font-size: 12px;
  color: #fff;
}
footer a:hover {
  opacity: 1;
}
header {
  z-index: 1;
}
header a #logo {
  opacity: 0.5;
}
header a:hover #logo {
  opacity: 1;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  min-height: 100vh;
}

main div.receipt-container {
  height: 120px;
  margin-bottom: 32px;
}

footer {
  bottom: 24px;
}

#carousel {
  flex-direction: row;
  align-items: center;
  align-self: center;
  opacity: 0;
  transition: opacity 1s;
  text-align: center;
}
#carousel > div {
  color: #808080;
  vertical-align: middle;
}
#carousel > div:hover {
  color: #fff;
}
#carousel.ready {
  opacity: 1;
}
#carousel > #rewardsCount {
  pointer-events: none;
  display: inline-block; /* vertical-align: middle; */
}
#prevTx,
#nextTx {
  padding: 3px;
  margin: 3px;
  border: 2px solid;
  cursor: pointer;
  transform: rotate(45deg);
  border-radius: 3px;
  width: 0px;
  display: inline-block;
}
#prevTx {
  border-top-color: transparent;
  border-right-color: transparent;
}
#nextTx {
  border-bottom-color: transparent;
  border-left-color: transparent;
}

#faq-icon > a > div {
  font-size: 12px;
  color: #fff;
}

#faq-icon > a > div:hover {
  opacity: 1;
}

.footer {
  opacity: 0;
  transition: opacity 1s;
  text-align: center;
}

.footer.ready {
  opacity: 1;
}

#faq-icon {
  position: absolute;
  padding: 42px;
  right: 0;
}
background,
background #grid {
  position: fixed;
  top: 0;
  left: 0;
}
html,
background {
  background-color: #000410;
}

background #grid {
  pointer-events: none;
}

background #grid canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: background-grid-fade-in 2s ease-in-out forwards;
}

background .gradient {
  width: 200vw;
  height: 200vh;
  position: absolute;
  opacity: 0;
}
.grid-loaded background .gradient {
  background-image: radial-gradient(#00bfff00 0%, #00bfffff 15%, #00bfff00 34%, #00bfffff 58%, #00bfff00 75%, #00bfffff 100%);
  animation: background-gradients-fade-in 2s ease-in-out forwards;
}
background > :nth-child(1) {
  transform: translateX(-100vw);
}
background > :nth-child(2) {
  transform: translateY(-50vh);
}

@keyframes background-gradients-fade-in {
  to {
    opacity: 0.125;
  }
}
@keyframes background-grid-fade-in {
  to {
    opacity: 0.5;
  }
}
:root {
  --toast-success: hsl(120, 50%, 50%);
  --toast-error: hsl(0, 50%, 50%);
  --toast-warning: hsl(50, 100%, 50%);
  --toast-info: hsl(0, 0%, 50%);
}

.fa-circle-check {
  color: var(--toast-success);
}
.fa-circle-xmark {
  color: var(--toast-error);
}
.fa-triangle-exclamation {
  color: var(--toast-warning);
}
.fa-circle-info {
  color: var(--toast-info);
}

.notifications {
  position: fixed;
  bottom: 0;
  /* right: 20px; */
  left: 50%;
  transform: translateX(-50%);
}

.notifications :where(.toast, .column) {
  display: flex;
  align-items: center;
}

.notifications .toast {
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 24px;
  margin: 12px;
  justify-content: space-between;
  animation: show-toast 0.5s ease-in-out;
  /* border: 1px solid #80808020; */
  border: 1px solid var(--border-color);
  /* backdrop-filter: blur(24px); */
  /* -webkit-backdrop-filter: blur(24px); */
  background-color: var(--background-color-default);
}

@keyframes show-toast {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.notifications .toast.hide {
  animation: hide_toast 0.5s ease-in-out;
}

@keyframes hide_toast {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.toast::before {
  position: absolute;
  content: "";
  height: 3px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  animation: progress 5s linear forwards;
}

@keyframes progress {
  100% {
    width: 0%;
  }
}

.toast.success::before,
.btn#success {
  background: var(--toast-success);
}

.toast.error::before,
.btn#error {
  background: var(--toast-error);
}

.toast.warning::before,
.btn#warning {
  background: var(--toast-warning);
}

.toast.info::before,
.btn#info {
  background: var(--toast-info);
}

.toast .column i {
  font-size: 1.75rem;
}

.toast.success .column i {
  color: var(--toast-success);
}

.toast.error .column i {
  color: var(--toast-error);
}

.toast.warning .column i {
  color: var(--toast-warning);
}

.toast.info .column i {
  color: var(--toast-info);
}

.toast .column span {
  /* font-size: 1.07rem; */
  margin-left: 12px;
  color: #808080;
  line-height: 1.5;
}

.toast i:last-child {
  color: #80808080;
  cursor: pointer;
  margin-left: 12px;
}

.toast i:last-child:hover {
  color: #808080;
}
/* Styles for the full-page loader container */
.loader-container {
  position: fixed; /* Stays in place relative to the viewport */
  top: 0;
  left: 0;
  width: 100vw; /* 100% of viewport width */
  height: 100vh; /* 100% of viewport height */
  background-color: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background */
  display: flex; /* Flexbox to center the loader */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensures it's on top of almost everything */
  transition: opacity 0.3s ease; /* Smooth fade effect for showing/hiding */
}

/* Class to hide the loader */
.loader-container.hidden {
  opacity: 0;
  pointer-events: none; /* Prevents interaction with hidden element */
}

/* Styles for the spinning loader itself */
.loader {
  border: 8px solid #333; /* Darker grey base border */
  border-top: 8px solid #00aaff; /* Bright blue for visibility on dark background */
  border-radius: 50%;
  width: 60px; /* Adjust size */
  height: 60px; /* Adjust size */
  animation: spin 1s linear infinite; /* Animation properties */
}

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

/* Optional: Styles for the content to demonstrate the loader blocking it */
.page-content {
  padding: 20px;
  max-width: 800px;
  margin: 20px auto;
  background-color: #2c2c2c; /* Slightly lighter dark background for content area */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Darker shadow */
  min-height: 150vh; /* To make the page scrollable */
  color: #e0e0e0;
}

.page-content h1 {
  color: #00aaff; /* Blue heading for contrast */
}

.page-content button {
  background-color: #00aaff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.page-content button:hover {
  background-color: #0088cc;
  transform: translateY(-2px);
}
.gift-cards-container {
  min-height: 50vh;
  max-width: 800px;
  display: flex;
  margin: auto;
}

.card-heading {
  font-size: 16px;
  text-align: center;
  position: absolute;
  margin-top: -30px;
  display: flex;
  align-items: center;
}

#gift-cards {
  display: flex;
  flex-direction: row;
  width: 100vw;
  justify-content: center;
  row-gap: 12px;
  position: relative;
  flex-wrap: wrap;
}

.card-section {
  overflow-wrap: break-word;
  text-transform: none;
  background-color: var(--background-color-default);
  padding: 12px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: inset 0 0 96px #00bfff10;
}

.card-error {
  text-align: center;
  padding: 0 12px;
}

@media screen and (max-width: 640px) {
  .card-section {
    flex-direction: column;
    text-align: center;
  }
  .card-section .details {
    margin-left: 0;
  }
}

#redeem-code p {
  text-transform: none;
  margin: 2px 0;
}

.card-section h3 {
  padding: 8px;
  text-align: center;
}

.card-section .details {
  display: flex;
  flex-direction: column;
  margin-left: 24px;
  row-gap: 12px;
  flex: 1;
}

.card-section img {
  border: 2px solid var(--border-color);
  max-width: 200px;
}

.card-section .pricing {
  display: flex;
  flex-direction: column;
}
.card-section .pricing .available {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}
.card-section .pricing .available div .currency {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.card-section .pricing .available div .currency div {
  font-size: 8px;
}

.redeem-info {
  width: 100%;
}
.redeem-info fieldset {
  min-width: 0;
}
.redeem-info fieldset a {
  overflow-wrap: break-word;
}
.redeem-info p {
  text-transform: none;
}
.redeem-info fieldset legend {
  text-align: center;
  padding: 0 4px;
}
.redeem-info fieldset .instructions {
  padding: 12px;
}

.redeem-info fieldset .instructions p#verbose.hidden {
  display: none;
}

.btn[data-loading="true"] > .icon {
  display: none;
}
.btn[data-loading="true"] > .action {
  display: none;
}
.btn[data-loading="true"] > .loader {
  display: block;
}
.btn[data-loading="true"] > .loader svg {
  animation: rotate 1s linear infinite;
}
.btn[data-loading="false"] > .icon {
  display: block;
}
.btn[data-loading="false"]:hover > .icon {
  display: none;
}
.btn[data-loading="false"] > .action {
  display: none;
}
.btn[data-loading="false"]:hover > .action {
  display: block;
}
.btn[data-loading="false"] > .loader {
  display: none;
}

.btn {
  width: 100%;
  border: none;
  color: #808080;
  cursor: pointer;
  height: 48px;
  background: 0 0;
}

.btn:hover {
  cursor: pointer;
  background-color: #80808020;
  color: #fff;
}

.cards-env {
  background: yellow;
  position: fixed;
  bottom: 0;
  width: 100%;
  color: #000;
  text-align: center;
}

.disclaimer {
  text-align: center;
  padding: 24px 12px;
}

.card-section .pricing .available {
  flex-wrap: wrap; /* Allows items to wrap to the next line */
  gap: 8px; /* Adds space between price options */
  justify-content: center; /* Centers the options when they wrap */
}

/* Styles specifically for the fixed denomination options */
.card-section .pricing .fixed-denominations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centers the fixed amount options */
  gap: 12px; /* Spacing between individual fixed amounts */
  width: 100%; /* Ensures it takes full width within its container */
}

/* Styling for each individual fixed amount option (e.g., "$10", "$25") */
.card-section .pricing .amount-option {
  display: flex;
  flex-direction: column; /* Stacks currency above the amount */
  align-items: center; /* Centers text horizontally */
  padding: 8px 12px; /* Increased padding for better tap targets on mobile */
  border: 1px solid var(--border-color); /* Adds a subtle border to each option */
  border-radius: 6px;
  background-color: #8080801a; /* Subtle background for options */
  min-width: 80px; /* Ensures a minimum width for better visual consistency */
  box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

.card-section .pricing .amount-option:hover {
  background-color: #80808030; /* Adds a hover effect for interactivity */
  cursor: pointer;
}

/* Adjustments for currency text within pricing */
.card-section .pricing .available div .currency {
  font-size: 10px; /* Slightly larger for better readability */
  opacity: 0.7; /* Makes currency text a bit more subdued */
  margin-bottom: 2px; /* Small space between currency and amount */
}

.card-section .pricing .available div .amount {
  font-size: 20px; /* Adjusted slightly for better fit within the options */
}

/* Styles for the range denominations (e.g., "$10 - $100") */
.card-section .pricing .range-denominations .amount-range {
  display: flex;
  align-items: baseline; /* Aligns currency with the baseline of the amount */
  gap: 4px; /* Space between currency, amount, and '-' */
  justify-content: center; /* Centers the range display */
  width: 100%;
  font-size: 24px; /* Maintains large font for the range */
}
.card-section .pricing .range-denominations .amount-range .currency {
  font-size: 16px; /* Adjust currency size for range display */
  opacity: 0.7;
}

/* Styling for the brand name */
.brand-name {
  font-size: 14px;
  color: #a0a0a0; /* Muted color */
  margin-top: 4px;
  margin-bottom: 12px; /* Space below brand name */
}

/* Styling for the SKU */
.product-sku {
  font-size: 12px;
  color: #808080; /* Muted color for SKU */
  margin-top: 12px; /* Space above SKU */
  margin-bottom: 8px; /* Space below SKU */
  text-align: center;
}

/* Styling for the country flag and name */
.country-info {
  display: flex;
  align-items: center;
  justify-content: center; /* Centers the flag and country name */
  gap: 8px; /* Space between flag and name */
  margin-top: 8px;
  margin-bottom: 16px; /* Space above the "Mint" button */
}

.country-flag {
  width: 20px; /* Sets a fixed size for the flag */
  height: auto;
  border-radius: 2px; /* Slightly rounded corners for the flag */
}

.country-name {
  font-size: 14px;
  color: #b0b0b0; /* Muted color for country name */
}

/* --- Mobile-Specific Adjustments (within your existing media query) --- */
@media screen and (max-width: 640px) {
  .card-section {
    flex-direction: column; /* Ensures the card content stacks vertically */
    text-align: center; /* Centers text within the card section */
  }
  .card-section .details {
    margin-left: 0; /* Removes left margin for full width on mobile */
    align-items: center; /* Centers items within the details block */
    text-align: center; /* Ensures text is centered within details */
  }
  /* Further refine spacing for mobile if needed */
  .card-section .pricing {
    margin-top: 12px;
    margin-bottom: 12px;
  }
  /* If you want the fixed denominations to stack on extra small screens */
  /*
  .card-section .pricing .fixed-denominations {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  */
}

/* --- New Styles for getSingleGiftCardHtmlDetailed --- */

.product-detailed-card {
  max-width: 800px; /* Max width for the detailed card */
  margin: 40px auto; /* Center the card on the page */
  padding: 20px;
  background-color: var(--background-color-default);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: #f0f0f0; /* Default text color */
}

.product-detailed-card h2,
.product-detailed-card h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.product-header {
  display: flex;
  flex-direction: column; /* Stack image and text initially */
  align-items: center;
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.detailed-card-image {
  max-width: 250px; /* Larger image for detailed view */
  height: auto;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
}

.header-text {
  flex-grow: 1; /* Allows text to take available space */
}

/* These sections use .card-section but have specific h3 styles */
.pricing-details-section h3,
.product-general-info h3,
.redeem-instructions-section h3 {
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px dashed #444; /* Subtle separator */
}

.sender-pricing-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #444;
}

.sender-pricing-info h4 {
  text-align: center;
  margin-bottom: 15px;
  color: #c0c0c0;
}

.sender-pricing-info p {
  text-align: center;
  margin: 5px 0;
}

.sender-denominations .amount-option {
  background-color: #4a4a4a4a; /* Slightly different background for sender denoms */
}

.discount-info {
  margin-top: 15px;
  font-weight: bold;
  color: #00bfff; /* Highlight discount */
}

.product-general-info .info-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to single column */
  gap: 15px 20px;
  text-align: left;
}

.product-general-info .info-item {
  display: flex;
  flex-direction: column; /* Stack label and value */
  align-items: flex-start;
}
.product-general-info .info-item strong {
  color: #bbb;
  margin-bottom: 4px;
  font-size: 1.05em;
}
.product-general-info .info-item span {
  color: #f0f0f0;
  font-size: 0.95em;
}
/* Specific styling for the country display within info grid */
.country-display .country-info {
  justify-content: flex-start; /* Align flag/name to start */
}

.verbose-content {
  max-height: 200px; /* Limit height for verbose instructions */
  overflow-y: auto; /* Add scrollbar if content overflows */
  text-align: left;
  padding-right: 10px; /* Space for scrollbar */
}

.toggle-verbose-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #007bff; /* Example button color */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-verbose-btn:hover {
  background-color: #0056b3;
}

/* Utility class for toggling visibility */
.hidden {
  display: none !important;
}

/* Media Queries for Responsiveness */
@media screen and (min-width: 641px) {
  .product-header {
    flex-direction: row; /* Side-by-side on larger screens */
    text-align: left;
    gap: 30px;
  }
  .detailed-card-image {
    margin-bottom: 0; /* Remove bottom margin when next to text */
  }
  .header-text {
    align-self: center; /* Vertically align text */
  }
  .product-general-info .info-grid {
    grid-template-columns: 1fr 1fr; /* Two columns on larger screens */
    text-align: left; /* Align text within grid items */
  }
}

#my-gift-cards {
  z-index: 1;
  position: fixed;
  top: 12px;
  right: 12px;
}
.my-card {
  border: 1px solid var(--border-color);
  margin: 4px;
}
#options {
  z-index: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#options > div {
  width: 30%;
  max-width: 200px;
  margin: 4px;
}

#options > div > select,
#options > div > input {
  width: 100%;
}

.content {
  z-index: 1;
  background-color: #030b16;
  padding: 12px;
  border-radius: 4px;
  max-width: 100%;
}

.content .summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.content .details {
  max-height: 120px;
  overflow-y: auto;
  text-align: center;
}

.mint,
.reveal {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 12px;
  cursor: pointer;
  gap: 4px;
}
@media screen and (max-width: 640px) {
  table {
    border-left-width: 0;
    border-right-width: 0;
  }
}
@media screen and (max-width: 768px) {
  header span:first-child {
    display: none;
  }
}
@media screen and (orientation: landscape) {
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
