﻿#ProductDisplayWrapper {
    position: relative;
    overflow: hidden;
}

    #ProductDisplayWrapper > .InnerContent {
        max-width: 120em;
        margin: 1.8em auto;
        padding: 0 2em;
        box-sizing: border-box;
        display: flex;
        gap: 3em;
        position: relative;
        align-items: end;
    }

    #ProductDisplayWrapper .ProductImage {
        width: var(--width);
        border-radius: calc(var(--width) / 10);
        overflow: hidden;
    }

        #ProductDisplayWrapper .ProductImage[product-classification="Card" i] {
            --width: 15em;
            height: calc(var(--width) * 1.333334);
        }

        #ProductDisplayWrapper .ProductImage[product-classification="DirectTopUp" i] {
            --width: 20em;
            height: 20em;
        }

        #ProductDisplayWrapper .ProductImage img {
            width: 100%;
            height: 100%;
        }

    #ProductDisplayWrapper .ProductInfo {
        margin: 4.2em 0;
    }

        #ProductDisplayWrapper .ProductInfo .ProductTitle h1 {
            font-size: 2.5em;
            font-weight: 900;
            text-transform: uppercase;
            color: rgba(255, 255, 255);
        }

        #ProductDisplayWrapper .ProductInfo .Specification {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5em;
        }

            #ProductDisplayWrapper .ProductInfo .Specification > li {
                display: grid;
                grid-template-columns: auto 1fr;
                gap: .5em;
                align-items: center;
            }

                #ProductDisplayWrapper .ProductInfo .Specification > li #InstantIcon {
                    color: var(--theme-color-light);
                }

            #ProductDisplayWrapper .ProductInfo .Specification [region]::before {
                --h: 2em;
                margin: 0;
                transform: scale(.833334);
            }

        #ProductDisplayWrapper .ProductInfo #ImportantNotes {
            background-color: #9377ff26;
            padding: 1.2em;
            border-radius: 1em;
            max-width: 35em;
        }

#ProductContentWrapper {
    padding: 2.5em 0;
}

    #ProductContentWrapper > .InnerContent,
    .ProductContentSection > .InnerContent {
        max-width: 120em;
        margin-inline: auto;
        padding-inline: 2em;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 1fr clamp(30em, 33%, 30em);
        gap: 2em;
        align-items: start;
    }

    #ProductContentWrapper .ProductVariantListWrapper,
    #ProductContentWrapper .ActionSection #OrderQuantitySection,
    #ProductContentWrapper .ActionSection #OrderDetailSection,
    #ProductContentWrapper .ActionSection #OrderPurchaseSummary,
    .ProductContentSection .Content > div {
        background-color: #ffffff1a;
        border-radius: 1.5em;
        padding: 1.7em;
    }

    #ProductContentWrapper .ProductVariantListWrapper,
    #ProductContentWrapper .ActionSection #OrderQuantitySection,
    #ProductContentWrapper .ActionSection #OrderDetailSection,
    #ProductContentWrapper .ActionSection #OrderPurchaseSummary {
        display: flex;
        flex-direction: column;
        gap: 1.5em;
    }

    #ProductContentWrapper .SectionTitle {
        display: flex;
        gap: .8em;
        align-items: center;
    }

        #ProductContentWrapper .SectionTitle::before {
            content: attr(section-puchase-steps);
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--theme-color);
            color: #fff;
            font-size: 1em;
            font-weight: 800;
            width: 2.5em;
            height: 2.5em;
            border-radius: .8em;
        }

        #ProductContentWrapper .SectionTitle h5 {
            font-weight: 800;
            font-size: 1.1em;
            text-transform: uppercase;
        }

    #ProductContentWrapper .ProductVariantList {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(28em, 1fr));
        gap: 1em;
        align-items: start;
    }

        #ProductContentWrapper .ProductVariantList .VariantItemOption {
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 1em;
            padding: 1em;
            border-radius: 1em;
            align-items: center;
            cursor: pointer;
            background-color: rgb(67 71 102);
        }

            #ProductContentWrapper .ProductVariantList .VariantItemOption[is-selected="true" i] {
                border: 2px solid var(--theme-color-light);
            }

            #ProductContentWrapper .ProductVariantList .VariantItemOption .Icon {
                width: 4em;
                height: 4em;
                overflow: hidden;
                border-radius: 25%;
                position: relative;
            }

                #ProductContentWrapper .ProductVariantList .VariantItemOption .Icon img {
                    width: 100%;
                    height: 100%;
                }


            #ProductContentWrapper .ProductVariantList .VariantItemOption .VariantName {
                font-size: 1em;
                font-weight: 800;
                flex-wrap: wrap;
            }

            #ProductContentWrapper .ProductVariantList .VariantItemOption .VariantPrice {
                font-size: 1em;
                text-align: right;
            }

                #ProductContentWrapper .ProductVariantList .VariantItemOption .VariantPrice .SellingPrice {
                    font-weight: 800;
                    color: var(--theme-color-light);
                    white-space: nowrap;
                }

                #ProductContentWrapper .ProductVariantList .VariantItemOption .VariantPrice .OriginalPrice {
                    opacity: .5;
                    text-decoration: line-through;
                    white-space: nowrap;
                }

    #ProductContentWrapper .ActionSection {
        display: grid;
        gap: 1em;
    }

        #ProductContentWrapper .ActionSection #QtyWrapper {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 2em;
            align-items: center;
            overflow: hidden;
        }

            #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox {
                display: flex;
                width: 13em;
                height: 3em;
                background-color: rgb(67 71 102);
                border-radius: .8em;
                align-items: center;
            }

                #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox:has(> input:focus) {
                    border: 2px solid var( --theme-color-light);
                }

                #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox > .ActionBtn[is-disabled="true" i] {
                    cursor: not-allowed;
                    pointer-events: none;
                    opacity: .5;
                }

                #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox > .ActionBtn > i {
                    display: block;
                    overflow: hidden;
                    padding: .35em;
                }

                    #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox > .ActionBtn > i:before {
                        display: flex;
                        width: 2.3em;
                        height: 2.3em;
                        justify-content: center;
                        align-items: center;
                        border-radius: .5em;
                        background-color: rgb(25 31 62);
                        color: #fff;
                        padding: 1em;
                    }

                #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox > .ActionBtn:hover > i:before {
                    background-color: var(--theme-color-light);
                }

                #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox .IncreaseQty {
                    order: 1;
                }

                #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox .DeductQty {
                    order: -1;
                }

                #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox input {
                    font-size: 1.1em;
                    font-weight: 900;
                    color: rgba(255, 255, 255, 0.85);
                    border: 0;
                    padding: 0;
                    line-height: 1.5;
                    height: 3em;
                    appearance: textfield;
                    -webkit-appearance: none;
                    -moz-appearance: textfield;
                }

                    #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox input::-webkit-outer-spin-button,
                    #ProductContentWrapper .ActionSection #QtyWrapper .QtyAdjustBox input::-webkit-inner-spin-button {
                        -webkit-appearance: none;
                        margin: 0;
                    }

        #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpFieldWrapper {
            display: flex;
            flex-direction: column;
            gap: 1em;
        }

        #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpField {
            display: flex;
            align-items: center;
            background: rgb(67 71 102);
            border-radius: .9em;
            padding-inline-end: 0.7em;
        }

            #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpField > span {
                flex: none;
                padding-inline: 1.5em;
                font-weight: 600;
                color: rgba(255, 255, 255, 0.5);
            }

            #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpField > span,
            #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpField > input,
            #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpField > select {
                font-size: 1em;
                line-height: 1.5;
                display: flex;
                align-items: center;
                padding-inline-start: 1em;
                text-align: start;
            }

            #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpField > input,
            #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpField > select {
                all: unset;
                background-color: transparent;
                padding: 0 1em;
                width: 100%;
                height: 3.5em;
                color: rgba(255 255 255 / .85);
                outline: 0;
                box-sizing: border-box;
                -webkit-appearance: textfield;
                -moz-appearance: textfield;
                appearance: textfield;
            }

            #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpField:has(> input:focus),
            #ProductContentWrapper .ActionSection #OrderDetailSection .DirectTopUpField:has(> select:focus) {
                border: 1px solid var( --theme-color-light);
            }


        #ProductContentWrapper .ActionSection #OrderPurchaseSummary #SummaryDetail {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: .5em;
            align-items: center;
            background-color: rgb(67 71 102);
            padding: 1em;
            border-radius: 1em;
        }

            #ProductContentWrapper .ActionSection #OrderPurchaseSummary #SummaryDetail .T {
                color: #ffffff80;
            }

            #ProductContentWrapper .ActionSection #OrderPurchaseSummary #SummaryDetail .C {
                text-align: right;
                font-weight: 700;
            }

            #ProductContentWrapper .ActionSection #OrderPurchaseSummary #SummaryDetail #TotalPriceDisplay {
                font-size: 1.3em;
                color: var(--theme-color);
            }

        #ProductContentWrapper .ActionSection #PurchaseActionSection {
            display: grid;
            grid-template-columns: max(6em, 15%) 1fr;
            gap: 0.9em;
        }

            #ProductContentWrapper .ActionSection #PurchaseActionSection button {
                border-radius: 0.5rem;
                font-size: 1.4em;
                font-weight: 800;
            }

            #ProductContentWrapper .ActionSection #PurchaseActionSection #AddToCartBtn {
                background-color: #ffffff1a;
                color: #fff;
                font-size: 1.5em;
            }

            #ProductContentWrapper .ActionSection #PurchaseActionSection #BuyNowBtn {
                background-color: var(--theme-color-light);
                color: #fff;
                text-transform: uppercase;
                font-size: 1.4em;
                padding: 0.6em 0;
            }

.ProductContentSection .Content {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

    .ProductContentSection .Content > div {
        padding: 2.5em;
    }

        .ProductContentSection .Content > div > .ContentTitle {
            display: flex;
            gap: 0.5em;
            text-transform: uppercase;
            font-weight: 700;
            font-size: 1.2em;
            margin-bottom: 2.5em;
        }

            .ProductContentSection .Content > div > .ContentTitle:before {
                content: '';
                display: block;
                width: 4px;
                height: auto;
                background-color: var(--theme-color-light);
            }

        .ProductContentSection .Content > div > article {
            max-width: 70em;
        }

@media only screen and (min-width: 801px) {
    #ProductContentWrapper .ActionSection {
        position: sticky;
        top: calc(var(--header-height) + 2em);
        grid-column: 2;
        grid-row: 1 / 3;
    }
}

@media only screen and (max-width: 800px) {

    :root {
        --SetMaxWidthForSmallScreen: 40em;
    }

    #ProductDisplayWrapper > .InnerContent {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: var(--SetMaxWidthForSmallScreen);
        gap: 2em;
        padding-inline: unset;
        margin-block-start: 3em;
    }

    #ProductDisplayWrapper .ProductImage[product-classification="Card" i] {
        --width: 12em;
    }

    #ProductDisplayWrapper .ProductInfo {
        margin: 0;
    }

        #ProductDisplayWrapper .ProductInfo .ProductTitle h1 {
            font-size: 2em;
            text-align: center;
        }

        #ProductDisplayWrapper .ProductInfo .Specification {
            justify-content: center;
            align-items: center;
        }

        #ProductDisplayWrapper .ProductInfo .ImportantNotes {
            text-align: center;
        }

    #ProductContentWrapper > .InnerContent {
        grid-template-columns: 1fr;
        max-width: var(--SetMaxWidthForSmallScreen);
        gap: 1em;
        padding-inline: unset;
    }

    #ProductContentWrapper .ProductVariantSection[data-display="show" i] {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(255 255 255 / 80%);
        display: flex;
        align-items: end;
        opacity: 1;
        visibility: visible;
        transition: .3s;
    }

        #ProductContentWrapper .ProductVariantSection[data-display="show" i] > .exit-overlay {
            position: absolute;
            inset: 0;
            z-index: -1;
        }

        #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantListWrapper {
            width: 100%;
            max-width: 40em;
            min-height: calc(calc(100vh - var(--header-height))* .572);
            max-height: calc(100vh - var(--header-height) - 5em);
            margin: 0 auto;
            background: #fff;
            border-radius: 1.6em 1.6em 0 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

            #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantListWrapper .Title {
                display: grid;
                grid-template-columns: 1fr auto;
                padding: 1.75em 1.5em;
                justify-content: center;
                align-items: center;
            }

                #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantListWrapper .Title h3 {
                    font-size: 1.1em;
                    font-weight: 700;
                }


        #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantList {
            flex: auto;
            overflow: hidden;
            overflow-y: auto;
            padding: 1.5em;
            background: hsl(0 0% 97%);
            border-radius: 2em 2em 0 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
            grid-auto-rows: min-content;
        }

            #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantList::-webkit-scrollbar {
                display: none;
            }

            #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantList .VariantItemOption {
                padding: 1.1em;
            }

                #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantList .VariantItemOption .Icon,
                #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantList .VariantItemOption[is-selected="true" i] .Icon:after {
                    width: 3em;
                    height: 3em;
                }

                #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantList .VariantItemOption[is-selected="true" i] .Icon:after {
                    left: 0;
                    top: 0;
                }

                #ProductContentWrapper .ProductVariantSection[data-display="show" i] .ProductVariantList .VariantItemOption[is-selected="true" i] {
                    border: 1.5px solid var(--theme-color-light);
                }

        #ProductContentWrapper .ProductVariantSection[data-display="show" i] .SelectDonmationCloseAction {
            cursor: pointer;
            font-family: "Font Awesome 6 Free";
            font-weight: 800;
            font-size: 1.1em;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 1.5em;
        }

            #ProductContentWrapper .ProductVariantSection[data-display="show" i] .SelectDonmationCloseAction::after {
                content: "\f00d";
                transition: transform 0.3s ease-in-out;
            }

            #ProductContentWrapper .ProductVariantSection[data-display="show" i] .SelectDonmationCloseAction[data-display="closed" i]::after {
                content: "\f00d";
                color: var(--theme-color);
                transform: rotate(180deg);
            }

    body.product-overlay-content-activated {
        overflow: hidden;
    }

    #ProductContentWrapper .ProductVariantSection:not([data-display="show" i]) .VariantItemOption[is-selected="false"],
    #ProductContentWrapper .ProductVariantSection:not([data-display="show" i]) .VariantItemOption[is-selected="true" i] .Icon:after,
    #ProductContentWrapper .ProductVariantSection .ProductVariantListWrapper .Title {
        display: none;
    }

    #ProductContentWrapper .ProductVariantSection:not([data-display="show" i]) .VariantItemOption[is-selected="true" i] {
        border: 0;
        grid-template-columns: auto 1fr auto auto;
    }

        #ProductContentWrapper .ProductVariantSection:not([data-display="show" i]) .VariantItemOption[is-selected="true" i] .Icon img {
            opacity: 1;
        }

    #ProductContentWrapper .ProductVariantSection:not([data-display="show" i]) .VariantItemOption .Icon {
        width: 3em;
        height: 3em;
    }

    #ProductContentWrapper .ProductVariantSection:not([data-display="show" i]) .VariantItemOption[is-selected="true" i]::after {
        content: "\f054";
        font-family: "Font Awesome 6 Free";
        display: flex;
        font-size: 0.8em;
        width: 2.5em;
        height: 2.5em;
        font-weight: 700;
        line-height: 1;
        color: currentColor;
        background: rgba(0 0 0/5%);
        border-radius: 50%;
        justify-content: center;
        align-items: center;
    }

    #ProductContentWrapper .ProductContentSection .Content > div {
        padding-inline: 2em;
    }

    #ProductContentWrapper .ProductContentSection .Content {
        gap: 1em;
    }
}

@media only screen and (max-width: 480px) {

    #ProductContentWrapper .ActionSection #OrderDetailSection {
        padding: 1.5em;
    }
}

/* <!-- PRODUCT DETAIL CSS END HERE  --!> */
