/**
 * Lookbook widget pins.
 *
 * The module stylesheet hides `.pin__type` and is not part of the Hyvä build, so the widget loads
 * this file itself: the pins are absolute "+" hotspots on top of the lookbook image.
 */

.mgs-lookbook-container {
    position: relative;
    display: block;
    width: 100%;
}

.mgs-lookbook-container .pin__image {
    position: relative;
    display: block;
}

.mgs-lookbook-container .pin__image img.lookbook-image {
    display: block;
    width: 100%;
    height: auto;
}

.mgs-lookbook-container .pin__type {
    position: absolute;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px #0a1e191f;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mgs-lookbook-container .pin__type:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 10px 24px #0a1e1933;
}

.mgs-lookbook-container .pin-label {
    display: block;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
}

/* Pin tooltip (the module popup markup) */
.mgs-lookbook-container .pin__title {
    display: none;
}

.mgs-lookbook-container .pin__popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    z-index: 5;
    display: none;
    width: 250px;
    transform: translateX(-50%);
    padding: 12px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2a27;
    text-align: left;
    line-height: 1.4;
    box-shadow: 0 12px 30px #0a1e1926;
}

.mgs-lookbook-container .pin__type:hover .pin__popup,
.mgs-lookbook-container .pin__type:focus-within .pin__popup {
    display: block;
}

.mgs-lookbook-container .popup__title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2a27;
}

.mgs-lookbook-container .popup__content {
    margin-top: 3px;
    font-size: 11.5px;
    color: #6b7671;
}
