/****************************
Global
****************************/

:root {
    --black: #231F20;
    --disabled: #989898;
    --primary: #800000;
    --secondary: #982B1C;
    --green: #DAD4B5;
    --baige: #F2E8C6;
}

*,
::before,
::after {
    box-sizing: border-box;
    font-feature-settings: "lnum" 1;
}


body {
    color: var(--black);
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-variation-settings: "wdth" 100;
    margin: 0;
    background-color: #FFFFFF;
}

body.noScroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
button,
select,
textarea,
optgroup {
    background-color: transparent;
    border: none;
    color: inherit;
    display: block;
    font: inherit;
    margin: 0;
    text-align: left;
    width: 100%;
}

input,
select,
textarea {
    border: 1px solid lightgray;
    padding: 10px;
}

button {
    cursor: pointer;
}

textarea {
    resize: none;
}

img,
picture,
video {
    display: block;
    height: auto;
    width: 100%;
}

dialog {
    background-color: rgba(0, 0, 0, 0);
    border: none;
    display: none;
    height: 100%;
    left: 0;
    max-height: none;
    max-width: none;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
}

dialog[open] {
    display: flex;
}

dialog::backdrop {
    animation: backdrop-vanish 0.3s ease;
    background-color: rgba(0, 0, 0, 0);
}

dialog[open]::backdrop {
    background-color: rgba(0, 0, 0, 0.3);
}

@keyframes backdrop-vanish {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/****************************
Button
****************************/

.button {
    text-align: center;
    appearance: none;
    cursor: pointer;
    display: block;
    width: fit-content;
    transition: .3s ease;
    background-color: var(--primary);
    color: white;
    padding: 9px 30px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 27px;
    font-size: 17px;
}

.button:disabled {
    background-color: var(--disabled);
}

.button:hover {
    background-color: var(--secondary);
}

.button.center {
    margin: auto;
}

.button.loading {
    color: transparent;
    pointer-events: none;
    position: relative;
}

.button.loading::after {
    animation: loading 1s ease infinite;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top-color: #FFF;
    bottom: 0;
    content: "";
    height: 22px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 22px;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

@media (max-width: 800px) {
    .button {
        max-width: none;
    }
}

/*****************************
 Inputs
 */

.input,
.textarea {
    display: block;
    padding: 15px 10px;
    border: 2px solid lightgray;
    width: 100%;
    border-radius: 5px;
    transition: 0.3s;
}


.input:focus,
.textarea:focus {
    border-color: var(--black);
}

.textarea {
    resize: none;
}


/***************************
Swal
 ****************************/

.swal2-popup {
    border-radius: 10px !important;
    overflow: hidden !important;
}

.swal2-select {
    border: 2px solid var(--primary) !important;
}

.swal2-confirm,
.swal2-cancel {
    text-align: center;
}

.swal2-confirm:not([style*=background]) {
    background-color: var(--primary) !important;
}

.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgb(197 148 108 / 50%) !important;
}

.swal2-loader {
    border-color: var(--primary) rgba(0, 0, 0, 0) var(--primary) rgba(0, 0, 0, 0) !important;
}