/* Common email copy control. The icon matches the requisites page. */
.bp-email-copy-group {
    position: relative;
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.bp-email-copy-group > a[href^="mailto:"] {
    min-width: 0;
}

.bp-email-copy-button {
    position: relative;
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    margin: 0;
    padding: 0;
    color: #718196;
    font: inherit;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.bp-email-copy-button:hover {
    color: #0875ff;
    background: #eef6ff;
    border-color: #bfd8f8;
}

.bp-email-copy-button:focus-visible {
    outline: 3px solid rgba(47, 128, 237, .3);
    outline-offset: 2px;
}

.bp-email-copy-button svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bp-email-copy-button__check {
    display: none !important;
}

.bp-email-copy-button.is-copied {
    color: #16794b;
    background: #edf9f2;
    border-color: #b8e1c8;
}

.bp-email-copy-button.is-copied .bp-email-copy-button__copy {
    display: none;
}

.bp-email-copy-button.is-copied .bp-email-copy-button__check {
    display: block !important;
}

.bp-email-copy-button.is-error {
    color: #b42318;
    background: #fff1f0;
    border-color: #f0c3bf;
}

.bp-email-copy-button[data-bp-copy-tooltip]::after {
    position: absolute;
    z-index: 10000;
    bottom: calc(100% + 7px);
    left: 50%;
    padding: 6px 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    content: attr(data-bp-copy-tooltip);
    background: #17263a;
    border-radius: 6px;
    box-shadow: 0 5px 16px rgba(23, 38, 58, .2);
    transform: translateX(-50%);
    pointer-events: none;
}

.bp-email-copy-group--header {
    flex: none;
    gap: 5px;
}

.bp-email-copy-group--header .bp-new-contact-item > svg {
    display: none;
}

.bp-email-copy-group--header .bp-email-copy-button {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    color: #168eea;
}

.bp-email-copy-group--footer {
    width: max-content;
    max-width: 100%;
    margin-top: 11px;
}

.bp-site-footer__contact > .bp-email-copy-group--footer > a {
    color: var(--bp-footer-text) !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.bp-site-footer .bp-email-copy-button {
    color: var(--bp-footer-muted);
}

.bp-site-footer .bp-email-copy-button:hover,
.bp-site-footer .bp-email-copy-button:focus-visible {
    color: var(--bp-footer-accent);
    background: rgba(56, 191, 225, .1);
    border-color: rgba(56, 191, 225, .45);
}

.bp-email-copy-group--requisites-quick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 8px;
}

.bp-email-copy-group--requisites-quick .bp-email-copy-button {
    order: 2;
    color: rgba(255, 255, 255, .85);
    border-color: rgba(255, 255, 255, .32);
}

.bp-email-copy-group--requisites-quick .bp-email-copy-button:hover,
.bp-email-copy-group--requisites-quick .bp-email-copy-button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .75);
}

@media (max-width: 1199px) {
    .bp-email-copy-group--header {
        gap: 3px;
    }

    .bp-email-copy-group--header .bp-email-copy-button {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .bp-email-copy-group--header .bp-email-copy-button svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 1023px) {
    .bp-site-footer__contact > .bp-email-copy-group--footer {
        margin-top: 8px;
    }

    .bp-site-footer__contact > .bp-email-copy-group--footer > a {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .bp-email-copy-group {
        gap: 5px;
    }

    .bp-site-footer__contact > .bp-email-copy-group--footer > a {
        font-size: 20px;
    }
}

@media (max-width: 374px) {
    .bp-site-footer__contact > .bp-email-copy-group--footer > a {
        font-size: 18px;
    }
}
