/* CSS for Quay Thu Xo So Plugin - V5 Lottery Balls (Refined) */

:root {
  /* Defaults using Flatsome vars with fallbacks */
  --qtxs-primary: var(--fs-color-primary, #e11d48);
  --qtxs-secondary: var(--fs-color-secondary, #2c3e50);
  --qtxs-text-main: var(--fs-color-base, #1e293b);

  /* Flat Design Palette */
  --qtxs-bg: #ffffff;
  --qtxs-card-bg: #ffffff;
  --qtxs-border: #e2e8f0;
  --qtxs-radius: 8px;

  /* Dynamic Overrides (set via JS if configured) */
  --qtxs-header-bg: var(--qtxs-primary);
  --qtxs-btn-bg: var(--qtxs-primary);
}

span.qtxs-h-result {
  text-align: right;
}

/* Base Box Styles */
.qtxs-box {
  max-width: 100%;
  margin: 0 0 20px 0;
  background: var(--qtxs-card-bg);
  border-radius: var(--qtxs-radius);
  border: 1px solid var(--qtxs-border);
  overflow: hidden;
}

/* Header Section */
.qtxs-box-header {
  padding: 10px 15px;
  text-align: center;
  background: var(--qtxs-header-bg);
  color: white;
  line-height: 1.2;
}

ul#qtxs-history-ul-mien-bac li {
  margin: 0;
}

.qtxs-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0;
}

.qtxs-title-inner {
  margin: auto;
  padding: 0;
  color: inherit;
  line-height: inherit;
  display: inline-block;
  text-transform: uppercase;
  font-weight: bold;
}

/* Lottery Ball Styles - Flat */
.qtxs-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 -4px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ball-color, #e11d48);
  background: rgb(255, 225, 198);
  border: 2px solid #fff;
  position: relative;
  z-index: 1;
  transition: all 0.2s;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure hover or specific balls stack nicely if needed, but simple negative margin works first-to-last usually */
.qtxs-ball:hover {
  z-index: 10;
  transform: scale(1.3) translateY(-5px);
  /* Larger zoom since balls are small */
}

/* Different Colors for randomness */
.qtxs-ball.c-0 {
  --ball-color: #ef4444;
}

/* Red */
.qtxs-ball.c-1 {
  --ball-color: #3b82f6;
}

/* Blue */
.qtxs-ball.c-2 {
  --ball-color: #10b981;
}

/* Green */
.qtxs-ball.c-3 {
  --ball-color: #f59e0b;
}

/* Orange */
.qtxs-ball.c-4 {
  --ball-color: #8b5cf6;
}

/* Purple */
.qtxs-ball.c-5 {
  --ball-color: #ec4899;
}

/* Pink */
.qtxs-ball.c-6 {
  --ball-color: #06b6d4;
}

/* Cyan */
.qtxs-ball.c-7 {
  --ball-color: #6366f1;
}

/* Indigo */
.qtxs-ball.c-8 {
  --ball-color: #84cc16;
}

/* Lime */
.qtxs-ball.c-9 {
  --ball-color: #f97316;
}

/* Amber */
.qtxs-stat-row-0 {
  --ball-color: #ef4444;
}

.qtxs-stat-row-1 {
  --ball-color: #3b82f6;
}

.qtxs-stat-row-2 {
  --ball-color: #10b981;
}

.qtxs-stat-row-3 {
  --ball-color: #f59e0b;
}

.qtxs-stat-row-4 {
  --ball-color: #8b5cf6;
}

.qtxs-stat-row-5 {
  --ball-color: #ec4899;
}

.qtxs-stat-row-6 {
  --ball-color: #06b6d4;
}

.qtxs-stat-row-7 {
  --ball-color: #6366f1;
}

.qtxs-stat-row-8 {
  --ball-color: #84cc16;
}

.qtxs-stat-row-9 {
  --ball-color: #f97316;
}

/* Spinning Animation */
.qtxs-spinning .qtxs-ball {
  animation: qtxs-spin-3d 0.15s infinite linear;
}

@keyframes qtxs-spin-3d {
  0% {
    transform: translateY(-2px) scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: translateY(2px) scale(1.05);
    opacity: 1;
  }

  100% {
    transform: translateY(-2px) scale(0.95);
    opacity: 0.8;
  }
}

/* Override Result Val container to support balls (Group of balls) */
.qtxs-result-val {
  display: flex;
  gap: 0;
  background: transparent;
  box-shadow: none;
  height: auto;
  width: auto;
  margin: 5px 25px;
  /* Large separation between groups */
  padding: 0;
}

/* Counter Bar - Integrated/Floating Look */
.qtxs-counter-bar {
  background: #1e293b;
  /* Dark top bar */
  color: #cbd5e1;
  border-bottom: none;
  padding: 8px 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.qtxs-counter-bar strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 4px;
  margin-left: 5px;
}

/* Controls Section */
/* Controls Section */
.qtxs-controls-bar {
  padding: 10px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--qtxs-border);
  display: flex !important;
  justify-content: center !important;
  flex-wrap: nowrap;
  gap: 20px;
  flex-direction: row;
  align-items: stretch;
}

/* Mode Select - Rectangular Group */
.qtxs-mode-select {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  /* Minimal padding */
  border-radius: 4px;
  gap: 0;
  align-items: center;
  height: 40px;
  /* Match button outer height */
  box-sizing: border-box;
  margin: 0 !important;
}

.qtxs-mode-select input {
  display: none;
}

.qtxs-mode-select label {
  cursor: pointer;
  padding: 0 16px;
  height: 100%;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--qtxs-text-muted);
  transition: all 0.3s;
  user-select: none;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  box-sizing: border-box;
  line-height: normal;
}



.qtxs-mode-select label:hover {
  color: var(--qtxs-primary);
  background: rgba(0, 0, 0, 0.02);
}

/* Key: styling based on the input that precedes the label, but my HTML is input INSIDE label.
   Need to adjust HTML or use :has selector (modern). 
   Let's stick to simple active class added by JS or use the input:checked + span trick if I change HTML.
   
   Wait, current HTML in PHP is: <label><input type="radio"> Text</label>
   This makes CSS-only active state hard for the label wrapper unless using :has() or JS.
   I will use a simple JS script to add 'active' class to label, OR change HTML to <input id><label for>
   
   Let's try :has() since it is widely supported now, or fallback to JS active class.
   Let's use JS for max compatibility (add 'active' class).
*/
.qtxs-mode-select label.active {
  background: #fff;
  color: var(--qtxs-primary);
  border: 1px solid var(--qtxs-border);
}

.qtxs-btn-spin {
  background: var(--qtxs-btn-bg);
  color: #fff;
  border: none;
  height: 40px;
  /* Standardize height */
  padding: 0 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: normal;
}

.qtxs-btn-spin:hover {
  background: #be123c;
  transform: translateY(-1px);
}

.qtxs-btn-spin:active {
  transform: translateY(0);
}

.qtxs-buttons-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qtxs-btn-reset {
  background: #334155;
  color: #fff;
  border: none;
  height: 40px;
  /* Standardize height */
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  gap: 8px;
  line-height: normal;
}

.qtxs-btn-reset:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.qtxs-btn-reset .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Spinning Icon Animation */
.is-spinning-icon {
  animation: qtxs-spin 1s infinite linear;
}

@keyframes qtxs-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Board Layout */
.qtxs-board-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* padding: 20px; */
  gap: 2px;
  box-sizing: border-box;
  background: #f8fafc;
}

.qtxs-table-row {
  display: flex;
  background: var(--qtxs-card-bg);
  border-bottom: 1px solid transparent;
  /* No border initially */
  /* border-radius: 10px; */
  min-height: 60px;
  align-items: center;

  /* Very subtle */
  transition: all 0.3s ease;
}

.qtxs-table-row:hover {
  background: #f8fafc;
}

.qtxs-col-name {
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--qtxs-text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  background: transparent;
  padding: 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px dashed var(--qtxs-border);
  /* Dashed separator */
}

.qtxs-col-results {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  /* Use margin on items instead */
}

.qtxs-result-val {
  display: flex;
  gap: 0;
  background: transparent;
  box-shadow: none;
  height: auto;
  width: auto;
  margin: 5px 30px;
  /* Large separation between groups */
  padding: 0;
}

/* DB Special */
/* DB Special */
.qtxs-row-db {
  background: #fff0f1;
  border: 1px solid #fecaca;
}

.qtxs-row-db .qtxs-col-name {
  color: #d32f2f !important;
  font-weight: 900;
  border-right-color: #fecaca;
  background: transparent;
}

.qtxs-row-db .qtxs-result-val {
  /* Reset container style for DB, balls handle color themselves */
  background: transparent;
  border: none;
  box-shadow: none;
}

.qtxs-row-db .qtxs-ball {
  border-color: #d32f2f;
  margin: 0 5px;
  /* Override random colors */
  --ball-color: #d32f2f !important;
  color: #d32f2f !important;
}


/* Specific Header Styles (if any overrides needed) */
.qtxs-header-main {
  padding: 5px 15px;
  /* Reduced vertical padding */
  min-height: 45px;
  /* Ensure specific height */
  display: flex;
  align-items: center;
}

.qtxs-stats-header,
.qtxs-hist-header,
.qtxs-rec-header {
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.qtxs-title-inner {
  margin: auto;
  padding: 0;

  color: inherit;

  line-height: inherit;
  display: inline-block;
}

.qtxs-stats-table {
  width: 100%;
  border-collapse: collapse;
}



.qtxs-stats-table th {
  background: #f1f5f9;
  color: var(--qtxs-text-muted);
  font-size: 0.85rem;
  padding: 10px;
  border-bottom: 2px solid var(--qtxs-border);
  text-align: center;
  font-weight: 700;
}

.qtxs-stats-table td {
  padding: 10px;
  border-bottom: 1px solid var(--qtxs-border);
  font-size: 0.95rem;
  color: var(--qtxs-text-main);
  text-align: center;
  /* Center cell content */
}

.qtxs-head-digit {
  background: #fff;
  font-weight: 900;
  color: var(--ball-color, var(--qtxs-primary));
  border-left: 3px solid var(--ball-color, var(--qtxs-primary));
  border-right: 1px solid var(--qtxs-border);
  width: 60px;
  font-size: 1.2rem;
}

.qtxs-stat-row:hover {
  background: #f1f5f9;
}

.qtxs-tail-list {
  text-align: left !important;
  padding-left: 15px;
  letter-spacing: 2px;
  font-weight: 500;
}

/* Waiting Dots */
.qtxs-waiting-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.qtxs-waiting-dot {
  width: 8px;
  height: 8px;
  background-color: #94a3b8;
  border-radius: 50%;
  animation: qtxs-bounce 1.4s infinite ease-in-out both;
}

.qtxs-waiting-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.qtxs-waiting-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes qtxs-bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.qtxs-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--qtxs-text-muted);
  background: #fff;
  border-top: 1px solid var(--qtxs-border);
}


/* Mobile Specific Overrides */
@media screen and (max-width: 768px) {
  .qtxs-controls-bar {
    flex-direction: column;
    gap: 15px;
    padding: 5px;
    align-items: stretch;
  }

  /* Make pills centered and full width on mobile */
  .qtxs-mode-select {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .qtxs-mode-select label {
    flex: 1;
    justify-content: center;
    padding: 8px 5px;
    font-size: 0.8rem;
    text-align: center;
  }

  .qtxs-buttons-group {
    width: 100%;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
  }

  /* Synchronized Buttons - Full width split 50/50 - Flat */
  .qtxs-btn-spin,
  .qtxs-btn-reset {
    flex: 1 1 0%;
    /* Forced balanced split */
    height: 42px;
    /* Slightly taller for easier touch */
    padding: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    justify-content: center;
    min-width: 0;
    /* Allow shrinking if needed */
    box-shadow: none;
    border-radius: 4px;
  }



  .qtxs-board-table {
    padding: 10px;
    gap: 8px;
  }

  .qtxs-col-name {
    width: 60px;
    /* Smaller label width */
    font-size: 0.75rem;
    padding: 0 5px;
  }

  .qtxs-col-results {
    gap: 0;
    /* Let margin handle separation */
    padding: 5px;
    justify-content: center;
  }

  .qtxs-result-val {
    height: auto;
    margin: 5px 15px;
    /* Separation on mobile */
  }

  .qtxs-ball {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    margin: 0 -3px;
    border-width: 1.5px;
  }
}


/* History Widget (Static) */
/* Highlight Prize 7 and DB */
.qtxs-prize-7 .qtxs-col-name,
.qtxs-prize-7 .qtxs-num,
.qtxs-prize-8 .qtxs-col-name,
.qtxs-prize-8 .qtxs-num {
  color: #d32f2f !important;
  font-weight: 800;
}

.qtxs-prize-db .qtxs-col-name {
  color: #d32f2f !important;
  font-weight: 900;
  font-size: 1.2em;
  /* Make it slightly bigger */
}


@keyframes qtxs-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header with Glass-like effect */
/* Legacy Widget Header Cleanup if needed */

/* Main Box Header Specifics */
.qtxs-header-main h3 {
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Gap for icon */
}

/* Remove decorative lines */
.qtxs-header-main h3::before,
.qtxs-header-main h3::after {
  content: none !important;
  display: none;
}


/* Recommendation Section */
.qtxs-rec-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.qtxs-rec-body {
  padding: 20px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  background: #fff;
}

.qtxs-rec-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex: 1;
  min-width: 280px;
  /* Increased to fit larger balls */
  position: relative;
}

.qtxs-rec-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

/* Override lucky numbers container to fit new layout */
.qtxs-lucky-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  /* prevent layout shift */
  gap: 15px;
  padding: 10px;
}

/* Re-use flat ball styles for lucky numbers */
.qtxs-lucky-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  background: var(--ball-color, #e11d48);
  border: 2px solid #fff;
  margin: 0 -4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
  .qtxs-lucky-ball {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}


/* History Widget */
.qtxs-history-box ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.qtxs-history-box li {
  padding: 12px 15px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.qtxs-history-list li:nth-child(even) {
  background: #f8fafc;
}

.qtxs-h-time {
  color: #94a3b8;
  font-size: 0.85rem;
}

.qtxs-h-user {
  font-weight: 600;
  color: #475569;
}

.qtxs-h-result {
  font-weight: 700;
  color: #e11d48;
  font-size: 1rem;
}

/* Hide old modal trigger stuff */
.qtxs-widget-trigger,
.qtxs-modal {
  display: none !important;
}

/* Station Dropdown Selector */
.qtxs-station-select-wrapper {
  flex: 1;
  min-width: 150px;
}

.qtxs-station-selector {
  width: 100%;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--qtxs-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--qtxs-text-main);
  background-color: #f8fafc;
  cursor: pointer;
  outline: none;
  height: 34px;
  /* Reduced height */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232c3e50%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: 10px auto;
  padding-right: 30px;
  margin: 0;
  /* User request fix */
}

.qtxs-station-selector:focus {
  border-color: var(--qtxs-primary);
  background-color: #fff;
}

/* Number Text Only Effect */
.qtxs-num {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  /* Dark for normal numbers */
  min-width: 16px;
  text-align: center;
  line-height: 1;
  letter-spacing: 2px;
}

.qtxs-spinning .qtxs-num {
  filter: blur(0px);
  /* Clean spin */
  opacity: 1;
  color: #e11d48;
  /* Red while spinning */
}

/* Ensure mobile responsiveness */
@media screen and (max-width: 768px) {
  .qtxs-station-select-wrapper {
    width: 100%;
    margin-bottom: 5px;
    order: -1;
    /* Move to top of flex container if flex-direction is column */
  }

  .qtxs-num {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
}

/* Region Tabs Styles */
.qtxs-region-container {
  margin-bottom: 20px;
}

.qtxs-region-header {
  text-align: center;
  background: var(--qtxs-secondary);
  /* Dark background */
  color: #fff;
  padding: 10px;
  border-radius: var(--qtxs-radius) var(--qtxs-radius) 0 0;
  margin-bottom: 0;
}

.qtxs-region-header h3 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #fff;
}

.qtxs-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  background: #f1f5f9;
  border-bottom: 1px solid var(--qtxs-border);
  gap: 2px;
  padding: 5px;
}

.qtxs-tab-btn {
  flex: 1;
  border: none;
  background: #fff;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 600;
  color: var(--qtxs-text-muted);
  border-radius: 4px 4px 0 0;
  transition: all 0.2s;
  min-width: 100px;
  /* Ensure buttons don't get too small */
}

.qtxs-tab-btn:hover {
  background: #e2e8f0;
  color: var(--qtxs-text-main);
}

.qtxs-tab-btn.active {
  background: var(--qtxs-primary);
  color: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.qtxs-tabs-content {
  background: #fff;
}

.qtxs-tab-pane {
  display: none;
  animation: qtxs-fade-in 0.3s ease;
}

.qtxs-tab-pane.active {
  display: block;
}

@keyframes qtxs-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.qtxs-tab-pane .qtxs-box {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-bottom: 0;
  border-top: none;
}

/* --- Combined Region Table Styles (Unified Layout) --- */
.qtxs-combined-container {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.qtxs-table-responsive {
  overflow-x: auto;
  width: 100%;
  margin-bottom: 20px;
}

.qtxs-combined-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  /* Force scroll on small mobile */
}

.qtxs-combined-table th,
.qtxs-combined-table td {
  border: 1px solid #e1e1e1;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

.qtxs-combined-table th {
  background: #f4f6f7;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  font-size: 14px;
}

.qtxs-col-prize {
  width: 80px;
  background: #f9f9f9;
}

.qtxs-cell-name {
  font-weight: bold;
  color: #555;
  background: #f9f9f9;
}

/* Rows Coloring */
/* Rows Coloring for Combined Table */
.qtxs-prize-db .qtxs-cell-name,
.qtxs-prize-8 .qtxs-cell-name {
  color: #d32f2f;
}

.qtxs-prize-db .qtxs-result-val {
  color: #d32f2f;
  font-weight: 900;
  font-size: 1.25em;
}

.qtxs-prize-8 .qtxs-result-val {
  color: #d32f2f;
  font-weight: 800;
  font-size: 1.1em;
}

/* Ensure Prize 7 is normal color in Combined Table */
.qtxs-combined-table .qtxs-prize-7 .qtxs-cell-name,
.qtxs-combined-table .qtxs-prize-7 .qtxs-result-val {
  color: #333 !important;
  /* Force override global red if it exists */
  font-weight: 600;
}

/* Result Group Spacing */
.qtxs-result-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Reuse result value styling but adjust for table */
.qtxs-combined-table .qtxs-result-val {
  display: inline-block;
  min-width: 30px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-size: 1em;
  /* defined by row/global */
  color: #333;
  font-weight: 600;
}

/* Except for DB and G8 where we forced color above */

/* Spin Button Region */
.qtxs-btn-spin-region {
  background: #d32f2f;
  /* Red */
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
}

.qtxs-btn-spin-region:hover {
  background: #b71c1c;
}

.qtxs-btn-spin-region:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}