/* Boilerplate CSS for homepage game trial from prompt */
@media (max-width: 1023px) {
  .page-payment-methods__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__hero-brand,
  .page-payment-methods__hero-jackpot {
    display: none !important;
  }
  .page-payment-methods__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-topbar,
  .page-payment-methods__game-trial-bottombar {
    display: none !important;
  }
  .page-payment-methods__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-payment-methods__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-payment-methods__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-payment-methods__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-payment-methods__hero-brand,
  .page-payment-methods__hero-jackpot,
  .page-payment-methods__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-payment-methods__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-payment-methods__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-payment-methods__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Boilerplate CSS for homepage elements at 768px */
@media (max-width: 768px) {
  .page-payment-methods__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-payment-methods__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Placeholder for __brand-intro */
  .page-payment-methods__brand-intro {
    display: block;
  }
  /* Placeholder for __winner-ticker */
  .page-payment-methods__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  body {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }
}

/* Common styles for game trial overlay and reward modal */
.page-payment-methods__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-payment-methods__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-payment-methods__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-payment-methods__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
}
.page-payment-methods__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-payment-methods__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-payment-methods__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}
.page-payment-methods__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
/* End of Boilerplate CSS */

/* Page-specific styles for payment-methods.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --text-dark-color: #000000;
  --bg-card-color: #FFFFFF;
  --bg-page-color: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--bg-page-color);
}

.page-payment-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-payment-methods__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px;
  background-color: var(--primary-color);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__hero-content {
  max-width: 800px;
  z-index: 2;
  padding: 20px;
}

.page-payment-methods__hero-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #fff;
}

.page-payment-methods__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-payment-methods__hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-payment-methods__section-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-payment-methods__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-payment-methods__intro-section,
.page-payment-methods__security-section,
.page-payment-methods__cta-section {
  padding: 60px 0;
  background-color: var(--bg-page-color);
}

.page-payment-methods__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color);
}

.page-payment-methods__methods-section {
  padding: 60px 0;
  background-color: var(--bg-page-color);
}

.page-payment-methods__withdrawal-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: #fff;
}

.page-payment-methods__withdrawal-section .page-payment-methods__section-title {
  color: #fff;
}

.page-payment-methods__withdrawal-section .page-payment-methods__section-title::after {
  background-color: var(--secondary-color);
}

.page-payment-methods__withdrawal-section .page-payment-methods__text-block {
  color: #fff;
  opacity: 0.9;
}

.page-payment-methods__method-grid,
.page-payment-methods__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__card,
.page-payment-methods__security-card {
  background-color: var(--bg-card-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__card:hover,
.page-payment-methods__security-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__card-image,
.page-payment-methods__security-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__card-title,
.page-payment-methods__security-card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-payment-methods__card-description,
.page-payment-methods__security-card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--text-main-color);
}

.page-payment-methods__card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
}

.page-payment-methods__card-features li {
  margin-bottom: 8px;
  font-size: 0.9em;
  color: var(--text-main-color);
}

.page-payment-methods__card-features li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 8px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  border: 2px solid transparent;
}

.page-payment-methods__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__btn-secondary {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-payment-methods__btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

.page-payment-methods__withdrawal-steps {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  color: #fff;
}

.page-payment-methods__withdrawal-steps li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 60px;
  font-size: 1.05em;
}

.page-payment-methods__withdrawal-steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary-color);
  color: var(--text-dark-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.page-payment-methods__cta-bottom {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
}

.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: var(--bg-page-color);
}

.page-payment-methods__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-card-color);
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: #f5f5f5;
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

.page-payment-methods__cta-section {
  text-align: center;
}

.page-payment-methods__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-title {
    font-size: 2em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__hero-section {
    padding: 10px 0 20px;
  }

  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }

  .page-payment-methods__hero-description {
    font-size: 1em;
  }

  .page-payment-methods__hero-cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-payment-methods__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-payment-methods__intro-section,
  .page-payment-methods__methods-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__security-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding: 30px 0;
  }

  .page-payment-methods__text-block {
    font-size: 0.95em;
  }

  .page-payment-methods__method-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-payment-methods__card,
  .page-payment-methods__security-card {
    padding: 20px;
  }

  .page-payment-methods__card-image,
  .page-payment-methods__security-icon {
    max-width: 180px;
  }

  .page-payment-methods__card-title,
  .page-payment-methods__security-card-title {
    font-size: 1.3em;
  }

  .page-payment-methods__withdrawal-steps {
    margin: 20px auto;
    counter-reset: step-counter;
  }

  .page-payment-methods__withdrawal-steps li {
    padding: 15px 15px 15px 50px;
    font-size: 1em;
  }

  .page-payment-methods__withdrawal-steps li::before {
    left: 15px;
    width: 25px;
    height: 25px;
    font-size: 0.9em;
  }

  .page-payment-methods__cta-bottom {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
  }

  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px;
  }
  .page-payment-methods__faq-qtext {
    font-size: 15px;
  }
  .page-payment-methods__faq-answer {
    padding: 0 15px 15px;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
  }

  /* General image and container responsive rules */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}