footer {
    padding-bottom: 4rem;
    background-color: var(--wp--preset--color--primary-1);
}

footer li::before {
    content: none;
}

footer .newsletter {
    padding: 2.5rem 2.5rem 0 2.5rem ;
    border-radius: var(--wp--custom--border-radius--small);
    box-shadow: 0px 8px 24px 10px rgba(0, 0, 0, 0.20);
    top: -30%;
}
.newsletter h3 {
    margin-bottom: 2rem;
}

input {
    border-radius: 1rem;
    border: none;
    font-family: 'Sora';
}

input.mailpoet_submit {
    color: white;
    background-color: black;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 600;   
}

footer #mailpoet_form_1 .mailpoet_form_column:not(:first-child) {
    margin-left: 2rem;
}

.newsletter .mailpoet_paragraph fieldset {
    display: grid;
    grid-template-columns: repeat(4, auto);
    column-gap: 2rem;
    grid-template-rows: 1fr 1fr;
    width: 80%;
}

.newsletter legend.mailpoet_segment_label {
    grid-column: 1 / 4;
    grid-row: span 1;
}

.newsletter label.mailpoet_checkbox_label {
    grid-row: 2;
}

footer #mailpoet_form_1 .mailpoet_paragraph.last {
    margin-bottom: 2rem;
}

/* #mailpoet_form_1 .mailpoet_checkbox {
    appearance: none;
}

#mailpoet_form_1 .mailpoet_checkbox::before {
    content: "";
    width: 1.4rem;
    height: 1.4rem;
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    transform: scale(0);
    background-color: green;
  }
   */

   footer .wp-block-group.is-layout-constrained:has(.back-to-top) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    width: 100%;
}

p.back-to-top {
    position: relative;
    text-align: center;
    margin: 0;
    writing-mode: vertical-lr;
    rotate: 180deg;
    bottom: 30%;
    font-size: var(--wp--preset--font-size--large);
}

p.back-to-top::after {
    content: '';
    position: absolute;
    bottom: -3.6rem;
    left: -0.7rem;
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    scale: 0.75;
    rotate: 180deg;
    background-image: url('data:image/svg+xml,<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M26.5545 11.484V48H20.5043V11.484L4.27753 27.576L0 23.334L23.5294 0L47.0588 23.334L42.7813 27.576L26.5545 11.484Z" fill="white"/></svg>');
}