/*
 * Contraste final das campanhas Miyashiro.
 * Carregado por ultimo para neutralizar cores antigas aplicadas nos filhos
 * sem alterar markup, eventos ou regras das promocoes.
 */
body.theme-miyashiro .container.app-main.rifa-modern .section-flat .rifa-section-header-static,
body.theme-miyashiro .container.app-main.rifa-modern .section-flat .rifa-section-toggle-left {
  color: #f7f8fb !important;
  opacity: 1 !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .section-flat .rifa-section-toggle-left > span:not(.rifa-section-icon),
body.theme-miyashiro .container.app-main.rifa-modern .section-flat .rifa-section-header-static .rifa-section-toggle-left > span:not(.rifa-section-icon) {
  color: #f7f8fb !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #f7f8fb !important;
  text-shadow: none !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .section-flat .rifa-section-body > .text-muted,
body.theme-miyashiro .container.app-main.rifa-modern .section-flat .rifa-section-body > .small.text-muted {
  color: #aeb8c8 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #aeb8c8 !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .rifa-price-label {
  color: #aeb8c8 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #aeb8c8 !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .section-flat .rifa-section-icon {
  color: #ef7b7d !important;
  opacity: 1 !important;
  -webkit-text-fill-color: initial !important;
}

/*
 * O CSS local da campanha declara `.carousel-item { display:none }` depois
 * do Bootstrap. Os estados intermediarios precisam voltar a ser visiveis
 * para a transicao horizontal conseguir terminar.
 */
body.theme-miyashiro .container.app-main.rifa-modern .rifa-hero-media .carousel-item-next,
body.theme-miyashiro .container.app-main.rifa-modern .rifa-hero-media .carousel-item-prev,
body.theme-miyashiro .container.app-main.rifa-modern .rifa-hero-media .carousel-item.active {
  display: block !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .rifa-hero-media .carousel-item {
  transform: none !important;
  transition: none !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .rifa-gallery,
body.theme-miyashiro .container.app-main.rifa-modern .rifa-gallery-track,
body.theme-miyashiro .container.app-main.rifa-modern .rifa-gallery-slide {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .rifa-gallery {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

body.theme-miyashiro .container.app-main.rifa-modern .rifa-gallery-slide {
  display: none;
}

body.theme-miyashiro .container.app-main.rifa-modern .rifa-gallery-slide.is-active {
  display: block;
}

body.theme-miyashiro .container.app-main.rifa-modern .rifa-gallery-slide .rifa-hero-img,
body.theme-miyashiro .container.app-main.rifa-modern .rifa-gallery-slide .rifa-hero-video {
  margin: 0 !important;
}


/* Remove os ultimos destaques verdes da campanha ativa. */
body.theme-miyashiro .container.app-main.rifa-modern .rifa-price-value {
  background: linear-gradient(135deg, #c45559, #df7171) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(197, 85, 89, .24) !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .rifa-combo-item.popular {
  background: linear-gradient(135deg, #c45559, #df7171) !important;
  border-color: #e07878 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(197, 85, 89, .22) !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .rifa-combo-item.popular strong,
body.theme-miyashiro .container.app-main.rifa-modern .rifa-combo-item.popular small {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.theme-miyashiro .chance-dobro-mini {
  background: linear-gradient(135deg, #b94f55, #d96868) !important;
  border-color: rgba(255, 255, 255, .2) !important;
  box-shadow: 0 12px 30px rgba(185, 79, 85, .28) !important;
}

body.theme-miyashiro .chance-dobro-mini-countdown,
body.theme-miyashiro .chance-dobro-mini-close {
  background: rgba(23, 28, 36, .28) !important;
  border-color: rgba(255, 255, 255, .2) !important;
}

/* Chance em dobro acompanha o fluxo, no mesmo padrao do Top Comprador. */
body.theme-miyashiro .container.app-main.rifa-modern .chance-dobro-mini {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  width: calc(100% - 8px) !important;
  margin: 8px 4px !important;
  padding: 12px 14px !important;
  text-align: center !important;
  background: linear-gradient(135deg, #33252b, #472d34) !important;
  border: 1px solid rgba(226, 118, 118, .45) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .chance-dobro-mini-title {
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: .95rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .chance-dobro-mini-countdown {
  display: block !important;
  width: 100% !important;
  min-height: 34px !important;
  margin: 0 0 7px !important;
  padding: 7px 10px !important;
  color: #fff !important;
  background: #171c24 !important;
  border: 1px solid #4a3740 !important;
  border-radius: 6px !important;
  font-size: .86rem !important;
  font-weight: 900 !important;
}

body.theme-miyashiro .container.app-main.rifa-modern .chance-dobro-mini-countdown::before {
  content: "Encerra em ";
  font-weight: 500;
}

body.theme-miyashiro .container.app-main.rifa-modern .chance-dobro-mini-periodo {
  color: #fff !important;
  font-size: .68rem !important;
  font-weight: 600 !important;
  opacity: .95 !important;
}


/* Checkout: remove os verdes legados sem interferir no fluxo de compra. */
body.theme-miyashiro #overlay {
  background:
    radial-gradient(circle at 50% 38%, rgba(217, 104, 104, .20), transparent 34%),
    rgba(8, 10, 15, .82) !important;
}

body.theme-miyashiro #overlay .kapay-order-loader {
  color: #f7f8fb !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 104, 104, .12), transparent 34%),
    linear-gradient(145deg, #242b35, #171c24) !important;
  border-color: rgba(229, 120, 120, .38) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .52) !important;
}

body.theme-miyashiro #overlay .kapay-order-loader::before {
  background:
    radial-gradient(circle at 18% 0%, rgba(229, 120, 120, .16), transparent 32%),
    radial-gradient(circle at 86% 15%, rgba(197, 90, 94, .12), transparent 26%) !important;
}

body.theme-miyashiro #overlay .kapay-loader-orbit {
  background: linear-gradient(135deg, rgba(197, 90, 94, .18), rgba(229, 120, 120, .24)) !important;
  box-shadow: 0 14px 34px rgba(217, 104, 104, .24) !important;
}

body.theme-miyashiro #overlay .kapay-loader-orbit::before {
  border-color: rgba(229, 120, 120, .16) !important;
  border-top-color: #e57878 !important;
  border-right-color: #c55a5e !important;
}

body.theme-miyashiro #overlay .kapay-loader-core {
  background: linear-gradient(135deg, #c55a5e, #e57878) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 22px rgba(217,104,104,.28) !important;
}

body.theme-miyashiro #overlay .kapay-loader-title {
  color: #fff !important;
}

body.theme-miyashiro #overlay .kapay-loader-subtitle {
  color: #b8c0cc !important;
}

body.theme-miyashiro #overlay .kapay-loader-progress {
  background: rgba(229, 120, 120, .14) !important;
}

body.theme-miyashiro #overlay .kapay-loader-progress span {
  background: linear-gradient(90deg, #c55a5e, #e57878) !important;
  box-shadow: 0 8px 18px rgba(217,104,104,.26) !important;
}

body.theme-miyashiro #newCheckoutModal .checkout-clean-alert-success,
body.theme-miyashiro #newCheckoutModal .checkout-clean-alert-info,
body.theme-miyashiro #newCheckoutModal .checkout-clean-alert-warning {
  background: #242b35 !important;
  border-color: #3d4654 !important;
}

body.theme-miyashiro #newCheckoutModal .checkout-clean-alert-icon,
body.theme-miyashiro #newCheckoutModal .checkout-clean-alert-icon.success,
body.theme-miyashiro #newCheckoutModal .checkout-clean-alert-icon.warning,
body.theme-miyashiro #newCheckoutModal .checkout-clean-user-avatar,
body.theme-miyashiro #newCheckoutModal .checkout-clean-icon {
  color: #fff !important;
  background: linear-gradient(135deg, #c55a5e, #e57878) !important;
  border-color: rgba(229,120,120,.45) !important;
}

body.theme-miyashiro #newCheckoutModal .checkout-clean-alert-text strong,
body.theme-miyashiro #newCheckoutModal .checkout-clean-upsell-label strong,
body.theme-miyashiro #newCheckoutModal .total-geral .text-success,
body.theme-miyashiro #newCheckoutModal .checkout-clean-terms a,
body.theme-miyashiro #newCheckoutModal .checkout-clean-link-btn,
body.theme-miyashiro #newCheckoutModal .text-success {
  color: #e57878 !important;
  -webkit-text-fill-color: #e57878 !important;
}

body.theme-miyashiro #newCheckoutModal .checkout-clean-switch-ui {
  background: #303744 !important;
  border-color: #4b5564 !important;
}

body.theme-miyashiro #newCheckoutModal .checkout-clean-switch-input {
  accent-color: #d96868 !important;
}

body.theme-miyashiro #newCheckoutModal .checkout-clean-switch-input:checked + .checkout-clean-switch-ui,
body.theme-miyashiro #newCheckoutModal .checkout-clean-main-btn,
body.theme-miyashiro #newCheckoutModal .btn-success,
body.theme-miyashiro #newCheckoutModal .bg-success {
  color: #fff !important;
  background: linear-gradient(135deg, #c55a5e, #e57878) !important;
  border-color: #e57878 !important;
  box-shadow: 0 12px 26px rgba(217,104,104,.24) !important;
}

body.theme-miyashiro #modal-checkout .modal-content,
body.theme-miyashiro #modal-aviso .modal-content {
  color: #f7f8fb !important;
  background: #171c24 !important;
  border: 1px solid #394250 !important;
}

body.theme-miyashiro #modal-checkout .alert-info,
body.theme-miyashiro #modal-checkout .rifa-section-card {
  color: #f7f8fb !important;
  background: #242b35 !important;
  border-color: #3d4654 !important;
}

body.theme-miyashiro #modal-checkout .rifa-buy-btn,
body.theme-miyashiro #modal-checkout .btn-success {
  color: #fff !important;
  background: linear-gradient(135deg, #c55a5e, #e57878) !important;
  border-color: #e57878 !important;
  box-shadow: 0 12px 26px rgba(217,104,104,.24) !important;
}


/* Compra aprovada: titulos e textos gerados por pseudo-elementos. */
body.theme-miyashiro .order-approved-page .detalhes.app-card .item.container::before {
  color: #f7f8fb !important;
  -webkit-text-fill-color: #f7f8fb !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.theme-miyashiro .order-approved-page .order-instant-loss__tip strong {
  color: #e57878 !important;
  -webkit-text-fill-color: #e57878 !important;
}


/* Listas de premios: ganhadores precisam permanecer legiveis no fundo coral. */
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container .app-titulos-premiados--selected,
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container_roleta .app-titulos-premiados--selected,
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container_rasp .app-titulos-premiados--selected,
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container_box .app-titulos-premiados--selected {
  background: linear-gradient(135deg, #33252b, #472d34) !important;
  border-color: #d96868 !important;
}

body.theme-miyashiro .container.app-main.rifa-modern #cotas-container .app-titulos-premiados--selected *,
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container_roleta .app-titulos-premiados--selected *,
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container_rasp .app-titulos-premiados--selected *,
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container_box .app-titulos-premiados--selected * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.theme-miyashiro .container.app-main.rifa-modern #cotas-container .app-titulos-premiados--selected .Premiada,
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container_roleta .app-titulos-premiados--selected .Premiada,
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container_rasp .app-titulos-premiados--selected .Premiada,
body.theme-miyashiro .container.app-main.rifa-modern #cotas-container_box .app-titulos-premiados--selected .Premiada {
  background: linear-gradient(135deg, #c55a5e, #e57878) !important;
  border-color: #ef9292 !important;
}


/* Modal Top Compradores: contraste e paleta do tema. */
body.theme-miyashiro #modal-premios .modal-content {
  color: #f7f8fb !important;
  background: #171c24 !important;
  border: 1px solid #394250 !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.58) !important;
}

body.theme-miyashiro #modal-premios .modal-header {
  color: #fff !important;
  background: #171c24 !important;
  border-bottom-color: #303845 !important;
}

body.theme-miyashiro #modal-premios .btn-close {
  filter: invert(1) grayscale(1) brightness(2) !important;
  opacity: .85 !important;
}

body.theme-miyashiro #modal-premios .modal-body,
body.theme-miyashiro #modal-premios .modal-body .text-dark,
body.theme-miyashiro #modal-premios .modal-body .text-dark strong,
body.theme-miyashiro #modal-premios .modal-body .text-dark b {
  color: #f7f8fb !important;
  -webkit-text-fill-color: #f7f8fb !important;
  opacity: 1 !important;
}

body.theme-miyashiro #modal-premios .modal-body .text-muted,
body.theme-miyashiro #modal-premios .ranking-time-reference {
  color: #aeb8c8 !important;
  -webkit-text-fill-color: #aeb8c8 !important;
  opacity: 1 !important;
}

body.theme-miyashiro #modal-premios .modal-body > .btn-dark {
  color: #fff !important;
  background: linear-gradient(135deg, #33252b, #472d34) !important;
  border: 1px solid rgba(229,120,120,.42) !important;
  box-shadow: none !important;
}

body.theme-miyashiro #modal-premios .contadorsegranking {
  color: #fff !important;
  background: linear-gradient(135deg, #c55a5e, #e57878) !important;
  border-color: #e57878 !important;
}

body.theme-miyashiro #modal-premios .rifa-section-card {
  color: #fff !important;
  background: #242b35 !important;
  border: 1px solid #394250 !important;
  box-shadow: none !important;
}

body.theme-miyashiro #modal-premios .rifa-section-card,
body.theme-miyashiro #modal-premios .rifa-section-card * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}

/* Menu compacto de resultados e modais da campanha. */
body.theme-miyashiro .campaign-results-menu {
  display: grid;
  gap: 8px;
}

body.theme-miyashiro .campaign-results-button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, #b94e55, #dc6a6d);
  border: 1px solid rgba(247, 167, 167, .55);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(166, 63, 69, .18);
  font-size: .96rem;
  font-weight: 800;
  text-align: left;
  transition: transform .18s ease, filter .18s ease;
}

body.theme-miyashiro .campaign-results-button > i:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(20, 24, 32, .20);
  font-size: 1.05rem;
}

body.theme-miyashiro .campaign-results-button > i:last-child {
  justify-self: end;
  opacity: .76;
}

body.theme-miyashiro .campaign-results-button:active { transform: scale(.985); }

body.theme-miyashiro .campaign-result-modal .modal-dialog { padding: 10px; }
body.theme-miyashiro .campaign-result-modal .modal-content {
  color: #f8fafc !important;
  background: #171c24 !important;
  border: 1px solid #3a4351 !important;
  border-radius: 22px !important;
  box-shadow: 0 26px 80px rgba(0,0,0,.68) !important;
  overflow: hidden;
}

body.theme-miyashiro .campaign-result-modal .modal-header {
  min-height: 78px;
  padding: 18px 20px;
  background: #202833 !important;
  border-bottom: 1px solid #343e4b !important;
}

body.theme-miyashiro .campaign-result-modal .modal-title,
body.theme-miyashiro .campaign-result-modal .modal-title * { color: #fff !important; }
body.theme-miyashiro .campaign-result-modal .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: .9;
}

body.theme-miyashiro .campaign-result-modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.theme-miyashiro .campaign-result-modal-heading h5 {
  margin: 0;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
}

body.theme-miyashiro .campaign-result-modal-heading p {
  margin: 3px 0 0;
  color: #aeb8c8;
  font-size: .78rem;
}

body.theme-miyashiro .campaign-result-modal-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #ef8587 !important;
  background: rgba(217,104,104,.14);
  border: 1px solid rgba(217,104,104,.28);
  border-radius: 12px;
}

body.theme-miyashiro .campaign-result-modal .modal-body {
  padding: 18px;
  color: #f8fafc !important;
  background: #171c24 !important;
  max-height: min(72vh, 720px);
  overflow-y: auto;
}

body.theme-miyashiro .campaign-result-modal .text-muted,
body.theme-miyashiro .campaign-result-updated { color: #aeb8c8 !important; }

body.theme-miyashiro .campaign-result-modal .text-dark,
body.theme-miyashiro .campaign-result-modal .text-dark * { color: #f8fafc !important; }

body.theme-miyashiro .campaign-result-modal .major-minor-premium,
body.theme-miyashiro .campaign-result-modal .major-minor-premium.bg-supremo-corcinza {
  margin: 0 !important;
  color: #f8fafc !important;
  background: #171c24 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.theme-miyashiro .campaign-result-modal .major-minor-premium-head { display: none !important; }
body.theme-miyashiro .campaign-result-modal .major-minor-premium-body { padding: 0 !important; }
body.theme-miyashiro .campaign-result-modal .major-minor-mode {
  margin: 0 0 12px !important;
  padding: 14px !important;
  color: #f8fafc !important;
  background: #242b35 !important;
  border: 1px solid #394250 !important;
  border-radius: 16px !important;
}

body.theme-miyashiro .campaign-result-modal .major-minor-mode:last-child { margin-bottom: 0 !important; }
body.theme-miyashiro .campaign-result-modal .major-minor-mode-label,
body.theme-miyashiro .campaign-result-modal .major-minor-period,
body.theme-miyashiro .campaign-result-modal .major-minor-countdown,
body.theme-miyashiro .campaign-result-modal .major-minor-result-label,
body.theme-miyashiro .campaign-result-modal .major-minor-winner,
body.theme-miyashiro .campaign-result-modal .major-minor-date,
body.theme-miyashiro .campaign-result-modal .major-minor-value { color: #f8fafc !important; }
body.theme-miyashiro .campaign-result-modal .major-minor-period,
body.theme-miyashiro .campaign-result-modal .major-minor-date,
body.theme-miyashiro .campaign-result-modal .major-minor-value { color: #aeb8c8 !important; }
body.theme-miyashiro .campaign-result-modal .major-minor-result {
  color: #f8fafc !important;
  background: #171c24 !important;
  border: 1px solid #394250 !important;
  box-shadow: none !important;
}
body.theme-miyashiro .campaign-result-modal .major-minor-ticket,
body.theme-miyashiro .campaign-result-modal .major-minor-status-badge {
  color: #fff !important;
  background: linear-gradient(135deg, #c55a5e, #e57878) !important;
  border-color: #ec898b !important;
}

body.theme-miyashiro .campaign-ranking-list { display: grid; gap: 9px; }
body.theme-miyashiro .campaign-ranking-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 13px;
  color: #fff;
  background: #242b35;
  border: 1px solid #394250;
  border-radius: 14px;
}
body.theme-miyashiro .campaign-ranking-row strong { color: #ef8587; font-size: 1.15rem; }
body.theme-miyashiro .campaign-ranking-row span { font-weight: 800; }
body.theme-miyashiro .campaign-ranking-row b { color: #b7c0ce; font-size: .78rem; }
body.theme-miyashiro .campaign-result-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 92px;
  padding: 18px;
  color: #fff;
  background: rgba(217,104,104,.15);
  border: 1px solid rgba(217,104,104,.38);
  border-radius: 15px;
  font-weight: 800;
}

body.theme-miyashiro #modal-top-buyers-general .rifa-section-card {
  color: #fff !important;
  background: #242b35 !important;
  border: 1px solid #394250 !important;
}
body.theme-miyashiro #modal-top-buyers-general .rifa-section-card * { color: #fff !important; }
body.theme-miyashiro #modal-top-buyers-general .btn-dark {
  background: #242b35 !important;
  border-color: #394250 !important;
}
body.theme-miyashiro #modal-top-buyers-general .contadorsegranking {
  background: #d96868 !important;
  border-color: #e98282 !important;
}

@media (max-width: 575.98px) {
  body.theme-miyashiro .campaign-result-modal .modal-dialog { margin: 6px; padding: 0; }
  body.theme-miyashiro .campaign-result-modal .modal-header { padding: 14px; }
  body.theme-miyashiro .campaign-result-modal .modal-body { padding: 12px; max-height: 76vh; }
  body.theme-miyashiro .campaign-result-modal-heading h5 { font-size: 1.02rem; }
  body.theme-miyashiro .campaign-ranking-row { grid-template-columns: 36px 1fr; }
  body.theme-miyashiro .campaign-ranking-row b { grid-column: 2; }
  body.theme-miyashiro .campaign-result-modal .major-minor-grid { grid-template-columns: 1fr !important; }
}


/* Refinamento compacto: controles mais leves e melhor densidade no celular. */
body.theme-miyashiro .campaign-results-menu { gap: 6px; }
body.theme-miyashiro .campaign-results-button {
  min-height: 44px !important;
  height: 44px !important;
  grid-template-columns: 28px 1fr 16px;
  gap: 8px;
  padding: 6px 11px !important;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(166, 63, 69, .14);
  font-size: .84rem !important;
  font-weight: 750;
}
body.theme-miyashiro .campaign-results-button > i:first-child {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: .86rem;
}
body.theme-miyashiro .campaign-results-button > i:last-child { font-size: .72rem; }

body.theme-miyashiro .campaign-result-modal .modal-dialog { max-width: 460px; }
body.theme-miyashiro .campaign-result-modal .modal-content { border-radius: 18px !important; }
body.theme-miyashiro .campaign-result-modal .modal-header {
  min-height: 66px;
  padding: 13px 15px;
}
body.theme-miyashiro .campaign-result-modal-heading { gap: 9px; }
body.theme-miyashiro .campaign-result-modal-heading h5 { font-size: 1.02rem; }
body.theme-miyashiro .campaign-result-modal-heading p { font-size: .72rem; }
body.theme-miyashiro .campaign-result-modal-icon {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
body.theme-miyashiro .campaign-result-modal .modal-body { padding: 13px; }
body.theme-miyashiro .campaign-result-modal .major-minor-mode {
  margin-bottom: 8px !important;
  padding: 10px !important;
  border-radius: 12px !important;
}
body.theme-miyashiro .campaign-result-modal .major-minor-result {
  padding: 10px !important;
  border-radius: 11px !important;
}
body.theme-miyashiro .campaign-ranking-list { gap: 6px; }
body.theme-miyashiro .campaign-ranking-row {
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 11px;
}
body.theme-miyashiro .campaign-ranking-row strong { font-size: .94rem; }
body.theme-miyashiro .campaign-ranking-row span,
body.theme-miyashiro .campaign-ranking-row span[style] { font-size: .86rem !important; font-weight: 750; }
body.theme-miyashiro .campaign-ranking-row b { font-size: .7rem; }

body.theme-miyashiro #modal-top-buyers-general .rifa-section-card {
  margin-bottom: 6px !important;
  border-radius: 11px !important;
}
body.theme-miyashiro #modal-top-buyers-general .rifa-section-card .p-3 { padding: 8px 10px !important; }
body.theme-miyashiro #modal-top-buyers-general .rifa-section-card span[style] { font-size: .86rem !important; }
body.theme-miyashiro #modal-top-buyers-general .rifa-section-card .col-auto > div {
  width: 38px !important;
  font-size: .8rem;
}

@media (max-width: 575.98px) {
  body.theme-miyashiro .campaign-result-modal-heading h5 { font-size: .96rem; }
  body.theme-miyashiro .campaign-result-modal .modal-header { padding: 11px 12px; }
  body.theme-miyashiro .campaign-result-modal .modal-body { padding: 10px; }
}

body.theme-miyashiro .campaign-ranking-row-detailed {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}
body.theme-miyashiro .campaign-ranking-person,
body.theme-miyashiro .campaign-ranking-totals {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.theme-miyashiro .campaign-ranking-person b,
body.theme-miyashiro .campaign-ranking-totals b {
  color: #fff !important;
  font-size: .82rem !important;
  line-height: 1.15;
}
body.theme-miyashiro .campaign-ranking-person small,
body.theme-miyashiro .campaign-ranking-totals small {
  color: #aeb8c8 !important;
  font-size: .68rem !important;
  line-height: 1.15;
}
body.theme-miyashiro .campaign-ranking-totals {
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}
body.theme-miyashiro .campaign-ranking-row-detailed:first-child {
  border-color: rgba(217,104,104,.48);
  background: linear-gradient(135deg, rgba(217,104,104,.13), #242b35 58%);
}
body.theme-miyashiro .campaign-ranking-row-detailed:first-child > strong,
body.theme-miyashiro .campaign-ranking-row-detailed:first-child .campaign-ranking-totals b {
  color: #ef8587 !important;
}

@media (max-width: 380px) {
  body.theme-miyashiro .campaign-ranking-row-detailed {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 6px;
    padding-inline: 8px;
  }
  body.theme-miyashiro .campaign-ranking-person b,
  body.theme-miyashiro .campaign-ranking-totals b { font-size: .76rem !important; }
  body.theme-miyashiro .campaign-ranking-person small,
  body.theme-miyashiro .campaign-ranking-totals small { font-size: .62rem !important; }
}

/* Composição dos modais conforme a referência visual. */
body.theme-miyashiro .campaign-result-modal .modal-dialog {
  width: auto;
  max-width: 540px;
}
body.theme-miyashiro .campaign-result-modal .modal-content {
  background: #222c36 !important;
  border: 0 !important;
  border-radius: 22px !important;
}
body.theme-miyashiro .campaign-result-modal .modal-header {
  position: relative;
  min-height: 0;
  padding: 28px 28px 20px;
  background: #222c36 !important;
  border: 0 !important;
  align-items: center;
}
body.theme-miyashiro .campaign-result-modal .modal-header .btn-close {
  position: absolute;
  top: 50%;
  right: 27px;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 5px;
  transform: translateY(-50%);
}
body.theme-miyashiro .campaign-reference-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: calc(100% - 42px);
}
body.theme-miyashiro .campaign-reference-emoji {
  display: block;
  font-size: 2.7rem;
  line-height: 1;
  text-align: center;
}
body.theme-miyashiro .campaign-reference-copy h5 {
  margin: 0 0 3px;
  color: #fff !important;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.08;
}
body.theme-miyashiro .campaign-reference-copy p {
  margin: 0;
  color: #f5f7fa;
  font-size: .92rem;
  line-height: 1.42;
}
body.theme-miyashiro .campaign-reference-copy strong {
  display: block;
  margin: 1px 0;
  color: #fff;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}
body.theme-miyashiro .campaign-result-modal .modal-body {
  padding: 0 28px 26px;
  background: #222c36 !important;
}
body.theme-miyashiro .campaign-result-updated { display: none !important; }
body.theme-miyashiro #modal-top-buyers-general .modal-body > .text-dark,
body.theme-miyashiro #modal-top-buyers-general .modal-body > .btn-dark { display: none !important; }
body.theme-miyashiro .campaign-ranking-list {
  gap: 0;
  border-top: 1px dashed rgba(255,255,255,.12);
}
body.theme-miyashiro .campaign-ranking-row,
body.theme-miyashiro .campaign-ranking-row-detailed,
body.theme-miyashiro #modal-top-buyers-general .campaign-ranking-row-detailed {
  min-height: 76px;
  margin: 0;
  padding: 13px 0;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  color: #fff;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px dashed rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.theme-miyashiro .campaign-ranking-row:last-child { border-bottom: 0 !important; }
body.theme-miyashiro .campaign-ranking-row > strong {
  color: #fff !important;
  font-size: 1.13rem !important;
  font-weight: 900;
}
body.theme-miyashiro .campaign-ranking-row:first-child > strong,
body.theme-miyashiro .campaign-ranking-row:first-child .campaign-ranking-person b,
body.theme-miyashiro .campaign-ranking-row:first-child .campaign-ranking-person small,
body.theme-miyashiro .campaign-ranking-row:first-child .campaign-ranking-totals b,
body.theme-miyashiro .campaign-ranking-row:first-child .campaign-ranking-totals small {
  color: #e57878 !important;
}
body.theme-miyashiro .campaign-ranking-person b,
body.theme-miyashiro .campaign-ranking-totals b {
  font-size: .92rem !important;
  font-weight: 500;
}
body.theme-miyashiro .campaign-ranking-person small,
body.theme-miyashiro .campaign-ranking-totals small {
  color: #d4dae2 !important;
  font-size: .76rem !important;
}

body.theme-miyashiro #modal-top-buyers-general .modal-body > .rifa-section-card {
  min-height: 76px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px dashed rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
}

body.theme-miyashiro #modal-major-minor .major-minor-mode {
  margin: 0 !important;
  padding: 18px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-mode-label {
  margin: 0 0 8px;
  justify-content: center;
  color: #fff !important;
  font-size: 1.08rem;
  font-weight: 900;
}
body.theme-miyashiro #modal-major-minor .major-minor-mode:first-child .major-minor-mode-label {
  font-size: 0;
}
body.theme-miyashiro #modal-major-minor .major-minor-mode:first-child .major-minor-mode-label::after {
  content: "Resultados gerais";
  font-size: 1.08rem;
}
body.theme-miyashiro #modal-major-minor .major-minor-period {
  margin: 0 auto 12px;
  padding: 0 8px;
  text-align: center;
  font-size: .72rem;
}
body.theme-miyashiro #modal-major-minor .major-minor-countdown { margin-bottom: 12px; }
body.theme-miyashiro #modal-major-minor .major-minor-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-result {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  gap: 4px 10px;
  margin: 0;
  padding: 16px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-result::before {
  content: "1º";
  grid-row: 2 / span 3;
  align-self: center;
  color: #e57878;
  font-size: 1.45rem;
  font-weight: 900;
}
body.theme-miyashiro #modal-major-minor .major-minor-result-label {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  text-align: center;
  color: #fff !important;
  font-size: .98rem;
}
body.theme-miyashiro #modal-major-minor .major-minor-person { grid-column: 2; }
body.theme-miyashiro #modal-major-minor .major-minor-winner { color: #fff !important; font-size: .9rem; }
body.theme-miyashiro #modal-major-minor .major-minor-ticket {
  grid-column: 3;
  grid-row: 2 / span 3;
  align-self: center;
  min-width: 76px;
  min-height: 34px;
  border-radius: 10px !important;
  font-size: .9rem;
}
body.theme-miyashiro #modal-major-minor .major-minor-value,
body.theme-miyashiro #modal-major-minor .major-minor-date {
  grid-column: 2;
  font-size: .7rem !important;
}

/* Resultado de cotas no formato compacto demonstrado no vídeo WA0219. */
body.theme-miyashiro #modal-major-minor .major-minor-premium {
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-premium-head {
  display: none !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-premium-body {
  padding: 0 !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-mode {
  padding: 14px 0 0 !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-mode + .major-minor-mode {
  margin-top: 8px !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-mode-label,
body.theme-miyashiro #modal-major-minor .major-minor-mode:first-child .major-minor-mode-label {
  justify-content: flex-start;
  margin: 0 0 10px;
  font-size: .76rem !important;
  letter-spacing: .03em;
  text-transform: uppercase;
}
body.theme-miyashiro #modal-major-minor .major-minor-mode:first-child .major-minor-mode-label::after {
  content: "Geral";
  font-size: .76rem;
}
body.theme-miyashiro #modal-major-minor .major-minor-result {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 2px 10px;
  min-height: 108px;
  padding: 15px 0 !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-result::before {
  grid-column: 1;
  grid-row: 2 / span 4;
  font-size: 1.65rem;
}
body.theme-miyashiro #modal-major-minor .major-minor-result-label {
  grid-column: 1 / -1;
  justify-content: center;
  margin: 0 0 9px;
  font-size: 1rem;
  text-transform: none;
}
body.theme-miyashiro #modal-major-minor .major-minor-person {
  grid-column: 2;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  text-align: left;
}
body.theme-miyashiro #modal-major-minor .major-minor-winner {
  color: #e57878 !important;
  font-size: .82rem;
  font-weight: 800;
  text-transform: none;
}
body.theme-miyashiro #modal-major-minor .major-minor-phone,
body.theme-miyashiro #modal-major-minor .major-minor-date {
  display: block;
  grid-column: 2;
  color: #d5dbe3 !important;
  font-size: .7rem !important;
  line-height: 1.35;
}
body.theme-miyashiro #modal-major-minor .major-minor-phone::before {
  content: "Telefone: ";
  color: #e57878;
  font-weight: 800;
}
body.theme-miyashiro #modal-major-minor .major-minor-date::before {
  content: "Horário: ";
  color: #e57878;
  font-weight: 800;
}
body.theme-miyashiro #modal-major-minor .major-minor-ticket {
  grid-column: 3;
  grid-row: 2 / span 4;
  min-width: 76px;
  min-height: 32px;
  padding: 7px 11px;
  background: #de686b !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: .88rem;
}
body.theme-miyashiro #modal-major-minor .major-minor-value {
  display: none !important;
}
body.theme-miyashiro #modal-major-minor .major-minor-period {
  color: #d5dbe3 !important;
}

/* O ranking diário usa a mesma composição visual do ranking geral. */
body.theme-miyashiro #modal-top-buyers-daily .campaign-ranking-row {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px dashed rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 575.98px) {
  body.theme-miyashiro .campaign-result-modal .modal-dialog { margin: 20px; }
  body.theme-miyashiro .campaign-result-modal .modal-header { padding: 24px 20px 18px; }
  body.theme-miyashiro .campaign-result-modal .modal-header .btn-close { right: 20px; }
  body.theme-miyashiro .campaign-result-modal .modal-body { padding: 0 20px 22px; }
  body.theme-miyashiro .campaign-reference-heading { grid-template-columns: 50px minmax(0,1fr); gap: 14px; }
  body.theme-miyashiro .campaign-reference-emoji { font-size: 2.35rem; }
  body.theme-miyashiro .campaign-reference-copy h5 { font-size: 1.15rem; }
  body.theme-miyashiro .campaign-reference-copy p,
  body.theme-miyashiro .campaign-reference-copy strong { font-size: .82rem; }
  body.theme-miyashiro .campaign-ranking-row,
  body.theme-miyashiro .campaign-ranking-row-detailed {
    grid-template-columns: 42px minmax(0,1fr) auto;
    min-height: 68px;
    padding: 11px 0;
  }
}
