<?php
$show_shadow = $attributes['showShadow'] ?? true;
$shadow_color = $attributes['shadowColor'] ?? '';
$classes = ['wp-block-orphic-ui-testimonials-container', 'compact-design'];

if ($show_shadow) {
  $classes[] = 'has-shadow';
}

$wrapper_attributes = get_block_wrapper_attributes([
  'class' => implode(' ', $classes),
  'style' => $shadow_color ? sprintf('--orphic-testimonials-shadow-color: %s;', $shadow_color) : ''
]);
?>

<div <?php echo $wrapper_attributes; ?>>
  <div class="testimonials-container" data-direction="<?php echo $attributes['direction'] ?? 'left'; ?>">
    <?php echo $content; ?>
  </div>
</div>