/* DONATE START*/

/* --- Estilos para as Novas Abas --- */
.custom-tabs-container {
    display: flex;
    justify-content: flex-start; /* Alinha as abas à esquerda */
    margin-bottom: 6px;
}

.custom-tab { /* Cada aba individual */
    display: flex; /* Para alinhar imagem e texto */
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0; /* Padding será controlado pela imagem de fundo ou dimensões */
    cursor: pointer;
    user-select: none;
    margin-right: 0px; /* Para que as bordas das imagens se toquem ou sobreponham levemente */
    width: 130px;  /* Largura da sua imagem de aba */
    height: 38px; /* Altura da sua imagem de aba */
    background-color: transparent; /* O fundo virá da imagem */
    border: none;
}

.custom-tab.active {
    z-index: 2;
    cursor: auto;
}

.custom-tab .tab-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Imagem de fundo atrás do texto */
}

.custom-tab .tab-label {
    position: relative;
    z-index: 2; /* Texto na frente */
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #5C452D; /* Cor para aba inativa */
    text-shadow: 1px 1px 0px #DDC6AF;
    pointer-events: none; /* Clique vai para a div pai */
    white-space: nowrap;
    line-height: 38px; /* Centraliza com a altura da aba */
}

.custom-tab.active .tab-label {
    font-weight: bold;
    font-size: 16px;
}

/* O JavaScript troca o src da .tab-background-image */
/* Se você quiser um efeito de hover na aba inativa: */
.custom-tab:not(.active):hover {
    filter: brightness(1.1);
}


/* 1. Esconde todos os containers de produtos por padrão */
.products-container {
    display: none;
}

/* 2. Mostra o container ativo dentro do layout NOVO usando GRID */
/* Se não for grid, pode ser 'flex'. Verifique no seu CSS original. */
#newLayoutContainer .products-container.active {
    display: grid; 
}

/* 3. Mostra o container ativo dentro do layout LEGADO usando BLOCK */
#legacyLayoutContainer .products-container.active {
    display: block;
}

.products-content-area {
    background-color: #d4c0a1;
    padding: 20px;
    border: 1px solid #7B5E3E;
    border-radius: 0 6px 6px 6px;
    margin-top: -8px;
    z-index: 1;
    position: relative;
}

.packs-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    /* position: relative; */
    /* top: -40px; */
}



.pack-image-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 5px;
    justify-content: center;
}

.pack-price {
    font-family: "Trebuchet MS", Verdana, Arial, sans-serif; /* Fonte mais moderna */
    font-weight: bold;
    color: #444;
    font-size: 0.85em;
    text-align: left;
    position: relative;
    width: 100%;
}

.pack-image {
    max-width: 80px; /* Ajuste conforme necessário */
    max-height: 80px; /* Ajuste conforme necessário */
    height: auto;
}

.pack-name {
    font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
    color: #4A3B2A; 
    margin-top: 5px;
    margin-bottom: 0px; 
    font-size: 15px; /* Aumentado */
    font-weight: bold; 
    word-break: break-word; 
    line-height: 1.35; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-coins {
    font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
    color: #604C38; 
    font-size: 13px; /* Aumentado */
    margin-bottom: 0px; 
    line-height: 1.3;
}

.details-link {
    font-family: Verdana, Arial, sans-serif;
    color: #705030; 
    text-decoration: none;
    margin-top: auto; 
    margin-bottom: 10px; 
    font-size: 12px; /* Aumentado */
    font-weight: bold;
}
.details-link:hover {
    text-decoration: underline;
    color: #503820;
}
/* Estilos dos Modais e Métodos de Pagamento (mantidos da versão anterior) */
.payment-method-button.selected { background-color: lightblue; }
#savePaymentOption { position: relative; top: 30px; right: 0px; float: right; }

#paymentMethodsContainer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#paymentModal .payment-method-button { background-color: #ffffff; padding: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ccc; border-radius: 5px; min-width: 100px; transition: background-color 0.2s ease, opacity 0.2s ease; }
#paymentModal .payment-method-button img {
    height: 30px;
    width: 110px;
    margin-bottom: 5px;
}
#paymentModal .payment-method-button span { font-size: 0.9em; }
.payment-arrow-container { 
    position: absolute; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 15px solid white; top: 130px; left: 50%; transform: translateX(-50%); z-index: 1; display: none; filter: drop-shadow(0px -2px 2px rgba(0,0,0,0.1)); 
}
#paymentModal .payment-method-button:not(.payment-method-selected) { opacity: 0.7; background-color: #f8f9fa; }
#paymentModal .payment-method-button:not(.payment-method-selected):hover { opacity: 1; background-color: #e9ecef66; }
#paymentModal .payment-method-button.payment-method-selected { opacity: 1; border-color: #007bff; box-shadow: 0 0 5px rgba(0,123,255,0.5); }
.valor-nao-editavel { color: gray; cursor: no-drop; }
.modal-confirmation-bg { border-radius: 8px; padding: 15px; margin-top: 25px; background-color: white; border: 1px solid #ced4da; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: relative; z-index: 0; }
.modal-content {
    background-image: url(images/scroll.webp);
    /* background-color: #fefefe; */
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 1100px;
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 80px;
    border-radius: var(--bs-modal-border-radius);
}
.modal-header { border-bottom: 1px solid #7e5a3c; }
.modal-header .close { font-size: 1.2rem; font-weight: bold; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .5; }
.modal-header .close:hover { color: #000; text-decoration: none; opacity: .75; }
#modalPackItems { margin-top: 40px; text-align: center; }
#modalPackItems h3 { margin-bottom: 10px; color: #555; font-size: 1.2em; }
#modalPackItems ul { list-style-type: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
#modalPackItems li { padding: 15px; border: 1px solid #d3bfa9; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; background-color: #fdfaf3; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
#modalPackItems li img { max-width: 64px; max-height: 64px; height: auto; margin-bottom: 8px; }
#modalPackItems li strong { display: block; margin-bottom: 5px; font-size: 0.95em; color: #4a3b2a; }
#modalPackItems li p { font-size: 0.8em; color: #777; margin: 0; }

/* Estilos de status e tabelas de layout (mantidos) */
.status-ball { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle;}
.status-new { background-color: #007bff; } .status-pending { background-color: #ffc107; } .status-signed { background-color: #fd7e14; }
.status-completed { background-color: #28a745; } .status-expired { background-color: #6c757d; } .status-unresolved { background-color: #dc3545; }
.status-resolved { background-color: #17a2b8; } .status-refunded { background-color: #343a40; } .status-default { background-color: #ccc; }
.linkText.active { font-weight: bold; color: #0056b3; text-decoration: underline; }
#qrCodeBox .copyButton.BigButtonText { padding: 8px 15px; font-size: 0.9em; background-color: #007bff; color: white; border: none; border-radius: 4px;}
#qrCodeBox .copyButton.BigButtonText:hover { background-color: #0056b3; }
#mercado-pago-bricks-container > div { margin: 0 auto; }
.TableShadowContainerRightTop, .TableContentAndRightShadow, .TableShadowContainer { width: 100%;}
.TableShadowRightTop { height: 18px; background-repeat: no-repeat; background-position: top right;}
.TableContentAndRightShadow { background-repeat: repeat-y; background-position: top right; padding-right: 12px; }
.TableShadowContainer { position: relative; }
.TableBottomShadow { height: 29px; background-repeat: no-repeat; background-position: bottom center; position: relative; }
.TableBottomLeftShadow, .TableBottomRightShadow { width: 25px; height: 29px; position: absolute; bottom: 0; }
.TableBottomLeftShadow { left: 0; background-repeat: no-repeat; background-position: bottom left; }
.TableBottomRightShadow { right: 0; background-repeat: no-repeat; background-position: bottom right; }

/* DONATE END */


/** ---------------------------------
 *  PROGRESS BAR
 *  ---------------------------------
 */

#ProgressBar #Headline {
  text-align: center;
  font-size: 14pt;
  font-weight: bold;
  margin-bottom: 5px;
}
#ProgressBar #MainContainer {
    position: relative;
    /* top: 10px; */
    height: 45px;
    margin-bottom: 25px;
}
#ProgressBar #BackgroundContainer {
  position: relative;
  width: 100%;
}

#ProgressBar #BackgroundContainerLeftEnd {
  position: absolute;
  float: left;
}
#ProgressBar #BackgroundContainerCenter {
  position: absolute;
  left: 0px;
  top: 0px;
  height: 17px;
  width: 100%;
}
#ProgressBar #BackgroundContainerCenterImage {
  position: relative;
  margin-left: 25px;
  margin-right: 25px;
  height: 17px;
}
#ProgressBar #BackgroundContainerRightEnd {
  position: absolute;
  right: 0px;
  top: 0px;
  float: right;
}
#ProgressBar #TubeLeftEnd {
  position: absolute;
  left: 25px;
  top: 5px;
}
#ProgressBar #TubeRightEnd {
    position: absolute;
    right: 24px;
    top: 4px;
    z-index: 0;
}
#ProgressBar .Steps {
  position: relative;
  font-size: 9px;
  float: left;
  margin-left: -1px;
}
#ProgressBar #StepsContainer1 {
  text-align: right;
  margin-left: 92px;
  margin-right: 40px;
  height: 10px;
    display: flex;
}
#ProgressBar #StepsContainer2 {
  width: 100%;
  height: 10px;
}
#ProgressBar .TubeContainer {
  position: relative;
  padding-right: 47px;
}
#ProgressBar .Tube {
    position: relative;
    left: 0px;
    width: 310px;
    top: 2px;
    height: 7px;
    background: #FFFFFF none repeat scroll 0%;
}
#ProgressBar .SingleStepContainer {
    position: absolute;
    top: -20px;
    width: 47px;
    height: 30px;
    right: -16px;
    text-align: center;
}
#ProgressBar #FirstStep .SingleStepContainer {
  left: 45px;
  width: 47px;
  position: absolute;
}
#ProgressBar .StepIcon {
    position: absolute;
    right: -3px;
    top: 10px;
    z-index: 1;
}
#ProgressBar #FirstStep .StepIcon {
  top: 11px;
  left: 0px;
}
#ProgressBar .StepText {
  top: 48px;
  position: absolute;
  width: 200px;
  right: -77px;
}


/*
  payment system
*/
.OptionsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(165px,1fr))
}

.ServiceID_Icon_Container {
  position: relative;
  width: 156px;
  height: 156px;
  float: left;
  margin: 3px
}

.ServiceID_Icon_Container_Background {
  position: absolute;
  width: 150px;
  height: 150px;
  top: 3px;
  left: 3px
}

.ServiceID_Icon_Container label {
  font-size: 8pt
}

.ServiceID_Icon {
  position: relative;
  float: left;
  width: 150px;
  height: 150px;
  text-align: center;
  background-repeat: no-repeat;
  color: #fff;
  cursor: pointer
}

.ServiceID_Icon_New {
  position: absolute;
  left: 10px;
  top: 48px;
  height: 64px;
  width: 128px
}

.ServiceID_Icon .ServiceID_Deactivated {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  z-index: 99
}


.ServiceID_Icon .ServiceID_Icon_Selected {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  z-index: 98
}

.ServiceID_Icon .ServiceIDLabelContainer {
  position: absolute;
  left: 0;
  display: table;
  top: 6px;
  height: 35px;
  width: 130px;
  margin-left: 10px;
  margin-right: 10px;
  z-index: 99
}

.ServiceID_Icon .ServiceIDLabel {
  display: table-cell;
  vertical-align: middle
}

.ServiceID_Icon .ServiceIDPriceContainer {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 140px;
  margin-left: 5px;
  margin-right: 5px;
  z-index: 99
}

.ServiceID_Icon .ServiceIDSpecialOffer {
  position: absolute;
  left: 0;
  top: -5px;
  z-index: 100
}

.ServiceID_Icon .ServiceID_Icon_Over {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/payment/serviceid_icon_over.png');
    background-repeat: no-repeat;
    background-size: cover; /* Ou 'contain', dependendo do efeito desejado */    
    pointer-events: none; /* Permite que o clique "atravesse" esta camada */
}

.ServiceID_Icon:hover .ServiceID_Icon_Over {
    display: block; /* Mostra a camada ao passar o mouse */
}

.ServiceID_Icon .ServiceID_HelperDiv {
  position: relative;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  z-index: 399
}

.ServiceID_Icon .RibbonNewProduct {
  position: absolute;
  top: -4px;
  left: -4px;
  height: 58px;
  width: 58px;
  z-index: 199
}

.ServiceID_Icon .RibbonLastChance {
  position: absolute;
  top: -4px;
  left: 96px;
  height: 58px;
  width: 58px;
  z-index: 199
}

.PMCID_Icon_Container {
  position: relative;
  width: 156px;
  height: 156px;
  float: left;
  margin: 3px
}

.PMCID_Icon_Container label {
  font-size: 8pt
}

.PMCID_Icon {
  position: relative;
  float: left;
  top: 3px;
  left: 3px;
  width: 150px;
  height: 147px;
  text-align: center;
  background-repeat: no-repeat;
  color: #fff;
  cursor: pointer
}

.PMCID_Icon .PMCID_CP_Icon {
  position: absolute;
  left: 13px;
  top: 10px;
  height: 50px;
  width: 128px
}

.PMCID_Icon .PMCID_CP_Label {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  top: 70px;
  z-index: 99;
}

.PMCID_Icon .PMCID_Icon_Selected {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 147px;
  z-index: 97
}

.PMCID_Icon .PMCID_Deactivated {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 147px;
  z-index: 99
}

.PMCID_Icon .PMCID_Icon_Over {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 147px
}

.ServiceID_Icon_Container,.PMCID_Icon_Container {
  margin-left: auto;
  margin-right: auto
}

.PermanentDeactivated {
  position: absolute;
  left: 0;
  z-index: 400
}

.PermanentDeactivated .PMCID_Deactivated {
  position: relative;
  left: 0;
  width: 150px
}

.PermanentDeactivated .ServiceID_Deactivated {
  position: relative;
  left: 0;
  width: 150px
}

.PMCID_QuicknessIndicator {
  position: absolute;
  width: 150px;
  height: 55px;
  bottom: 1px;
  font-size: 8pt;
  z-index: 98
}

.PMCID_QuicknessIndicatorLabelContainer {
  position: absolute;
  display: table;
  height: 40px;
  width: 130px;
  margin-top: 84px;
  margin-left: 10px;
  color: #cccc
}

.PMCID_QuicknessIndicatorLabel {
  display: table-cell;
  vertical-align: middle
}
#confirmSelectionButton {
  border: none;
    background-size: 135px 26px;
    background-repeat: no-repeat;
    position: relative;
    width: 138px;
    height: 28px;
    cursor: pointer;
    z-index: 10;
    background-image:url(./images/buttons/sbutton.gif);
}
#confirmSelectionButton:hover {
  background-image:url(./images/buttons/sbutton_over.gif);
}

/* Estilo para quando o botão está desativado */
#confirmSelectionButton:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background-image:url(./images/buttons/sbutton_grey.png);
  color: #ccc;
}

.confirmButtonText {    
    position: relative;
    top: -1px;
    color: #ffd18c;
    text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, 1px 0 0 #000, 1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000;
}




/* 1. Define o tamanho e a aparência base do card */
.pack-card {
    position: relative; /* Essencial para posicionar o ícone de seleção dentro dele */
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 188px; /* Diminui a largura máxima do card */
    min-height: 190px; /* Garante uma altura mínima para consistência */
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
    overflow: hidden; /* Garante que o ícone de seleção não ultrapasse as bordas arredondadas */
    transition: transform 0.2s ease-in-out;
}

.pack-card:hover {
    transform: translateY(-2px); /* Efeito sutil ao passar o mouse */
}

/* 2. Corrige o posicionamento do ícone de seleção */
.pack-card .ServiceID_Icon_Selected {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;  /* Faz o ícone cobrir toda a largura do card */
    height: 100%; /* Faz o ícone cobrir toda a altura do card */
    background-repeat: no-repeat;
    z-index: 1; /* Coloca o ícone acima do fundo do card... */
}

/* 3. Garante que o conteúdo do card (imagem, texto) fique visível sobre o ícone de seleção */
.pack-card > * {
    position: relative;
    z-index: 2;
}

/* --- Ajustes no conteúdo interno do card (Opcional, mas recomendado) --- */
.pack-card .pack-image-container {
    height: 80px; /* Altura fixa para o container da imagem */
    margin-bottom: 8px;
}

.pack-card .pack-image {
    max-height: 100%; /* Garante que a imagem não ultrapasse o container */
}

.pack-card .pack-name {
    font-size: 14px; /* Ajusta o tamanho da fonte */
    text-align: center;
}

.pack-card .pack-coins {
    font-size: 12px;
}