@use "sass:map";
@use "@twig/scss/_global" as global;
@use "@twig/scss/variables/_variables-components" as components;

$params: (
   "margin": 0,
);

@if global-variable-exists(c-product-gifts, components) {
   $keys: map.keys(components.$c-product-gifts);
   @each $name in $keys {
      @if not map.get($params, $name) {
         @warn "Neexistující proměnná '#{$name}' v komponentě '$#{component("Product:Gifts", "class")}'.";
      }
   }

   $params: map.merge($params, components.$c-product-gifts);
}

.#{component("Product:Gifts", "class")} {
   width: 100%;
   margin: map.get($params, "margin");
}
