/* ── Trigger button ─────────────────────────────────────── */
.ws-postactions {
    position: relative;
    display: inline-block;
}

.ws-postactions__trigger {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    color: inherit;
    transition: background 0.15s ease;
}

.ws-postactions__trigger:hover,
.ws-postactions__trigger:focus {
    background: rgba(0, 0, 0, 0.07);
    outline: none;
}

/* ── Dropdown ────────────────────────────────────────────── */
.ws-postactions__dropdown {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 9999;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.ws-postactions__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ws-postactions__dropdown-item {
    all: unset;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 16px;
    cursor: pointer;
    font: inherit;
    color: inherit;
    white-space: nowrap;
    transition: background 0.12s ease;
}

.ws-postactions__dropdown-item:hover,
.ws-postactions__dropdown-item:focus {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

/* ── Modal overlay ───────────────────────────────────────── */
.ws-share-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.ws-share-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ── Modal box ───────────────────────────────────────────── */
.ws-share-modal {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px 32px;
    width: 100%;
    max-width: 420px;
    margin: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(12px);
    transition: transform 0.2s ease;
}

.ws-share-modal-overlay.is-open .ws-share-modal {
    transform: translateY(0);
}

.ws-share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ws-share-modal__title {
    margin: 0 !important;
    font-size: 1.2em;
    font-weight: 600;
    color: #ff5b00;
}

.ws-share-modal__close {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #aaa;
    background: rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease, color 0.15s ease;
}

.ws-share-modal__close:hover,
.ws-share-modal__close:focus {
    background: rgba(220, 0, 0, 0.1);
    color: #cc0000;
    outline: none;
}

/* ── Share buttons row ───────────────────────────────────── */
.ws-share-modal__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ws-share-modal__btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    background: #ff5b00;
    color: #fff;
    transition: background 0.15s ease, color 0.15s ease;
}

.ws-share-modal__btn:hover,
.ws-share-modal__btn:focus {
    background: #16163f;
    outline: none;
}

.ws-share-modal__btn--copied {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    height: 44px;
    border-radius: 22px;
    cursor: pointer;
    background: #ff5b00;
    color: #fff;
    font: inherit;
    font-size: 0.85em;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.ws-share-modal__btn--copied:hover,
.ws-share-modal__btn--copied:focus {
    background: #16163f;
    outline: none;
}

.ws-share-modal__btn--copied.is-copied {
    background: #1e7e34;
    color: #fff;
}

/* ── Sidebar share widget ─────────────────────────────── */
.ws-share-widget__btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    background: #ff5b00;
    color: #fff;
    font: inherit;
    font-weight: 600;
    transition: background 0.15s ease;
}

.ws-share-widget__btn:hover,
.ws-share-widget__btn:focus {
    background: #16163f;
    outline: none;
}
