* {
    box-sizing: border-box;
}

html {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: "Albert Sans", Sans-serif;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#ccCont {
    height: 100%;
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 10em;
    margin-bottom: 5em;
}

#main-content {
    position: relative;
}

#main-content,
#flash-messages {
    max-width: 35em;
    min-width: 30em;
}

#ccCont form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.3em;
    border: 1px solid lightgray;
    padding: 2em;
    border-radius: 0.5em;
    width: 100%;
}

#ccCont form .form-item {
    display: flex;
    justify-items: center;
    flex-direction: column;
    gap: 0.5em;
}

#ccCont form .form-item label {
    font-weight: bolder;
}

#top-panel {
    padding: 1em 2em;
    display: flex;
    gap: 0.7em;
    background-color: #bfd630;
    color: white;
    text-decoration: none;
    font-size: small;
    position: relative;
    z-index: 1;
    height: 3.5em;
    justify-content: space-between;
}

#panel-social {
    display: flex;
    align-items: center;
}

#panel-social .text-heading {
    font-size: 14px;
    font-weight: 400;
}

#panel-social,
#panel-social * {
    max-height: 100%;
    margin: 0;
    padding: 0;
    font-size: medium;
}

#panel-social ul {
    list-style-type: none;
}

#panel-social .elementor-social-icons-wrapper.elementor-grid {
    display: flex;
    gap: 1.3em;
    margin-left: 0.8em;
}

#top-panel a {
    color: white;
    text-decoration: none;
}

#top-panel>a {
    display: flex;
    align-items: center;
}

#top-panel svg {
    height: 1em;
    fill: white;
}

.action-button-top-middle {
    color: white;
    text-decoration: none;
    font-weight: bolder;
}

div:has( > .action-button-top-middle) {
    display: flex;
    align-items: center;
}

#top-panel #send-invoice {
    color: green;
    font-size: large;
}

#panel-user-info {
    display: flex;
    gap: 0.7em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#top-panel div:has( > #edit-profile-button) {
    display: flex;
    align-items: center;
}

form input[type=submit] {
    font-size: medium;
    font-weight: 500;
}

.go-to-alt {
    text-align: center;
    font-size: small;
}

#flash-messages {
    position: absolute;
    bottom: calc(100% + 1em);
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    gap: 0.3em;
    flex-direction: column;
}

#flash-messages>* {
    text-align: center;
    border: 1px solid lightgray;
    border-radius: 0.4em;
    padding: 0.3em;
    position: relative;
}

#flash-messages>#messages-etc {
    border: none;
}

#flash-messages>#messages-etc:not(:nth-last-child(n+5)) {
    display: none;
}

#flash-messages>:nth-last-child(n+4):not(#messages-etc) {
    display: none;
}

#flash-messages .content {
    padding-left: 1.5em;
    padding-right: 1.5em;
}

#flash-messages .close {
    position: absolute;
    top: 3px;
    right: 4px;
    font-weight: bolder;
    font-size: xx-small;
    /* background: none; */
    border-radius: 25px;
    cursor: pointer;
}

.hidden {
    display: none;
}

.error {
    background-color: salmon;
}

.success {
    background-color: lightgreen;
}

.elementor-screen-only {
    display: none;
}
