/*
 * Share dialog (detail page): the button row and the "Delen" dialog.
 *
 * Every rule is scoped to .share-dialog / .share-btn. The previous version
 * carried page-wide rules (a `* { margin: 0; padding: 0 }` reset, `body`
 * font-family, `svg { width: 20px }`, `header { display: flex }`) that leaked
 * onto the whole detail page: the page header rendered as a flex row and the
 * type tag, title and subtitle sat side by side on phones.
 */
.share-dialog .hidden {
    display: none;
}

.share-dialog svg,
.share-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 7px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #777;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: capitalize;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    width: 15em;
    margin-top: 20px;
}

.share-btn:hover {
    border-color: var(--bp-color-orange, #ff622c);
}

.share-dialog .copy-link {
    padding-left: 30px;
    padding-right: 30px;
}

.share-dialog {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 75%;
    height: 55em;
    max-height: 450px;
    max-width: 400px;
    min-width: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
    z-index: -1;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    background-color: #fff;
    align-items: center;
    box-sizing: border-box;
}

.share-dialog.is-open {
    display: block;
    z-index: 2000;
}

.bp-v2 .share-dialog {
    position: fixed;
    top: 50%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.share-dialog header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.share-dialog .dialog-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.share-dialog .targets {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.share-dialog .close-button {
    background-color: transparent;
    border: none;
    padding: 0;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    font-size: 16px;
    font-weight: bold;
}

.share-dialog .close-button svg {
    margin-right: 0;
}

.share-dialog .link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    background-color: #eee;
}

.share-dialog .pen-url {
    margin-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-shadow-bg {
    padding: 0;
    padding-top: 8px;
    padding-left: 8px;
    width: 40px;
    height: 40px;
    transform: none;
    background-color: rgb(0 0 0 / 26%);
    border-radius: 4px;
}
