
@st-namespace 'Modal-deprecated-st-css';
@property st-global(--wut-bg-color);
@property st-global(--wut-text-color);
@property st-global(--wut-disabled-color);
@property st-global(--wut-placeholder-color);
@property st-global(--wut-main-cta-color);
@property st-global(--wut-secondary-cta-color);
@property st-global(--wut-input-border-color);
@property st-global(--wut-input-hover-and-focus-border-color);
@property st-global(--wut-selection-text-bg-color);
@property st-global(--wut-meta-data-color);
@property st-global(--wut-clear-button-bg-color);

.root {
    -st-states: isOpen, forceBWTheme;
    box-sizing: border-box;
}

.root * {
    box-sizing: border-box;
}

.root:forceBWTheme {
    --wut-bg-color: white;
    --wut-text-color: black;
    --wut-disabled-color: #969696;
    --wut-placeholder-color: #646464;

    /* compares color-8 to the white background and if the contrast is good chooses color-8, otherwise chooses black */
    --wut-main-cta-color: "readableFallback(white, color(color-8), black)";
    --wut-secondary-cta-color: black;
    --wut-input-border-color: rgba(0, 0, 0, 0.6);
    --wut-input-hover-and-focus-border-color: black;
    --wut-selection-text-bg-color: rgba(0, 0, 0, 0.2);
    --wut-meta-data-color: #646464;
    --wut-clear-button-bg-color: rgba(0, 0, 0, 0.12);
}

.root:isOpen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1999;
}
.modal {
    /* to bit z-index of header in mobile */
    z-index: 2000;

    opacity: 0;

    -webkit-transition: opacity 0.3s, -webkit-transform 0.4s; /* Safari */
    transition: opacity 0.2s, transform 0.4s;
    transition-timing-function: ease;
}

.root:isOpen .modal {
    opacity: 1;
}

.overlay {
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.6;
}

/* st-namespace-reference="../../../../../src/components/internal/Modal/Modal.deprecated.st.css" */
    