/* Template selector (Views/Shared/Components/TemplateSelector). Height: --pts-height (px). */
.pd-template-selector .pts-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.pd-template-selector .pts-item {
    flex: none;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 9px;
    background: none;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color 0.15s;
}

.pd-template-selector .pts-item:hover {
    border-color: rgba(239, 66, 111, 0.4);
}

.pd-template-selector .pts-item:focus-visible {
    outline: 2px solid #ef426f;
    outline-offset: 2px;
}

.pd-template-selector .pts-item.pts-selected {
    border-color: #ef426f;
    cursor: default;
}

/* One page: A4 ratio of the pedigree page (1470 x 2079). */
.pd-template-selector .pts-paper {
    position: relative;
    display: block;
    height: var(--pts-height, 220px);
    width: calc(var(--pts-height, 220px) * 1470 / 2079);
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.pd-template-selector .pts-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Free users: the AviRings watermark over every preview. */
.pd-template-selector .pts-watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 45%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    pointer-events: none;
}

.pd-template-selector .pts-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.pd-template-selector .pts-check {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef426f;
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
}

.pd-template-selector .pts-item.pts-selected .pts-check {
    display: block;
}
