/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.d-none {
    display: none !important;
}

.boycott-pledge-form-message {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #000;
    background-color: #ccc;
    border-radius: 0.3rem;
}

.boycott-pledge-form-message.success {
    border-color: #192319;
    background-color: #bec9be;
}

.boycott-pledge-form-message.error {
    border-color: #3c1f1f;
    background-color: #d5c7c7;
}

.boycott-pledge-form-message .share-link-in-message {
    text-decoration: underline;
    font-weight: bold;
}

form.boycott-pledge-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

form.boycott-pledge-form .form-group {
    margin-bottom: 0.3rem;
    flex-basis: 33%;
    display: flex;
    align-items: center;
    justify-content: stretch;
}

form.boycott-pledge-form .form-group.form-buttons {
    flex-basis: 100%;
    width: 100%;
    text-align: right;
    justify-content: end;
    align-items: center;
}

@media screen and (max-width: 768px) {
    form.boycott-pledge-form .form-group {
        flex-basis: 49%;
    }
    form.boycott-pledge-form .form-group.form-buttons {
        flex-basis: 49%;
        text-align: left;
        justify-content: stretch;
    }
}

form.boycott-pledge-form .form-group.form-buttons button {
    min-width: 33%;
    margin-left: 0.3rem;
}

@media screen and (max-width: 768px) {
    form.boycott-pledge-form .form-group.form-buttons button {
        min-width: 100%;
    }
}

form.boycott-pledge-form .form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.1rem;
}

form.boycott-pledge-form .form-group .form-control {
    width: 100%;
    padding: 0.5rem;
    font-size: var(--wp--preset--font-size--medium);
    font-family: inherit;
    border: 1px solid;
    border-radius: 0.2rem;
    box-shadow: none;
}

form.boycott-pledge-form input, form.boycott-pledge-form textarea {
    font-size: var(--wp--preset--font-size--medium) !important;
    font-family: inherit;
    border: 1px solid;
    border-radius: 0.2rem;
    box-shadow: none !important;
}

.boycott-pledge-form input:focus, .boycott-pledge-form textarea:focus {
    border-color: var(--wp--preset--color--contrast) !important;
    box-shadow: 0 0 0 1px var(--wp--preset--color--contrast), 0px 1px 2px rgba(0, 0, 0, 0.15) !important;
    line-height: 1.3;
}

form.boycott-pledge-form .button[type="submit"] {
    border-radius: 0.2rem;
    border: none !important;
    text-shadow: none !important;
    background: var(--wp--preset--color--contrast) !important;
    color: var(--wp--preset--color--base) !important;
}

form.boycott-pledge-form .button[type="submit"]:hover {
    background-color: var(--wp--preset--color--contrast-2) !important;
}

ul.pledge-list {
    list-style-type: none;
    padding: 0;
}

ul.pledge-list li {
    margin-bottom: 0.2rem;
    padding: 0.1rem 0;
}
