/* Amazon Associates Versuscope - front-end product image styles v1.5.2. */

.aad-product-card {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 24px 0;
    text-align: center;
}

/* 300px square by default. The image remains fully visible without cropping. */
.aad-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 300px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto;
    text-decoration: none;
    line-height: 0;
}
.aad-image-link:focus-visible {
    outline: 3px solid #5146D8;
    outline-offset: 2px;
}
.aad-product-image {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 3px;
    transition: opacity 0.15s ease;
}
.aad-image-link:hover .aad-product-image,
.aad-image-link:focus .aad-product-image {
    opacity: 0.88;
}

/* Preserved unavailable-product state. */
.aad-unavailable {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
