@font-face {
    font-family: 'Autokinisi Share Brands';
    src: url('../fonts/share-brands/fa-brands-400.woff2') format('woff2');
    font-display: block;
}

.autokinisi-product-share {
    margin: 8px 0 16px;
}

.autokinisi-product-share .autokinisi-share-trigger {
    display: flex;
    width: max-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #222;
    font: inherit;
    text-align: start;
}

.autokinisi-product-share .autokinisi-share-trigger:hover {
    color: #d33;
}

.autokinisi-share-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(440px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgb(0 0 0 / 15%);
    color: #111;
}

.autokinisi-share-dialog,
.autokinisi-share-dialog :is(button, input, .autokinisi-share__destinations a) {
    border-radius: 0;
}

.autokinisi-share-dialog:not([open]) {
    display: none;
}

.autokinisi-share-dialog::backdrop {
    background: rgb(0 0 0 / 50%);
}

html:has(.autokinisi-share-dialog[open]) {
    overflow: hidden;
}

html:has(.autokinisi-share-dialog[open]) {
    overflow: hidden;
}

.autokinisi-share__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 16px 30px;
    border-bottom: 1px solid #ebebeb;
}

.autokinisi-share-dialog .autokinisi-share__header h2,
.autokinisi-share-dialog .autokinisi-share__body h3 {
    margin: 0;
    color: #111;
    font-weight: 600;
    text-transform: none;
}

.autokinisi-share-dialog .autokinisi-share__header h2 {
    font-size: 24px;
    line-height: 1.2;
}

.autokinisi-share-dialog button.autokinisi-share__close,
.autokinisi-share-dialog button.autokinisi-share__copy {
    display: grid;
    place-items: center;
    flex: none;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.autokinisi-share-dialog button.autokinisi-share__close {
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    color: #555;
    font-size: 14px;
}

.autokinisi-share-dialog button.autokinisi-share__close:hover {
    color: #111;
    background: #f5f5f5;
}

.autokinisi-share__body {
    padding: 30px;
}

.autokinisi-share__copy-row {
    --autokinisi-share-copy-size: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.autokinisi-share-dialog input.autokinisi-share__url {
    flex: 1;
    min-width: 0;
    height: var(--autokinisi-share-copy-size);
    margin: 0;
    padding: 0 20px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    background: #fff;
    color: #444;
    font-size: 14px;
    text-overflow: ellipsis;
}

.autokinisi-share-dialog button.autokinisi-share__copy {
    width: var(--autokinisi-share-copy-size);
    height: var(--autokinisi-share-copy-size);
    border: 1px solid #d33;
    background: #d33;
    color: #fff;
    font-size: 16px;
}

.autokinisi-share-dialog button.autokinisi-share__copy:hover {
    border-color: #b92222;
    background: #b92222;
}

.autokinisi-share__copy-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.autokinisi-share__copy-icon::before,
.autokinisi-share__copy-icon::after {
    position: absolute;
    width: 12px;
    height: 10px;
    border: 1.5px solid currentColor;
    content: '';
}

.autokinisi-share__copy-icon::before {
    top: 1px;
    left: 0;
}

.autokinisi-share__copy-icon::after {
    top: 4px;
    left: 3px;
    background: #d33;
}

.autokinisi-share__copy:hover .autokinisi-share__copy-icon::after {
    background: #b92222;
}

.autokinisi-share__copy .autokinisi-share__check,
.autokinisi-share__copy[data-copied] .autokinisi-share__copy-icon {
    display: none;
}

.autokinisi-share__copy[data-copied] .autokinisi-share__check {
    display: block;
}

.autokinisi-share__feedback {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.autokinisi-share-dialog .autokinisi-share__feedback.is-visible {
    position: static;
    width: auto;
    height: auto;
    margin: -8px 0 16px;
    overflow: visible;
    clip-path: none;
    color: #555;
    font-size: 14px;
}

.autokinisi-share-dialog .autokinisi-share__body h3 {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 24px;
}

.autokinisi-share-dialog ul.autokinisi-share__destinations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.autokinisi-share__destinations li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.autokinisi-share__destinations li::before {
    content: none;
}

.autokinisi-share-dialog .autokinisi-share__destinations a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #111;
    color: #111;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.autokinisi-share-dialog .autokinisi-share__destinations a:hover {
    border-color: #d33;
    color: #d33;
}

.autokinisi-share-brand {
    font-family: 'Autokinisi Share Brands';
}

.autokinisi-share-brand--facebook::before { content: '\f39e'; }
.autokinisi-share-brand--x::before { content: '\e61b'; }
.autokinisi-share-brand--pinterest::before { content: '\f231'; }
.autokinisi-share-brand--reddit::before { content: '\f281'; }
.autokinisi-share-brand--telegram::before { content: '\f2c6'; }
.autokinisi-share-brand--whatsapp::before { content: '\f232'; }

.autokinisi-product-share .autokinisi-share-trigger:focus-visible,
.autokinisi-share-dialog :is(button, a, input):focus-visible {
    outline: 2px solid #b92222;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .autokinisi-share-dialog {
        inset: auto 0 0;
        width: 100%;
        max-height: 90%;
        margin: 0;
    }

    .autokinisi-share__body {
        padding: 20px 20px max(12px, env(safe-area-inset-bottom));
    }

    .autokinisi-share__copy-row {
        --autokinisi-share-copy-size: 54px;
    }

    .autokinisi-share-dialog input.autokinisi-share__url {
        font-size: 16px;
    }
}
