@import '../../../../style/variables.scss';

.card-details {
    font-family: 'Avenir Next';
    gap: 24px;
    flex-wrap: wrap;

    @media only screen and (min-width: 768px) {
        padding-top: 40px;
    }

    @media only screen and (min-width: 1024px) {
        gap: 30px;
        flex-wrap: nowrap;
    }

    @media only screen and (min-width: 1200px) {
        gap: 40px;
    }

    @media only screen and (min-width: 1600px) {
        gap: 165px;
    }

    .adyen-checkout__paywithgoogle {
        width: 100%;
    }

    .credit-card-box {
        background: $LightCream;
        overflow: hidden;

        .title {
            font-family: 'Canto';
            text-transform: capitalize;
            font-weight: 400;
            font-size: 18px;
            line-height: 1.3;
            color: $btnText;

            @media only screen and (min-width: 1200px) {
                font-size: 22px;
                line-height: 26px;
            }

            @media only screen and (min-width: 1440px) {
                font-size: 26px;
                line-height: 30px;
            }
        }

        .top {
            border: 1px solid $primary;
            border-bottom: 2px dashed rgba($color: $primary, $alpha: 0.6);
            position: relative;
            padding: 20px 20px 38px;

            @media only screen and (min-width: 640px) {
                padding: 32px 32px 48px;
            }

            &::after,
            &::before {
                content: '';
                position: absolute;
                bottom: -20px;
                width: 40px;
                height: 40px;
                border-radius: 100%;
                border: 1px solid $primary;
                background: $white;

                @media only screen and (min-width: 640px) {
                    bottom: -32px;
                    width: 64px;
                    height: 64px;
                }
            }

            &::after {
                left: -20px;

                @media only screen and (min-width: 640px) {
                    left: -32px;
                }
            }

            &::before {
                right: -20px;

                @media only screen and (min-width: 640px) {
                    right: -32px;
                }
            }

            .date {
                color: $primary;
                margin-bottom: 10px;

                @media only screen and (min-width: 1600px) {
                    font-size: 20px;
                }
            }

            .time {
                color: $grey5E;

                @media only screen and (min-width: 640px) {
                    font-size: 16px;
                }
            }

            .title {
                color: $black25;
                margin-bottom: 10px;
            }

            .title,
            .description {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .time,
            .description {
                margin-bottom: 16px;

                @media only screen and (min-width: 1200px) {
                    margin-bottom: 20px;
                }
            }

            .description {
                line-height: 1.3;
                color: $grey5E;

                @media only screen and (min-width: 1600px) {
                    font-size: 20px;
                }
            }

            .location {
                gap: 5px;
                color: $primary;

                i {
                    font-size: 20px;

                    @media only screen and (min-width: 640px) {
                        font-size: 24px;
                    }
                }
            }
        }

        .bottom {
            border: 1px solid $primary;
            border-top: none;
            padding: 38px 20px 20px;

            @media only screen and (min-width: 640px) {
                padding: 48px 32px 32px;
            }

            .payment-list {
                li {
                    color: $grey5E;
                    gap: 8px;
                    margin-bottom: 12px;
                    font-weight: 400;

                    @media only screen and (min-width: 1200px) {
                        margin-bottom: 16px;
                    }

                    @media only screen and (min-width: 1600px) {
                        font-size: 20px;
                    }

                    &:last-child {
                        margin: 0;
                    }

                    span {
                        color: $grey5E;
                    }

                    &.totle {
                        font-family: 'Canto';
                        border-top: 2px dashed rgba($color: $primary, $alpha: 0.6);
                        padding-top: 12px;

                        @media only screen and (min-width: 1200px) {
                            padding-top: 16px;
                        }

                        .totle-title {
                            font-size: 18px;
                            line-height: 1.3;
                            font-weight: 400;
                            margin: 0;
                            color: $primary;

                            @media only screen and (min-width: 768px) {
                                font-size: 20px;
                            }

                            @media only screen and (min-width: 1200px) {
                                font-size: 24px;
                            }

                            // &.totle-amount{
                            //     font-weight: 700;
                            // }
                        }
                    }
                }
            }
        }
    }
}

.freecard {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    .credit-card-box {
        width: 100%;
        max-width: 500px;
    }
}

.payment-card-body {
    padding: 16px;
    border: 1px solid $primary;

    @media only screen and (min-width: 640px) {
        padding: 24px;
    }

    @media only screen and (min-width: 768px) {
        padding: 30px;
    }

    @media only screen and (min-width: 1600px) {
        padding: 40px;
    }

    .title {
        text-align: center;
        margin-bottom: 30px;
        color: $primary;
    }

    .policy-title {
        text-align: center;
        margin: 0 auto 20px;

        @media only screen and (min-width: 1024px) {
            margin: 0 auto 24px;
        }

        @media only screen and (min-width: 1200px) {
            font-size: 20px;
            margin: 0 auto 40px;
        }

        .link {
            color: $tertiary;
            cursor: pointer;
            transition: all 0.4s;

            &:hover {
                text-decoration: underline;
                color: $primary;
                transition: all 0.4s;
            }
        }
    }

    .payment-form-wrapper {
        max-width: 100%;
        margin: 0 auto;

        @media only screen and (min-width: 1024px) {
            max-width: 622px;
        }

        .custom-checkbox-newsletter {
            margin-top: 0.75rem;
            padding: 12px;
            border: 1px solid #e6e6e6;
            border-radius: 5px;

            // margin-bottom: 20px;
            // @media only screen and (min-width: 640px) {
            //     margin-bottom: 40px;
            // }
            label {
                color: #5E5E5E;

                &::before {
                    border: 1px solid #5E5E5E;
                }
            }

            input:checked+label::before {
                border-color: #B09684;
            }
        }
    }

    .payment-card {
        @media only screen and (min-width: 1024px) {
            max-width: 700px;
            margin: auto;
        }

        .adyen-checkout__button {
            background: $primary;
            box-shadow: none;
            border: none;
            outline: none;

            &:hover {
                background: $tertiary;
            }

            &:focus {
                box-shadow: none;
            }
        }

        .adyen-checkout__payment-method__radio--selected {
            background-color: $primary;

            &:hover {
                box-shadow: none;
            }
        }

        .adyen-checkout__label__text {
            font-size: 14px;
            line-height: 1.5;
            font-weight: 400;
            margin-bottom: 6px;
            display: block;
            color: $btnText;

            @media only screen and (min-width: 640px) {
                font-size: 16px;
                margin-bottom: 8px;
            }

            @media only screen and (min-width: 1441px) {
                font-size: 18px;
                line-height: 22px;
                margin-bottom: 10px;
            }
        }

        .adyen-checkout__input {
            font-size: 14px;
            font-weight: 400;
            padding: 8px 10px;
            border: 1px solid $mainBorder;
            color: $darkGrey;
            background-color: $white;
            border-radius: 0;
            width: 100%;
            height: 40px;
            box-shadow: none !important;

            &:focus {
                border-color: $primary;
            }

            @media only screen and (min-width: 640px) {
                font-size: 16px;
                padding: 8px 16px;
            }

            @media only screen and (min-width: 1441px) {
                height: 52px;
            }

            @media only screen and (min-width: 1600px) {
                font-size: 22px;
                padding: 10px 20px;
            }
        }

        .adyen-checkout__input--focus,
        .adyen-checkout__input--focus:hover,
        .adyen-checkout__input:active,
        .adyen-checkout__input:active:hover,
        .adyen-checkout__input:focus,
        .adyen-checkout__input:focus:hover {
            border-color: $primary;
        }

        .adyen-checkout__payment-method:hover:not(.adyen-checkout__payment-method--selected) .adyen-checkout__payment-method__radio {
            box-shadow: none;
        }

        .adyen-checkout__payment-method--selected,
        .adyen-checkout__payment-method--next-selected,
        .adyen-checkout__payment-method:last-child,
        .adyen-checkout__payment-method--selected+.adyen-checkout__payment-method,
        .adyen-checkout__payment-method:first-child {
            border-radius: 0;
        }

        .adyen-checkout__payment-method {
            &:hover {
                border-color: $mainBorder;
            }
        }

        .adyen-checkout__payment-method--selected {
            background: $LightCream;
            border-color: $mainBorder;
        }
    }
}

.payment-card {
    .adyen-checkout__field-wrapper {
        display: block;

        @media only screen and (min-width: 480px) {
            display: flex;
        }
    }

    .adyen-checkout__field-wrapper>.adyen-checkout__field:nth-child(2) {
        margin-left: 0;

        @media only screen and (min-width: 480px) {
            margin-left: 8px;
        }
    }

}

.payment-crumb-wrapper {
    font-family: 'Avenir Next';
    padding-top: 100px;
    padding-bottom: 40px;

    @media only screen and (min-width: 768px) {
        padding-top: 120px;
        padding-bottom: 0;
    }

    @media only screen and (min-width: 1200px) {
        padding-top: 120px;
    }

    @media only screen and (min-width: 1601px) {
        padding-top: 160px;
    }

    .user-bread-crumb {
        margin: 0;

        li,
        &.active {
            font-family: 'Avenir Next';
            font-weight: 400 !important;
        }

        li {
            opacity: 0.7;

            &.active {
                opacity: 1;
            }
        }
    }

    .karma-badge {
        padding: 8px 8px 8px 0;

        @media only screen and (min-width: 640px) {
            padding: 12px 15px 12px 0;
        }

        border: 1px solid $primary;

        .karma-badge-img {
            position: relative;

            &::before {
                content: "";
                position: absolute;
                top: 0;
                right: -9px;
                width: 9px;
                height: 100%;
                background: url('../../../../../../public/assets/images/karma-badge-img.svg') no-repeat;
                background-size: cover;
                background-position: right center;
            }
        }
    }
}

.svg-icon {
    width: 100px;
    display: block;
    margin: 40px auto 0;

    .path {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;

        &.circle {
            -webkit-animation: dash .9s ease-in-out;
            animation: dash .9s ease-in-out;
        }

        &.line {
            stroke-dashoffset: 1000;
            -webkit-animation: dash .9s .35s ease-in-out forwards;
            animation: dash .9s .35s ease-in-out forwards;
        }

        &.check {
            stroke-dashoffset: -100;
            -webkit-animation: dash-check .9s .35s ease-in-out forwards;
            animation: dash-check .9s .35s ease-in-out forwards;
        }
    }
}


@-webkit-keyframes dash {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@-webkit-keyframes dash-check {
    0% {
        stroke-dashoffset: -100;
    }

    100% {
        stroke-dashoffset: 900;
    }
}

@keyframes dash-check {
    0% {
        stroke-dashoffset: -100;
    }

    100% {
        stroke-dashoffset: 900;
    }
}