:root {
    --bg: #e3e4e8;
    --bgT: #e3e4e800;
    --fg: #17181c;
    --inputBg: #fff;
    --handleBg: #255ff4;
    --handleDownBg: #0b46da;
    --handleTrackBg: #5583f6;
    font-size: calc(16px + (32 - 16)*(100vw - 320px)/(2560 - 320));
}
@font-face {
    font-family: 'Albula Condensed Pro Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Albula Condensed Pro Bold'), url('../font/albulaCondensedPro-Bold.woff') format('woff');
}
body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "Manrope", sans-serif;
    background: url("../img/bcg.jpg");
    background-position: top;
    background-repeat: repeat;
    background-size: 100%;
    min-height: calc(100vh - 20px);
    width: 100%;
    overflow-x: hidden;
}
.font-primary {
    font-family: 'Albula Condensed Pro Bold';
}
.calculator-wrapper {
    max-width: 740px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 15px;
}
.calculator {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
}
.title-calculator {
    margin-top: 0;
    text-align: center;
}
.mb-10 {
    margin-bottom: 10px;
}
.mb-20 {
    margin-bottom: 20px;
}
.mb-30 {
    margin-bottom: 30px;
}
.mb-40 {
    margin-bottom: 40px;
}
.text-danger {
    color: #ff2626;
}
.text-warning {
    color: orange;
}
.text-success {
    color: #00d73d;
}
.content {
    display: none;
}
.content.active {
    display: block;
}
p {
    margin: 0;
}
.title-calc {
    font-size: 20px;
    margin-bottom: 10px;
}
.results-wrapper {
    display: flex;
    gap: 10px;
}
.switcher-block {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
}
.flex-title-with-popover {
    display: flex;
    align-items: center;
    gap: 7px;
}
.switcher-block button {
    border: 2px solid black;
    padding: 15px 14px;
    border-radius: 6px;
    background: white;
    color: black;
    cursor: pointer;
    flex: 1 1 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 6px;
}
.switcher-block button i {
    font-size: 32px;
    font-style: normal;
}
.switcher-block button.active {
    background: black;
    color: white;
}
.content-toas-pno {
    display: none !important;
}
.content-toas-pno.active {
    display: flex !important;
}

.switcher-roas-pno {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    margin-right: 130px;
}
.switcher-roas-pno button {
    border: 2px solid black;
    padding: 10px 14px;
    border-radius: 6px;
    background: white;
    color: black;
    cursor: pointer;
    flex: 1 1 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 6px;
    justify-content: center;
}
.switcher-roas-pno button.active {
    background: black;
    color: white;
}


.icon-popover {
    cursor: pointer;
    padding: 3px;
    background: #000000;
    border-radius: 50%;
    position: relative;
    width: 16px;
    height: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    flex-shrink: 0;
}
.icon-popover img {
    width: 11px;
    height: 11px;
}
.popover {
    position: fixed;
    max-width: 300px;
    min-width: 250px;
    background: white;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 10;
    text-align: left;
    text-transform: none;
}
.popover p {
    font-weight: 400 !important;
    font-size: 13px !important;
    color: black;
}

.results-wrapper > div {
    flex: 1 1 0;
}
.results-item {
    display: block;
    padding: 10px 12px;
    border: 2px solid #5128a0;
    border-radius: 6px;
    background: rgba(126, 94, 242, 0.16);
    box-shadow: 0px 6px 8px -4px #5128a08f;
    color: #fff;
    background: linear-gradient(to right, rgb(80, 41, 156), rgb(122, 0, 255) 100%);
}
.results-item small {
    font-size: 12px;
    line-height: 1.5;
    display: block;
}
.flex-result-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}
.results-item p {
    font-size: 16px;
    font-weight: 300;
}
.results-item > span {
    font-size: 30px;
    font-family: 'Albula Condensed Pro Bold';
    font-weight: 800;
    display: block;
    line-height: 1.2;
    margin-bottom: 3px;
    white-space: nowrap;
}

.d-none {
    display: none;
}
.warning-item {
    background: #e25e5e;
    border-radius: 10px;
    padding: 10px;
    line-height: 1;
    color: white;
    font-weight: 700;
    font-size: 12px;
}
.warning-area {
    min-height: 19px;
    font-size: 14px;
}
.warning-area span {
    font-style: italic;
}
.range {
    display: flex;
    justify-content: space-between;
}

.range__slider {
    width: 100%;
}

.range__value {
    min-width: 110px;
    padding-left: 20px;
    margin-left: 20px;
    text-align: right;
    border-left: #e6e4e4 1px solid;
}
.range__value span {
    font-family: 'Albula Condensed Pro Bold';
}
.fw-700 {
    font-weight: 700;
}
.form-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.form-group label {
    text-transform: uppercase;
    font-size: .5rem;
    color: #3e3e3e;
    margin-bottom: 5px;
    font-family: "Manrope", sans-serif;
    display: flex;
    align-items: center;
    position: relative;
    gap: 7px;
}

.form-group span {
    font-size: 1rem;
    font-weight: 800;
    color: #3c3b3b;
    margin-bottom: 3px;
}

.range__slider label {
    margin-bottom: 18px;
    font-weight: 700;
}

.range__slider [type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 10px;
    border-radius: 6px;
    background: #f1f1f1;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* custom thumb */
.range__slider [type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #7a00ff;
    border: #f9ca24 5px solid;
    cursor: pointer;
    -webkit-transition: background .15s ease-in-out;
    transition: background .15s ease-in-out;
}

.range__slider [type="range"]::-webkit-slider-thumb:hover {
    background: #f0932b;
}

.range__slider [type="range"]::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f0932b;
    border: #f9ca24 5px solid; cursor: pointer;
    -webkit-transition: background .15s ease-in-out;
    transition: background .15s ease-in-out;
}

.range__slider [type="range"]::-moz-range-thumb:hover {
    background: #f9ca24;
}

/* remove border */
input::-moz-focus-inner, input::-moz-focus-outer {
    border: 0;
}
@media (max-width: 768px) {
    .switcher-block {
        flex-direction: column;
        gap: 10px;
    }
    .switcher-block button {
        justify-content: center;
    }
}
@media (max-width: 599px) {
    .switcher-roas-pno {
        margin-right: 0px;
    }
    .no-gap {
        gap: 0;
    }
    .switcher-block button i {
        font-size: 24px;
    }
    .switcher-block button,.switcher-roas-pno button {
        font-size: 12px;
    }
    .form-group span {
        font-size: .9rem;
    }
    .results-wrapper {
        flex-direction: column;
    }
    .range__value {
        min-width: 62px;
        padding-left: 5px;
        margin-left: 13px;
    }
    .form-group label {
        font-size: .6rem;
    }
    .title-calc {
        font-size: 15px;
    }
    .calculator {
        padding: 12px;
    }
}