@import "../node_modules/tinper-bee-core/scss/minxin-variables";
@import "../node_modules/tinper-bee-core/scss/minxin-mixins";


.u-popconfirm {
    position: absolute;
    top: 0;
    left: 0;
    z-index: $zIndex-popconfirm;
    display: none;
    max-width: $popconfirm-max-width;
    padding: 1px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    line-break: auto;
    line-height: 1.42857143;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    white-space: normal;
    word-break: normal;
    word-spacing: normal;
    word-wrap: normal;
    font-size: $font-size-base;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid $popconfirm-border-color;
    border-radius: $border-radius-base;
    box-shadow: 0 5px 10px rgba(0,0,0,.2);

    &-dark {
        background-color: $gray-darkest;
        color: #fff;
    }
}

.u-popconfirm.right {
    margin-left: $popconfirm-margin;
}

.u-popconfirm.left {
    margin-left: -$popconfirm-margin;
}

.u-popconfirm.top {
    margin-top: -$popconfirm-margin;
}

.u-popconfirm.bottom {
    margin-top: $popconfirm-margin;
}

.u-popconfirm.right>.arrow {
    top: 50%;
    left: -10px;
    margin-top: -11px;
    border-left-width: 0;
    border-right-color: $popconfirm-arrow-outer-color;
}

.u-popconfirm.left>.arrow {
    top: 50%;
    right: -10px;
    margin-top: -11px;
    border-right-width: 0;
    border-left-color: $popconfirm-arrow-outer-color;
}

.u-popconfirm.top>.arrow {
    left: 50%;
    margin-left: -11px;
    border-bottom-width: 0;
    border-top-color: $popconfirm-arrow-outer-color;
    bottom: -10px;
}

.u-popconfirm.bottom>.arrow {
    left: 50%;
    margin-left: -11px;
    border-top-width: 0;
    border-bottom-color: $popconfirm-arrow-outer-color;
    top: -11px;
}

.u-popconfirm>.arrow {
    border-width: $popconfirm-arrow-width;
}

.u-popconfirm>.arrow, .u-popconfirm>.arrow:after {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}


.u-popconfirm>.arrow:after {
    border-width: $popconfirm-arrow-width;
    content: "";
}

.u-popconfirm.right>.arrow:after {
    content: " ";
    left: 1px;
    bottom: -10px;
    border-left-width: 0;
    border-right-color: $popconfirm-fallback-border-color;
}

.u-popconfirm.left>.arrow:after {
    content: " ";
    right: 1px;
    border-right-width: 0;
    border-left-color: $popconfirm-fallback-border-color;
    bottom: -10px;
}

.u-popconfirm.top>.arrow:after {
    content: " ";
    bottom: 1px;
    margin-left: -10px;
    border-bottom-width: 0;
    border-top-color: $popconfirm-fallback-border-color;
}

.u-popconfirm.bottom>.arrow:after {
    content: " ";
    top: 1px;
    margin-left: -10px;
    border-top-width: 0;
    border-bottom-color: $popconfirm-fallback-border-color;
}


.u-popconfirm-dark.right>.arrow:after {
    border-right-color: $popconfirm-fallback-dark-border-color;
}

.u-popconfirm-dark.left>.arrow:after {
    border-left-color: $popconfirm-fallback-dark-border-color;
}

.u-popconfirm-dark.top>.arrow:after {
    border-top-color: $popconfirm-fallback-dark-border-color;
}

.u-popconfirm-dark.bottom>.arrow:after {
    border-bottom-color: $popconfirm-fallback-dark-border-color;
}


.u-popconfirm-content {
    padding: 15px;
}
.u-popconfirm-confirm {
    text-align: center;
    button {
        margin-right: 10px;
    }
}

.u-popconfirm .u-button{
    margin: 10px;
}
