/* Confirm tooltip */
.ulf-tooltip {
    max-width: 360px;
    position: absolute;
    z-index: 999999;
    background: #444444;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    top: 0;
    left: 0;
}

/* Centers the tooltip on screens where it won't fit */
.ulf-centered {
    position: fixed;
    top: 50%;
    left: 50%;
}

.ulf-content {
    margin: 5px 20px 5px 10px;
    font-size: 1em;
    line-height: 1.6em;
    text-align: center;
    color: #fff;
    font-weight: 800;
}

/* Arrow */
.ulf-arrow {
    border: 15px solid rgba(232, 232, 232, 0);
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    margin-left: -15px;
}

/* Arrow - Top */
.ulf-arrow-top {
    border-bottom-color: #444444;
    bottom: 100%;
    left: 50%;
    top: auto;
    right: auto;
}

/* Arrow - Bottom */
.ulf-arrow-bottom {
    border-top-color: #444444;
    top: 100%;
    left: 50%;
    bottom: auto;
    right: auto;
}

/* Arrow - Left */
.ulf-arrow-left {
    border-right-color: #444444;
    border-width: 15px;
    left: -14px;
    right: auto;
    bottom: auto;
    top: 50%;
    margin-top: -15px;
}

/* Arrow - Right */
.ulf-arrow-right {
    border-left-color: #444444;
    right: -29px;
    left: auto;
    bottom: auto;
    border-width: 15px;
    top: 50%;
    margin-top: -15px;
}

/* Arrow - Hug Left */
.ulf-arrow-hug-left {
    left: 30px;
    right: auto;
}

/* Arrow - Hug Right */
.ulf-arrow-hug-right {
    right: 30px;
    left: auto;
}

/* Arrow - Get really close to the left because the button is small */
.ulf-arrow-hug-left.ulf-arrow-super-hug {
    left: 15px;
    right: auto;
}

/* Arrow - Get really close to the right because the button is small  */
.ulf-arrow-hug-right.ulf-arrow-super-hug {
    right: 1px;
    left: auto;
}

/* Arrow - Get really close to the left because the button is small - need to adjust for border radius */
.ulf-arrow-top.ulf-arrow-hug-left.ulf-arrow-super-hug,
.ulf-arrow-top.ulf-arrow-hug-right.ulf-arrow-super-hug {
    top: -30px;
}

/* Arrow - Get really close to the left because the button is small - need to adjust for border radius */
.ulf-arrow-bottom.ulf-arrow-hug-left.ulf-arrow-super-hug,
.ulf-arrow-bottom.ulf-arrow-hug-right.ulf-arrow-super-hug {
    top: auto;
    bottom: -30px;
}

.ulf-tiny .ulf-arrow-hug-left.ulf-arrow-super-hug,
.ulf-tiny .ulf-arrow-hug-right.ulf-arrow-super-hug {
    bottom: -21px;
}

.ulf-black-theme .ulf-arrow-top.ulf-arrow-hug-left.ulf-arrow-super-hug,
.ulf-black-theme .ulf-arrow-top.ulf-arrow-hug-right.ulf-arrow-super-hug {
    top: -27px;
}

.ulf-black-theme .ulf-arrow-bottom.ulf-arrow-hug-left.ulf-arrow-super-hug,
.ulf-black-theme .ulf-arrow-bottom.ulf-arrow-hug-right.ulf-arrow-super-hug {
    bottom: -28px;
}


/* White theme */
.ulf-white-theme {
    background: #fff;
    border: 2px solid #e4e4e4;
}

.ulf-white-theme .ulf-content {
    color: #333;
}

.ulf-white-theme .ulf-arrow-top {
    border-bottom-color: #e4e4e4;
}

.ulf-white-theme .ulf-arrow-bottom {
    border-top-color: #e4e4e4;
}

.ulf-white-theme .ulf-arrow-left {
    border-right-color: #e4e4e4;
}

.ulf-white-theme .ulf-arrow-right {
    border-left-color: #e4e4e4;
}

/* Large tooltip */
.ulf-large {
    font-size: 18px;
}

/* Medium tooltip */
.ulf-medium {
    font-size: 14px;
}

/* Small tooltip */
.ulf-small {
    font-size: 12px;
    padding: 5px;
}

.ulf-small .ulf-content {
    margin: 2px 8px;
    line-height: 1.9em;
}

/* Tiny tooltip */
.ulf-tiny {
    padding: 2px 5px;
    font-size: 10px;
}

.ulf-tiny .ulf-content {
    margin: 3px;
}

.ulf-tiny .ulf-button {
    margin: 0px 3px;
}

.ulf-tiny .ulf-arrow {
    border-width: 10px;
    margin-left: -10px;
}

.ulf-tiny .ulf-arrow-left {
    left: -10px;
    margin-top: -10px;
}

.ulf-tiny .ulf-arrow-right {
    right: -20px;
    margin-top: -10px;
}

/**
@todo: Rewrite arrows in JS since they are so complicated in CSS
 */
.ulf-tiny .ulf-arrow-bottom.ulf-arrow-hug-left.ulf-arrow-super-hug,
.ulf-tiny .ulf-arrow-top.ulf-arrow-hug-left.ulf-arrow-super-hug {
    left: 11px;
}

.ulf-tiny .ulf-arrow-bottom.ulf-arrow-hug-right.ulf-arrow-super-hug,
.ulf-tiny .ulf-arrow-top.ulf-arrow-hug-right.ulf-arrow-super-hug {
    right: 1px;
}

.ulf-tiny.ulf-white-theme .ulf-arrow-top.ulf-arrow-hug-left.ulf-arrow-super-hug,
.ulf-tiny.ulf-white-theme .ulf-arrow-top.ulf-arrow-hug-right.ulf-arrow-super-hug {
    top: -18px;
}

.ulf-tiny.ulf-white-theme .ulf-arrow-bottom.ulf-arrow-hug-left.ulf-arrow-super-hug,
.ulf-tiny.ulf-white-theme .ulf-arrow-bottom.ulf-arrow-hug-right.ulf-arrow-super-hug {
    bottom: -21px;
}

.ulf-tiny.ulf-black-theme .ulf-arrow-bottom.ulf-arrow-hug-left.ulf-arrow-super-hug,
.ulf-tiny.ulf-black-theme .ulf-arrow-bottom.ulf-arrow-hug-right.ulf-arrow-super-hug {
    bottom: -18px;
}