:root {
    --field-border: 1px solid #EEEEEE;
    --accent-color: #E31937;
    --sidebar-color: #F1F1F1;
    --secondary-text: #aaaaaa;
    --radius-sm: .25em;
    --radius-md: .50em;
}

:root {
    --jack-red: #E31937;
    --jack-red-2: #AB121C;
    --jack-purple: #8246AF;
    --jack-purple-2: #582C83;
    --jack-warm-gray: #EDECE6;
    --jack-black: #2D2926;
    --jack-body-color: #EEEDE7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-fill {
    display: flex;
    flex: 1 1;
}

.flex-vertical {
    display: flex;
    flex-direction: column;
}

.flex-vertical-center {
    display: flex;
    align-items: center;
}

.flex-vertical-center>img {
    max-width: 30%;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.flex-between>strong {
    margin-left: 20px;
    text-align: end;
}

.p-sm {
    padding: .5em;
}

.pl-sm {
    padding-left: .5em;
}

.pr-sm {
    padding-right: .5em;
}

.pb-sm {
    padding-bottom: .5em;
}

.p-md {
    padding: 1em;
}

.pb-md {
    padding-bottom: 1em;
}

.p-lg {
    padding: 2em;
}

.m-md {
    margin: 1em;
}

.size-md {
    font-size: .85em;
}

.size-lg {
    font-size: 1.5em;
}

.size-xl {
    font-size: 2em;
}

.half-width {
    width: 50%;
}

.pointer {
    cursor: pointer;
}

.uppercase {
    text-transform: uppercase;
}

.ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
}

.f-main-color {
    color: var(--accent-color);
}

.f-secondary-color {
    color: var(--secondary-text);
}

.b-main-color {
    background: var(--accent-color);
}

.numbers::-webkit-outer-spin-button,
.numbers::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.screen {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
    background: var(--jack-body-color);
}

.popup {
    position: relative;
    width: 65%;
    height: 80%;
    background: #FFFFFF;
    overflow-x: hidden;
    overflow-y: auto;
}

.popup .close-btn {
    position: absolute;
    right: 0;
    top: 0;
    background: #FCFCFC;
    border-bottom-left-radius: var(--radius-sm);
    transition: background-color .25s ease-in-out;
}

.popup .close-btn:hover {
    background: #EF5350;
}

.header {
    padding-bottom: 1em;
}

.sidebar {
    width: 16.5em;
    padding-left: 2em;
    padding-top: 5em;
    min-height: 41em;
}

.header .title {
    font-size: 1.2em;
}

.header .title span {
    font-weight: 300;
}

.card-data>div {
    padding-bottom: 1.5em;
}

.card-data>div:first-child {
    padding-top: 1.5em;
}

.card-property-title {
    display: flex;
    flex-direction: column;
    flex: 1 1;
    margin-right: 0.5em;
}

.card-property-title strong {
    padding-bottom: .5em;
    font-size: .85em;
}

.card-property-title span {
    color: var(--secondary-text);
    font-size: .75em;
}

.card-property-value {
    flex: 1 1;
}

.card-number {
    background: #fafafa;
    border: var(--field-border);
    border-radius: var(--radius-md);
    padding: .5em 1em;
}

.card-number-field * {
    line-height: 1;
    margin: 0;
    padding: 0;
}

.card-number-field input {
    width: 3em;
    height: 100%;
    padding: .5em 0;
    margin: 0 .75em;
    border: none;
    color: #888888;
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-weight: 500;
}

.timer span {
    background: #311B92;
    color: #FFFFFF;
    width: 1.2em;
    padding: 4px 0;
    display: inline-block;
    text-align: center;
    border-radius: var(--radius-sm);
}

.timer span+span {
    margin-left: 2px;
}

.timer em {
    font-style: normal;
}

.action button {
    padding: 1.1em;
    width: 100%;
    height: 100%;
    font-weight: 600;
    font-size: 1em;
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    transition: background-color .2s ease-in-out;
}

.action button:hover {
    background: #000000;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 3em;
    overflow: hidden;
    border: var(--field-border);
    border-radius: var(--radius-md);
}

.input-container input,
.input-container i {
    line-height: 1;
}

.input-container input {
    flex: 1 1;
    height: 100%;
    width: 100%;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 800;
    font-size: .85em;
}

.input-container input:focus {
    background: #E3F2FD;
    color: #283593;
}

.input-container input::placeholder {
    color: #ddd;
}

.input-container input::-webkit-outer-spin-button,
.input-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-container i {
    position: absolute;
    right: 0.5em;
}

.purchase-section {
    position: relative;
    overflow: visible;
    padding: 0 1em 1em 1em;
    background: var(--sidebar-color);
    border-top-left-radius: .8em;
    border-top-right-radius: .8em;
}

.purchase-section:before {
    content: '';
    position: absolute;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    left: -0.8em;
    bottom: -0.8em;
    background: #FFFFFF;
}

.purchase-section:after {
    content: '';
    position: absolute;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    right: -0.8em;
    bottom: -0.8em;
    background: #FFFFFF;
}

.card-mockup {
    position: relative;
    margin: -5em 1em 1.5em 1em;
    padding: 1.5em 1.2em;
    height: 15em;
    border-radius: var(--radius-md);
    background: #FFFFFF;
    box-shadow: 0 .5em 1em .125em rgba(0, 0, 0, 0.1);
}

.card-mockup:after {
    content: '';
    position: absolute;
    width: 25%;
    top: -.2em;
    left: 37.5%;
    height: .2em;
    background: var(--accent-color);
    border-top-left-radius: .2em;
    border-top-right-radius: .2em;
}

.card-mockup:before {
    content: '';
    position: absolute;
    top: 0;
    width: 25%;
    left: 37.5%;
    height: 0.5em;
    background: #2962ff36;
    border-bottom-left-radius: 0.2em;
    border-bottom-right-radius: 0.2em;
    box-shadow: 0 2px 15px 5px #2962ff4d;
}

.purchase-props {
    margin: 0;
    padding: 0;
    font-size: .8em;
    width: 100%;
}

.purchase-props li {
    width: 100%;
    line-height: 2.5;
}

.purchase-props li span {
    color: var(--secondary-text);
    font-weight: 600;
}

.separation-line {
    border-top: 1px dashed #aaa;
    margin: 0 .8em;
}

.total-section {
    position: relative;
    overflow: hidden;

    padding: 1em;
    background: var(--sidebar-color);
    border-bottom-left-radius: .8em;
    border-bottom-right-radius: .8em;
}

.total-section:before {
    content: '';
    position: absolute;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    left: -0.8em;
    top: -0.8em;
    background: #FFFFFF;
}

.total-section:after {
    content: '';
    position: absolute;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    right: -0.8em;
    top: -0.8em;
    background: #FFFFFF;
}

.total-label {
    font-size: 0.8em;
    padding-bottom: 0.5em;
}

.total-section strong {
    font-size: 1.5em;
    font-weight: 800;
}

.total-section small {
    font-weight: 600;
}

/* From Uiverse.io by satyamchaudharydev */
.abtn {
    --primary-color: #f48d2e;
    --secondary-color: #fff;
    --hover-color: #111;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    border: 0;
    border-radius: 10px;
    color: var(--secondary-color);
    padding: 1em 1.8em;
    background: var(--primary-color);
    display: flex;
    transition: 0.2s background;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
}

.abtn .arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.abtn .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    background: var(--primary-color);
    height: var(--arrow-stroke);
    position: relative;
    transition: 0.2s;
}

.abtn .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    display: inline-block;
    top: -3px;
    right: 3px;
    transition: 0.2s;
    padding: 3px;
    transform: rotate(-45deg);
}

.abtn:hover {
    background-color: var(--hover-color);
}

.abtn:hover .arrow {
    background: var(--secondary-color);
}

.abtn:hover .arrow:before {
    right: 0;
}

@keyframes moveLeft {
    0% {
        display: none;
        transform: translateX(0);
    }

    100% {
        transform: translateX(-750px);
        display: none;
    }
}

@keyframes moveRight {
    0% {
        transform: translateX(-750px);
    }

    100% {
        transform: translateX(0px);
    }
}

@media (max-width: 600px) {

    /* Ajustes generales */
    body {
        font-size: 12px;
    }

    .popup {
        width: 90%;
        padding: 1em;
    }

    .sidebar {
        width: 100%;
        padding: 1em;
    }

    .header .title {
        font-size: 1em;
    }

    /* Ajustes en las tarjetas (cards) */
    .card-mockup {
        margin: 1em 0;
        padding: 1em;
        height: auto;
    }

    .purchase-section,
    .total-section {
        padding: 0.5em;
        margin: 0.5em 0;
    }

    .card-property-title,
    .card-property-value {
        font-size: 0.75em;
    }

    .action button {
        padding: 0.8em;
        font-size: 0.9em;
    }

    /* Ajustes en la lista de propiedades de compra */
    .purchase-props li {
        line-height: 2;
        font-size: 0.75em;
    }

    /* Flexibilidad en el contenedor para adaptarse a la pantalla */
    .flex {
        flex-direction: column;
    }

    /* Ajuste de tamaños */
    .size-lg {
        font-size: 1.2em;
    }

    .size-xl {
        font-size: 1.5em;
    }

    /* Ajuste de la imagen y otros elementos */
    .half-width {
        width: 100%;
    }

    .total-section strong {
        font-size: 1.2em;
    }

    .timer span {
        width: 1em;
        padding: 3px 0;
    }

    .abtn {
        padding: 0.8em;
        font-size: 0.9em;
    }
}

/*Custom sweetAlert*/
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
    background-color: var(--accent-color) !important;
}

.swal2-popup {
    border-radius: 0px !important;
}

.logo {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.logo>svg {
    width: 200px;
    height: 60px;
}