/** Shared public-page share control. */
.univs-share {
        position: relative;
        display: inline-flex;
        align-items: center;
}

.univs-share-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        white-space: nowrap;
        cursor: pointer;
}

.univs-share--hero .univs-share-button,
.univs-share--country .univs-share-button {
        background: rgba(255,255,255,.12);
        color: #fff;
        border: 1.5px solid rgba(255,255,255,.5);
        padding: 12px 22px;
        border-radius: 10px;
        font-size: .88rem;
        font-weight: 600;
        backdrop-filter: blur(8px);
        transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.univs-share--hero .univs-share-button:hover,
.univs-share--country .univs-share-button:hover {
        background: rgba(255,255,255,.22);
        border-color: rgba(255,255,255,.8);
        transform: translateY(-1px);
}

.univs-share--program .univs-share-button {
        background: #fff;
        color: #374151;
        border: 1.5px solid #e5e7eb;
        border-radius: 8px;
        padding: 8px 16px;
        min-height: 38px;
        font-size: 14px;
        font-weight: 400;
        transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.univs-share--program .univs-share-button:hover {
        border-color: var(--uni-primary, #ef4444);
        color: var(--uni-primary, #ef4444);
        background: #fff5f5;
}

.univs-share-menu {
        position: absolute;
        z-index: 10020;
        width: 210px;
        padding: 7px;
        background: #fff;
        color: #172033;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 16px 40px rgba(15,23,42,.22);
}

.univs-share--hero .univs-share-menu,
.univs-share--country .univs-share-menu {
        right: 0;
        bottom: calc(100% + 8px);
}

.univs-share--program .univs-share-menu {
        top: calc(100% + 8px);
        left: 0;
}

.univs-share-menu[hidden] {
        display: none;
}

.univs-share-option {
        display: flex;
        width: 100%;
        align-items: center;
        padding: 10px 12px;
        background: transparent;
        color: #172033;
        border: 0;
        border-radius: 8px;
        font: inherit;
        font-size: 14px;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
}

.univs-share-option:hover,
.univs-share-option:focus-visible {
        background: #f3f5f8;
        color: #172033;
        outline: none;
}

.univs-share-status {
        display: block;
        padding: 5px 12px 3px;
        color: #277449;
        font-size: 12px;
        line-height: 1.35;
}

.sp-page-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin: 12px 0 8px;
}

.sp-page-actions .univs-prog-wishlist-btn {
        margin: 0;
}

@media (max-width: 640px) {
        .hero-ctas .univs-share,
        .cp-hero-ctas .univs-share {
                width: 100%;
        }

        .cp-hero-ctas .univs-share {
                order: 2;
        }

        .hero-ctas .univs-share-button,
        .cp-hero-ctas .univs-share-button {
                width: 100%;
        }

        .univs-share--hero .univs-share-menu,
        .univs-share--country .univs-share-menu {
                right: 0;
                left: 0;
                width: 100%;
        }
}

@media print {
        .univs-share {
                display: none !important;
        }
}
