/**
 * Magento .tooltip.wrapper component styles.
 *
 * The Convert/two theme compiles CSS from Foundation SCSS and does not include
 * Magento Blank's _tooltips.less. The .tooltip.wrapper component (used e.g. by
 * Magento_Persistent remember-me and checkout field hints) therefore has no
 * layout styles and renders as an unstyled black block.
 */

.tooltip.wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 5px;
    vertical-align: middle;
}

.tooltip.toggle {
    cursor: help;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
}

.tooltip.content {
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 3px;
    color: #333;
    display: none;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
    max-width: 320px;
    min-width: 200px;
    padding: 12px 16px;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 100;
}

.tooltip.wrapper:hover .tooltip.content,
.tooltip.toggle:hover + .tooltip.content,
._active > .tooltip.content {
    display: block;
}

/* Arrow pointing up */
.tooltip.content::before {
    border: 6px solid transparent;
    border-bottom-color: #bbb;
    content: '';
    height: 0;
    left: 10px;
    position: absolute;
    top: -12px;
    width: 0;
}

.tooltip.content::after {
    border: 5px solid transparent;
    border-bottom-color: #fff;
    content: '';
    height: 0;
    left: 11px;
    position: absolute;
    top: -10px;
    width: 0;
}
