:root {
    --body-color: #4B4B4B;
    --accent-color: #009881;
    --border-radius: 0.375rem;
    --y-padding: 1rem;
    --card-padding: 1rem;
    --card-border-radius: 0.5rem;
}

*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.375rem;
    color: var(--body-color);
    background: #F3F3F3;
}

strong {
    font-weight: 600;
}

address {
    font-style: inherit;
}

button {
    font-family: inherit;
}

ul, ol {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

a {
    color: #009881;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.container-header {
    display: flex;
    width: 100%;
    gap: 1rem;
    padding: 0 1rem 2rem;
    justify-content: center;
    align-items: center;
}
.container-header h3 {
    font-size: 1.375rem;
    line-height: normal;
    font-weight: 600;
    text-align: left;
    color: white;
}

/* TODO: target it by class .main-content */
main {
    padding: 1rem;
    min-height: 0;
    flex: 1;
}

.footer-section-style {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-top: auto;
    padding-bottom: 1rem;
}

.footer-section-style a:link {
    color: #009881;
    font-size: .875rem;
    font-weight: 600;
}

.footer-section-style a:visited {
    color: #009881;
    font-size: .875rem;
}

.footer-section-style span {
    font-size: .875rem;
    color: #009881;
}

.main-footer {
    display: flex;
    flex: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-header {
    background: #57595F;
    min-height: 10rem;
    flex: 0;
    display: flex;
    position: relative;
    z-index: -1;
}

.app-version {
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    color: white;
    opacity: 0.5;
}

.logo {
    cursor: pointer;
}

.card {
    margin: -4rem auto 0;
    max-width: 600px;
    filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.16));
}
.card-header {
    padding: 2.75rem var(--card-padding) 0;
    background: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5rem;
    text-align: center;
}
.card-body {
    padding: var(--card-padding);
    padding-bottom: 2.75rem;
    background: white;
    height: 100%;
    min-height: 0   ;
}


.card-footer {
    padding: var(--card-padding);
    border-radius: 0  0 var(--card-border-radius) var(--card-border-radius);
    background-color: #F3F3F3;
    margin-top: auto;
}

.card-footer .bon-btn {
    height: 48px;
}


.card.card-page {
    height: calc(100% + 4rem);
    display: flex;
    flex-direction: column;
}
.card.card-page .card-header {
    padding: var(--card-padding);
}
.card.card-page .card-body {
    padding: var(--card-padding);
    overflow-y: auto;
}
.card .card-body:first-child {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}
.card .card-body:last-child {
    border-bottom-right-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}


.ticket-decors .card-header::after {
    content: "";
    height: 1px;
    background: var(--body-color);
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    opacity: 0.3;
}
.ticket-decors .card-header {
    --mask-btm: radial-gradient(11px at 11px 100%,#0000 98%,#000) -11px;
    -webkit-mask: var(--mask-btm);
    mask: var(--mask-btm);
}
.ticket-decors .card-body {
    --mask-top: radial-gradient(11px at 11px 0,#0000 98%,#000) -11px;
    -webkit-mask: var(--mask-top);
    mask: var(--mask-top);
}



.sub-title {
    font-size: 1.125rem;
    color: #4B4B4B;
}

.bon-btn {
    border-radius: var(--border-radius);
    width: 100%;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    border: none;
    outline: none;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    padding: 0.875rem var(--y-padding);
    font-family: inherit;
}

.bon-btn .icon + .label {
    margin-left: 0.875rem;
}

.bon-btn-primary {
    color: white;
    background: var(--accent-color);
}

.bon-btn-light {
    color: var(--accent-color);
    background: white;
}

.bon-btn-primary.upper {
    text-transform: uppercase;
}

.bon-btn-group {
    display: flex;
    gap: 1px;
    background: #81CBC0;
    border-radius: calc(var(--border-radius) + 2px);
}
.bon-btn-group .bon-btn {
    border-radius: 0;
}
.bon-btn-group .bon-btn:first-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.bon-btn-group .bon-btn:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.bon-btn-group .bon-btn-icon {
    flex: 1 ;
}

.bon-form-group {
    margin-top: 1.5rem;
}

.bon-form-control {
    width: 100%;
    border-radius: var(--border-radius);
    padding: 0.75rem var(--y-padding) 0.875rem;
    font-size: 1rem;
    font-weight: 500;
    color: #4B4B4B;
    border: 1px solid #707070;
    outline: 0 solid rgba(75, 75, 75, 0.3);
    transition: outline ease-in-out 150ms;
}
.bon-form-control:focus {
    outline: 3px solid rgba(75, 75, 75, 0.3);
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: rgba(75, 75, 75, 0.7);
}
::-moz-placeholder { /* Firefox 19+ */
    color: rgba(75, 75, 75, 0.7);
}
:-ms-input-placeholder { /* IE 10+ */
    color: rgba(75, 75, 75, 0.7);
}
:-moz-placeholder { /* Firefox 18- */
    color: rgba(75, 75, 75, 0.7);
}


.bon-alert {
    border-radius: var(--border-radius);
    padding: 0.75rem var(--y-padding) 0.875rem;
    font-weight: 500;
    margin-top: 1.5rem;
    display: none;
}

.bon-alert.visible {
    display: block;
}

.bon-alert-error {
    border: 1px solid #AD0202;
    color: #AD0202;
    background-color: rgba(173, 2, 2, 0.10);
}

.circular-progress {
    --loading-thickness: 2px;
    width: 17px;
    height: 17px;
    border: var(--loading-thickness) solid #57595f;
    border-radius: 50%;
    position: relative;
    transform: rotate(45deg);
}

.circular-progress::before {
    content: "";
    position: absolute;
    inset: calc(var(--loading-thickness) * -1);
    border-radius: 50%;
    border: var(--loading-thickness) solid #ffffff;
    animation: circular-progress-anim 5s linear forwards;
}

@keyframes circular-progress-anim {
    0% {
        clip-path: polygon(50% 50%,0 0,0    0,0    0   ,0    0   ,0    0   );
    }

    25% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 0   ,100% 0   ,100% 0   );
    }

    50% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);
    }

    75% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0    100%,0    100%);
    }

    100% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0    100%,0    0   );
    }
}


@media screen and (max-height: 666px) {
    .kassen-bon .content-wrapper {
        height: auto !important;
    }
}