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

$params: (
   "gap": global.$gap-width,
   "margin": 0 0 global.$spacer-lg 0
);

@if global-variable-exists(c-account-orderdetail-buttons, components) {
   $keys: map.keys(components.$c-account-orderdetail-buttons);
   @each $name in $keys {
      @if not map.get($params, $name) {
         @warn "Neexistující proměnná '#{$name}' v komponentě '$#{component("Account:OrderDetail:Buttons", "class")}'.";
      }
   }

   $params: map.merge($params, components.$c-account-orderdetail-buttons);
}

.#{component("Account:OrderDetail:Buttons", "class")} {
   display: flex;
   flex-wrap: wrap;
   gap: map.get($params, "gap");
   margin: map.get($params, "margin");
}
