/*
 * KH Donation Common Styles
 * Shared between KH Donation Form and KH Donation Redirect widgets
 * Uses Elementor global CSS variables for colors
 */

.kh-donation-form 
{
    margin-bottom: 20px;
}

#donation_form
{
    max-width: 100%;
    width: 713px;
}

.kh-donation-form h2.kh-donation-form-title
{
    margin-bottom: 20px;

    font-weight: 900;
    font-size: 29px;
    line-height: 38px;
    text-align: center;
}

.kh-donation-form h3.kh-donation-form-description 
{
    margin-top: 0;
    margin-bottom: 10px;

    text-align: left;
    font-weight: 800;
    font-size: 19px;
    line-height: 25px;
}

.kh-donation-form .donate-box
{
    padding: 10px 8px;

    display: block;

    position: relative;

    font-size: 17px!important;
    line-height: 26px;

    color: #fff;

    background-color: #4872AE;

    border-radius: 4px;

    cursor: pointer;
}

.kh-donation-form .donate-box.donate-box--with-input 
{
    padding: 3px 3px 3px 8px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #fff;
}

.kh-donation-form .donate-box.donate-box--with-input input 
{
    max-width: 120px;
    height: 40px;
}

.kh-donation-form .donate-box.donate-box--with-input label 
{
    font-size: 17px;
    line-height: 26px;
    color: #fff;

    cursor: pointer;
}

.kh-donation-form .donate-box.donate-box--with-input:hover label, .is-selected .donate-box.donate-box--with-input label
{
    color: #333;
}

.kh-donation-form .donate-box:hover, .is-selected .donate-box 
{
    color: #333;
    background-color: #FFC829;
}

.kh-donation-form .donate-box__checkbox 
{
    opacity: 0;
    position: absolute;
}

.kh-donation-form .donate-list 
{
    margin-bottom: 10px;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style-type: none;

    position: relative;
}

.kh-donation-form .donate-list__item 
{
    flex-basis: calc(50% - 4px);
}

.kh-donation-form .donate-description
{
    width: 100%;

    padding: 10px;

    display: none;
    gap: 8px;
    flex-basis: 100%;
    
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    color: #333;

    border-radius: 4px;

    background-color: #FFC829;
}


.kh-donation-form .donate-description.is-active 
{
    display: flex;
}


.kh-donation-form .donate__button 
{
    padding: 12px 30px;
    
    font-size: 21px;
    line-height: 32px;
    letter-spacing: 0.4px;
    color: #fff;

    background-color: #DA1A00;

    border-radius: 10px;
}

.kh-donation-form .donate__button:hover 
{
    background-color: #91187D;
}

.donate__button svg {
    fill: inherit;
}

.kh-donation-form .form__row:not(:last-child) 
{
    margin-bottom: 10px;
}

.kh-donation-form .donate__controls 
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.kh-donation-form .donate__controls #btnDonate 
{
    display: flex;
    gap: 15px;
    align-items: center;
    text-align: left;
    white-space: normal;
}

.kh-donation-form .donate__fields 
{
    margin-bottom: 30px;
}

.kh-donation-form p:last-child 
{
    margin-bottom: 0;
}

.kh-donation-section-thanks {
    text-align: center;

    font-weight: 900;
    font-size: 29px;
    line-height: 38px;
}

.donate-list__group
{
    padding-left: 0;

    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
    gap: 8px;

    list-style-type: none;
}

.donate-list__group--single, .donate-list__group--single .donate-list__item {
    flex-basis: auto;
}

.kh-donation-form .donate-list__item.is-selected[data-has-description="1"] label:after {
    content: '';
    display: block;
    width: 0;
    height: 0;

    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);

    border-left: 5.4px solid transparent;
    border-right: 5.4px solid transparent;
    border-bottom: 5.4px solid #FFC829;
}


.kh-donation-form .accepted-cards {
    max-width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kh-donation-form .accepted-cards__item {
    width: 80px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.kh-donation-form .accepted-cards__item--visa{
    background-image: url('/wp-content/plugins/kh-gateway/public/assets/visa.svg');
}

.kh-donation-form .accepted-cards__item--mastercard {
    background-image: url('/wp-content/plugins/kh-gateway/public/assets/mastercard.svg');
}

.kh-donation-form .accepted-cards__item--maestro {
    background-image: url('/wp-content/plugins/kh-gateway/public/assets/maestro.svg');
}

@media (min-width: 1025px) {
    .kh-donation-form .donate-description 
    {
        position: absolute;
        top: calc(46px + 8px);
        /* top: calc(46px + 8px);*/
        left: 0;
    }

    .kh-donation-form .donate-list
    {
        margin-bottom: 20px;
    }

    .kh-donation-form .donate__controls 
    {
        flex-wrap: nowrap;
    }

    .kh-donation-form .accepted-cards 
    {
        width: 100%;
        flex-shrink: 1;
        flex-wrap: nowrap;
    }

    .kh-donation-form .accepted-cards .accepted-cards__item 
    {
        width: auto;
        flex: 1 1 80px;
    }

    .kh-donation-form .donate__button {
        flex-shrink: 0;
    }
}

@media (min-width: 1057px) {
    .kh-donation-form .donate-list:has(.donate-description.is-active) 
    {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .kh-donation-form .donate-list__group--single {
        width: 100%;
    }

    .kh-donation-form .donate-box.donate-box--with-input label 
    {
        flex-shrink: 0;
    }

    .kh-donation-form .donate-box.donate-box--with-input input 
    {
        max-width: none;
    }

    .kh-donation-form .donate-list__item:has(.donate-box--with-input)
    {
        flex-basis: 100%;
    }

    .kh-donation-form .donate-box--with-input 
    {
        justify-content: center;
    }
}

@media (min-width:1025px) {
    .kh-donation-form 
    {
        margin-bottom: 20px;
    }

    .kh-donation-form h2.kh-donation-form-title 
    {
        text-align: left;
    }

    .kh-donation-form .donate-list__item 
    {
        flex-basis: auto;
    }

    
    .kh-donation-form .donate__controls 
    {
        flex-direction: row;
    }

    .kh-donation-form .donate-list__group
    {
        flex-basis: auto;
    }

    .kh-donation-form .donate-list:has(.is-active)
    {
        gap: 50px 8px;
    }
}

@media (min-width: 1025px) {
    .donate-list__group {
        flex-grow: 1;
        justify-content: center;
    }

    .donate-list__group--single 
    {
        flex-grow: 0;
    }

    .donate-list__group:not(.donate-list__group--single) .donate-list__item 
    {
        flex-grow: 1;
    }
}

@media (min-width: 769px) {
    .kh-donation-form h2.kh-donation-form-title 
    {
        margin-bottom: 30px;

        font-weight: 800;
        font-size: 31px;
        line-height: 38px;
    }

    .kh-donation-form h3.kh-donation-form-description  
    {
        font-size: 21px;
        line-height: 32px;
    }
}