@import '../../../../styles/mixins';
@import '../../../../styles/shared/product-group-tiles.scss';

$corner-radius: var(--card-corner-radius, 0px);

$box-shadow: 0 2px 8px 0 var(--shadow-color);

.cardStyle {
    @include product-group-tile;

    &_wrapper {
        &--size-large {
            width: 410px;
            padding-left: 24px;
            padding-right: 24px;
            padding-top: 22px;
            padding-bottom: 22px;
        }
        
        &--size-medium {
            width: 300px;
            padding-left: 28px;
            padding-right: 28px;
            padding-top: 28px;
            padding-bottom: 25px;
        }

        &--size-small {
            width: 234px;
            padding: 0px 0px 16px 0px;
        }
    }

    &_upperTitle {
        @include title-3;
        color: var(--upper-title-color);
        padding-bottom: 15px;
        margin-bottom: 0;
        text-align: var(--upper-title-alignment, left);
        width: 100%;
    }

    &_image {
        &--size-large {
            height: 250px;
            img {
                border-radius: var(--image-corner-radius);
            }
        }

        &--size-medium {
            height: 162px;
            img {
                border-radius: var(--image-corner-radius);
            }
        }

        &--size-small {
            border-radius: $corner-radius $corner-radius 0px 0px;
            height: 130px;

            img {
                border-radius: $corner-radius $corner-radius 0px 0px;
            }
        }
    }
}
