/* Colour sample page. NG used Semantic UI's JavaScript (slick, modal, popup); these are plain-CSS stand-ins. */

.configurator-group-nav {
    margin-bottom: 1rem !important;
}

.configurator-group-nav .ui.horizontal.list {
    display: flex;
    flex-wrap: wrap;
}

.configurator-group-nav .item.disabled {
    opacity: 0.45;
}

.configurator-group-nav [data-group-nav-tip] {
    position: relative;
    z-index: 1;
}

.configurator-group-nav [data-group-nav-tip]::after {
    content: attr(data-group-nav-tip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    padding: 0.28rem 0.55rem;
    max-width: 16rem;
    white-space: normal;
    text-align: center;
    font-size: 0.82em;
    font-weight: normal;
    line-height: 1.25;
    color: #fff;
    background: rgba(0, 0, 0, 0.88);
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 300;
    transition: opacity 0.06s ease-out, visibility 0.06s ease-out;
}

.configurator-group-nav [data-group-nav-tip]:hover::after,
.configurator-group-nav [data-group-nav-tip]:focus::after {
    opacity: 1;
    visibility: visible;
}

#fabrics .pb-tooltip {
    cursor: help;
}

#fabrics .pb-tooltip .icon {
    margin: 0;
}

#fabrics select.ui.dropdown[multiple] {
    height: auto;
    min-height: 2.7em;
}

#fabricsContainer .pagination.menu .item {
    cursor: pointer;
}

/* Image slider with dots (NG: slick). */
.pb-slides {
    position: relative;
}

.pb-slides img.hidden-slide {
    display: none !important;
}

.pb-slides img.clickable {
    cursor: pointer;
}

.pb-no-image {
    padding: 4em 1em;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    background: #f4f4f4;
}

.pb-slide-dots {
    text-align: center;
    padding: 0.4em 0 0;
}

.fabrics-tab .pb-slide-dots.more-info {
    display: none !important;
}

.pb-slide-dots button {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.pb-slide-dots button.active {
    background: rgba(0, 0, 0, 0.75);
}

/* The colour's own description shows over the image on hover (NG: popup). */
.pb-variant-description {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6em 0.8em;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9em;
    display: none;
}

.pb-slides:hover .pb-variant-description {
    display: block;
}

/* Short description cut at 60 px with "Läs mer" (NG: jQuery readmore). */
.pb-readmore.collapsible:not(.expanded) .pb-readmore-text {
    max-height: 60px;
    overflow: hidden;
}

/* "Läs mer" window (NG: Semantic UI small modal). */
body.pb-dimmed {
    overflow: hidden;
}

.pb-readmore-dimmer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    padding: 2rem 1rem;
}

.pb-readmore-modal {
    max-width: 520px;
    margin: 0 auto;
}

.pb-readmore-modal .ui.card {
    width: 100%;
}

/* Message after "Lägg i varukorg" (NG: global alert). */
.pb-sample-toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    width: min(560px, calc(100% - 2rem));
}

.pb-sample-toast .ui.message {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.pb-sample-toast .close.icon {
    cursor: pointer;
    position: absolute;
    right: 0.5em;
    top: 0.8em;
}
