injected/src/features/duckplayer/assets/mobile-video-drawer.css
/* -- VIDEO PLAYER OVERLAY */
:host {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    z-index: 10010;
    --title-size: 16px;
    --title-line-height: 20px;
    --title-gap: 16px;
    --button-gap: 6px;
    --logo-size: 32px;
    --logo-gap: 8px;
    --gutter: 16px;
}
/* iphone 15 */
@media screen and (min-width: 390px) {
    :host {
        --title-size: 20px;
        --title-line-height: 25px;
        --button-gap: 16px;
        --logo-size: 40px;
        --logo-gap: 12px;
        --title-gap: 16px;
    }
}
/* iphone 15 Pro Max */
@media screen and (min-width: 430px) {
    :host {
        --title-size: 22px;
        --title-gap: 24px;
        --button-gap: 20px;
        --logo-gap: 16px;
    }
}
/* small landscape */
@media screen and (min-width: 568px) {
}
/* large landscape */
@media screen and (min-width: 844px) {
    :host {
        --title-gap: 30px;
        --button-gap: 24px;
        --logo-size: 48px;
    }
}


:host * {
    font-family: system, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

:root *, :root *:after, :root *:before {
    box-sizing: border-box;
}

.ddg-mobile-drawer-overlay {
    --overlay-background: rgba(0, 0, 0, 0.6);
    --drawer-background: #fafafa;
    --drawer-color: rgba(0, 0, 0, 0.84);
    --button-background: rgba(0, 0, 0, 0.06);
    --button-color: rgba(0, 0, 0, 0.84);
    --button-accent-background: #3969ef;
    --button-accent-color: #fff;
    --switch-off-background: #888;
    --switch-on-background: #3969ef;
    --switch-thumb-background: #fff;
    --info-color: #000;

    --drawer-padding-block: 24px;
    --drawer-padding-inline: 16px;
    --drawer-buffer: 48px;

    height: 100%;
    position: absolute;
    width: 100%;
}

@media (prefers-color-scheme: dark) {
    .ddg-mobile-drawer-overlay {
        --drawer-background: #333;
        --drawer-color: rgba(255, 255, 255, 0.84);
        --button-background: rgba(255, 255, 255, 0.18);
        --button-color: #fff;
        --button-accent-background: #7295f6;
        --button-accent-color: rgba(0, 0, 0, 0.84);
        --switch-off-background: #888;
        --switch-on-background: #7295f6;
        --switch-thumb-background: #fff;
        --info-color: rgba(255, 255, 255, 0.84);
    }
}

.ddg-mobile-drawer-background {
    background: var(--overlay-background);
    bottom: 0;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
}

.ddg-mobile-drawer {
    background: var(--drawer-background);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    bottom: -100vh;
    box-shadow: 0px -4px 12px 0px rgba(0, 0, 0, 0.10), 0px -20px 40px 0px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    color: var(--drawer-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    left: 0;
    position: fixed;
    width: 100%;

    /* Apply safe-area padding as fallback in case media query below gets removed in the future */
    padding-top: var(--drawer-padding-block);
    padding-right: calc(var(--drawer-padding-inline) + env(safe-area-inset-right));
    padding-bottom: calc(var(--drawer-padding-block) + var(--drawer-buffer));
    padding-left: calc(var(--drawer-padding-inline) + env(safe-area-inset-left));
}

/* Apply a blanket 18% inline padding on viewports wider than 700px */
@media screen and (min-width: 700px) {
    .ddg-mobile-drawer {
        padding-left: 18%;
        padding-right: 18%;
    }
}

/* ANIMATIONS */

.animateIn .ddg-mobile-drawer-background {
    animation: fade-in 300ms ease-out 100ms 1 both;
}

.animateOut .ddg-mobile-drawer-background {
    animation: fade-out 300ms ease-out 10ms 1 both;
}

.animateIn .ddg-mobile-drawer {
    animation: slide-in 300ms cubic-bezier(0.34, 1.3, 0.64, 1) 100ms 1 both;
}

.animateOut .ddg-mobile-drawer {
    animation: slide-out 300ms cubic-bezier(0.36, 0, 0.66, -0.3) 100ms 1 both;
}

@media (prefers-reduced-motion) {
    .animateIn *,
    .animateOut * {
        animation-duration: 0s !important;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes slide-in {
    0% {
        bottom: -100vh;
    }

    100% {
        bottom: calc(-1 * var(--drawer-buffer));
    }
}

@keyframes slide-out {
    0% {
        bottom: calc(-1 * var(--drawer-buffer));
    }

    100% {
        bottom: -100vh;
    }
}

.heading {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.logo {
    flex: 0 0 32px;
    height: 32px;
    width: 32px;
}

.title {
    flex: 1 1 auto;
    font-size: 19px;
    font-weight: 700;
    line-height: calc(24 / 19);
}

.info {
    align-self: start;
    flex: 0 0 16px;
    height: 32px;
    position: relative;
    width: 16px;
}

/* BUTTONS */

.buttons {
    gap: 8px;
    display: flex;
}

.button {
    flex: 1 1 50%;
    margin: 0;
    appearance: none;
    background: none;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--button-background);
    color: var(--button-color);
    text-decoration: none;
    line-height: 20px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
}

.info-button {
    appearance: none;
    background: none;
    border: 0;
    height: 40px;
    margin: 0;
    padding: 12px;
    position: absolute;
    right: calc(-1 * var(--drawer-padding-inline));
    top: calc(-1 * var(--drawer-padding-block));
    width: 40px;
}

.info-button svg {
    display: block;
    width: 16px;
    height: 16px;
}

.info-button svg path {
    fill: var(--info-color);
}

.open {
    background: var(--button-accent-background);
    color: var(--button-accent-color);
    text-align: center;
    width: 100%;

    @media screen and (min-width: 568px) {
        flex: inherit;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* REMEMBER ME */

.remember {
    height: 40px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.remember-label {
    display: flex;
    align-items: center;
    flex: 1;
}

.remember-text {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: calc(18 / 14);
}
.remember-checkbox {
    margin-left: auto;
    display: flex;
}

/* SWITCH */

.switch {
    margin: 0;
    padding: 0;
    width: 52px;
    height: 32px;
    border: 0;
    box-shadow: none;
    background: var(--switch-off-background);
    border-radius: 32px;
    position: relative;
    transition: all .3s;
}

.switch:active .thumb {
    scale: 1.15;
}

.thumb {
    width: 24px;
    height: 24px;
    border-radius: 100%;
    background: var(--switch-thumb-background);
    position: absolute;
    top: 4px;
    left: 4px;
    pointer-events: none;
    transition: .2s left ease-in-out;
}

.switch[aria-checked="true"] .thumb {
    left: calc(100% - 32px + 4px);
}
.switch[aria-checked="true"] {
    background: var(--switch-on-background);
}

.ios-switch {
    width: 51px;
    height: 31px;
}

.ios-switch .thumb {
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.25);
}

.ios-switch:active .thumb {
    scale: 1;
}

.ios-switch[aria-checked="true"] .thumb {
    left: calc(100% - 32px + 3px);
}
