/**
 * ADOBE CONFIDENTIAL
 *
 * Copyright 2026 Adobe
 * All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of Adobe and its suppliers, if any. The intellectual
 * and technical concepts contained herein are proprietary to Adobe
 * and its suppliers and are protected by all applicable intellectual
 * property laws, including trade secret and copyright laws.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe.
 */

//
//  Common
//  _____________________________________________

& when (@media-common =true) {
    .paypal-onboarding-modal {
        ul {
            list-style-position: inside;
            text-align: left;
        }

        &.modal-popup .modal-inner-wrap {
            height: 100vh;
            margin: 0;
            max-height: initial;
            width: initial;
        }

        .modal-content,
        .modal-header {
            padding: 0;
        }

        .modal-content {
            flex-grow: 1;
        }

        .modal-inner-wrap button.action-close {
            padding: 1rem;
            z-index: 3;

            &:active:before {
                font-size: 2rem;
            }
        }

        &-header {
            align-items: center;
            background: @color-white;
            display: flex;
            gap: @indent__m;
            justify-content: center;
            padding: @modal-popup__padding;
            position: sticky;
            top: 0;
            z-index: 2;

            h3 {
                margin: 0;
            }
        }

        &-container {
            background: @color-gray-light0;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            padding: @modal-popup__padding;
        }

        &-content {
            background: @color-white;
            flex-grow: 1;
            padding: @modal-popup__padding;
            margin: 0 auto;
            max-width: 1024px;
            width: 100%;
        }

        &-disconnect-global-account-actions {
            margin-top: @indent__l;
        }

        &-payment-experience {
            display: grid;
            gap: @indent__l;
            margin-bottom: 0;

            li,
            p {
                margin-bottom: @indent__s;
            }

            &-options {
                display: grid;
                grid-auto-flow: row;
                gap: @indent__m;
            }

            &-option {
                background: @color-gray-light0;
                border: 1px solid @color-black_dark;
                cursor: pointer;
                min-height: 300px;
                padding: @indent__m;
                position: relative;
                text-align: center;

                &-icon {
                    background: @color-white;
                    border: 1px solid @color-gray_light;
                    border-radius: 50%;
                    height: 34px;
                    left: @indent__s + @indent__xs;
                    position: absolute;
                    top: @indent__s + @indent__xs;
                    width: 34px;
                }

                &.selected {
                    background: #fef1e3;

                    .paypal-onboarding-modal-payment-experience-option-icon {
                        border: 2px solid @color-white;
                        background-image: url('@{baseDir}Magento_PaymentServicesPaypal/images/tick.svg');
                        background-position: center;
                        background-repeat: no-repeat;
                        background-size: cover;
                    }
                }

                &.disabled {
                    opacity: 0.5;
                }

                hr {
                    margin-bottom: @indent__m;
                }
            }

            &-continue {
                margin: 0 auto;
            }

            &-agreement {
                text-align: center;
            }
        }

        &-success {
            text-align: center;

            p {
                margin-bottom: @indent__m;
            }
        }
    }

    #paypal-onboarding-modal {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
}

.media-width(@extremum, @break) when (@extremum ='min') and (@break = @screen__s) {
    .paypal-onboarding-modal {
        &-payment-experience {
            &-options {
                grid-auto-flow: column;
                justify-content: center;
            }

            &-option {
                max-width: 500px;
            }
        }
    }
}
