:root {
    --tc-cb-main-1: #01a7a8;
    --tc-cb-main-2: #700000;
    --tc-cb-main-3: #fefc4f;
}

body.ccb-open {
    overflow: hidden;
}

body.ccb-open:after {
    content: '';
    background-color: rgba(0, 0, 0, 0.75);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10000;
}

#ccb-message-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    font-family: var(--tc-font-matter-sq-mono-regular), sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
}

#ccb-message-dialog {
    position: relative;
    width: auto;
    max-height: calc(100% - 3.5rem);
    overflow: hidden;
    margin: 1.75rem auto;
    max-width: 570px;
    display: flex;
    /*box-shadow: 20px 20px 0 0 rgba(0, 0, 0, .682);*/
}

#ccb-message---outer {
    background-color: var(--tc-color-main-1);
    padding: 7px 5px 5px;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh);
    background-clip: padding-box;
}

#ccb-message--outer,
#ccb-message-outer {
    padding: 4px;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh);
    background-clip: padding-box;
}

#ccb-message-outer {
    border: 1px solid #ffffff;
}

#ccb-message-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-clip: padding-box;
    outline: 0;
    max-height: calc(100dvh - 3.5rem - 32px);
    text-align: center;
}

#ccb-message-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
    flex-shrink: 0;
}

#ccb-message-header #ccb-message-title {
    font-size: 16px;
    color: #000000;
    white-space: nowrap;
    background-color: #ffffff;
    margin: -13px auto;
    padding: 0 5px;
}

#ccb-message-body {
    position: relative;
    flex: 1 1 auto;
    padding: 20px 10px 5px;
    overflow-y: auto;
    hyphens: auto;
}

#ccb-message-body h5 {
    font-size: 16px;
    font-weight: bold;
    color: inherit;
    text-transform: initial;
}

#ccb-message-body p {
    font-size: inherit;
    margin-bottom: 10px;
}

#ccb-message-body p.cb-heading {
    margin-bottom: 5px;
}

#ccb-types {
    padding-top: 15px;
}

#ccb-types-show-info {
    margin-bottom: 0;
}

#ccb-message-body ul {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    margin-bottom: 15px;
    list-style: none;
    padding: 0;
}

#ccb-message-body ul li {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 50%;
    width: auto;
}

#ccb-message-body ul li label {
    font-size: 14px;
    font-weight: bold;
}

#ccb-message-body a {
    color: inherit;
    text-decoration: underline;
}

#ccb-message-body a:hover,
#ccb-message-body a:focus {
    color: inherit;
    opacity: 0.8;
}

#ccb-message-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 10px 10px 15px;
    flex-shrink: 0;
}

#ccb-message-footer button {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    position: relative;
    background: #fff;
    border: none;
    padding: 0 10px;
    margin: 0 7px;
    color: #000000;
    font-family: var(--tc-font-matter-sq-mono-regular), sans-serif;
    font-size: 14px;
    font-weight: normal;
    /*box-shadow: 6px 6px 0 0 #767676;*/
    border: 0;
    white-space: nowrap;
}

#ccb-message-footer button:hover {
    background-color: var(--tc-color-main-2);
    color: #ffffff;
}

#ccbSpinner {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    line-height: 1;
}

.spinner-border-ccb {
    --bs-spinner-width: 15px;
    --bs-spinner-height: 15px;
    --bs-spinner-border-width: 2px;
}

.custom-control {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    print-color-adjust: exact;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1.25rem;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
}

.custom-control-label:hover {
    color: inherit;
    opacity: 0.8;
}

.custom-checkbox-disabled .custom-control-label,
.custom-checkbox-disabled .custom-control-label:hover {
    color: #ffffff;
    opacity: 0.8;
}

.custom-control-label::before {
    position: absolute;
    top: 0;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: transparent;
    border: 0;
}

.custom-control-label::after {
    position: absolute;
    top: 0;
    /*left: -1.5rem;*/
    left: -32px;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "[ ]";
    white-space: nowrap;
}

.custom-control-label::before,
.custom-file-label, .custom-select {
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.custom-checkbox .custom-control-label::before {
    border-radius: .25rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    border-color: transparent;
    background-color: transparent;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    content: "[X]";
}

@media (max-width: 600px) {
    #ccb-message-dialog {
        box-shadow: none;
    }
}

@media (max-width: 499px) {
    #ccb-message-footer {
        flex-wrap: wrap;
        flex-direction: row;
        padding-bottom: 0;
    }

    #ccb-message-footer button {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
}
