html {
    background-color: #F4F8EC;
}

.t667__bgimg, .t-bgimg, .t-img {
    border-radius: 10px;
}



.t706__cartwin-content {
    background-color: #F4F8EC;
    border-radius: 7px;
}


.donation {
    max-width: 440px;
    margin: auto;
    font-family: 'CirceRounded', Arial, sans-serif;
    padding: 16px;
    border: 2px solid #333333;
    border-radius: 7px;
}

.recurrent_field, .stripe_recurrent_field {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px;
}

.inputBlock {
    padding-bottom: 5px;
    text-align: center;
    display: flex;
    align-content: stretch;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: row;
    gap: 5px;
}

.confirmation {
    font-size: 13px;
    flex-direction: column;
}

.confirmation > div {
    padding-bottom: 5px;
}

.value_field label, .recurrent_field label, .stripe_recurrent_field label {
    font-size: 16px;
    cursor: pointer;
    display: block;
    padding: 10px;
    border: 2px solid #333333;
    border-radius: 5px;
    flex: 1;
    text-align: center;
}

/*input[type=text] {*/
/*    background-color: #F4F8EC;*/
/*}*/

@media (min-width: 960px) {
    .value_field label:hover, .value_field label:focus {
        background-color: #26AE4A;
        color: #f4f8ec;
        border-color: transparent;
        outline: none;
    }
}

.method_field label {
    font-size: 14px;
    cursor: pointer;
    display: block;
    padding: 10px;
    border: 2px solid #333333;
    border-radius: 5px;
}


.recurrent_field, .stripe_recurrent_field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 5px;
  padding: 0;
}

.recurrent_field label, .stripe_recurrent_field label {
  margin: 0;
  flex: 1;
  text-align: center;
  margin-bottom: 10px;
}


.check-with-label:checked + .label-for-check {
    font-weight: 600;
    background: #26AE4A;
    border-color: transparent;
    color: #f4f8ec;
}

.value_field input, .recurrent_field input, .stripe_recurrent_field input, .method_field input {
    display: none;
}

.donation input[type=text], .donation input[type=number] {
    background-color: #F4F8EC;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid #333333;
    border-radius: 5px;
    flex-grow: 1;
}

.donation input[type=number]:not(:placeholder-shown) {
    border-color: #26AE4A;
    background: #26AE4A;
    color: #f4f8ec;
    font-weight: bold;
}

input[type=text]:focus-visible, input[type=number]:focus-visible {
    border-color: #555555;
    outline-color: #555555;
}

.donation .donation_form input[type=submit] {
    color: #F4F8EC;
    font-weight: 600;
    font-size: 16px;
    border-width: 1px;
    border-radius: 7px;
    background-color: #F79024;
    border-color: transparent;
    border-style: solid;
    padding: 13px 30px;
    cursor: pointer;
    text-align: center;
    margin: auto;
    width: 240px;
}

@media (max-width: 480px) {
    .donation {
    margin: 10px;
    }
    
    .recurrent_field, .stripe_recurrent_field, .value_field {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 5px;
    }

    .recurrent_field, .stripe_recurrent_field, .value_field label {
        text-align: center;
    }

    .method_field {
        flex-direction: column;
    }

}


#custom_price_error {
  color: red;
  margin-top: 5px;
  font-size: 16px;
  display: none;
}


/*stripe buttons*/

#donation-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

#donation-buttons .donate-button {
    width: 100%;
    box-sizing: border-box;
    /*font-family: 'Roboto', Arial, sans-serif;*/
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #333333;
    border-radius: 5px;
    background-color: #f4f8ec;
    color: #333333;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    max-height: 40px;
}


.donate-button:hover, .donate-button:focus {
    background-color: #26AE4A !important;
    color: #f4f8ec !important;
    border-color: transparent !important;
    outline: none !important;
}


@media (max-width: 480px) {
    #donation-buttons {
      grid-template-columns: repeat(2, 1fr);
      /*text-align: center !important;*/
    }
    
    .donation {
        max-width: 100%;
        padding: 10px;
        margin: 10px;
    }

    .donation_form {
        font-size: 3vw; /* Уменьшаем размер шрифта в зависимости от ширины экрана */
    }

    .inputBlock {
        flex-direction: column; /* Элементы в столбик для мобильных устройств */
    }

    .value_field label, .recurrent_field label, .stripe_recurrent_field label, .method_field label {
        font-size: 3.5vw;
        padding: 8px;
    }

    .donation .donation_form input[type="text"],
    .donation .donation_form input[type="number"],
    .donation .donation_form input[type="submit"] {
        font-size: 3vw;
        padding: 8px 16px;
    }
    
    .confirmation {
        font-size: 3vw;
    }

    .confirmation label {
        padding: 8px;
    }

    .checkbox-button__input {
        transform: scale(0.8);
    }
}

.payment-system-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  
}

.payment-system-logos img {
  display: block;
  vertical-align: middle;
  max-width: 35px;
  max-height: 25px;
  object-fit: scale-down;
  margin: 5px;
}

@media (max-width: 480px) {
    .payment-system-logos img {
      max-width: 25px;
    }
}

@media (max-width: 320px) {
    .payment-system-logos img {
      max-width: 15px;
    }
}


  /* Styles for the tab menu */
  .tab-menu {
    display: flex;
    justify-content: stretch; /* Adjusted to stretch to fill the parent width */
    height: 35px;
    margin-bottom: 20px;
  }

  .tab-button {
    font-size: 14px;
    padding: 10px;
    flex: 1; /* Each button will flexibly occupy half of the available space */
    border: 2px solid #333333;
    border-radius: 5px;
    background-color: #f4f8ec; /* Default non-active tab background */
    color: #333333;
    cursor: pointer;
    /*font-family: 'Roboto', Arial, sans-serif;*/
    transition: background-color 0.3s, box-shadow 0.3s;
    align-items: center; /* Align items vertically */
    display: flex; /* Use flexbox for vertical centering */
    justify-content: center; /* Center content horizontally */

  }

  /* Remove the border in between the tabs */
  .tab-button:not(:last-child) {
    border-right: none; /* Remove the right border of the first tab */
  }

  /* Non-active tab style */
  .tab-button {
    background-color: #f4f8ec;
    color: #333333;
  }

  /* Active tab style */
  .tab-button.active {
    font-weight: bold;
    color: #f4f8ec;
    background-color: #6c757d; 
    border-color: #333333;
  }

  /* Adjustments for shared shape appearance */
  .tab-menu .tab-button:first-child {
    border-top-right-radius: 0; /* Remove top-right border radius */
    border-bottom-right-radius: 0; /* Remove bottom-right border radius */
  }

  .tab-menu .tab-button:last-child {
    border-top-left-radius: 0; /* Remove top-left border radius */
    border-bottom-left-radius: 0; /* Remove bottom-left border radius */
  }

  /* Hover and focus styles */
  .tab-button:focus,
  .tab-button:hover {
    background-color: #e2e2e2;
    outline: none;
  }

  /* Ensure the active tab doesn't change color on hover/focus */
  .tab-button.active:focus,
  .tab-button.active:hover {
    background-color: #6c757d;
  }