.page-template-oce-er-kursy-nbp.page-template-online-currency {

    .hero-oce-ec-kursy-nbp {
        color: white;

        .mobiletext {
            br {
                display: inline !important;
                ;
            }

            .hero-text {
                margin-top: 15px;
                display: block;
            }
        }

        .calculator {
            position: relative;
            border: 0;

            &::before {
                content: '';
                position: absolute;
                top: -1px;
                left: -1px;
                right: -1px;
                bottom: -1px;
                border-radius: 20px;
                background: linear-gradient(180deg, #ffffff78 0%, transparent 75%);
                z-index: -1;
                mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                mask-composite: xor;
                -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                -webkit-mask-composite: xor;
                padding: 0.5px;
            }

            @media(max-width: 768px) {
                margin-left: 0;
                margin-right: 0;
            }
        }

        @media only screen and (min-width: 1366px) {
            .hero-module__info {
                margin-bottom: 80px;
            }
        }

        .table-currencies-heading {
            color: #FFF;
            font-feature-settings: 'liga' off, 'clig' off;
            font-family: Nunito;
            font-size: 18px;
            font-style: normal;
            font-weight: 500;
            line-height: 32px;
            text-align: center;
            .hidedesktop{
                display: none;
            }
            @media(max-width:768px) {
                color: #FFF;
                font-feature-settings: 'liga' off, 'clig' off;
                font-family: Nunito;
                font-size: 14px;
                font-style: normal;
                font-weight: 500;
                line-height: 20px;
                margin-bottom: 0;
                /* 228.571% */
                .hidedesktop {
                    display: inline-block!important;
                }
            }
        }

        .display-exchange-rates-container-alt {
            width: 100%;
            overflow: hidden;
        }

        .currencies-list {
            width: 100%;
        }

        .exchange-rates-header {
            display: grid;
            grid-template-columns: 2fr 1fr;
            color: white;

            .header-title {
                margin: 0;
                padding: 16px;
                color: var(--Tetriary, #A3A3A3) !important;
                font-feature-settings: 'liga' off, 'clig' off;
                font-family: Nunito;
                font-size: 15.6px !important;
                font-style: normal;
                font-weight: 500;
                line-height: normal;
                letter-spacing: 0.26px;
            }

            .currency-header {
                text-align: left !important;
            }

            .rate-header {
                text-align: right !important;
            }
        }



        .exchange-rates-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .exchange-rate-item {
            display: grid;
            grid-template-columns: 2fr 1fr;
            transition: all 0.3s ease;
            border-radius: 100px;
            background: #000;

            &:nth-child(odd) {
                background: transparent;
            }

            @media(min-width: 768px) {
                &:nth-child(odd) {
                    background: #000;
                }
                &:nth-child(even) {
                    background: transparent;
                }
            }

            @media(max-width: 768px) {
                &:nth-child(n+4) {
                    display: none;
                }

                /* //first and third bgc black */
                &:nth-child(1),
                &:nth-child(3) {
                    background: #000;
                }

                &:nth-child(2),
                &:nth-child(4) {
                    background: transparent;
                }
            }
        }

        .exchange-rate-item:hover {
            background: #141414;
            transform: translateX(4px);

        }

        .currency-info {
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 10px;

            @media(max-width: 768px) {
                padding: 8px;
            }
        }

        .country-details {
            display: flex;
            flex-direction: column;
            gap: 0px;
        }

        .flag-icon {
            width: 31.2px;
            height: 31.2px;
        }

        .currency-code {
            color: var(--White, #FFF);
            font-feature-settings: 'liga' off, 'clig' off;
            font-family: Nunito;
            font-size: 18px;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
            text-align: left;
        }

        .country-name {
            color: var(--Secondary, #888);
            font-feature-settings: 'liga' off, 'clig' off;
            font-family: Nunito;
            font-size: 14px;
            font-style: normal;
            font-weight: 600;
            line-height: normal;
            letter-spacing: 0.26px;
        }

        .currency-rate {
            padding: 15px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            font-weight: 600;
            font-size: 16px;
            color: var(--White, #FFF);
            text-align: right;
            font-feature-settings: 'liga' off, 'clig' off;
            font-family: Nunito;
            font-size: 18px;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
        }

        .button_hero_wrap {
            display: flex;
            justify-content: space-between;
            gap: 18px;

            @media(max-width: 768px) {
                gap: 9px;
            }

            button {
                width: calc(50% - 9px) !important;
                cursor: pointer;

                span {
                    color: inherit !important;
                }

                &.button-main--transparent {
                    color: white !important;
                    background: transparent !important;
                    border: 1px solid #FFF !important;
                    box-shadow: none !important;

                    span {
                        color: #FFF !important;
                    }
                }

                &:hover,
                &.button-main--transparent:hover {
                    transition: all .3s ease-in-out;
                    border: 1px solid #000;
                    background: unset !important;
                    background-color: #f7f7f7 !important;
                    color: #222 !important;
                    text-align: center;
                    font-family: Nunito;
                    box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, .15) !important;
                    background-image: url(https://www.zen.com/wp-content/themes/zen/images/deals-landing/patern.webp) !important;
                    background-position: center !important;
                    background-size: cover !important;
                }

                @media(max-width: 768px) {
                    padding: 12px 5px;
                    font-size: 12px;
                    height: unset !important;
                }
            }
        }

        .button_hero_wrap.button_hero_wrap_info {
            @media(max-width: 768px) {
                margin-top: 40px !important;
            }
        }

        .information-bottom-calculator {
            color: #B5B5B5;
            text-align: center;
            font-family: Nunito;
            font-size: 10px;
            font-style: normal;
            font-weight: 500;
            line-height: 16px;

            @media(max-width:768px) {
                color: var(--Disabled, #b5b5b5);
                width: 100% !important;
                font-size: 10px !important;
                line-height: 14px !important;
            }
        }
    }


    .wrapper-custom-calculator-position {
        background-image: url(../img/custom-bg-hero.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-color: black;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        @media(max-width: 768px) {
            background-image: unset;
            background-color: transparent;
            min-height: unset;
            .hero-basic{
                padding-bottom: 0!important;
            }
        }

        .hero-title {
            /* max-inline-size: 14ch; */
            /* text-wrap: balance; */
        }

        .hero-text {
            max-inline-size: 45ch;
            @media(min-width: 768px) {
                max-inline-size: 45ch;
                    max-width: 530px;
                    display: block;
            }
            @media(max-width: 768px) {
                display: block;
                margin-top: 15px;
                text-wrap: balance;
                margin-left: auto;
                margin-right: auto;
            }
        }
    }

    .wrapper-table-courses {
        margin-top: 250px;
    }

    .wrapper-pairs-for-nbp,
    .wrapper-table-courses {
        .zen-heading {
            margin: 0 auto;
            max-inline-size: 25ch;
            text-wrap: balance;
            margin-bottom: 16px !important;

            @media (max-width: 768px) {
                font-size: 26px;
                text-wrap: balance;
                max-inline-size: 20ch;
            }
        }

        .zen-text {
            margin: 0 auto;
            max-inline-size: 80ch;
            text-wrap: balance;
            color: #FFF;
            text-align: center;
            font-feature-settings: 'liga' off, 'clig' off;
            font-family: Nunito;
            font-size: 24px;
            font-style: normal;
            font-weight: 500;
            line-height: 32px;
            margin-bottom: 64px;

            @media(max-width: 768px) {
                display: block;
                color: #FFF;
                text-align: center;
                font-family: Nunito;
                font-size: var(--Typo-Paragraph-Standard-Size, 14px);
                font-style: normal;
                font-weight: 400;
                line-height: var(--Typo-Paragraph-Standard-LH, 18px);
                text-wrap: balance;
                /* max-inline-size: 20ch */
                max-width: 300px;
            }
        }
    }

    .wrapper-pairs-for-nbp {
        .container.row {
            display: flex;
            gap: 30px;
            @media(max-width: 768px) {
                flex-direction: column;
                gap: 20px;
            }
        }

        margin-top: 250px;

        @media(max-width: 768px) {
            margin-top: 110px;
        }

        .text {
            color: #FFF;
            text-align: center;
            font-family: Nunito;
            font-size: 32px;
            font-style: normal;
            font-weight: 700;
            line-height: 130%;
            letter-spacing: -0.736px;
            @media(max-width:768px){
                color: #FFF;
                    text-align: center;
                    font-family: Nunito;
                    font-size: 24px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 130%;
                    letter-spacing: -0.552px;
                    margin-bottom: 40px;
            }
        }

        .column-50 {
            display: flex;
            flex-direction: column;
            width: 50%;
            border-radius: 32px;
            background: #222;
            padding: 48px;
            overflow: hidden;
            @media(max-width: 768px) {
                width: 100%;
                background-color: transparent;
                padding: 20px;
                &:nth-child(1) {
                    padding-bottom: 0;;
                }
                &:nth-child(2) {
                    margin-top: 0;
                    padding-top:0;
                }
            }
            .text{
            position: relative;
                &::after{
                    content: '';
                        position: absolute;
                        bottom: -40px;
                        left: -48px;
                        right: -48px;
                        width: calc(100% + 96px);
                        height: 1px;
                        background: black;
                }
            }
        }

        .pairs-list {
            list-style: none;
            margin: 0 auto;
            padding: 0;
            display: grid;
            /* grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); */
            /* //3 columns always */
            grid-template-columns: repeat(3, 1fr);
            padding-bottom: 20px;
            gap: 20px;
            @media(max-width: 768px) {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
                gap: 10px;
            }

            .pair-item {
                text-align: center;
                font-variant-numeric: tabular-nums;
                color: white;
                font-feature-settings: 'liga' off, 'clig' off;
                font-family: Nunito;
                font-size: 24px;
                font-style: normal;
                font-weight: 700;
                line-height: normal;

                .delimeter {
                    color: #86868B;
                }
                @media(max-width: 768px) {
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 700;line-height: normal;
                }
            }

        }
    }
}