/* Main Give button styling */

.wp-block-button[class*="is-style-give"] .wp-block-button__link {
    position: relative;
    padding-left: 60px !important;
    /* 24px left margin + image width + 12px right space */
    padding-right: 24px !important;
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 46px;
    box-sizing: border-box;
    border-radius: 100px;
    background-color: rgba(2, 78, 158, 1);
    color: rgba(255, 255, 255, 1);
}

.wp-block-button[class*="is-style-give"] .wp-block-button__link::before {
    content: "";
    position: absolute;
    left: 24px;
    /* 24px space from left edge */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('../icons/volunteer_activism.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    /* This makes the icon white */
}

.wp-block-button[class*="is-style-lesson-header"] .wp-block-button__link::before {
    content: "";
    position: absolute;
    left: 24px;
    /* 24px space from left edge */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('../icons/open_book.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    /* This makes the icon white */
}

.wp-block-button.is-style-give-outline .wp-block-button__link::before {
    filter: brightness(0) saturate(100%) invert(19%) sepia(29%) saturate(6534%) hue-rotate(199deg) brightness(95%) contrast(98%);
}

/* Make sure the button container sizes to its content */
.wp-block-button[class*="is-style-give"] {
    width: fit-content;
    display: inline-block;
}

/* Give - Outline variant */
.wp-block-button.is-style-give-outline .wp-block-button__link {
    background-color: white;
    border: 2px solid var(--wp--preset--color--tc-blue);
    color: var(--wp--preset--color--tc-blue);
}

/* Added sample dark mode classes */
.cmddark .wp-block-button.is-style-give .wp-block-button__link {
    background: #515761;
}

.cmddark .wp-block-button.is-style-give-outline .wp-block-button__link {
    background-color: transparent;
}

.cmddark .wp-block-button.is-style-give-outline .wp-block-button__link::before {
    filter: brightness(0) saturate(100%) invert(98%) sepia(9%) saturate(717%) hue-rotate(251deg) brightness(116%) contrast(100%);
}


/* Media query for screens with a maximum width of 599px */
@media (max-width: 599px) {

    .wp-block-buttons {
        flex-direction: column;
    }

    .wp-block-buttons .wp-block-button {
        width: 100%;
    }

    .wp-block-buttons .wp-block-button .wp-element-button {
        width: 100%;
        justify-content: center;
    }

    .wp-block-button[class*="is-style-give"] .wp-block-button__link::before {
        position: static;
        margin-right: 5px;
        transform: unset;
    }
}



/* element {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    padding-top: 10px;
    padding-right: 16px;
    padding-bottom: 10px;
    padding-left: 16px;
    font-size: 14pxpx;
    font-style: normal;
    font-weight: 700;
  }
  .wp-block-button.is-style-give .wp-block-button__link {
    position: relative;
    padding-left: 60px !important;
    padding-right: 24px !important;
    display: inline-flex;
    align-items: center;
    width: auto;
    box-sizing: border-box;
  } */