/*
 * public/public.css
 * Styles for the front-end display of Dynamic Content Columns.
 */

/* The main container for a single column. */
.dcc-column-wrapper {
    position: relative;
    width: 100%;
    height: 125px; 
    overflow: hidden; 
}

/* The stage where items are placed. */
.dcc-items-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Each individual item (slide). */
.dcc-item {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    backface-visibility: hidden; 
    background: #f9f9f9; 
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* The direct content wrapper inside an item. */
.dcc-item-content {
    text-align: center;
    width: 100%;
}

/* Style for the optional icon */
.dcc-item-icon {
    display: block;
    margin: 0 auto 15px auto;
    max-height: 50px;
    width: auto;
}

/* --- New Clickable Wrapper Style --- */
.dcc-item-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit; /* Inherits color from the parent .dcc-item */
    width: 100%;
    height: 100%;
}

/* --- Shared Styles for Product & Post Display --- */
.dcc-product-item-inner,
.dcc-post-item-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 20px;
    width: 100%;
    text-align: left;
}

.dcc-product-image,
.dcc-post-image {
    flex-shrink: 0; 
}

.dcc-product-image img,
.dcc-post-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.dcc-product-details,
.dcc-post-details {
    flex-grow: 1; 
}

.dcc-product-title,
.dcc-post-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    transition: color 0.2s ease-in-out;
}

/* Hover effect for titles inside a link */
.dcc-item-link-wrapper:hover .dcc-product-title,
.dcc-item-link-wrapper:hover .dcc-post-title {
    color: #005fcc;
}

/* --- Product-specific styles --- */
.dcc-product-price {
    font-weight: bold;
    color: #005fcc;
}

.dcc-product-price ins {
    text-decoration: none;
}