.wcrsvp-form {
    margin: 1rem 0;
}

.wcrsvp-form.wcrsvp-form--hidden {
    display: none;
}

.wcrsvp-row {
    margin-bottom: 1.5rem;
}

.wcrsvp-row label {
    display: block;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: .25rem;
    color: var(--e-global-color-primary);
    font-family: var(--e-global-typography-secondary-font-family), sans-serif;
}

.wcrsvp-form label[for='wcrsvp_message'] {
    margin-bottom: 10px;
}

.wcrsvp-row input,
.wcrsvp-row select,
.wcrsvp-row textarea {
    width: 100%;
    padding: .5rem;
}

.wcrsvp-error {
    color: #ed3d3d;
    margin-top: 10px;
    font-weight: 400;
}

#wcrsvp-messages .wcrsvp-error {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #ed3d3d;
    background-color: transparent;
}

#wcrsvp-messages .wcrsvp-success {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-size: 2rem;
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

.wcrsvp-alert.after-deadline {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-size: 2rem;
    margin-bottom: 50px;
    font-family: var(--e-global-typography-secondary-font-family), sans-serif;
}

#wcrsvp-messages a.button {
    margin-top: 20px;
    display: block;
    width: 100%;
    font-size: 1.2rem;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    color: #4C0044;
    border: 2px solid #4C0044;
    transition: .2s;
    background-color: transparent;
}

#wcrsvp-messages a.button:hover {
    color: white;
    background-color: #4C0044;
}

.wcrsvp-form .wcrsvp-consent-wrapper {
    display: inline-flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.wcrsvp-form .wcrsvp-consent-wrapper .checkbox {
    display: table-cell;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
}

.wcrsvp-form .wcrsvp-consent-wrapper label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    font-size: 1rem;
    color: var(--e-global-color-primary);
}

.wcrsvp-form .wcrsvp-consent-wrapper label span {
    display: inline-block;
    position: relative;
    background-color: transparent;
    width: 25px;
    height: 25px;
    transform-origin: center;
    border: 2px solid var(--e-global-color-primary);;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 5px;
    transition: background-color 150ms 200ms, transform 350ms cubic-bezier(0.78, -1.22, 0.17, 1.89);
}

.wcrsvp-form .wcrsvp-consent-wrapper label span:before {
    content: "";
    width: 0px;
    height: 2px;
    border-radius: 2px;
    background: var(--e-global-color-primary);;
    position: absolute;
    transform: rotate(45deg);
    top: 10px;
    left: 6px;
    transition: width 50ms ease 50ms;
    transform-origin: 0% 0%;
}

.wcrsvp-form .wcrsvp-consent-wrapper label span:after {
    content: "";
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--e-global-color-primary);;
    position: absolute;
    transform: rotate(305deg);
    top: 14px;
    left: 8px;
    transition: width 50ms ease;
    transform-origin: 0% 0%;
}

.wcrsvp-form .wcrsvp-consent-wrapper label:hover span:before {
    width: 5px;
    transition: width 100ms ease;
}

.wcrsvp-form .wcrsvp-consent-wrapper label:hover span:after {
    width: 10px;
    transition: width 150ms ease 100ms;
}

.wcrsvp-form .wcrsvp-consent-wrapper input[type=checkbox] {
    display: none;
}

.wcrsvp-form .wcrsvp-consent-wrapper input[type=checkbox]:checked+label span {
    background-color: var(--e-global-color-primary);;
    transform: scale(1.25);
}

.wcrsvp-form .wcrsvp-consent-wrapper input[type=checkbox]:checked+label span:after {
    width: 10px;
    background: #fff;
    transition: width 150ms ease 100ms;
}

.wcrsvp-form .wcrsvp-consent-wrapper input[type=checkbox]:checked+label span:before {
    width: 5px;
    background: #fff;
    transition: width 150ms ease 100ms;
}

.wcrsvp-form .wcrsvp-consent-wrapper input[type=checkbox]:checked+label:hover span {
    background-color: var(--e-global-color-primary);;
    transform: scale(1.25);
}

.wcrsvp-form .wcrsvp-consent-wrapper input[type=checkbox]:checked+label:hover span:after {
    width: 10px;
    background: #fff;
    transition: width 150ms ease 100ms;
}

.wcrsvp-form .wcrsvp-consent-wrapper input[type=checkbox]:checked+label:hover span:before {
    width: 5px;
    background: #fff;
    transition: width 150ms ease 100ms;
}

/*=========== Style variants ===========*/

/* Minimal */
.wcrsvp-form.wcrsvp-style-minimal {
    border: 0;
    box-shadow: none;
}

.wcrsvp-form.wcrsvp-style-minimal input,
.wcrsvp-form.wcrsvp-style-minimal select {
    outline: none;
    border: none;
    border-radius: 0;
    background-color: transparent;
    border-bottom: 2px solid var(--e-global-color-primary);
}

.wcrsvp-form.wcrsvp-style-minimal textarea {
    outline: none;
    border-radius: 5px;
    border: 2px solid var(--e-global-color-primary);
    background-color: transparent;
}

.wcrsvp-form.wcrsvp-style-minimal button[type='submit'] {
    color: white;
    background: var(--e-global-color-primary);
    padding: 10px 30px;
    font-size: 1.4rem;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    border-radius: 50px;
    border-color: var(--e-global-color-primary);
}

@media (max-width: 768px) {
    .wcrsvp-form.wcrsvp-style-minimal button[type='submit'] {
        width: 100%;
    }
}

/* Elegant */
.wcrsvp-form.wcrsvp-style-elegant {
    border-left: 4px solid #d4af37;
    padding-left: 1rem;
}