/*

container:

    flex-direction: row | row-reverse | column | column-reverse;
    flex-wrap: nowrap | wrap | wrap-reverse;
    
    justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly | start | end | left | right ... + safe | unsafe;
    
    align-items - wyrównanie pionowe ( poziome przy flex-direction: column )
    align-items: stretch | flex-start | flex-end | center | baseline | first baseline | last baseline | start | end | self-start | self-end + ... safe | unsafe;
    
    align-content: tylko flex-wrap: wrap | wrap-reverse
    align-content: flex-start | flex-end | center | space-between | space-around | space-evenly | stretch | start | end | baseline | first baseline | last baseline + ... safe | unsafe;
    
    gap: 10px 20px;  [row-gap] [column-gap] 
    
    
children:

    order: [NUM];      // zmiana kolejności elementów // default is 0 

    flex-grow: 4; // default 0 // proporcja rozszerzania elementu
    
    flex-shrink: 3; // default 1 // proporcja zmniejszania elementu
    
    flex-basis: dłuższe elementy dostają więcej miejsca
    flex-basis: 0-100%? | auto; // default auto  
    If set to 0, the extra space around content isn’t factored in. If set to auto, the extra space is distributed based on its flex-grow value. See this graphic.
    https://www.w3.org/TR/css-flexbox-1/images/rel-vs-abs-flex.svg
    
    flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
    
    align-self: auto | flex-start | flex-end | center | baseline | stretch;
    


*/

.flex-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.flex-row-center {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
}




.flex-view-center {
    display: flex;
    justify-content: center;
    align-items: center;
}


.viewport-center-fixed {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.viewport-center-fixed > div {
    width: min(400px, 80vw);
}


.flex-grid-auto {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}
.flex-grid-auto > * {
    flex-grow: 1;
}


.flex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px 40px;
}
.flex-grid > * {
    flex-grow: 1;
    min-width: 25%;
}

.flex-grid-box50  {
    width: calc(50% - 20px);
}
.flex-grid-box25 {
    width: calc(25% - 20px);
}
.flex-grid-box33 {
    width: calc(33% - 20px);
}
.flex-grid-box66 {
    width: calc(67% - 20px);
}

.margin-collapse *:first-child {
    margin-top: 0;
}
.margin-collapse *:last-child {
    margin-bottom: 0;
}

.section-box {
    background: #f4f4f4;
    padding: 20px 30px;
    border-radius: 5px;
}

.section-box ul {
    list-style: none;
    padding: 0;
}
.section-box li {
    margin: 0;
    padding: 5px 0;
    display: inline-block;
    margin-right: 10px;
}


#offer-selector {
    margin-top: -30px;
}


#offer-client {
    -border-left: 20px solid #999;
}

.offer-hdr {
    font-size: 12rem;
    border-radius: 5px;
    background: #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}
.offer-hdr div {
    -line-height: 30rem;
}
.offer-hdr .button-primary {
    display: inline-block;
    -padding: 0 10px;
}
#offers-hdr-expire {
    padding-left: 20px;
    font-weight: bold;
}




#fileUploaderProgress {
    position: relative;
    background: #ccc;
    width: max(500px, 80vw);
    height: 60px;
}
#fileUploaderProgress > div:first-child {
    position: absolute;
    z-index: 1101;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: limegreen;
}
#fileUploaderProgress > div:last-child {
    position: absolute;
    z-index: 1102;
    padding: 20px;
    font-weight: bold;
    color: white;
}


.verify-ico-green, .verify-ico-red, .verify-ico-yellow {
    display: inline-block;
    -margin-left: -40px;
    margin-right: 10px;
    font-size: 20rem;
    vertical-align: -11%;
}

.gray {
    color: #666 !important;
}

.green, .verify-ico-green {
    color: #50C878 !important;
}
.red, .verify-ico-red {
    color: red !important;
}
.yellow, .verify-ico-yellow {
    color: gold !important;
}
.violet, .verify-ico-violet {
    color: #ff106a !important;
}

#offer-client h1 {
    font-size: 18rem;
    padding-top:1px;
}
#offer-client h1 > span {
    margin-right: 20px;   
    -text-decoration: underline overline;
}

#offer-client h1 > span:first-child {
    padding-top: 10px;
    vertical-align: baseline;
}
#offer-client .client-risk {
    vertical-align: baseline;
}
#offer-client h1 span:last-child a {
    vertical-align: top;
}
.client-risk b {
    font-size: 11rem;
    padding: 4px 20px;
    white-space: nowrap;
    display: inline-block;
    vertical-align: top;
    margin-top: 4px;
    
}

.client-risk .green, #rate-rate-1{
    background: green;
    color: #fff !important;
}
.client-risk .yellow, #rate-rate-2 {
    background: gold;
    color: #fff !important;
}
.client-risk .red, #rate-rate-3 {
    background: #d00;
    color: #fff !important;
}
.client-risk .violet, #rate-rate-4 {
    background: #ff106a;
    color: #fff !important;
}

.rate-rate {
    display: inline-block;
    padding: 10px;
}


.offer-hdr .hdr {
    font-size: 14rem; 
    font-weight: bold;
    padding-bottom: 10px;
}
.offer-hdr ol {
    padding-left: 25px;
}
.offer-hdr li {
    padding-left: 15px;
    padding-bottom: 20px;
}
.offer-hdr b {
    color: var(--color-primary);
}


.offer {
    background: #eee;
    border: 5px solid #eeeeee;
    border-radius: 5px;
    -padding: 20px;
    margin-bottom: 40px;
    text-align: center;
}
.offer table {
    font-size: 11rem; 
    width: 100%; 
    table-layout: fixed;
    border-collapse: collapse;
}
.offer td {
    padding: 5px 0;
    text-align: center;
    width: 50%;
}
.offer td:first-child {
    border-right: 2px solid #eeeeee;
}
.offer tr:first-child td, .offer tr:nth-child(2) td {
    border: 5px solid #eeeeee;
    border-radius: 8px;
}
.offer tr:last-child td {
    padding: 10px 5px;
}
.offer tr.inpts td {
    padding: 5px 2px;
}
.offer h2 {
    background: var(--color-primary);
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    margin: 0;
}
.offer h3 {
    font-size: 20rem;
    margin: 15px 0;
}
.offer h3 small, .offer h4 small {
    color: #777;
    display: inline-block;
}
.offer h4 {
    font-size: 12rem;
    margin: 5px 0;
}
.offer h5 {
    background: #777;
    color: #fff;
    border-radius: 5px;
    marign: 0;
    padding: 10px;
    font-size: 12rem;
}

.offer .button-primary {
    
}

.offer .bg td {
    background: #ccc;
}

.offer .flex-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.offer .flex-row > div:first-child {
    flex-grow: 1;
}

.offer .flex-row > div:last-child {
    font-size: 10.5rem;
    padding-left: 2px;
    align-self: center;
    line-height: 2.5;
}


#offer-point-info {
    margin-bottom: 40px;
    border-left: 20px solid #aaa;
    border-radius: 5px;
}

.flex-2-50 {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.flex-2-50 > * {
    width: calc(50% - 20px);
}


@media (min-width:800px)
{
    .flex-3-cols {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .flex-3-cols > * {
        width: calc(50% - 10px);
    }
}



@media (min-width:1200px)
{
    .flex-3-cols {
        flex-wrap: nowrap;
    }
    .flex-3-cols > * {
        width: calc(33% - 10px);
    }
    .offer .flex-row > div:last-child {
        padding-left: 5px;
        padding-right: 2px;
    }
}


@media (min-width: 1400px)
{
    .offer h4 {
        font-size: 13rem;
    }

    .offer h3 small, .offer h4 small {
        margin-left: 5px;
    }
    .offer .flex-row > div:last-child {
        padding-right: 5px;
        padding-left: 5px;
    }
}


@media (min-width: 1600px) 
{

}


.bold {
    font-weight: bold;
}

.popup {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #00000033;
    display: flex;
    cursor: pointer;
}

.popup-content {
    background: #fff;
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 0 30px #00000066;
    cursor: default;
}




.rate-row {
    margin: 15px 0;
    padding: 20px;
    background: #ddd;
    border-radius: 4px;
}
.rate-row > label:first-child {
    display: block;
    margin-bottom: 10px;
}


.toggle-display-next {
    padding: 10px;
    background: #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 20px;
}
.toggle-display-next.active {
    background: #aaa;
}

.flex-grid-auto .toggle-display-next {
    margin: 0;
}

.table-history-address td:last-child {
    width: 50%;
}

.client-history-block .toggle-display-next {
    order: -1;
}

.toggle-display-all-next-block {
    display: inline-block;
    color: var(--color-primary);
    margin-left: 10px;
    cursor: pointer;
}

.client-history-block > div:not(.toggle-display-next) {
    width: 100%;
}
/*
.box-lv {
    display: inline-block;
    background: #ccc;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 5px;
}
*/
.toggle-display-next > b {
    display: inline-block;
    margin-left: 5px;
}



.vat {
    vertical-align: top;
}


.flex-table {
    
}
.flex-table > * {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    text-align: left;
    gap: 20px;
}
.flex-table > * > * {
    flex-grow: 1;
    width: 33%;
}

.flex-table label {
    padding: 10px;
    text-align: right;
    color: #666;
}

.ft-20-40-40 > * > *:first-child {
    width: 20%;
}
.ft-20-40-40 > * > *:nth-child(2) {
    width: 40%;
}
.ft-20-40-40 > * > *:nth-child(3) {
    width: 40%;
}

.ft-20-80 > * > *:first-child {
    width: 20%;
}
.ft-20-80 > * > *:nth-child(2) {
    width: 80%;
}

.transaction-rate {
    padding: 12px 0 30px 20px;
}
#kanga-fee {
    display: inline-block;
    padding-top: 12px;
}